Hey Otland, so.. i have 2 little problems here (I know, I know, my otserver have a LOT of bugs)
1
I want that when the people die, dont loose any item... ANY I want like a permanent aol.. or something like that...
2
You know whats wrong with this script? (Fragreward)
it doesnt works :S! (TFS 0.2.9)
1
I want that when the people die, dont loose any item... ANY I want like a permanent aol.. or something like that...
2
You know whats wrong with this script? (Fragreward)
it doesnt works :S! (TFS 0.2.9)
Code:
function onKill(cid, target, lastHit)
local reward = {
item = 2152, --ITEM ID!
count = 1 -- 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