i have make this in banshee warlock room but dont know why mosnter is spawm all room >.<
any1 can help me to know where's problem?
any1 can help me to know where's problem?
Code:
function onStepIn(cid, item, frompos, item2, topos)
spawnpos = {x=32211, y=31842, z=15}
spawnpos1 = {x=32219, y=31842, z=15}
queststatus = getPlayerStorageValue(cid,14016)
if (item.uid == 14016 or item.uid == 14017) and item.itemid == 426 then
if queststatus == -1 then
doSummonCreature("Warlock", spawnpos,1)
doSummonCreature("Warlock", spawnpos1,1)
doSendMagicEffect(spawnpos, CONST_ME_ENERGYAREA)
doSendMagicEffect(spawnpos1, CONST_ME_ENERGYAREA)
doTransformItem(item.uid, 425)
setPlayerStorageValue(cid,14016,1)
end
end
return 1
end