Postado Julho 3, 2015 10 anos alguem pode modificar essa script pra mim poe pros players so poderem usar o /cp a cada 30 min e so se nao tiverem em duel. vlww Vá em data\talkactions.xml,e cole isso dentro. <talkaction words="/cp" event="script" value="areareturn.lua"/> Depois vá em Data/talkactions/scripts, e crie um arquivo.lua com nome de areareturn e bote isso dentro. AR = {x=2097, y=911, z=7}--local msg_to = "You as bee a teleported to Arena. You need to use /cp return to leave to here."--local sto_enter = 85315--//--function onSay(cid, words, param, channel)local t = string.explode(param, ",")if param == "" then--if getPlayerStorageValue(cid, 52480) >= 1 thensendMsgToPlayer(cid, 27, "You are already dueling!")return true endif getCreatureCondition(cid, CONDITION_INFIGHT) == TRUE thensendMsgToPlayer(cid, 27, "You can't do that while is in battle!")return true endif getPlayerLevel(cid) < 50 thensendMsgToPlayer(cid, 27, "Sorry, you need level 50 + to enter to arena Duel!")return true end--setPlayerStorageValue(cid, sto_enter, 1)doTeleportThing(cid, AR)sendMsgToPlayer(cid, 20, msg_to)end----------------------------------------------------------------- if param and param == "return" then--if getPlayerStorageValue(cid, sto_enter) > 1 thenreturn true end if getPlayerStorageValue(cid, 52480) >= 1 thensendMsgToPlayer(cid, 27, "You are already dueling!")return true endif getCreatureCondition(cid, CONDITION_INFIGHT) == TRUE thensendMsgToPlayer(cid, 27, "You can't do that while is in battle!")return true endif getPlayerLevel(cid) < 50 thensendMsgToPlayer(cid, 27, "Sorry, you need level 50 + to enter to arena Duel.")return true end--setPlayerStorageValue(cid, 154585, -1)doTeleportThing(cid, getTownTemplePosition(getPlayerTown(cid)))endreturn trueend
Postado Agosto 8, 2015 9 anos O tópico foi movido para a área correta, preste mais atenção da próxima vez!Leia as regras do fórum: http://tibiaking.com/forum/topic/1281-regras-gerais/?p=7680 Este tópico foi movido:De: "OTServ → Scripting → Geral"Para: "OTServ → Suporte OTServ → Suporte de Scripts" _ .-'` `} _./) / } .'o \ | } '.___.'`.\ {` /`\_/ , `. } ME DA UMA NOZ! \=' .-' _`\ { `'`;/ `, } _\ @ ; } /__`;-...'--' Cluck!
Participe da conversa
Você pode postar agora e se cadastrar mais tarde. Se você tem uma conta, faça o login para postar com sua conta.