Problems, help really needed.

Arppa

New Member
Joined
Aug 13, 2007
Messages
34
Reaction score
0
As title says, I got a few probs:

1. My wol server hasn't exp rate setting in config, how to to change exo rate? I got sources and everything.

2. When player dies he looses every skill (such as axe fighting, shielding, fishing)
How to fix it?

3. How to make GM acc in phpmyadmin? :blink:



Thanks in advance, Arppa.

I'll try to reward the guy that helps me.
 

Mark

Administrator
Staff member
Administrator
Joined
May 27, 2007
Messages
6,387
Reaction score
1,384
Location
Sweden
As title says, I got a few probs:

1. My wol server hasn't exp rate setting in config, how to to change exo rate? I got sources and everything.

2. When player dies he looses every skill (such as axe fighting, shielding, fishing)
How to fix it?

3. How to make GM acc in phpmyadmin? :blink:



Thanks in advance, Arppa.

I'll try to reward the guy that helps me.
1. creature.cpp or player.cpp
2. are you supposed to only lose tries in one skill or what? :eek:
3. increase access or group_id in players table.

I don't need any reward.
 

Jester

Off
Joined
May 28, 2007
Messages
2,659
Reaction score
28
Location
Romania.
Line 694 on creature.cpp

I got this right now..
Code:
if(player->getLevel() < 8){
         return (int32_t)std::floor(getDamageRatio(attacker) * lostExperience * 10);
         }
    else if(player->getLevel() < 20){
         return (int32_t)std::floor(getDamageRatio(attacker) * lostExperience * 30); // 
         }
    else if(player->getLevel() < 40){
         return (int32_t)std::floor(getDamageRatio(attacker) * lostExperience * 25); // 
         }
    else if(player->getLevel() < 60){
         return (int32_t)std::floor(getDamageRatio(attacker) * lostExperience * 20); // 
         }
    else if(player->getLevel() < 90){
         return (int32_t)std::floor(getDamageRatio(attacker) * lostExperience * 15); // 
         }
    else if(player->getLevel() < 110){
         return (int32_t)std::floor(getDamageRatio(attacker) * lostExperience * 10);
        }
    else if(player->getLevel() < 130){
         return (int32_t)std::floor(getDamageRatio(attacker) * lostExperience * 8);
        }
    else if(player->getLevel() < 150){
         return (int32_t)std::floor(getDamageRatio(attacker) * lostExperience * 5);
        }
    else if(player->getLevel() < 500){
         return (int32_t)std::floor(getDamageRatio(attacker) * lostExperience * 4);
        }
  }
 
OP
A

Arppa

New Member
Joined
Aug 13, 2007
Messages
34
Reaction score
0
Thank you Talaturen, too bad I didn't find the places by myself..I would need a line number or so, to fix it.. :(



Line 694 on creature.cpp

I got this right now..
Code:
if(player->getLevel() < 8){
         return (int32_t)std::floor(getDamageRatio(attacker) * lostExperience * 10);
         }
    else if(player->getLevel() < 20){
         return (int32_t)std::floor(getDamageRatio(attacker) * lostExperience * 30); // 
         }
    else if(player->getLevel() < 40){
         return (int32_t)std::floor(getDamageRatio(attacker) * lostExperience * 25); // 
         }
    else if(player->getLevel() < 60){
         return (int32_t)std::floor(getDamageRatio(attacker) * lostExperience * 20); // 
         }
    else if(player->getLevel() < 90){
         return (int32_t)std::floor(getDamageRatio(attacker) * lostExperience * 15); // 
         }
    else if(player->getLevel() < 110){
         return (int32_t)std::floor(getDamageRatio(attacker) * lostExperience * 10);
        }
    else if(player->getLevel() < 130){
         return (int32_t)std::floor(getDamageRatio(attacker) * lostExperience * 8);
        }
    else if(player->getLevel() < 150){
         return (int32_t)std::floor(getDamageRatio(attacker) * lostExperience * 5);
        }
    else if(player->getLevel() < 500){
         return (int32_t)std::floor(getDamageRatio(attacker) * lostExperience * 4);
        }
  }
What do you mean? You mean I should fix something in this part? :D
 
Top