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

High levels does not gain exp PVP-e problem...

Hashirama479

World of Ninja
Joined
Dec 19, 2016
Messages
536
Solutions
6
Reaction score
74
I have a problem, as the title says... the high levels does not get any exp for some reasons here a explain

My EK is 77k
and my RP is 66k

if im killing with my EK the RP he does not gain any exp, not evne 1 lvl nothing ( IDK WHY ), thats what I got on CONFIG

rateExperienceFromPlayers = 1.0

minLevelThresholdForKilledPlayer = 0.0
maxLevelThresholdForKilledPlayer = 0.0

So anyone has a idea why the high level does not gain any exp from low level? If the Low level kills the high level then everything works perfectly.....
 
It's been years since I played a pvp e but it might be no exp from killing lower levels.

You could just make a script with something like this to work around it:

Lua:
function gainExperience(cid,lastHitKiller, mostDamageKiller)
    player = Player(cid)
    playerExp = player:getExperience()
    lastHit = Player(lastHitKiller)
    mostDamage = Player(mostDamageKiller)
    if (isPlayer(lastHitKiller) and isPlayer(mostDamageKiller)) and (lastHitKiller ~= mostDamageKiller) then
        lastHit:addExperience((player:getExperience()/200)*6, true)
        mostDamage:addExperience((player:getExperience()/200)*6, true)
    elseif (isPlayer(lastHitKiller) and not(isPlayer(mostDamageKiller))) then
        lastHit:addExperience((player:getExperience()/100)*6, true)
    elseif (not(isPlayer(lastHitKiller)) and isPlayer(mostDamageKiller)) then 
        mostDamage:addExperience((player:getExperience()/100)*6, true)
    end
end
 

It's a PvP protection system kinda
If a level 100 kills a level 10 s/he shouldn't get any exp.

Atleast the older TFS version (if I remember correctly) does not give any exp to players below the killers level.
Ex a level 2 will not get exp from a level 1, but a level 1 will get exp from a level 2.

And please don't just write "Bump"
Add if you are using the same server version etc
If the problem is the exact or not.
 
It's a PvP protection system kinda
If a level 100 kills a level 10 s/he shouldn't get any exp.

Atleast the older TFS version (if I remember correctly) does not give any exp to players below the killers level.
Ex a level 2 will not get exp from a level 1, but a level 1 will get exp from a level 2.
But Some Server OF Old Tfs Work With Exp But i Dont Know How Gain .25 % Of Level ... EXamble Marlboro..
 
But Some Server OF Old Tfs Work With Exp But i Dont Know How Gain .25 % Of Level ... EXamble Marlboro..

No I don't smoke marlboros?

In that case they have source modifications, if you had added this to your "Bump" I could have told you that right away.
There are no "stages" in PvP-E from scratch
 
No I don't smoke marlboros?

In that case they have source modifications, if you had added this to your "Bump" I could have told you that right away.
There are no "stages" in PvP-E from scratch
I got Clear Sources tfs 0.4 and i got another sources with pvp stages but no So Clear i tried to Edit form the Other Sources but The Ot Server Don't login in Tibia If u Can Help me To Enable The pvp Stages and make me A Small Funaction Script To Control in it ?
 
@Hashirama479
change this
Code:
double attackerLevel = (double)attackerPlayer->getLevel(), min = g_config.getDouble(
        ConfigManager::EFP_MIN_THRESHOLD), max = g_config.getDouble(ConfigManager::EFP_MAX_THRESHOLD);
    if((min > 0 && level < (uint32_t)std::floor(attackerLevel * min)) || (max > 0 &&
        level > (uint32_t)std::floor(attackerLevel * max)))
        return 0;

to this
Code:
double attackerLevel = (double)attackerPlayer->getLevel(), max = g_config.getDouble(ConfigManager::EFP_MAX_THRESHOLD);
    if(max > 0 && level > (uint32_t)std::floor(attackerLevel * max))
        return 0;

players.cpp like if it worked
 
Back
Top