• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Action I need Help with a script

Black Pearl

New Member
Joined
May 19, 2008
Messages
427
Reaction score
1
Location
Germany/Berlin
Hello guys,
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.
 
doCreatureSay(cid, 'The Gravelord is coming to take you under the earth', 18)

No speakClass with number 18, use 19.
 
Back
Top