Thread: players don't see other players [pi]

Results 1 to 5 of 5
  1. #1 players don't see other players [pi] 
    Registered Member benjam1n's Avatar
    Join Date
    Oct 2013
    Posts
    59
    Thanks given
    16
    Thanks received
    1
    Rep Power
    11
    I wish to make an area like Fight Caves for a boss where a player only sees himself and the boss. How would I do this? I tried ripping it from fightcaves but it didn't work.
    Reply With Quote  
     

  2. #2  
    Registered Member benjam1n's Avatar
    Join Date
    Oct 2013
    Posts
    59
    Thanks given
    16
    Thanks received
    1
    Rep Power
    11
    so far I have this:
    c.getPA().movePlayer(xxxx,xxxx, c.playerId * 4);
    But how do I make the boss spawn on the height player index *4 too? Thanks for fast reply, btw C:
    Reply With Quote  
     

  3. #3  
    Registered Member benjam1n's Avatar
    Join Date
    Oct 2013
    Posts
    59
    Thanks given
    16
    Thanks received
    1
    Rep Power
    11
    [SPOIL]public void spawnNpc2(int npcType, int x, int y, int heightLevel,
    int WalkingType, int HP, int maxHit, int attack, int defence) {
    // first, search for a free slot
    int slot = -1;
    for (int i = 1; i < maxNPCs; i++) {
    if (npcs[i] == null) {
    slot = i;
    break;
    }
    }
    if (slot == -1) {
    // Misc.println("No Free Slot");
    return; // no free slot found
    }
    NPC newNPC = new NPC(slot, npcType);
    newNPC.absX = x;
    newNPC.absY = y;
    newNPC.makeX = x;
    newNPC.makeY = y;
    newNPC.heightLevel = heightLevel;
    newNPC.walkingType = WalkingType;
    newNPC.HP = HP;
    newNPC.MaxHP = HP;
    newNPC.maxHit = maxHit;
    newNPC.attack = attack;
    newNPC.defence = defence;
    npcs[slot] = newNPC;
    }[/SPOIL]
    Reply With Quote  
     

  4. #4  
    Registered Member benjam1n's Avatar
    Join Date
    Oct 2013
    Posts
    59
    Thanks given
    16
    Thanks received
    1
    Rep Power
    11
    [FIXED]
    Spoiler for the fix:
    Server.npcHandler.spawnNpc(c, 2, 2717, 9827, c.playerId * 4, 0, 200, 60, 400, 400, true, false);
    c.getPA().movePlayer(2717,9820, c.playerId * 4);
    Reply With Quote  
     

  5. #5  
    Registered Member

    Join Date
    Feb 2013
    Posts
    4,409
    Thanks given
    59
    Thanks received
    478
    Rep Power
    138
    Should post in the right section next time too.
    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

Similar Threads

  1. Replies: 4
    Last Post: 02-03-2013, 02:53 AM
  2. Cant see other players?
    By aviruness in forum Help
    Replies: 2
    Last Post: 12-17-2012, 07:02 PM
  3. Replies: 2
    Last Post: 04-03-2012, 08:58 AM
  4. Can't see other Players [614]
    By Sixpack in forum Help
    Replies: 5
    Last Post: 11-25-2010, 08:27 PM
  5. Replies: 12
    Last Post: 06-22-2010, 10:41 PM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •