Thread: object

Results 1 to 4 of 4
  1. #1 object 
    Registered Member
    ƅʅ1ƭȥȥ ツ's Avatar
    Join Date
    May 2008
    Age
    27
    Posts
    1,132
    Thanks given
    10
    Thanks received
    8
    Rep Power
    330
    I added some thief stalls at H.A.M cave the are there but the appear on GWD ,,GE and another place to why? >How?

    help me please

    bl1tzz,
    Reply With Quote  
     

  2. #2  
    Registered Member
    ViperSniper's Avatar
    Join Date
    Apr 2007
    Age
    27
    Posts
    2,417
    Thanks given
    367
    Thanks received
    82
    Rep Power
    976
    Its a bug, fix the spawning method or spawn them clientside.
    :indeed:
    Reply With Quote  
     

  3. #3  
    Registered Member

    Join Date
    Mar 2008
    Age
    26
    Posts
    2,071
    Thanks given
    17
    Thanks received
    68
    Rep Power
    1648
    Oh nvm, its a bug what viper sayd.
    Reply With Quote  
     

  4. #4  
    Registered Member
    ƅʅ1ƭȥȥ ツ's Avatar
    Join Date
    May 2008
    Age
    27
    Posts
    1,132
    Thanks given
    10
    Thanks received
    8
    Rep Power
    330
    Can u fix the spawning method? for me?

    Frames:
    /**
    * Creates a Object.
    * @param Objectid The Id of the Object to spawn.
    * @param Heigh The Height to spawn the Object on.
    * @param ObjectX The AbsX to spawn the Object on.
    * @param ObjectY The AbsY to spawn the Object on.
    * @param Face The Position for the OBject to face
    * @param Type Object Type
    * */

    public void createObject(Player p, int objectId, int height, int objectX, int objectY, int face, int type) {
    sendCoords(p, (objectX - ((p.mapRegionX - 6) * 8)), (objectY - ((p.mapRegionY - 6) * 8)));
    int ot = ((type << 2) + (face & 3));
    p.stream.createFrame(30);
    p.stream.writeWordBigEndian(objectId);
    p.stream.writeByteA(0);
    p.stream.writeByteC(ot);

    }

    /**
    * Creates a GlobalObject.
    * @param Objectid The Id of the Object to spawn.
    * @param Heigh The Height to spawn the Object on.
    * @param ObjectX The AbsX to spawn the Object on.
    * @param ObjectY The AbsY to spawn the Object on.
    * @param Face The Position for the OBject to face
    * @param Type Object Type
    * */

    public void createGlobalObject(int objectId, int height, int objectX, int objectY, int face, int type) {
    for (Player p : Engine.players) {
    if (p == null) {
    continue;
    }
    createObject(p, objectId, height, objectX, objectY, face, type);
    }
    }
    Player:
    }
    public void objects() {
    frames.createGlobalObject(2560, 0, 3174, 9635, -1, 10);
    frames.createGlobalObject(2565, 0, 3171, 9638, -2, 10);
    frames.createGlobalObject(2562, 0, 3174, 9628, 0, 10);
    frames.createGlobalObject(21505, 0, 2328, 3804, -1, 10);
    frames.createGlobalObject(13291, 0, 2332, 3800, 0, 10);
    //frames.createObject(this, objID, HEIGHT, X, Y, FACE, TYPE);
    }
    Reply With Quote  
     


Thread Information
Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)


User Tag List

Tags for this Thread

View Tag Cloud

Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •