Just edit these to your other banks locations
Code:if(p.getLocation().getX() == 2100) { p.getBank().openBank(); } else if(p.getLocation().getX() == 3920) { p.getBank().openBank();
|
Ok im really confused about how to do this....
i have added mutiple bank booths but i need them to open i have got one to open but i have tryed like 20 diffrent ways to get the other to open aswell but cant ? i can only get one to open. how do i add another so that it will also open ??
Here is my code.
package dragonkk.rs2rsps.scripts.objects;
import dragonkk.rs2rsps.Server;
import dragonkk.rs2rsps.events.Task;
import dragonkk.rs2rsps.model.player.Player;
import dragonkk.rs2rsps.scripts.objectScript;
public class o11402 extends objectScript {
@Override
public void examine(Player p) {
}
@Override
public void option1(final Player p, final int coordX, final int coordY, final int height) {
if(p.getWalk().getWalkDir() != -1 || p.getWalk().getRunDir() != -1)
return;
if(p.getLocation().getX() == 2100) {
p.getBank().openBank();
} else if(p.getLocation().getX() == 3920) {
p.getBank().openBank();
}
}
@Override
public void option2(Player p, int coordX, int coordY, int height) {
// TODO Auto-generated method stub
}
}
Just edit these to your other banks locations
Code:if(p.getLocation().getX() == 2100) { p.getBank().openBank(); } else if(p.getLocation().getX() == 3920) { p.getBank().openBank();
Ok new problem ive managed to add both banks but when i stand infront of one it wont open but then if i move to infront of other bank and click first bank it works and so does 2nd bank but not when i stand infront of first bank ??
« Previous Thread | Next Thread » |
Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |