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)>=1then sendMsgToPlayer(cid,27,"You are already dueling!") returntrueend
if getCreatureCondition(cid, CONDITION_INFIGHT)== TRUE then sendMsgToPlayer(cid,27,"You can't do that while is in battle!") returntrueend
if getPlayerLevel(cid)<50then sendMsgToPlayer(cid,27,"Sorry, you need level 50 + to enter to arena Duel!") returntrueend -- 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)>1then returntrueend if getPlayerStorageValue(cid,52480)>=1then sendMsgToPlayer(cid,27,"You are already dueling!") returntrueend
if getCreatureCondition(cid, CONDITION_INFIGHT)== TRUE then sendMsgToPlayer(cid,27,"You can't do that while is in battle!") returntrueend
if getPlayerLevel(cid)<50then sendMsgToPlayer(cid,27,"Sorry, you need level 50 + to enter to arena Duel.") returntrueend -- setPlayerStorageValue(cid,154585,-1) doTeleportThing(cid, getTownTemplePosition(getPlayerTown(cid))) end returntrue end
Pergunta
clebao666 6
alguem pode me ajudar por pro player usar essa magia so a cada 30 min. desde ja agradeço.
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 then
sendMsgToPlayer(cid, 27, "You are already dueling!")
return true end
if getCreatureCondition(cid, CONDITION_INFIGHT) == TRUE then
sendMsgToPlayer(cid, 27, "You can't do that while is in battle!")
return true end
if getPlayerLevel(cid) < 50 then
sendMsgToPlayer(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 then
return true end
if getPlayerStorageValue(cid, 52480) >= 1 then
sendMsgToPlayer(cid, 27, "You are already dueling!")
return true end
if getCreatureCondition(cid, CONDITION_INFIGHT) == TRUE then
sendMsgToPlayer(cid, 27, "You can't do that while is in battle!")
return true end
if getPlayerLevel(cid) < 50 then
sendMsgToPlayer(cid, 27, "Sorry, you need level 50 + to enter to arena Duel.")
return true end
--
setPlayerStorageValue(cid, 154585, -1)
doTeleportThing(cid, getTownTemplePosition(getPlayerTown(cid)))
end
return true
end
Link para o comentário
Compartilhar em outros sites
5 respostass a esta questão
Posts Recomendados