Thread: -click me- command help-(rep+)

Results 1 to 8 of 8
  1. #1 -click me- command help-(rep+) 
    King of the North
    Lord Stark's Avatar
    Join Date
    Jan 2010
    Age
    30
    Posts
    1,073
    Thanks given
    105
    Thanks received
    41
    Rep Power
    28
    is there anyway to make the pnpc command where when you use it it dose not mess up making it look all disfigured and also like if you have it when you wear an item it turns you into a npc can you also make it so that npc looks right to.
    Reply With Quote  
     

  2. #2  
    Registered Member
    PSNB's Avatar
    Join Date
    Aug 2009
    Posts
    885
    Thanks given
    8
    Thanks received
    103
    Rep Power
    590
    You'd need to change your animations to be suitable for that NPC.
    Reply With Quote  
     

  3. #3  
    King of the North
    Lord Stark's Avatar
    Join Date
    Jan 2010
    Age
    30
    Posts
    1,073
    Thanks given
    105
    Thanks received
    41
    Rep Power
    28
    how would i do that
    Reply With Quote  
     

  4. #4  
    Registered Member Yodoxin's Avatar
    Join Date
    Sep 2008
    Age
    33
    Posts
    190
    Thanks given
    0
    Thanks received
    10
    Rep Power
    54
    Well you'd find where your default animations are set (walking, running, attacking [weapon dependant] and blocking), and just add an if statement checking what NPC you're currently appearing as and have it change said animations to match those of the NPC.
    *Ahem* I will not be doing that again...
    Reply With Quote  
     

  5. #5  
    King of the North
    Lord Stark's Avatar
    Join Date
    Jan 2010
    Age
    30
    Posts
    1,073
    Thanks given
    105
    Thanks received
    41
    Rep Power
    28
    can you show a example please
    Reply With Quote  
     

  6. #6  
    Banned

    Join Date
    May 2008
    Posts
    2,327
    Thanks given
    55
    Thanks received
    67
    Rep Power
    0
    like this

    Code:
    if(command.startsWith("pnpc") && playerRights >= 2){
    int npc = Integer.parseInt(command.substring(5));
    if(npc < 2745){
    if (npc == 154) playerSE = 362;
    npcId = npc;
    npcId2 = npc;
    isNpc = true;
    updateRequired = true;
    appearanceUpdateRequired = true;
    }
    }
    if (npc == 154) playerSE = 362;
    that line will make it so if u turn into npc 154 (a butterfly)
    you will fly like the butterfly npc, instead of just a stand-still butterfly
    Reply With Quote  
     

  7. #7  
    King of the North
    Lord Stark's Avatar
    Join Date
    Jan 2010
    Age
    30
    Posts
    1,073
    Thanks given
    105
    Thanks received
    41
    Rep Power
    28
    zomg! ty rep+
    Reply With Quote  
     

  8. #8  
    King of the North
    Lord Stark's Avatar
    Join Date
    Jan 2010
    Age
    30
    Posts
    1,073
    Thanks given
    105
    Thanks received
    41
    Rep Power
    28
    one more question what if you were using a item that turned you into a npc? would u just add that line to that string of code?
    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
  •