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

Windows War Server Avesta

Pro Warbringer

Retired with developing
Joined
Sep 23, 2008
Messages
3,582
Reaction score
25
Location
Austria
Well id like to make an nice war server with avesta =)
But i have an question how to make the characters i mean when they die that they dont loose levels nor items ...

Ill rep ya =)

Kind Regard's
Pro Warbringer
 
Code:
UPDATE players SET save = 0;

does that mean it doesnt save anything?

what if i wanted it not to save exp/items but DO save addons

example: log on lvl 100 with starter eq, u go kill ppl get lvl 140 and then die, if u relog u r lvl 100 agian with same eq and bp.

but if u get an addon, it saves.
basically i would just like it not to save eq/exp

possible?
 
Well id like to make an nice war server with avesta =)
But i have an question how to make the characters i mean when they die that they dont loose levels nor items ...

Ill rep ya =)

Kind Regard's
Pro Warbringer


If you want to have a interesting warserver that people will play for more than an hour then logg out you need to make it interesting. I think you should make private accounts that drops 1-0.5 levels per death for people that want to stay on the servers and of course 1/1 accounts for people that just want to try out the servers. And also add something like frag\death points so you can compare players (i think level is not good enough for this because the level gain can't be high so newer players have 0 chance to kill older players, frags/deaths shown next to level works better for this) Maybe you could also cash in frags (maybe 1000 gp per frag) and buy something for it (knights upgrade fire sword>bright sword>giant sword>sov, paladins get power bolts and all vocations gets more supplies, maybe with 2-3 charges to make bought runes more valuable)

Make sure you pm me when you open the server! :D
 
If you want to have a interesting warserver that people will play for more than an hour then logg out you need to make it interesting. I think you should make private accounts that drops 1-0.5 levels per death for people that want to stay on the servers and of course 1/1 accounts for people that just want to try out the servers. And also add something like frag\death points so you can compare players (i think level is not good enough for this because the level gain can't be high so newer players have 0 chance to kill older players, frags/deaths shown next to level works better for this) Maybe you could also cash in frags (maybe 1000 gp per frag) and buy something for it (knights upgrade fire sword>bright sword>giant sword>sov, paladins get power bolts and all vocations gets more supplies, maybe with 2-3 charges to make bought runes more valuable)

Make sure you pm me when you open the server! :D

Working with ferrus with his server atm. after that gonna open my own 7.6 ofc youll be gm haha ;)

does that mean it doesnt save anything?

what if i wanted it not to save exp/items but DO save addons

example: log on lvl 100 with starter eq, u go kill ppl get lvl 140 and then die, if u relog u r lvl 100 agian with same eq and bp.

but if u get an addon, it saves.
basically i would just like it not to save eq/exp

possible?

We are talking about 7.6 version :D
 
Last edited by a moderator:
legendfish said:
does that mean it doesnt save anything?

what if i wanted it not to save exp/items but DO save addons

example: log on lvl 100 with starter eq, u go kill ppl get lvl 140 and then die, if u relog u r lvl 100 agian with same eq and bp.

but if u get an addon, it saves.
basically i would just like it not to save eq/exp

possible?
It's possible with minor C++ edit.

In my server you'd have to go to IOPlayer::savePlayer(...) and add the red line.

Code:
if(result->getDataInt("save") == 0){
        db->freeResult(result);

        query.str("");
        query << "UPDATE `players` SET `lastlogin` = " << player->lastLoginSaved
                << ", `lastip` = " << player->lastip
                [B][COLOR=Red]<< ", `lookaddons` = " << (int)player->defaultOutfit.lookAddons[/COLOR][/B]
                << " WHERE `id` = " << player->getGUID();
Of course in other server this solution might not work.
 
It's possible with minor C++ edit.

In my server you'd have to go to IOPlayer::savePlayer(...) and add the red line.

Code:
if(result->getDataInt("save") == 0){
        db->freeResult(result);

        query.str("");
        query << "UPDATE `players` SET `lastlogin` = " << player->lastLoginSaved
                << ", `lastip` = " << player->lastip
                [B][COLOR=Red]<< ", `lookaddons` = " << (int)player->defaultOutfit.lookAddons[/COLOR][/B]
                << " WHERE `id` = " << player->getGUID();
Of course in other server this solution might not work.

Woot?
It will only update the actual addons the player is wearing, after re-login he would just log with them worn already, but when changing outfit he would lose them.

o.O
 
Woot?
It will only update the actual addons the player is wearing, after re-login he would just log with them worn already, but when changing outfit he would lose them.

o.O

Right, forgot how the addons work. But still, to make something save when the player has save=0 all you do is copy the needed part in that IF block. Or simply make all players save=1 and delete from savePlayer(...) not needed stuff (exp, level, etc). It's so easy that I feel dumb trying to explain something obvious. lol
 
i just donno where all this player save=1 or saveplayer(...) stuff is located, and im not very good with these so for some of us its not as obvious ;)
 
Back
Top