bump.
|
|
Alright, I have a magic chest that's not animating like its suppose to. I know the animation id is 3117, was just wondering how i would make it animate like it should.
This is how it's suppose to look/do
This is what i currently have, but its not animating, just a chest sitting there like every other object
![]()
bump.
Bump.
You have to have a method for object Animation,
You'll need these in player assistant
public void createPlayersObjectAnim(int X, int Y, int animationID, int tileObjectType, int orientation) {
try{
c.getOutStream().createFrame(85);
c.getOutStream().writeByteC(Y - (c.mapRegionY * 8));
c.getOutStream().writeByteC(X - (c.mapRegionX * 8));
int x = 0;
int y = 0;
c.getOutStream().createFrame(160);
c.getOutStream().writeByteS(((x&7) << 4) + (y&7));//tiles away - could just send 0
c.getOutStream().writeByteS((tileObjectType<<2) +(orientation&3));
c.getOutStream().writeWordA(animationID);// animation id
} catch(Exception e){
e.printStackTrace();
}
}
public void objectAnim(int X, int Y, int animationID, int tileObjectType, int orientation) {
for (Player p : PlayerHandler.players) {
if(p != null) {
Player players = (Player)p;
if(players.distanceToPoint(X, Y) <= 25) {
players.getPA().createPlayersObjectAnim(X, Y, animationID, tileObjectType, orientation);
}
}
}
}
This is how you use it
In that snippet, 10 = TileObjectType and -1 = Orientationplayer.getPA().objectAnim(Xcoord, Ycoord, ANIMID, 10,-1);
break;
That should work
i spawned the object id 13291 and i was already animated.
are you sure you have the right object id?
Yes then its a client sided issue, theres no point in using that method i gave you sorry
Hey man, im not completely sure about this but you might be able to animate an object through objectDef.
i think thats the animation variable im not sure.Code:if (i == 13291) { class46.anInt781 = 3117; }
Can someone confirm if anInt781 = AnimationID?
| « Clickbuttons help 317 pi | Object spawning through cheat client » |
| Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |