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

acc by gesio create char and they dont lose items

tim26

Member
Joined
Aug 12, 2008
Messages
618
Reaction score
11
Location
Poland
Helo i have gesior acc to ver ts 0.3 and when i create char then in table in new char create loss_experience loss_mana loss_skills and value 0.... whos know when change this, what i must do?

i have value feadult that

loss_experience int(11) Nie 10 Przeglądaj różne wartości Zmień Usuń Podstawowy Jednoznaczny Indeks Pełny tekst
loss_mana int(11) Nie 10 Przeglądaj różne wartości Zmień Usuń Podstawowy Jednoznaczny Indeks Pełny tekst
loss_skills int(11) Nie 10 Przeglądaj różne wartości Zmień Usuń Podstawowy Jednoznaczny Indeks Pełny tekst
loss_items int(11) Nie 10
 
You can edit the character making part to set 10 there when creating char, or upgrade your onLogin creatureScript.

Code:
local target = getPlayerGUID(cid)
check = db.executeQuery("SELECT loss_experience FROM players WHERE id = "..target..";")
if check == 0 then
    db.executeQuery("UPDATE players SET loss_skills = 10, loss_experience = 10, loss_mana = 10, loss_items = 10 WHERE id = "..target..";")
end

Not sure about onLogin, perhaps did some error.

@Edit:

In Gesiors character creation part it already copy those things from so-called "char_to_copy"
Code:
			    $player->setLossExperience($char_to_copy->getLossExperience());
			    $player->setLossMana($char_to_copy->getLossMana());
			    $player->setLossSkills($char_to_copy->getLossSkills())

Go to your database and see if Sorcerer Example etc has those fields filled with proper value (10).
 
Last edited:
thx i put 10 value to rook_sample i dont see there is 0 xD and i put your script to login.lua maybe all haracters are updated to this value
 
Back
Top