• 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!
  • 2026 staff recruitment is open! Check it out and consider applying!

CratureEvents

Status
Not open for further replies.

Shawak

Intermediate OT User
Joined
Sep 11, 2008
Messages
1,991
Solutions
2
Reaction score
129
Location
Germany
GitHub
Shawak
I can't add a new script to the CreatureEvents on TFS 0.3.5,
the server don't excute the script.

My CreateEvents:
LUA:
	<event type="PrepareDeath" name="Kill" event="script" value="kill.lua"/>

The top of my script:
LUA:
function onPrepareDeath(cid, lastHitKiller, mostDamageKiller)

And my login.lua:
LUA:
	registerCreatureEvent(cid, "Kill")

If you say me, how to fix the bug, I'll rep you, ofcourse.

Regards,
Shawak
 
Most of my script's don't work on TFS 0.3.5
This sucks :wub:

(Gotta re-test and post)
 
I found it out, TFS 0.3.5 doesn't have "mostDamageKiller" and "lastHitKiller" :(, only "onKill(cid, target, lastHit)".
But what is lastHit for a variable?
 
Status
Not open for further replies.
Back
Top