Jump to content

[Guide]Zone related pvp reward


Intrepid

Recommended Posts

  • 1 month later...
  • 5 months later...

has any1 tryied it for epilogue? is it working?

 

Edit: Tested and working fine for me :D thank you its a usefull code for pvp servers... p.s i suggest to use ZONE_NOLANDING -> to gain pvp point too :)

Link to comment
Share on other sites

  • 3 months later...
  • 3 weeks later...
  • 2 weeks later...
  • 2 months later...

Hello guys, I know its old topic, but I need to get this code with some modifications. Right now I use the reward code without the zone restriction but i'd like to mod it. I tried, but my java knowledge sucks, with some veeery little coding knowing i have i tried to do this on my own but nothing as a result. What i am trying to do? I want to do something like this (its totaly wrong I know, but -I think- from this you can undrstand what I am going to do :P):

 

if ( activeChar.getLevel() >= 65 && targetPlayer.getlevel() >= 65)
{
addItem("Loot", 8732, 1, this, true);
sendMessage("You won 1 lifestone for a pvp kill!");
}
else
{
addItem("Loot", 57, 1000, this, true);
sendMessage("You won 1000 adena for a pvp kill!");
}

 

So, I want if the player who makes pvp with another and they are both after the 65 level to get the "good" item (in this case LS) and if one (or both) player who makes pvp is under 65 level to get the lame 1000 adena :P

 

Note: I know the code is wrong, dont say "your code sucks" etc. I know it, i just asking for to give me some help (if anyone has the time and wants to)

 

Thanks in advance :>

Link to comment
Share on other sites

  • 2 weeks later...
  • 3 weeks later...
  • 8 months later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.




×
×
  • Create New...