Cadeiaa

juninhonx
em Lixeira Pública

juninhonx

avatar
Campones
Campones

INFOS

Grupo: CamponesRegistrado: 03/08/09Posts: 49Char no Tibia: thien airo

Gente eu tenho uma cadeia pronta

 

Manda o script de fazer ela funcionar--tipo

se ele falar d god ai o god bota ele na cadeia para sair por exemplo depois de dois dias


Protocolo :8.52
Ajuda plixx



 

concorraroleplay.png

Não perca essa chance

 

 



arian1

Killers Ot A Revolução
avatar
Banidos
Banidos

INFOS

Grupo: BanidosRegistrado: 26/08/08Posts: 17Char no Tibia: Walkire

Vá Em Data >TalkActions>Script

Copie 1 Arquivo Qualquer E Renomeio Para Cadeia .

E Cole Isto Dentro

 

--Script By Kahrian--

-- Default jail time in seconds --

default_jail = 30

-- The permission you need to jail someone --

grouprequired = 3

-- StorageValue that the player gets --

jailedstoragevalue_time = 1338

jailedstoragevalue_bool = 1339

-- POSIcaO DA CADEIA: --

jailpos = { x = 97, y = 70, z =7 }

-- POSICAO DO TEMPLO: --

unjailpos = { x = 161, y = 49, z =7 }

-- auto kicker, dont edit

jail_list = {}

jail_list_work = 0

 

function checkJailList(param)

addEvent(checkJailList, 1000, {})

for targetID,player in ipairs(jail_list) do

if isPlayer(player) == TRUE then

if getPlayerStorageValue(player, jailedstoragevalue_time) < os.time() then

doTeleportThing(player, unjailpos, TRUE)

setPlayerStorageValue(player, jailedstoragevalue_time, 0)

setPlayerStorageValue(player, jailedstoragevalue_bool, 0)

table.remove(jail_list,targetID)

doPlayerSendTextMessage(player,MESSAGE_STATUS_CONSOLE_ORANGE,'You were kicked from jail! See you later ')

end

else

table.remove(jail_list,targetID)

end

end

end

 

function onSay(cid, words, param)

if jail_list_work == 0 then

jail_list_work = addEvent(checkJailList, 1000, {})

end

if param == '' and (words == '!unjail' or words == '/unjail') then

if getPlayerStorageValue(cid, jailedstoragevalue_time) > os.time() then

doPlayerSendTextMessage ( cid, MESSAGE_INFO_DESCR, 'You are jailed until ' .. os.date("%H:%M:%S", getPlayerStorageValue(cid, jailedstoragevalue_time)) .. ' (now is: ' .. os.date("%H:%M:%S", os.time()) .. ').')

else

if getPlayerStorageValue(cid, jailedstoragevalue_bool) == 1 then

table.insert(jail_list,cid)

doPlayerSendTextMessage ( cid, MESSAGE_INFO_DESCR, 'You will be kicked from jail in one second.')

else

doPlayerSendTextMessage ( cid, MESSAGE_INFO_DESCR, 'You are not jailed.')

end

end

return TRUE

end

local jail_time = -1

for word in string.gmatch(tostring(param), "(%w+)") do

if tostring(tonumber(word)) == word then

jail_time = tonumber(word)

end

end

local isplayer = getPlayerByName(param)

if isPlayer(isplayer) ~= TRUE then

isplayer = getPlayerByName(string.sub(param, string.len(jail_time)+1))

if isPlayer(isplayer) ~= TRUE then

isplayer = getPlayerByName(string.sub(param, string.len(jail_time)+2))

if isPlayer(isplayer) ~= TRUE then

isplayer = getPlayerByName(string.sub(param, string.len(jail_time)+3))

end

end

end

if jail_time ~= -1 then

jail_time = jail_time * 60

else

jail_time = default_jail

end

if words == '!jail' or words == '/jail' then

if getPlayerGroupId ( cid ) >= grouprequired then

if isPlayer(isplayer) == TRUE then

doTeleportThing(isplayer, jailpos, TRUE)

setPlayerStorageValue(isplayer, jailedstoragevalue_time, os.time()+jail_time)

