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

Killing people war ot

Andrekkzie

New Member
Joined
Sep 12, 2010
Messages
64
Reaction score
2
Can someone tell me how to make that when i kill people in my war otserv instead of giving me money change it to other item?
 
umm,
this is my script, not tested, im begginer so, sorry :P

creaturescripts.xml
XML:
<event type="kill" name="revard" event="script" value="revard.lua"/>

revard.lua
LUA:
function onKill(cid, target)
 if isPlayer(target) then
doPlayerAddItem(cid, 2160, 1)
end
return true
end

and add in login.lua
LUA:
registerCreatureEvent(cid, "revard")

and if you wanna, when player lose item when killed by other player just add in revard.lua:
LUA:
doPlayerRemoveItem(target, 2160, 1)

:P
 
Back
Top