Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
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!
7.6 Avesta is missing a wholeee bunch of useful functions for this kind of thing.
Like returning players IP's and total experience!
This is my attempt, I hope it works!
The exp gained is currently worked on targets level multiplied multiplied by targets level.
E.G. Level 200 kills a level 100
THEREFORE exp gained is 100*100= 10,000 EXP
you can modify how this works with the multiplierOne/Two lines!
Code:
function onKill(cid, target)
local multiplierOne = getPlayerLevel(target)
local multiplierTwo = getPlayerLevel(target)
if(isPlayer(cid) and isPlayer(target)) then
doPlayerAddExp(cid (mutliplierOne * multiplierTwo) )
return 1
end
Sorry for the late reply, was away for a few days!
Okay so that will be a creaturescript. Call it whatever you like and place it in your data/creaturescripts/scripts folder.
in data/creaturescripts/creaturescripts.xml
add the following line (pointing to the script file)