• 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!

Pearl Frag Help!

knightfire

New Member
Joined
Jul 25, 2007
Messages
114
Best answers
0
Reaction score
2
Location
Lake Michigan
I got an error, am I doing anything wrong?

Here what the server said:
Error: [CreatureEvent::configureEvent] No valid type for creature event.ondeath
Warning: [BaseEvents::loadFromXml] Can not configure event
Here's what I have for the script:

In creaturescripts.xml:
<event type="ondeath" name="Pearltokiller" script="pearldeath.lua" />
And here is my script:

In pearldeath.lua:
function onDeath(cid, killer)
doPlayerAddItem(killer,2143,1)
doPlayerSendTextMessage(killer,22,"You pwned ' .. cid .. '!")
end
 
OP
knightfire

knightfire

New Member
Joined
Jul 25, 2007
Messages
114
Best answers
0
Reaction score
2
Location
Lake Michigan
It works perfectly, but you need to make a list of all the events that will make the script work, because I dont see a list anywehere on this whole forum.
 
OP
knightfire

knightfire

New Member
Joined
Jul 25, 2007
Messages
114
Best answers
0
Reaction score
2
Location
Lake Michigan
This does not work, Does anyone know what the problem is?
It loads great but never gives the white pearl :/

Cmon someone help?

This does not work, Does anyone know what the problem is?
It loads great but never gives the white pearl :/

Heeeeeeeeeelllllp!!!
 
Last edited by a moderator:

Jonern

Retired
Joined
May 31, 2007
Messages
1,054
Best answers
0
Reaction score
8
Location
Norway
Correct, onDeath() is only for monsters dieing.
You must use onPrepareDeath(cid, killer) for players.
 
Top