like in command.java
add... = wildy coordsCode:if(p.absX > ... && p.absX< ... && p.absY > ... && p.abs<...) {
aboveCode:if(p.rights = 0) {
|
Hey, title basically says it all. Need to know how to make it so people cant use commands in wildy, or if theres a tutorial someone could post? i didnt find one when searching.
Help appreciated
- Jared
like in command.java
add... = wildy coordsCode:if(p.absX > ... && p.absX< ... && p.absY > ... && p.abs<...) {
aboveCode:if(p.rights = 0) {
} else if (cmd[0].equals("item") && p.absX > ... && p.absX< ... && p.absY > ... && p.abs<...) {
if(!p.wildernessArea) {
Engine.playerItems.addItem(p, Integer.parseInt(cmd[1]),
Integer.parseInt(cmd[2]));
} else {
p.frames.sendMessage(p ,"you can't spawn in wild");
}
}
is also possible
i got this error when i compiled
basically that means that "if(!p.wildernessArea) {" isnt recognized?Code:.\palidino76\rs2\io\packets\Commands.java:295: cannot find symbol symbol : variable wildernessArea location: class palidino76.rs2.players.Player if(!p.wildernessArea) { Engine.playerItems.addItem(p, Integer. parseInt(cmd[1]), ^ 1 error Press any key to continue . . .
i dun feel like looking around but try this perhaps
Code:.\palidino76\rs2\io\packets\Commands.java:295: cannot find symbol symbol : variable wildernessArea location: class palidino76.rs2.players.Player if(!p.wildernessArea) { Engine.playerItems.addItem(p, Integer) { parseInt(cmd[1]), ^ 1 error Press any key to continue . . .
jezus... do like this and it works perfectly:
should work fineCode:} else if (cmd[0].equals("item")) { if (Server.engine.wildernessArea(p.absX, p.absY)) { p.frames.sendMessage(p, "You cannot spawn item's in the wilderness."); return; } Engine.playerItems.addItem(p, Integer.parseInt(cmd[1]), Integer.parseInt(cmd[2])); }
Alright but, im not exactly sure on how to get the coords for a 508
::coords on most sources i thought
« Previous Thread | Next Thread » |
Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |