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

C++ pvp hits

Fresh

Quack!
Joined
Oct 21, 2009
Messages
1,855
Solutions
18
Reaction score
671
Hello.
I have question:
Where to change percent of taken damage in pvp ?
Now players hits with spells in monster 100% damage and in player 50% damage.
I want :
In player 35% damage and in monster 100%

How i can do it in c++ ?
rep++ <_<
 
OK i only find in weapons.cpp line with - 0.5, this is only for weapons i guess but where i find for spells ?

Edit:
Value 0.5 i found in:
- configmanager.cpp
- tools.cpp
- weapons.cpp

But where is for spells ? :(
 
combat.cpp
Code:
    if(change < 0 && caster && caster->getPlayer() && target->getPlayer() && target->getPlayer()->getSkull() != SKULL_BLACK)
        change = change / 2;

2 times, cause one is forhealthdmg and one for manadrain

and do not bump so often, wait 24h
 
Back
Top