Tipo pra registra ta pela coin....voce compra a coin e se registra usando ela.....
Tem como me manda uma sua pronta tipo a minha ta assim
--[[storages
22545 = player q entra na arena (normal)
22546 = monstros na arena (normal)
22547 = waves (global)
22548 = qnts monstros tem na arena (global)
22549 = nome dos players q vao pra arena (global)
22550 = qnts players tem na arena (global)
]]
------------------------------------------------------------------------------------------------------------------
function doWave(continua)
if getGlobalStorageValue(22547) == #wavesGolden+1 then
continua = false
setGlobalStorageValue(22547, -1) --podese organiza os horarios das golden arenas no globalevents.xml!!
setGlobalStorageValue(22550, -1) --ta arrumado pra acontecer a cada 5h! lembrando q o horario do globalevents.xml
end --tem q ser 10min antes do horario ms...
--e o "CleanGoldenArena" tem q ser 2:30h depois de começar a golden!
if not continua then
return true
end
if getGlobalStorageValue(22548) <= 0 then
local wave = getGlobalStorageValue(22547) <= 0 and 1 or getGlobalStorageValue(22547)
for i = 1, #posisGolden do
if wavesGolden[wave][i] ~= "" then --alterado v1.2
monster = doSummonCreature(wavesGolden[wave][i], posisGolden[i])
for _, sid in ipairs(getPlayersOnline()) do
if getPlayerStorageValue(sid, 22545) == 1 then
doSetMonsterPassive(monster) --alterado v1.3 agressive!
doWildAttackPlayer(monster, sid)
end
end
doSendMagicEffect(getThingPos(monster), 21)
setPlayerStorageValue(monster, 22546, 1)
local sto = getGlobalStorageValue(22548) == -1 and 0 or getGlobalStorageValue(22548)
setGlobalStorageValue(22548, sto+1)
end
end
for _, sid in ipairs(getPlayersOnline()) do
if getPlayerStorageValue(sid, 22545) == 1 then
doPlayerSendTextMessage(sid, 21, "Wave "..wave.." will begin!")
doPlayerSendTextMessage(sid, 28, "Wave "..wave.." will begin!")
end
end
setGlobalStorageValue(22547, wave+1)
end
addEvent(doWave, 30000, continua)
end
------------------------------------------------------------------------------------------------------------------
function getParticipantes()
local s = ""
if getGlobalStorageValue(22549) ~= -1 then
s = string.explode(getGlobalStorageValue(22549), ",")
end
if s == "" then
return true
end
for i = 1, #s do
for _, sid in ipairs(getPlayersOnline()) do
if getCreatureName(sid) == s[i] then
doTeleportThing(sid, getClosestFreeTile(sid, posGolden)) --pos pra onde os players vao ser teleportados quando a golden começar!
doSendMagicEffect(getThingPos(sid), 21)
if #getCreatureSummons(sid) >= 1 then
doTeleportThing(sid, getClosestFreeTile(getCreatureSummons(sid)[1], posGolden)) --pos pra onde os pokes dos players serao teleportados!
doSendMagicEffect(getThingPos(getCreatureSummons(sid)[1]), 21)
end
setPlayerStorageValue(sid, 22545, 1)
setGlobalStorageValue(22550, (getGlobalStorageValue(22550) <= 0 and 0 or getGlobalStorageValue(22550))+1)
end
end
end
setGlobalStorageValue(22549, -1)
end
------------------------------------------------------------------------------------------------------------------
function onTimer(cid, interval, lastExecution)
doBroadcastMessage("Golden Arena will begin in 10 minutes! Go prepare yourself!")
addEvent(doBroadcastMessage, 300000, "Golden Arena will begin in 5 minutes!\nWe hope that participants are already prepared!")
addEvent(getParticipantes, 480000)
addEvent(doBroadcastMessage, 600000, "The Golden Arena are started!")
addEvent(doWave, 600000, true) --alterado v1.2
return true
end
Tipo tem como vc ver c tem algo errado eu uso o mapa do stigal la 2.0....(uso seu server com o mapa dele....n baixei o serv dele)......
Agradecido Abrass