Hello, i am creating one script about war zone I , but i create a noob script why i start writing the recently and a i need help..
The script
LUA:
local pos = {x=33098,y=31908,z=10}
local topos = {x=2000,y=100,z=7}
local createpos = {x=33104,y=31909,z=10}
function onUse(cid, item, frompos, item2, topos)
if getPlayerStorageValue(cid, 51265) == 1 then
addEvent (big, 1)
addEvent (big, 30)
addEvent (big, 120)
addEvent (big, 180)
addEvent (big, 240)
addEvent (big, 300)
addEvent (teleport, 180)
else
doPlayerSendTextMessage(cid, 32, "You/re not allowed")
end
end
function big (cid)
doCreateMonster("Humongous Fungus", pos[math.random(1,#pos)], false, true);
doCreateMonster("Humongous Fungus", pos[math.random(1,#pos)], false, true);
doCreateMonster("Humongous Fungus", pos[math.random(1,#pos)], false, true);
doCreateMonster("Hideous Fungus", pos[math.random(1,#pos)], false, true);
doCreateMonster("Hideous Fungus", pos[math.random(1,#pos)], false, true);
end
function teleport(cid)
doCreateTeleport(itemid, topos, createpos)
end
The script
The function of the script is i use the item have six invasions monsters (Humongous Fungus and Hideous Fungus) and after 3 minus appear a teleport to one room , this teleport disappear in 30seconds , this teleport sent players to one room and a boos summoned.