what do you want to do with the timer and the tokens?tell me and ill write something up for you
|
Ok so I made a timer and it works and all but when that timer reaches "0" it teleports you to specific X and Y coords. Now The Problem is, is that when you get teleported to those X and Y coords you cannot move, and if you try to teleport it teleports you back to those specific coords. So here is the code that I came up with...
clana is the timer and clanb is the character token that gets reset.
if (clana > 0) {
clanb = 1;
clana -= 1;
} else {
clana = 5;
getPA().movePlayer(3211, 3420, 0);
clanb = 0;
clana = 0;
}
what do you want to do with the timer and the tokens?tell me and ill write something up for you
Perhaps something like
Not sure what ur trying to do thoughCode:if (clana > 0) { clanb = 1; clana--; if (clana == 0) { getPA().movePlayer(3211, 3420, 0); clanb = -1; clana = -1; } }
clana is the timer and when the clana timer starts the character token clanb is set to one. Then the timer (clana) counts down to 1 and the player gets teleported to certain coords. Also When the player is teleported the timer (clana) and the token (clanb) get reset to "0". I am trying to make something like a castle wars timer but not entirely.
if this is going to ActionHandler for a portal or something then do this
correct me if thats wrongCode:case ####: clana = ##; //put the number the timer starts with here clanb = 1; clana--; if (clana == 1) { getPA().movePlayer(3211, 3420, 0); clanb = 0; } }
I am trying to put this in client.java, Kind of like how the skulltimer is for PI.
is this process? If so it's because when clana is at 0 it'll move the player to those coords and since you've clana at 0 all the time it'll always move it to that x and y coord every 600ms.
Do you want it to be like a minigame or how do you want the timer to be for?
oh then try something like
Code:if(clana > 0) { clanb = 1; clana--; if(clana == 1) { getPA().movePlayer(3211, 3420, 0); clanb = 0; } }
i would like it to be a minigame timer.
« Previous Thread | Next Thread » |
Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |