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

Refresh System for Levels?

xblood clawx

New Member
Joined
Feb 28, 2009
Messages
18
Reaction score
0
I need a script that will allow players to gain their max level and then talk to a NPC to restart at level 1; however when they restart at level 1 they will have something like 1000 more health/mana, and hit around x.25 more damage than they would have before.

If you play Cyntara, or DedicatedOT you might know what system I am talking about.

Your helps appreciated,

:D
 
If you play Cyntara, or DedicatedOT you might know what system I am talking about.

Or TheOTServer :D

It's simple, all you need is:
- Function Player::setLevel(int32_t newLevel, bool editCap /* = false */); in player
- Function doPlayerSetLevel(cid, newLevel[, editCap]) in luascript

This is just guidelines, not full codes :)

editCap is, if it's false it will not update players cap to 100 or w/e, it will leave it as it is now... And then when you have compiled those functions you use doPlayerSetLevel combined with doCreatureAddMaxHealth :p
 
I don't know lua or sql. I'm a little fluent in xml but thats about it. Just give me some time and I'll get used to the language. Thanks for the quick replies. :D
 
Back
Top