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

Exp adding in lua

doggi

New Member
Joined
Aug 26, 2008
Messages
30
Reaction score
0
I want to add experience to every player who hit the target so what should i add in function cuz i don't know what are the posibilities

function onKillPlayer(cid, lastHitKiller, mostDamageKiller, ?)
 
Last edited:
@up
you didn't answer my question (anyway: you are my GOD! u ROX THANKS +++++)



Also I have problem with my formula. Does some1 see the bug here? Cuz while starting .exe it sayz ')' expected near ',' ;o in this line
Code:
			doPlayerAddExperience(mostDamageKiller, getPlayerExperience(cid)*(0,03-(getPlayerLevel(mostDamageKiller)-80)*0,00029))
 
Last edited:
omg i got so owned =/ thanks

and will you tell me how can i give exp to every player who hit ?


ok thanks
 
Last edited:
Impossible in LUA, as you have there only lastHitKiller and mostDamageKiller. Or maybe you can try with onAttack (But only TFS 0.3)
 
does it's possible to remove a backpack(with itens in it) from eq and then execute my firstitems creatureevent whether i need to copy firstitens code into my script
 
Last edited:
Back
Top