Black Pearl
New Member
Hello guys,
I have some problems with this script:
If somebody use the switch then he get a debug and the boss monster spawning and e died because of Debug Please help me.
I have some problems with this script:
Code:
function onUse(cid, item, frompos, item2, topos)
queststatus = getPlayerStorageValue(cid,8923)
e1 = {x=1008, y=1072, z=10, stackpos=1}
e2 = {x=1008, y=1074, z=10, stackpos=1}
e3 = {x=1010, y=1074, z=10, stackpos=1}
e4 = {x=1010, y=1072, z=10, stackpos=1}
boss = {x=1009, y=1073, z=10, stackpos=1}
if item.uid == 8923 then
if queststatus == -1 or queststatus == 0 then
doCreatureSay(cid, 'The Gravelord is coming to take you under the earth', 18)
doSendMagicEffect(e1, 40)
doSendMagicEffect(e2, 40)
doSendMagicEffect(e3, 40)
doSendMagicEffect(e4, 40)
doSummonCreature('Gravelord', boss)
setPlayerStorageValue(cid,8923,1)
else
doCreatureSay(cid,'The Gravelord is scared to come back to you.', 19)
end
end
return 1
end
If somebody use the switch then he get a debug and the boss monster spawning and e died because of Debug Please help me.