Joriku
Working in the mines, need something?
Possible to make a system that works with world type = "pvp" that gives players exp from killing another/assisting on killing a player?
And "killstreak"
Explanation:
John kills Emma
John gets 0.5 Level(s).
John kills Emily and have help from Emma.
John gets 0.7 level (2 Streak) + 0.2 exp for a streak. Emma gets 0.5 level (1 Streak).
Source atm:
None
(Pvp-Enforced)
And "killstreak"
Explanation:
John kills Emma
John gets 0.5 Level(s).
John kills Emily and have help from Emma.
John gets 0.7 level (2 Streak) + 0.2 exp for a streak. Emma gets 0.5 level (1 Streak).
Source atm:
None
(Pvp-Enforced)
Lua:
function onKill(cid, target, lastHit)
if(isPlayer(cid) and isPlayer(target)) then
if getPlayerIp(cid) ~= getPlayerIp(target) then
doPlayerAddExperience(cid, (getPlayerExperience(target))) -- you will likely want to introduce a formula here
else
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE,"You will not receive anything for killing players of the same IP.")
end
end
return true
end
Last edited: