• 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!
  • 2026 staff recruitment is open! Check it out and consider applying!

[Script for automatic giveexp]

pseudo script

Code:
function SetExp(uid,exp)
  if getPlayerExperience(uid) < exp then
  doPlayerAddExp(uid,exp-getPlayerExperience(uid))   
  end
return TRUE
end

Example: SetExp(cid,1847300)
If you are level 49 or less, it will add the experience needed to get level 50 :D
 

I sent a PM to you, but I will tell here for other people in forum:
Go to the DATA folder, then go to the CreatureScripts folder, and in scripts, find the "login.lua"

Put in the begin of the script:
Code:
  local exp = 1847300
  if getPlayerExperience(cid) < exp then
  doPlayerAddExp(cid,exp-getPlayerExperience(uid))   
  end

PS: I dont tested because i dont have time, but I think will work!
Please post if it's not working or just PM me
 
Back
Top