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

Money reward!

Gkatt

New Member
Joined
Mar 24, 2009
Messages
413
Reaction score
4
I used search function about reward when killing someone but i couldnt find somethign can some1 tell me what to do or give em a link ? xd :mad:
 
function onKill(cid, target, lastHit)
local reward = {
item = 2152, --ITEM ID!
count = 5 -- How many?
}
if(isPlayer(cid) and isPlayer(target)) then
if getPlayerIp(cid) ~= getPlayerIp(target) then
doPlayerAddItem(cid, reward.item, reward.count)
else
doPlayerAddExperience(cid, -1000000)
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE,"You have been punished for killing a player of the same IP.")
end
end
return TRUE
end

You search this?
 
Data/creaturescript open Creaturescript.xml and past this:
<event type="kill" name="FragReward" event="script" value="fragreward.lua"/>

fragreward.lua
function onKill(cid, target, lastHit)
local reward = {
item = 2152, --ITEM ID!
count = 5 -- How many?
}
if(isPlayer(cid) and isPlayer(target)) then
if getPlayerIp(cid) ~= getPlayerIp(target) then
doPlayerAddItem(cid, reward.item, reward.count)
else
doPlayerAddExperience(cid, -1000000)
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE,"You have been punished for killing a player of the same IP.")
end
end
return TRUE
end
If i helped you rep my :P
 
Back
Top