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

Help to Create a Function [C++]

perdigs

New Member
Joined
Aug 22, 2010
Messages
114
Reaction score
1
Hi friends, I need a help to create a function for TFS 0.3.6.

I need a function to return a value of the experience received for a player on defeat a monster.

Please u can help me ?

For exemple one function similar to onGainExperience only for TFS 0.3.6

Thanks for help.
 
this isn't a c++ function
it can be made in lua..
Code:
local x = getMonsterInfo(getCreatureName(target).experience
local exp = getExperienceStage(getPlayerLevel(cid), getVocationInfo(getPlayerVocation(cid)).experienceMultiplier)
function onKill(cid, target, damage, flags)
doPlayerAddExperience(cid, x*exp)
 
It can only be made properly in lua if you save the damage ratio by using onStatsChange script too.
 
Back
Top