I was realy realy bored and wanted to make a random door tele you to a random place i added all more doors cuase im just bored and only added 2 teles in triigertele thing
Do you think this would work?
I cant test it atm cuase i got to eat but when i come back i wanan see what u guys thinK
Purpose: Make a minigame possiby with this
If i add this Client.java
Code:
public void randomdoortele(int actionbutton) {
closeInterface();
int[] door = { 1530, 1533, 2559, 1600, 1601, 1600, 1601, 2154, 2155, 1598, 1599, 3444, 3445, 3197, 1530 };
int[] triggerTele = { 2540, 4716, 0, 3023, 3631, 0, };
int index = 0;
for (int i = 0; i < door.length; i++) {
if (actionbutton == door[i]) {
triggerTele = c.triggerTele[i];
index = i % 3;
}
}
}
Make a new java file named Object and paste this in it
Code:
public class Object {
public int id, x, y, type;
public int[][] triggerTele;
public Object(int id, int x, int y, int type) {
this.id = id;
this.x = x;
this.y = y;
this.type = type;
}
}
Please post what u think lol flamers will be ignored!