eardrums
Member
- Joined
- May 27, 2010
- Messages
- 94
- Solutions
- 1
- Reaction score
- 10
hello,
So I'm trying to make a script that when you kill a creature it does something.
could be changing a players storage value or sending a message to the player.
I've never messed around with the creaturescripts before, so I would love someone tell me where to put the files exactly and what to put in the creaturescripts.xml
I literally just want something as simple as this. let me know what im missing. thanks!
So I'm trying to make a script that when you kill a creature it does something.
could be changing a players storage value or sending a message to the player.
I've never messed around with the creaturescripts before, so I would love someone tell me where to put the files exactly and what to put in the creaturescripts.xml
I literally just want something as simple as this. let me know what im missing. thanks!
Lua:
function onKill(cid, target)
if target:getName() == "dragon" then
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "it worked")
end
end