idk whatu mean
|
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.
How can i change this code to make it possible?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); } }
idk whatu mean
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
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.
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.
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.
« Previous Thread | Next Thread » |
Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |