This should fix your problem I thinkif (Server.objectManager.objectExists(c.absX, c.absY)) {
c.sendMessage("You cannot light a fire here.");
return;
}
|
Okay so i added this in my firemaking.java and it stops my account from lighting a fire on the last fire I started; but once I light a secondary fire, I will be able to light a new fire on the first fire... so it kinda remembers only the last fire I lighted, not all of them.
This is what I added:
it got partially fixed, any idea how to make it stop my character from lighting on all the fires, not just on the last one?Code:if(c.absX == Objects.getObjectX() && c.absY == Objects.getObjectY() && Objects.getObjectId() > 0) { c.sendMessage("You can't light a fire here!"); return; }
This should fix your problem I thinkif (Server.objectManager.objectExists(c.absX, c.absY)) {
c.sendMessage("You cannot light a fire here.");
return;
}
Getting this error =\ can't manage to fix it...
Code:src\server\model\players\skills\Firemaking.java:93: error: cannot find symbol if (Server.objectManager.objectExists(c.absX, c.absY)) { ^ symbol: method objectExists(int,int,int) location: variable objectManager of type ObjectManager 1 error Press any key to continue . . .
« Previous Thread | Next Thread » |
Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |