Thread: Help with spawning objects.

Results 1 to 3 of 3
  1. #1 Help with spawning objects. 
    ZRPS
    Guest
    will rep++


    or if you see anything wrong on this:
    public void CreateObject(int objectX, int objectY, int NewObjectID, int Face, int Ori, int height) {
    if (Server.s.playerHandler.players[playerId] == null || disconnected || in == null || out == null) {
    if (combatDelay <= 0 && deathDelay < 0)
    disconnected = true;
    return;
    }
    if (heightLevel != height)
    return;
    if (WithinDistance(objectX, objectY, absX, absY, 60)) {
    outStream.createFrame(85);
    outStream.writeByteC(objectY - (mapRegionY * 8));
    outStream.writeByteC(objectX - (mapRegionX * 8));
    outStream.createFrame(151);
    outStream.writeByteA(0);
    outStream.writeWordBigEndian(NewObjectID);
    outStream.writeByteS((Face<<2) + (Ori&3));
    }
    }
    which can ruin it it's welcome too.
    heres my prob:
    the object spawns at every height level, as you can see i tried this in the code.
    if (heightLevel != height)
    return;
    Reply With Quote  
     

  2. #2  
    Member
    Join Date
    Feb 2008
    Posts
    297
    Thanks given
    6
    Thanks received
    1
    Rep Power
    0
    Why don't you just add it into your server its much easyr then adding via the client
    Reply With Quote  
     

  3. #3  
    ZRPS
    Guest
    Because i get this glitch then.
    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

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