check on a site for stair id's, there are probably more than 1 id for stairs
|
I click on the object, and the server does not return with the object ID. Upon examining the object, I see that it says "I can use these stairs to climb down." which means it is the object 'Staircase' ID 1733. Now, I've tried adding this to my ActionHandler.java, but it seems as though the server still does not recognize it as an object! Is this possible? Can it be? How could I go about fixing this? I want it to take me down in to the mysterious Dwarven Mine!
check on a site for stair id's, there are probably more than 1 id for stairs
True. But as I said, I found the ID for this particular staircase, the server is just not recognizing it.
ClickObject class
Under
You should see something like (Might be commented out)Code:case FIRST_CLICK: c.objectX = c.getInStream().readSignedWordBigEndianA(); c.objectId = c.getInStream().readUnsignedWord(); c.objectY = c.getInStream().readUnsignedWordA(); c.objectDistance = 1; if(c.goodDistance(c.getX(), c.getY(), c.objectX, c.objectY, 1)) { if (Doors.getSingleton().handleDoor(c.objectId, c.objectX, c.objectY, c.heightLevel)) { } }
If not, add it in.Code:if(c.playerRights == 3 && c.playerName.equalsIgnoreCase("NAMEHERE")) { Misc.println("objectId: "+c.objectId+" ObjectX: "+c.objectX+ " objectY: "+c.objectY+" Xoff: "+ (c.getX() - c.objectX)+" Yoff: "+ (c.getY() - c.objectY)); } else if (c.playerRights == 3) { c.sendMessage("objectId: " + c.objectId + " objectX: " + c.objectX + " objectY: " + c.objectY); }
« Previous Thread | Next Thread » |
Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |
Tags for this Thread |