• 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!
  • If you're using Gesior 2012 or MyAAC, please review this thread for information about a serious security vulnerability and a fix.

Stat system

Mr Noxi

Noxus Otserver
Premium User
Joined
May 13, 2010
Messages
271
Solutions
3
Reaction score
92
Location
Sweden
Not this time xD if not wrong login.lua?
Lua:
[CODE=lua]Search "player:registerEvent("StatSystemModal")" (2 hits in 2 files of 1709 searched)
  C:\Ots\Forgotten server\data\creaturescripts\scripts\login.lua (1 hit)
    Line 50:     player:registerEvent("StatSystemModal")
  C:\Ots\Forgotten server\data\lib\point_stat_system.lua (1 hit)
    Line 39:     player:registerEvent("StatSystemModal")
[/CODE]
 
OP
OP
Nekiro

Nekiro

Legendary OT User
TFS Developer
Joined
Sep 7, 2015
Messages
2,635
Solutions
126
Reaction score
2,031
Use support board, no point in trashing this thread.
 

Levi999x

AoT
Joined
Dec 14, 2017
Messages
2,169
Solutions
58
Reaction score
1,409
Location
Germany
Note for people who uses it
you can bug your mana with this system
lets say as example u use 5 points at level 50
and someone else use those 5 points at level 150
means
the 150 level will have always more mana even after both reseted the mana

best solution prob would be using condition onLogin
 
Last edited:

jel

Member
Joined
Mar 22, 2014
Messages
241
Reaction score
10
This system was originally written for @Lucifer by me long time ago, he paid for it and has full credits to it. He messaged me, that he won't use it anymore and wants to release it.
He told me that I should do it, so I'm doing it.

This code was tested and does work with TFS 1.3, it should also work on any 1.x as long as all the interfaces needed are avaliable.

How does it work?


To add it to your server, just register all files to correct tfs interfaces, healthchange, advance and modal are creaturescripts, talkaction is talkaction. Point_stat_system is lib file, you add a dofile in main lib file in libs folder.

and that's it basically.

Enjoy!
hello, could you modify this system according to the image below, acquiring points with missions or tasks? Each stat gives different % or x number like health/mana as per the picture.

 
Top