nyaricastro
New Member
- Joined
- Mar 11, 2009
- Messages
- 4
- Reaction score
- 0
function onUse(cid, item, frompos, item2, topos)
local bicho = "Apocalypse"
local monsterpos = {x =283, y =312, z =7}
if item.actionid == 7020 then
doPlayerSendTextMessage(cid,22,'Começou o 1º Round')
doSummonCreature(bicho,monsterpos)
setPlayerStorageValue(cid,8790,0)
elseif item.actionid == 7020 then
queststatus = getPlayerStorageValue(cid,8790)
if queststatus == -1 then
doPlayerSendTextMessage(cid,22,'Começou o 2º Round')
doSummonCreature(bicho,monsterpos)
setPlayerStorageValue(cid,8791,0)
elseif item.actionid == 7020 then
queststatus = getPlayerStorageValue(cid,8791)
if queststatus == -1 then
doPlayerSendTextMessage(cid,22,'Começou o 3º Round')
doSummonCreature(bicho,monsterpos)
setPlayerStorageValue(cid,8792,0)
elseif item.actionid == 7020 then
queststatus = getPlayerStorageValue(cid,8792)
if queststatus == -1 then
doPlayerSendTextMessage(cid,22,'Começou o 4º Round')
doSummonCreature(bicho,monsterpos)
setPlayerStorageValue(cid,8793,0)
elseif item.actionid == 7020 then
queststatus = getPlayerStorageValue(cid,8793)
if queststatus == -1 then
doPlayerSendTextMessage(cid,22,'Começou o 5º Round')
doSummonCreature(bicho,monsterpos)
setPlayerStorageValue(cid,8794,0)
elseif item.actionid == 7020 then
queststatus = getPlayerStorageValue(cid,8794)
if queststatus == -1 then
doPlayerSendTextMessage(cid,22,'Não aperte novamente a manivela até que todos os bichos estejam mortos')
doSummonCreature(bicho,monsterpos)
setPlayerStorageValue(cid,8795,0)
end
return 1
end
end
end
end
end
end
This system is so ... A number of players entering the arena PQ: Party Quest ... then one of the players turn the lever that pops 1 apocalypse ... and sends the message to players saying that the 1st round began. ..
Then ... the players will kill the apoca ... will be possible to go by clicking on the lever again and go forward to Round rounds ... 1,2,3,4,5 ...
Well .. this script was done by myself but it has a mistake ... in addition to being a mess ... in time I'll run it on my server is always in the 1st round ... not advancing to the next ...
Thanks for help ...