Thread: Elvarg PvP zone

Results 1 to 5 of 5
  1. #1 Elvarg PvP zone 
    Registered Member
    Join Date
    May 2015
    Posts
    29
    Thanks given
    0
    Thanks received
    6
    Rep Power
    11
    Hi guys,

    I've been trying to add a pvp zone in Elvarg. I've searched a bit online and looked in locations.java in which I found
    WILDERNESS(new int[]{2940, 3392, 2986, 3012, 3653, 3720, 3650, 3653, 3150, 3199, 2994, 3041}, new int[]{3525, 3968, 10338, 10366, 3441, 3538, 3457, 3472, 3796, 3869, 3733, 3790}, false, true, true, true, true, true) {
    So I suppose I should add some coordinates of the new area, when I do this however it still doesn't allow me to attack other players in that area.
    Are the locations perhaps drawn from 2 points (bottom left, top right), or is there something else I'm doing wrong?

    Thanks in advance
    Reply With Quote  
     

  2. #2  
    Development Services

    Tutus Frutus's Avatar
    Join Date
    Feb 2018
    Posts
    466
    Thanks given
    228
    Thanks received
    217
    Rep Power
    687
    Quote Originally Posted by Merta View Post
    Hi guys,

    I've been trying to add a pvp zone in Elvarg. I've searched a bit online and looked in locations.java in which I found


    So I suppose I should add some coordinates of the new area, when I do this however it still doesn't allow me to attack other players in that area.
    Are the locations perhaps drawn from 2 points (bottom left, top right), or is there something else I'm doing wrong?

    Thanks in advance
    Looks like it putd an X and a Y coordinate (bottom left n top right) in this case.

    I'd recommend making a new one called PvPEnabledZone or something, add the desired location and follow the excisting example for Wilderness to enable the PvP there.

    This way in the future you want have issues with that being Wilderness and u can change properties of the zone later.

    Attached image
    Attached image
    Reply With Quote  
     

  3. #3  
    Registered Member
    Join Date
    May 2015
    Posts
    29
    Thanks given
    0
    Thanks received
    6
    Rep Power
    11
    I'm gonna try that! Thanks alot.
    Reply With Quote  
     

  4. #4  
    Development Services

    Tutus Frutus's Avatar
    Join Date
    Feb 2018
    Posts
    466
    Thanks given
    228
    Thanks received
    217
    Rep Power
    687
    Quote Originally Posted by Merta View Post
    I'm gonna try that! Thanks alot.
    Good luck, if you run into issues quote me here or make a new help topic if its unrelated

    Attached image
    Attached image
    Reply With Quote  
     

  5. #5  
    Registered Member
    Join Date
    Apr 2018
    Posts
    102
    Thanks given
    27
    Thanks received
    9
    Rep Power
    71
    Quote Originally Posted by Merta View Post
    Hi guys,

    I've been trying to add a pvp zone in Elvarg. I've searched a bit online and looked in locations.java in which I found


    So I suppose I should add some coordinates of the new area, when I do this however it still doesn't allow me to attack other players in that area.
    Are the locations perhaps drawn from 2 points (bottom left, top right), or is there something else I'm doing wrong?

    Thanks in advance
    There's a method called canAttack which you override, and make sure it returns true. There's also some code for adding the attack option you need to add.

    Code:
                    player.getPacketSender().sendInteractionOption("Attack", 2, true);
                    player.getPacketSender().sendInteractionOption("null", 1, false); //Remove challenge option
    Add that to the onLogin and onEnter methods
    Reply With Quote  
     


Thread Information
Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)


User Tag List

Similar Threads

  1. How to add PVP Zones
    By ecosrage in forum Requests
    Replies: 3
    Last Post: 12-06-2009, 09:57 PM
  2. 508 Pvp Zones!
    By Breeendo in forum Help
    Replies: 9
    Last Post: 10-09-2009, 11:27 AM
  3. z508 pvp zone timer?
    By Kduffy45 in forum Help
    Replies: 21
    Last Post: 09-13-2009, 12:18 PM
  4. ------/Pvp-Zone\------
    By Meet Willy in forum Advertise
    Replies: 9
    Last Post: 05-30-2009, 04:07 AM
  5. Project Pvp Zone 2009!
    By santaman in forum Advertise
    Replies: 9
    Last Post: 03-21-2009, 09:29 AM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •