Page 1 of 2

[Request]PvP Whole World

PostPosted: Wed Jun 18, 2008 6:40 am
by buzbee
i have seen some servers with this
just wondering if i could request the code for worldwide pvp

and another where do i edit the amount of damage done to players, mobs, and in pvp?
i been looking through code but cant find it

Re: [Request]PvP Whole World

PostPosted: Wed Jun 18, 2008 1:19 pm
by soccerstar
for pvp on every map, use an stb editor and open up list_zone.stb look at the lables at the top. Find the pvp label, under it chage every cell from 0 to 1

Re: [Request]PvP Whole World

PostPosted: Wed Jun 18, 2008 2:22 pm
by buzbee
Okay thanks and just wondering
In my conf file what does the playerdamage and monsterdamage relate to exactly

Re: [Request]PvP Whole World

PostPosted: Wed Jun 18, 2008 3:36 pm
by PurpleYouko
The values in playerdamage and monsterdamage represent modifiers that player and monster damage are multiplied by in Battle.cpp.
If you were to set them at 100 then you are multiplying by 100% so no change takes place in the final value.
200 would be double
50 would be half and so on.

Re: [Request]PvP Whole World

PostPosted: Wed Jun 18, 2008 3:58 pm
by buzbee
okay thats kinda what i thought

player damage = damage players take + Damage equations
and
monster damage = damage mobs take + Damage equations

am i right on this?

Re: [Request]PvP Whole World

PostPosted: Wed Jun 18, 2008 4:32 pm
by PurpleYouko
opposite way round.

playerdamage is the damage multiplier used to adjust the damage that a player does. ;)

Re: [Request]PvP Whole World

PostPosted: Wed Jun 18, 2008 6:59 pm
by buzbee
okay let me get this right

playerdamage is the multiplyer that tell the amount of damage a player does,
monsterdamage is the multiplyer that tells the amount of damage that mobs do?


if this is right where is the equations that tell how much damage players do to other players
and how much damage a player actually takes

Re: [Request]PvP Whole World

PostPosted: Wed Jun 18, 2008 7:06 pm
by PurpleYouko
Yes that is right.

It uses Playerdamage in ALL calculations for player damage, even in pvp

The calculations are all in Battle.cpp. Most of the stuff is calculated in functions NormalAttack() and UseAtkSkill() depending on whether the attack is normal or a skill.

In my evo server I actually add a new config variable called Config.PVPDamage and had it load in from the conf file.
I was never entirely happy with the damage calculations though even then.
We are making more progress with osProse battle calcs at the moment.

Re: [Request]PvP Whole World

PostPosted: Wed Jun 18, 2008 7:29 pm
by buzbee
alright thanks for your help purpleyouko


Edit:okay now i dont mean to be annoying
but when looking through my stb files i found the pvp column

value of 1 = clan vs clan
value of 2 = player vs player
value of 11 = ??
no value = no pvp

right?


then 3 columns over is string values

canyon city of zant = PvP1301-340
junon clan field = Clan-003
Crusader Training Camp = PvP-A-010

my question is about the last section i typed
do i have to change these strings in order for worldwide pvp to funtion correctly or no?
and what does the pvp value of 11 equal to?

Re: [Request]PvP Whole World

PostPosted: Sat Jun 21, 2008 2:00 pm
by Sethanye
11 might be an old left over from faction wars or some special case. either way i dont think it affects things atm. or possibly it may mean both pvp and cvc

as for the
canyon city of zant = PvP1301-340
junon clan field = Clan-003
Crusader Training Camp = PvP-A-010

i think its related to some event stuff, i dont think its really related but for the sake of it you can modify it, but i think the client side its enougth to add 2 on all the maps.