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

Lua Script on getting experience onkill

Gothric

New Member
Joined
Feb 6, 2010
Messages
264
Reaction score
1
On my enfo i tried to use this for getting experience after kill any player

PHP:
local exp = getCreatureExperience(target)/2

and it was really nice but there is a bug .. when player kill any monster with this script , monster doesnt die and in console i have lots of bugs , they r still appearing becouse monster doesnt have experience :S

Does anyone have an idea how to give experience to killer in lua script?? i know that i can fix it in config.lua in line
PHP:
rateExperienceFromPlayers = 0
but i can't dont ask why :<

verry big rep++
 
try,

Lua:
 local exp = getCreatureExperience(cid, target)/2

but also I you need another local for cid, target)
 
Damn king <,< :'(

[02:17:10] <+unknown666> you just got ass-licked
[02:17:11] <+unknown666> http://otland.net/f16/script-getting-experience-onkill-91292/#post929811
aRhHq_FFFFFUUUUUUUUU-s580x439-25142-580.jpg
aRhHq_FFFFFUUUUUUUUU-s580x439-25142-580.jpg
aRhHq_FFFFFUUUUUUUUU-s580x439-25142-580.jpg
 
Back
Top