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

How to reset character's level with every relog?

arbuzzo

New Member
Joined
Dec 11, 2012
Messages
22
Reaction score
0
Just like the tittle says,
I'm trying to host a server using The Forgotten Server / crying diamond release (8.6).
I believe it has something to do with the config/account creating, however I can't find it anywhere
 
There's an "account manager" after logining into the game with 1/1 passes. Thats how the acc manager works In these OT engines. Do I need to recompile the source in order to disable level saving (function/part of function)? Or can I find it elsewhere?
Thanks :)
 
data/creaturescripts/login.lua

Add somewhere before the final 'end':
Code:
doPlayerAddLevel(cid,getPlayerLevel(cid)*-1+8)
(where 8 is the starting level)
 
Open your database, table "players", find "save" column and replace 1(or true) to 0(or false) while character is offline and it's done just login again and again to test it.
 
how to open my character's data base? I mean, I know theres a *.otdb however, reading it with notepad doesn't seem to be good way
is there any editor for this format? Thanks to all of you, guys :)
 
Thanks, It helped me :) Btw, Is there somewhere API for ot-lua language so I could write my own scripts?
 
Back
Top