Thread: Duel in home

Results 1 to 6 of 6
  1. #1 Duel in home 
    Registered Member
    Join Date
    Jul 2015
    Posts
    23
    Thanks given
    0
    Thanks received
    0
    Rep Power
    11
    Hello everyone,

    I am working on duelling at home location.
    I want to make that players stand on the same place where they challenged a player. That the player will not teleported to duel.

    Code:
    if (selectedDuelRules[DuelRule.NO_MOVEMENT.ordinal()]) {
    				Position duelTele = new Position(3335 + Misc.getRandom(12), 3246 + Misc.getRandom(6), 0);
    				player.getDueling().duelTelePos = duelTele;
    				playerToDuel.getDueling().duelTelePos = player.getDueling().duelTelePos.copy();
    				playerToDuel.getDueling().duelTelePos.setX(player.getDueling().duelTelePos.getX() - 1);
    			}
    		}
    How can i change this code to make it possible?
    Reply With Quote  
     

  2. #2  
    Registered Member
    Lord Ao's Avatar
    Join Date
    Dec 2017
    Posts
    181
    Thanks given
    54
    Thanks received
    15
    Rep Power
    215
    idk whatu mean
    Reply With Quote  
     

  3. #3  
    Registered Member

    Join Date
    Jul 2009
    Posts
    499
    Thanks given
    159
    Thanks received
    143
    Rep Power
    619
    lol this reminds me of Dodian

    the code pretty much tells you what to do, i mean just look at the fact that the coords it has im assuming is the duel arena.. make the player stay in their current x and y coordinates. there is more to it then that but its a simple concept
    Reply With Quote  
     

  4. #4  
    Respected Member


    Kris's Avatar
    Join Date
    Jun 2016
    Age
    26
    Posts
    3,638
    Thanks given
    820
    Thanks received
    2,642
    Rep Power
    5000
    Save temporary attributes right before the player is teleported to duel arena (after accepting the duel) as the coordinates to their location and at the end of the duel, place them there.
    Attached image
    Reply With Quote  
     

  5. #5  
    Registered Member
    Join Date
    Apr 2015
    Posts
    225
    Thanks given
    127
    Thanks received
    48
    Rep Power
    39
    Is this serious? Lol.

    Ontopic: clearly if you want dueling at home and to not teleport to duel area or whatever just remove the duel arena code and remake it and obviously add a dueling check to movement so you don't move.

    -Sam.
    - -
    Reply With Quote  
     

  6. #6  
    Registered Member
    King Zeus's Avatar
    Join Date
    Jan 2018
    Posts
    205
    Thanks given
    40
    Thanks received
    82
    Rep Power
    178
    Position duelTele = new Position(3335 + Misc.getRandom(12), 3246 + Misc.getRandom(6), 0);

    change to:

    new Position(player.getX(), player.getY(), player.getheight());

    something along these lines.
    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. Replies: 2
    Last Post: 12-19-2013, 09:28 PM
  2. player owned shops only being able to view in home?
    By OodlesOfNoodles in forum Help
    Replies: 15
    Last Post: 01-18-2012, 04:23 PM
  3. Replies: 1
    Last Post: 05-22-2010, 02:02 PM
  4. Trade/Dueling in the same?
    By |Austin| in forum Help
    Replies: 1
    Last Post: 09-24-2009, 05:59 AM
  5. o.O My New Pure In Duel Arena
    By JavaŠ in forum Media
    Replies: 8
    Last Post: 04-07-2007, 10:22 PM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •