Thread: [718] Player Direction

Results 1 to 4 of 4
  1. #1 [718] Player Direction 
    Extreme Donator

    Skrew's Avatar
    Join Date
    Jul 2011
    Posts
    894
    Thanks given
    166
    Thanks received
    121
    Rep Power
    122
    Hi,

    I'm having trouble with player directions. I want the player to face a certain way during the tutorial, but my code doesn't seem to be working with ANY direction. Can anyone give me a code to replace my current one.

    Picture: Screenshot by Lightshot

    Code:
    player.unlock();
    player.setDirection(Utils.getFaceDirection(1, 0));
    player.tutorialTeleport(3677, 2990, 0);
    player.lock();
    sendEntityDialogue(IS_NPC,"Bill Teach",3155,9827,"The Crystal chest can be found here. Use a Crystal key on the chest to open it.");
    Reply With Quote  
     

  2. #2  
    Donator


    Join Date
    May 2012
    Posts
    252
    Thanks given
    95
    Thanks received
    97
    Rep Power
    78
    Quote Originally Posted by Ezea 10 View Post
    Hi,

    I'm having trouble with player directions. I want the player to face a certain way during the tutorial, but my code doesn't seem to be working with ANY direction. Can anyone give me a code to replace my current one.

    Picture: Screenshot by Lightshot

    Code:
    player.unlock();
    player.setDirection(Utils.getFaceDirection(1, 0));
    player.tutorialTeleport(3677, 2990, 0);
    player.lock();
    sendEntityDialogue(IS_NPC,"Bill Teach",3155,9827,"The Crystal chest can be found here. Use a Crystal key on the chest to open it.");
    if you want to face bill use
    Code:
    player.faceEntity(npc);
    if you want to face the chest
    Code:
    player.faceObject(object);
    edit yea i just tried it
    .
    Reply With Quote  
     

  3. #3  
    Extreme Donator

    Skrew's Avatar
    Join Date
    Jul 2011
    Posts
    894
    Thanks given
    166
    Thanks received
    121
    Rep Power
    122
    Quote Originally Posted by ARMAR X K1NG View Post
    if you want to face bill use
    Code:
    player.faceEntity(npc);
    if you want to face the chest
    Code:
    player.faceObject(object);
    if you want to face a custom world tile use
    Code:
    player.setNextFaceWorldTile(new WorldTile(x,y,z));
    I tried using this code before
    Code:
    player.setNextFaceWorldTile(new WorldTile(3679, 2990, 0));
    It looks like this: Screenshot by Lightshot (The player is not even looking straight. Wtf)
    Reply With Quote  
     

  4. #4  
    Donator


    Join Date
    May 2012
    Posts
    252
    Thanks given
    95
    Thanks received
    97
    Rep Power
    78
    Quote Originally Posted by Ezea 10 View Post
    I tried using this code before
    Code:
    player.setNextFaceWorldTile(new WorldTile(3679, 2990, 0));
    It looks like this: Screenshot by Lightshot (The player is not even looking straight. Wtf)
    add me on skype i will try to fix
    .
    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: 45
    Last Post: 11-18-2012, 05:52 AM
  2. 718 Player Option Packets
    By izaazkothawala in forum Help
    Replies: 4
    Last Post: 09-28-2012, 02:19 AM
  3. [718] Players account checker extra
    By riksk in forum Snippets
    Replies: 0
    Last Post: 09-25-2012, 06:44 AM
  4. 718 Player rights help
    By Nikola in forum Help
    Replies: 2
    Last Post: 07-14-2012, 01:40 AM
  5. Player Direction
    By Pilldom in forum Help
    Replies: 0
    Last Post: 02-19-2010, 05:56 AM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •