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

OnKill (cid, target)

Kramer infernal

I work alone =/
Joined
Jun 18, 2008
Messages
225
Reaction score
0
Don't know if this is the right topic but am...

Someona has the OnKill(cid, target) function? I really need this ^^
 
What do you mean? It's built in on the server.

No, its not, I use TFS and I don't have that function
0.2.16 I think is the version... you can check it, I'm in search of that function to source it or add it into functions.lua (or global, don't know whats the first XD)
 
No, its not, I use TFS and I don't have that function
0.2.16 I think is the version... you can check it, I'm in search of that function to source it or add it into functions.lua (or global, don't know whats the first XD)
you are wrong...

if you don't belive go to creatureevent.h ctrl+f kill

Code:
enum CreatureEventType_t
{
	CREATURE_EVENT_NONE,
	CREATURE_EVENT_LOGIN,
	CREATURE_EVENT_LOGOUT,
	CREATURE_EVENT_THINK,
	CREATURE_EVENT_PREPAREDEATH,
	CREATURE_EVENT_DEATH,
	CREATURE_EVENT_KILL
};
 
Last edited:



maybe u can explain me this, I think it says onKill not found... then why says me that, I just checked my source, u're right I have Kill event... but it is deactivated or kinda?

EDIT: Please don't care about the thousands of duplicate ID's :)
 
maybe u can explain me this, I think it says onKill not found... then why says me that, I just checked my source, u're right I have Kill event... but it is deactivated or kinda?
EDIT: Please don't care about the thousands of duplicate ID's :)

Your data on creatureevents.xml it's bad had to be like this

Code:
<event type="kill" name="Blablabla" script="luafilehere.lua"/>
 
this is my actual line

Code:
	<event type="kill"  name="WOLF_KILL"   script="wolf_kill.lua"/>

I don't think to put Kill where is OnKill in the wolf_kill.lua...
 
this is my actual line

Code:
	<event type="kill"  name="WOLF_KILL"   script="wolf_kill.lua"/>

I don't think to put Kill where is OnKill in the wolf_kill.lua...

gimme a sec gonna test it...

Ill edit this post with the answer


EDIT:
For me it's working...
2ps2747.jpg

Here the script i used really basic just to test it...

Code:
function onKill(cid, target)
	doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Working working... You have killed a rabbit.")
	end
 
Last edited:
holy mother ~#@~215151 ... SORRY MY BAD! -_- it seems to be an error on my script I didn't saw... it was onLogin... I don't understand I though I changed... let me test it now

yeh it was me sorry for spend your time guys :S
 
Last edited:
Back
Top