Angel Of Death
Rise Of Tibia ServerOwner
- Joined
- Mar 12, 2012
- Messages
- 91
- Reaction score
- 0
LUA:
function onUse(cid, item, frompos, item2, topos)
local id = 3490
local time = 20
local pos1 = {x = 1568, y = 1550, z = 10}
local pos2 = {x = 1568, y = 1550, z = 10}
if item.itemid == 8551 then
if getPlayerStorageValue(cid, 11200)==0 then
doCleanTile(pos1,false)
doPlayerSendTextMessage(cid,22,"The Rat Just Broke Through The Wall!!!!")
doSummonCreature("hurt rat", pos1)
setPlayerStorageValue(cid, 11200, 1)
addEvent(doCreateItem,time * 1000, id,1,pos1)
elseif
getPlayerStorageValue(cid, 11200)== 1then
doCleanTile(pos1,false)
addEvent(doCreateItem,time * 1000, id,1,pos1)
end
return true
end
end
so what is suposto happen is you click the door the wall gets removed and a rat spawns few seconds later the wall reappears people are farming the rat by constantly clicking the door do i wanna make it set a storage after you click the door the first time and if you click it again it opens the wall but does not spawn rat