Thread: [PI] NPC Click Attack?!?!

Results 1 to 9 of 9
  1. #1 [PI] NPC Click Attack?!?! 
    Java Developer

    Join Date
    Jun 2012
    Posts
    384
    Thanks given
    80
    Thanks received
    35
    Rep Power
    4
    I have a npc i wanted to use as a dungeoneering handler. But my problem is other, the npc had just "Talk-to" it was working normal i added dialogue, but then i wanted to add Trade too. And i did it in client sided:

    Code:
    if(i == 650) { // NPC ID 
        entityDef.actions = new String[5];
        entityDef.actions[1] = "Talk-to";
        entityDef.actions[2] = "Trade";
        entityDef.name = "Dungeoneering Warrior";
    }
    The trade work normal, but when i click talk-to it attack the npc.. how to fix?
    Reply With Quote  
     

  2. #2  
    Registered Member

    Join Date
    Oct 2011
    Age
    28
    Posts
    1,880
    Thanks given
    311
    Thanks received
    557
    Rep Power
    703
    Quote Originally Posted by 2007scape View Post
    I had a npc "650" it's a warrior he just have Talk-To, before i just click and it appear dialogue, later i added in client sided a other thing like
    Talk-To
    Trade

    For appear both, its alright, but when i click talk-to it attack the npc now, it do not appear the dialogue, in actionhandler its alright in firstclicknpc, how i can fix it?
    Well if it was a client sided edit that caused the problem, then why are you posting in the server section? Also you should probably post the EntityDef code you added for it.
    Reply With Quote  
     

  3. #3  
    Java Developer

    Join Date
    Jun 2012
    Posts
    384
    Thanks given
    80
    Thanks received
    35
    Rep Power
    4
    Quote Originally Posted by Revival View Post
    Well if it was a client sided edit that caused the problem, then why are you posting in the server section? Also you should probably post the EntityDef code you added for it.
    if(i == 650) { // NPC ID
    entityDef.actions = new String[5];
    entityDef.actions[1] = "Talk-to";
    entityDef.actions[2] = "Trade";
    entityDef.name = "Dungeoneering Warrior";
    }
    Reply With Quote  
     

  4. #4  
    Super Donator

    Batukka's Avatar
    Join Date
    Oct 2011
    Posts
    2,433
    Thanks given
    86
    Thanks received
    342
    Rep Power
    496
    1 -> 3 is for talking if i remember right.
    Reply With Quote  
     

  5. #5  
    Java Developer

    Join Date
    Jun 2012
    Posts
    384
    Thanks given
    80
    Thanks received
    35
    Rep Power
    4
    Quote Originally Posted by Biggie Smalls View Post
    1 -> 3 is for talking if i remember right.
    No..
    Reply With Quote  
     

  6. #6  
    Registered Member

    Join Date
    Oct 2012
    Posts
    398
    Thanks given
    31
    Thanks received
    33
    Rep Power
    991
    Add the NPC in npc.cfg, give it 0 HP.
    Hi
    Reply With Quote  
     

  7. #7  
    need java lessons
    Eclipse's Avatar
    Join Date
    Aug 2012
    Posts
    4,436
    Thanks given
    686
    Thanks received
    898
    Rep Power
    490
    Quote Originally Posted by Wtf Rofl View Post
    Add the NPC in npc.cfg, give it 0 HP.
    You still attack it still...



    Change the 1 to 0

    Quote Originally Posted by jerryrocks317 View Post
    i am 14 and have my own laptop im on almost 24/7 currently creating rsps lol so please get off my thread lol
    Reply With Quote  
     

  8. #8  
    The Emperor of the Sands

    Azir's Avatar
    Join Date
    Nov 2008
    Posts
    2,466
    Thanks given
    8
    Thanks received
    487
    Rep Power
    117
    entityDef.actions[0] = "Talk-to";


    Reply With Quote  
     

  9. #9  
    need java lessons
    Eclipse's Avatar
    Join Date
    Aug 2012
    Posts
    4,436
    Thanks given
    686
    Thanks received
    898
    Rep Power
    490
    Quote Originally Posted by King J Scape View Post
    entityDef.actions[0] = "Talk-to";
    Yes, what I said.

    Quote Originally Posted by jerryrocks317 View Post
    i am 14 and have my own laptop im on almost 24/7 currently creating rsps lol so please get off my thread lol
    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. first click attack npc
    By Miner in forum Help
    Replies: 0
    Last Post: 02-09-2012, 01:18 AM
  2. [Apollo]NPC Attack click Packet
    By Jake_G in forum Snippets
    Replies: 6
    Last Post: 12-30-2011, 06:37 AM
  3. Right click > Attack
    By infallible in forum Help
    Replies: 3
    Last Post: 04-04-2010, 06:18 PM
  4. right click, attack help! rep+
    By Bliss-Scape in forum Help
    Replies: 7
    Last Post: 12-14-2009, 01:55 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
  •