setPlayerStorageValue(isplayer, jailedstoragevalue_bool, 1)

table.insert(jail_list,isplayer)

doPlayerSendTextMessage ( cid, MESSAGE_INFO_DESCR, 'You jailed '.. getCreatureName(isplayer) ..' until ' .. os.date("%H:%M:%S", getPlayerStorageValue(isplayer, jailedstoragevalue_time)) .. ' (now is: ' .. os.date("%H:%M:%S", os.time()) .. ').')

doPlayerSendTextMessage ( isplayer, MESSAGE_INFO_DESCR, 'You have been jailed by '.. getCreatureName(cid) ..' until ' .. os.date("%H:%M:%S", getPlayerStorageValue(isplayer, jailedstoragevalue_time)) .. ' (now is: ' .. os.date("%H:%M:%S", os.time()) .. ').')

return TRUE

else

doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Player with this name doesn\'t exist or is offline.")

return FALSE

end

else

doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "You don't have access to unjail other players.")

return FALSE

end

elseif words == '!unjail' or words == '/unjail' then

if getPlayerGroupId ( cid ) >= grouprequired then

if isPlayer(isplayer) == TRUE then

doTeleportThing(isplayer, unjailpos, TRUE)

setPlayerStorageValue(isplayer, jailedstoragevalue_time, 0)

setPlayerStorageValue(isplayer, jailedstoragevalue_bool, 0)

table.remove(jail_list,targetID)

doPlayerSendTextMessage(isplayer,MESSAGE_STATUS_CONSOLE_ORANGE,getCreatureName(c

id) .. ' let you go out from jail! See you later')

doPlayerSendTextMessage ( cid, MESSAGE_INFO_DESCR, 'You unjailed '.. getCreatureName(isplayer) ..'.')

else

doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Player with this name doesn\'t exist or is offline.")

return FALSE

end

else

doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "You don't have access to unjail other players.")

return FALSE

end

end

return FALSE

end

 

Informações

E A Posição Da Cadeia Para Onde O Player Irá

Posição Do Templo Quando O Player Saira Da Prisão

Quantos Minutos O Player Ficara No Caso Ali Esta 60 = 1 Minuto

 

Agora Vá Em TalkActions.Xml E Adicione Isto Nos Players

<talkaction words="!unjail" script="Cadeia.lua" />

<talkaction words="/jail" script="Cadeia.lua" />

<talkaction words="/unjail" script="Cadeia.lua" />

 

Este Eo Comando Do GOD /jail "NICK" e /unjail "NICK"

Este Comando E Usado Para O Player Quando Ele Estiver Na Prisão Para Ver A Hora Que Ele Ira Sair !unjail .

 

Pronto Esta Ai Como Voce Pediu

 

Abraços :smile_positivo:

Metas:
[x]5 posts (SERVO)
[x]10 posts (CAMPONÊS)
[x]25 posts (CAÇADOR)
[x]50 posts (CAVALEIRO)
[ ]100 posts (BARONETE)
[ ]200 posts (BARÃO)
[ ]300 posts (VISCONDE)
[ ]400 posts (DUQUE)
[ ]600 posts (ARQUEDUQUE)
[ ]800 posts (ARISTOCRATA)
[ ]1000 posts (REGENTE)
[ ]1400 posts (SÁBIO)
[ ]1800 posts (SACERDOTE)
[ ]2500 posts (PRÍNCIPE)

Info +:
[X]..Mapper..100%
[X]..RPG_Maker..100%
[X]..Scripter.Lua..100%
[X]..OTAdmin..100%
[X]..Jogador..200% (x1)? =]
[X]..Hoster..100%
[X]..GameMaster..100%

Eu Sou Fã De :


Char No Tibia Rl :

Meus Trabalhos :



Kilerzinhos.servegame.com 8.5 , O Que Esta Esperano ? Venha Ser O Top !


Antes ? Eu Fica Flodano Alertas, Hoje Eu Parei Agora Ajudo Ao Xtibia :

Alerta: (20%) X----

juninhonx

avatar
Campones
Campones

INFOS

Grupo: CamponesRegistrado: 03/08/09Posts: 49Char no Tibia: thien airo

