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

I need some help with event type="death" in creaturescripts.xml

Lolzor

New Member
Joined
Aug 8, 2007
Messages
174
Reaction score
1
Location
Sweden
My deathlist at the website stopped working after I used the "Creating teleport after monster dies" script, why? ;s

creaturescripts.xml


Code:
<?xml version="1.0" encoding="UTF-8"?>
<creaturescripts>
	<event type="login" name="PlayerLogin" script="login.lua"/>
      	<event type="death" name="PlayerDeath" script="playerdeath.lua"/>
	<event type="death" name="Inquisition" script="inquisition.lua"/>

</creaturescripts>


scripts/login.lua


Code:
function onLogin(cid)
	setPlayerStorageValue(cid,29061,1)
	registerCreatureEvent(cid, "PlayerDeath")
	registerCreatureEvent(cid, "Inquisition")
	return TRUE
end

Does anyone know if I can change the event type="death" part to something else than "death"? because I think that is the problem with the deathlist not showing.
 
Last edited:
My deathlist at the website stopped working after I used the "Creating teleport after monster dies" script, why? ;s

creaturescripts.xml


Code:
<?xml version="1.0" encoding="UTF-8"?>
<creaturescripts>
	<event type="login" name="PlayerLogin" script="login.lua"/>
      	<event type="death" name="PlayerDeath" script="playerdeath.lua"/>
	<event type="death" name="Inquisition" script="inquisition.lua"/>

</creaturescripts>


scripts/login.lua


Code:
function onLogin(cid)
	setPlayerStorageValue(cid,29061,1)
	registerCreatureEvent(cid, "PlayerDeath")
	registerCreatureEvent(cid, "Inquisition")
	return TRUE
end

Does anyone know if I can change the event type="death" part to something else than "death"? because I think that is the problem with the deathlist not showing.


yeah that should be the problem.
im using this scrpt too but im not usin website so dunno if i have prob also
 
@up, I tried the "onKill" script but still didnt work..

im not pro in lua but i think it wont workbecouse teleport is made when creature dies not when u kill it
and Lorzo. if the deathlist talkaction works without problem in game theres a problem with aac site i thnik you should try to edit the php file where deathlist page is
 
Back
Top