Welcome!

Join our community of MMO enthusiasts and game developers! By registering, you'll gain access to discussions on the latest developments in MMO server files and collaborate with like-minded individuals. Join us today and unlock the potential of MMO server development!

Join Today!

[Tut]Various PvP Edits

Newbie Spellweaver
Joined
Apr 25, 2008
Messages
78
Reaction score
0
Here are a few edits for your PvP To make it better. This thread is for EDITS ONLY. I do not want to see your failed builds, go put that in the official thread.

Link to Official thread: http://forum.ragezone.com/showthread.php?t=434916

Onto the Edits...

Multiple Maps:

Make a new

Code:
private int PVP_MAP_TWO = mapid;

and add it to the list

Code:
|| player.getMapId() == PVP_MAP_TWO

Credits to: Airflow0

Making an Entire Channel PvP Enabled:

In AbstractDealDamageHandler.java
Find this line.

Code:
MaplePvp.doPvP(player, map, attack);

ABOVE IT, see that line (the if statement)

Change THAT LINE to

Code:
if (attack.skill != 2301002 && attack.skill != 4201004 && attack.skill != 1111008 && player.getClient().getChannel() == [B]channel[/B]) {

Change the bolded channel to the desired channel

Credits to: RMZero213

Disabling Potions:

In UseItemHandler.java

Find

Code:
if (!c.getPlayer().isAlive()) {

Replace with

Code:
if (!c.getPlayer().isAlive() || c.getPlayer().getMapId() == [B]mapid[/B]) {

replace bolded mapid with your pvp map

Credits to: RMZero213

Getting Rid of a Certain Skill:

Go Into maplepvp.java

Find the skill to be Disabled

Delete its line.

Credits to: Llamma


~Thats it For Now!~
 
Junior Spellweaver
Joined
May 30, 2008
Messages
103
Reaction score
1
Re: [Guide]Various PvP Edits

YOU
Code:
Make a new
private int PVP_MAP_TWO = mapid;
and add it to the list
|| player.getMapId() == PVP_MAP_TWO


ME

Could you possibly show what you mean?/
The rest was well done but you didn't give info on exactly what to change? -noob-
edit also i noticed


YOU
Code:
ABOVE IT, see that line (the if statement)
Change THAT LINE to

if (attack.skill != 2301002 && attack.skill != 4201004 && attack.skill != 1111008 && player.getClient().getChannel() == channel) {
Change the bolded channel to the desired channel

ME
"Change bolded" so if i change it to say, channel 4 it would be like this?


if (attack.skill != 2301002 && attack.skill != 4201004 && attack.skill != 1111008 && player.getClient().getChannel() == 4) {
or "channel4"?
i'm confused :p
also when enabling ch's pvp, would that mean EVERY MAP? so i wouldn't have to customize anyhting else/ tyvm
sorry bout confusion XD
 
Newbie Spellweaver
Joined
Apr 25, 2008
Messages
78
Reaction score
0
Re: [Guide]Various PvP Edits

Can you please separate my text and yours with quote boxes? I'll answer if you can do that for me. Its hard to see where you asked.
 
Newbie Spellweaver
Joined
Apr 25, 2008
Messages
78
Reaction score
0
Re: [Guide]Various PvP Edits

You would make a new line for each map to be added.

For Channel, its the digit, so what you have is correct.

And for channel, its the ENTIRE channel. (Towns and all)

Hope I helped!
 
Junior Spellweaver
Joined
May 30, 2008
Messages
103
Reaction score
1
Re: [Guide]Various PvP Edits

You would make a new line for each map to be added.

For Channel, its the digit, so what you have is correct.

And for channel, its the ENTIRE channel. (Towns and all)

Hope I helped!

Mk
so if i leave say my PVP_map=codehere= that everyone has
and added the ch thing
would that mean PVP on all chs for the specific map THEN ch4= all towns and places?
 
Elite Diviner
Joined
May 25, 2008
Messages
454
Reaction score
0
Re: [Guide]Various PvP Edits

If I wan whole channel to PvP, I need to remove this?

Code:
        private int PVP_MAP = themapidyouwantforpvp;
 
Newbie Spellweaver
Joined
Apr 25, 2008
Messages
78
Reaction score
0
Re: [Guide]Various PvP Edits

Not to my knowledge. It looks as if the edit I posted is the only necessary one.
 
Newbie Spellweaver
Joined
Jul 17, 2008
Messages
14
Reaction score
0
Re: [Guide]Various PvP Edits

Where do i add this? I know the place but i don't if it should be
&& player.getMapId() == PVP_MAP|| player.getMapId() == PVP_MAP_TWO
like that?
or like
&& player.getMapId() == PVP_MAP
|| player.getMapId() == PVP_MAP_TWO

thanks for releasing this :D
 
Master Summoner
Loyal Member
Joined
Apr 27, 2008
Messages
596
Reaction score
0
Re: [Guide]Various PvP Edits

Do you know how to disable !heal? LOL.
 
Back
Top