Pearl Frag Help!

knightfire

New Member
Joined
Jul 25, 2007
Messages
114
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
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
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
Reaction score
8
Location
Norway
Correct, onDeath() is only for monsters dieing.
You must use onPrepareDeath(cid, killer) for players.
 
Top