Thread: not updating players appearance in duel ?

Page 1 of 2 12 LastLast
Results 1 to 10 of 12
  1. #1 not updating players appearance in duel ? 
    Registered Member
    Join Date
    Jan 2010
    Posts
    271
    Thanks given
    2
    Thanks received
    3
    Rep Power
    11
    well i jst made hint icons load frm my cache
    so yeh
    u kno i can do hint
    im trying to add it on my server (dueling)
    but both of em can see the arrow
    on the head
    so can it be like you can only see your opponents arrow
    ?
    Reply With Quote  
     

  2. #2  
    Registered Member
    Join Date
    Jan 2010
    Posts
    271
    Thanks given
    2
    Thanks received
    3
    Rep Power
    11
    im trying to make it only the the player can see the opponents arrow not every ones arrow and not his
    heres my code
    public void startDuel() {
    Client other = getClient(duel_with);
    RemoveAllWindows();
    other.appearanceUpdateRequired = false;
    duelFight = true;
    toX = 3345+Misc.random(6);
    toY = 3251+Misc.random(6);
    teleblock = true;
    createArrow(10, other.playerId);
    the other.player id actually calls to both of them.
    Reply With Quote  
     

  3. #3  
    Registered Member Jattio's Avatar
    Join Date
    Oct 2009
    Age
    29
    Posts
    532
    Thanks given
    8
    Thanks received
    5
    Rep Power
    54
    Quote Originally Posted by storyscape View Post
    im trying to make it only the the player can see the opponents arrow not every ones arrow and not his
    heres my code
    public void startDuel() {
    Client other = getClient(duel_with);
    RemoveAllWindows();
    other.appearanceUpdateRequired = false;
    duelFight = true;
    toX = 3345+Misc.random(6);
    toY = 3251+Misc.random(6);
    teleblock = true;
    createArrow(10, other.playerId);
    the other.player id actually calls to both of them.
    i can help, ill edit this thread when i find fix

    EDIT*
    this might work:

    change:
    Code:
    Client other = getClient(duel_with);
    to:
    Code:
    Client other = (Client) PlayerHandler.players[duel_with];

    Reply With Quote  
     

  4. #4  
    Registered Member
    Join Date
    Jan 2010
    Posts
    271
    Thanks given
    2
    Thanks received
    3
    Rep Power
    11
    mmh i dont think thats the problem the problem is i dont want the player seeing a arrow on top of his head or other people i want him to see his opponents arrow only.
    Reply With Quote  
     

  5. #5  
    Registered Member Jattio's Avatar
    Join Date
    Oct 2009
    Age
    29
    Posts
    532
    Thanks given
    8
    Thanks received
    5
    Rep Power
    54
    Quote Originally Posted by storyscape View Post
    mmh i dont think thats the problem the problem is i dont want the player seeing a arrow on top of his head or other people i want him to see his opponents arrow only.
    try it..

    Reply With Quote  
     

  6. #6  
    Registered Member
    Join Date
    Jan 2010
    Posts
    271
    Thanks given
    2
    Thanks received
    3
    Rep Power
    11
    testing it 1 sec ill reply if it works
    Reply With Quote  
     

  7. #7  
    Registered Member
    Join Date
    Jan 2010
    Posts
    271
    Thanks given
    2
    Thanks received
    3
    Rep Power
    11
    wow thanks alot have u coded duel arena cause ur pretty good at it
    Reply With Quote  
     

  8. #8  
    Registered Member Jattio's Avatar
    Join Date
    Oct 2009
    Age
    29
    Posts
    532
    Thanks given
    8
    Thanks received
    5
    Rep Power
    54
    Quote Originally Posted by storyscape View Post
    wow thanks alot have u coded duel arena cause ur pretty good at it
    No i havent but im glad i could help

    Reply With Quote  
     

  9. #9  
    Registered Member
    Join Date
    Jan 2010
    Posts
    271
    Thanks given
    2
    Thanks received
    3
    Rep Power
    11
    other.headIconPray = 1; < that puts an arrow on head well i tried your method it worked but the arrow disapeared only the blinking one on the mini map remained so i added other.headIconPray = 1; to add the arrow but it goes on both .
    Reply With Quote  
     

  10. #10  
    Registered Member
    Join Date
    Jan 2010
    Posts
    271
    Thanks given
    2
    Thanks received
    3
    Rep Power
    11


    thats what i mean...
    Reply With Quote  
     

Page 1 of 2 12 LastLast

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
  •