Oks



 

concorraroleplay.png

Não perca essa chance

 

 



arian1

Killers Ot A Revolução
avatar
Banidos
Banidos

INFOS

Grupo: BanidosRegistrado: 26/08/08Posts: 17Char no Tibia: Walkire

Vou Reporta-lo Para Algum Moderaor Fexe O Topico

Duvida Sanada .

 

 

Abraços :smile_positivo:

Metas:
[x]5 posts (SERVO)
[x]10 posts (CAMPONÊS)
[x]25 posts (CAÇADOR)
[x]50 posts (CAVALEIRO)
[ ]100 posts (BARONETE)
[ ]200 posts (BARÃO)
[ ]300 posts (VISCONDE)
[ ]400 posts (DUQUE)
[ ]600 posts (ARQUEDUQUE)
[ ]800 posts (ARISTOCRATA)
[ ]1000 posts (REGENTE)
[ ]1400 posts (SÁBIO)
[ ]1800 posts (SACERDOTE)
[ ]2500 posts (PRÍNCIPE)

Info +:
[X]..Mapper..100%
[X]..RPG_Maker..100%
[X]..Scripter.Lua..100%
[X]..OTAdmin..100%
[X]..Jogador..200% (x1)? =]
[X]..Hoster..100%
[X]..GameMaster..100%

Eu Sou Fã De :


Char No Tibia Rl :

Meus Trabalhos :



Kilerzinhos.servegame.com 8.5 , O Que Esta Esperano ? Venha Ser O Top !


Antes ? Eu Fica Flodano Alertas, Hoje Eu Parei Agora Ajudo Ao Xtibia :

Alerta: (20%) X----

satan666

Antichrist Superstar
avatar
Conde
Conde

INFOS

Grupo: CondeRegistrado: 07/05/08Posts: 612Char no Tibia: leviana luciferiana
Vou Reporta-lo Para Algum Moderaor Fexe O Topico

Duvida Sanada .

 

 

Abraços :smile_positivo:

 

 

vou reportar você por ter tirado os creditos do script e ter posto o seus como se fosse você o criador desse script.

 

Vá Em Data >TalkActions>Script

Copie 1 Arquivo Qualquer E Renomeio Para Cadeia .

E Cole Isto Dentro

 

--Script By Kahrian--

-- Default jail time in seconds --

default_jail = 30

-- The permission you need to jail someone --

grouprequired = 3

-- StorageValue that the player gets --

jailedstoragevalue_time = 1338

jailedstoragevalue_bool = 1339

-- POSIcaO DA CADEIA: --

jailpos = { x = 97, y = 70, z =7 }

-- POSICAO DO TEMPLO: --

unjailpos = { x = 161, y = 49, z =7 }

-- auto kicker, dont edit

jail_list = {}

jail_list_work = 0

 

function checkJailList(param)

addEvent(checkJailList, 1000, {})

for targetID,player in ipairs(jail_list) do

if isPlayer(player) == TRUE then

if getPlayerStorageValue(player, jailedstoragevalue_time) < os.time() then

doTeleportThing(player, unjailpos, TRUE)

setPlayerStorageValue(player, jailedstoragevalue_time, 0)

setPlayerStorageValue(player, jailedstoragevalue_bool, 0)

table.remove(jail_list,targetID)

doPlayerSendTextMessage(player,MESSAGE_STATUS_CONSOLE_ORANGE,'You were kicked from jail! See you later ')

end

else

table.remove(jail_list,targetID)

end

end

end

 

function onSay(cid, words, param)

if jail_list_work == 0 then

jail_list_work = addEvent(checkJailList, 1000, {})

end

if param == '' and (words == '!unjail' or words == '/unjail') then

if getPlayerStorageValue(cid, jailedstoragevalue_time) > os.time() then

doPlayerSendTextMessage ( cid, MESSAGE_INFO_DESCR, 'You are jailed until ' .. os.date("%H:%M:%S", getPlayerStorageValue(cid, jailedstoragevalue_time)) .. ' (now is: ' .. os.date("%H:%M:%S", os.time()) .. ').')

else

if getPlayerStorageValue(cid, jailedstoragevalue_bool) == 1 then

table.insert(jail_list,cid)

doPlayerSendTextMessage ( cid, MESSAGE_INFO_DESCR, 'You will be kicked from jail in one second.')

else

doPlayerSendTextMessage ( cid, MESSAGE_INFO_DESCR, 'You are not jailed.')

end

end

return TRUE

end

local jail_time = -1

for word in string.gmatch(tostring(param), "(%w+)") do

if tostring(tonumber(word)) == word then

jail_time = tonumber(word)

end

end

local isplayer = getPlayerByName(param)

if isPlayer(isplayer) ~= TRUE then

isplayer = getPlayerByName(string.sub(param, string.len(jail_time)+1))

if isPlayer(isplayer) ~= TRUE then

isplayer = getPlayerByName(string.sub(param, string.len(jail_time)+2))

if isPlayer(isplayer) ~= TRUE then

isplayer = getPlayerByName(string.sub(param, string.len(jail_time)+3))

end

end

end

if jail_time ~= -1 then

jail_time = jail_time * 60

else

jail_time = default_jail

end

if words == '!jail' or words == '/jail' then

if getPlayerGroupId ( cid ) >= grouprequired then

if isPlayer(isplayer) == TRUE then

doTeleportThing(isplayer, jailpos, TRUE)

setPlayerStorageValue(isplayer, jailedstoragevalue_time, os.time()+jail_time)

setPlayerStorageValue(isplayer, jailedstoragevalue_bool, 1)

table.insert(jail_list,isplayer)

doPlayerSendTextMessage ( cid, MESSAGE_INFO_DESCR, 'You jailed '.. getCreatureName(isplayer) ..' until ' .. os.date("%H:%M:%S", getPlayerStorageValue(isplayer, jailedstoragevalue_time)) .. ' (now is: ' .. os.date("%H:%M:%S", os.time()) .. ').')

doPlayerSendTextMessage ( isplayer, MESSAGE_INFO_DESCR, 'You have been jailed by '.. getCreatureName(cid) ..' until ' .. os.date("%H:%M:%S", getPlayerStorageValue(isplayer, jailedstoragevalue_time)) .. ' (now is: ' .. os.date("%H:%M:%S", os.time()) .. ').')

return TRUE

else

doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Player with this name doesn\'t exist or is offline.")

return FALSE

end

else

doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "You don't have access to unjail other players.")

return FALSE

end

elseif words == '!unjail' or words == '/unjail' then

if getPlayerGroupId ( cid ) >= grouprequired then

if isPlayer(isplayer) == TRUE then

doTeleportThing(isplayer, unjailpos, TRUE)

setPlayerStorageValue(isplayer, jailedstoragevalue_time, 0)

setPlayerStorageValue(isplayer, jailedstoragevalue_bool, 0)

table.remove(jail_list,targetID)

doPlayerSendTextMessage(isplayer,MESSAGE_STATUS_CONSOLE_ORANGE,getCreatureName(c

id) .. ' let you go out from jail! See you later')

doPlayerSendTextMessage ( cid, MESSAGE_INFO_DESCR, 'You unjailed '.. getCreatureName(isplayer) ..'.')

else

doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Player with this name doesn\'t exist or is offline.")

return FALSE

end

else

doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "You don't have access to unjail other players.")

return FALSE

end

end

return FALSE

end

 

Informações

E A Posição Da Cadeia Para Onde O Player Irá

Posição Do Templo Quando O Player Saira Da Prisão

Quantos Minutos O Player Ficara No Caso Ali Esta 60 = 1 Minuto

 

Agora Vá Em TalkActions.Xml E Adicione Isto Nos Players

<talkaction words="!unjail" script="Cadeia.lua" />

<talkaction words="/jail" script="Cadeia.lua" />

<talkaction words="/unjail" script="Cadeia.lua" />

 

Este Eo Comando Do GOD /jail "NICK" e /unjail "NICK"

Este Comando E Usado Para O Player Quando Ele Estiver Na Prisão Para Ver A Hora Que Ele Ira Sair !unjail .

 

