How to make this so just one monster at a time can be spawned and not any more spawn until its killed...
Im using TFS 0.3.6
Im using TFS 0.3.6
Lua:
local t = {
storage = 32001,
monster = {"Bazir", {x=1006, y=1176, z=6}},
msg = "Bazir has been summoned from hell, kill him before it's to late!"
}
function onStepIn(cid, item, position, fromPosition)
if getPlayerStorageValue(cid, t.storage) < 1 then
doCreatureSay(cid, t.msg, TALKTYPE_ORANGE_1)
doSummonCreature(t.monster[1], t.monster[2])
setPlayerStorageValue(cid, t.storage, 1)
end
return TRUE
end