Pronto Esta Ai Como Voce Pediu

 

Abraços :smile_positivo:

 

esse script é do gesior e não seu você retirou os creditos dele e pos os seus ripper.

creationb.jpg

"Um Deus que usasse seu poder para criar seres humanos que de antemão sabia que seriam atormentados eternamente, e que os predestinasse a isso,



não poderia ser sábio, nem justo e tampouco amoroso.

Além de nos submeter a isso vim a nos julgar e condenar por nossos atos aos tormentos do inferno.

pra minha pessoa isso não é um Deus Pai amoroso e bondoso como o chaman, seu padrão seria muito mais inferior do que o de muitos homens."

mathemas

Mathemas
avatar
Campones
Campones

INFOS

Grupo: CamponesRegistrado: 24/09/09Posts: 39Char no Tibia: não tenho

Tem um erro nesse script na linha 97

6940698bf5.png

 

 

 

arian1

Killers Ot A Revolução
avatar
Banidos
Banidos

INFOS

Grupo: BanidosRegistrado: 26/08/08Posts: 17Char no Tibia: Walkire
vou reportar você por ter tirado os creditos do script e ter posto o seus como se fosse você o criador desse script.

 

 

Lá Vem... Peguei De Ninguem Nao Fica Tranquilo E Os Creditos E Meu Quer SS Aqui Do Meu Ot ? Faço Prazer ;)

 

Tem um erro nesse script na linha 97

 

Verifique De Novo , Pois Aqui No Meu Ot Esta Rodano Perfeitamente , Verifique Se Voce Fez Certo

Metas:
[x]5 posts (SERVO)
[x]10 posts (CAMPONÊS)
[x]25 posts (CAÇADOR)
[x]50 posts (CAVALEIRO)
[ ]100 posts (BARONETE)
[ ]200 posts (BARÃO)
[ ]300 posts (VISCONDE)
[ ]400 posts (DUQUE)
[ ]600 posts (ARQUEDUQUE)
[ ]800 posts (ARISTOCRATA)
[ ]1000 posts (REGENTE)
[ ]1400 posts (SÁBIO)
[ ]1800 posts (SACERDOTE)
[ ]2500 posts (PRÍNCIPE)

Info +:
[X]..Mapper..100%
[X]..RPG_Maker..100%
[X]..Scripter.Lua..100%
[X]..OTAdmin..100%
[X]..Jogador..200% (x1)? =]
[X]..Hoster..100%
[X]..GameMaster..100%

Eu Sou Fã De :


Char No Tibia Rl :

Meus Trabalhos :



Kilerzinhos.servegame.com 8.5 , O Que Esta Esperano ? Venha Ser O Top !


Antes ? Eu Fica Flodano Alertas, Hoje Eu Parei Agora Ajudo Ao Xtibia :

Alerta: (20%) X----

\Mattheus ~*

Ex Moderador
avatar
Conde
Conde

INFOS

Grupo: CondeRegistrado: 11/02/09Posts: 559Char no Tibia: Deep Druid

O pedido já foi entregue.

 

Então tópico reportado.

 

Abraços.

[/ Construçãao .

satan666

Antichrist Superstar
avatar
Conde
Conde

INFOS

Grupo: CondeRegistrado: 07/05/08Posts: 612Char no Tibia: leviana luciferiana

hahahaah

faz me rir que eu gosto.

 

jail system by gesior.pl

creationb.jpg

"Um Deus que usasse seu poder para criar seres humanos que de antemão sabia que seriam atormentados eternamente, e que os predestinasse a isso,



não poderia ser sábio, nem justo e tampouco amoroso.

Além de nos submeter a isso vim a nos julgar e condenar por nossos atos aos tormentos do inferno.

pra minha pessoa isso não é um Deus Pai amoroso e bondoso como o chaman, seu padrão seria muito mais inferior do que o de muitos homens."

Henrique Moura

Ex-administrador
avatar
Herói
Herói

INFOS

Grupo: HeróiRegistrado: 17/02/08Posts: 2541

Dúvida sanada, tópico fechado.

Tópico fechado. :button_cancel:

 

Abraços.

KaKilo ~
 


Lom14fD.png