Thread: PI - Npc fourth option packet

Results 1 to 4 of 4
  1. #1 PI - Npc fourth option packet 
    Registered Member
    Join Date
    Mar 2016
    Posts
    362
    Thanks given
    102
    Thanks received
    24
    Rep Power
    60
    Nothing big, but on servers where unhandled packets DC you this could be a quickfix

    what this does
    makes the fourth option on NPCs work, will probably do more known unhandled packets later

    packethandler under
    Code:
    		packetId[21] = cn;
    add

    Code:
    		packetId[18] = cn;
    clicknpc
    after
    Code:
     THIRD_CLICK = 21,
    add

    Code:
    FOURTH_CLICK = 18
    then under the break of this method
    Code:
    			case THIRD_CLICK:
    add

    Code:
    case FOURTH_CLICK:
    				c.sendMessage("made it this far");
    				break;
    idea for usage: slayer master rewards shop, a fourth NPC option on right clicks for whatever you may need
    note : i put 'made it this far' just to check to see the code was okay
    Reply With Quote  
     

  2. #2  
    Banned

    Join Date
    Mar 2011
    Posts
    657
    Thanks given
    105
    Thanks received
    75
    Rep Power
    0
    Don't you need to update the packet sizes?
    Reply With Quote  
     

  3. #3  
    Respected Member


    Kris's Avatar
    Join Date
    Jun 2016
    Age
    26
    Posts
    3,638
    Thanks given
    820
    Thanks received
    2,642
    Rep Power
    5000
    R u trying to tell me that PI servers still to this day do not have the basic packets defined????????????????
    Attached image
    Reply With Quote  
     

  4. Thankful user:


  5. #4  
    Registered Member
    Join Date
    Mar 2016
    Posts
    362
    Thanks given
    102
    Thanks received
    24
    Rep Power
    60
    Quote Originally Posted by Eggspurt View Post
    Don't you need to update the packet sizes?
    they're already set the packets are just not handled (same goes for fourth click object)

    Quote Originally Posted by Kris View Post
    R u trying to tell me that PI servers still to this day do not have the basic packets defined????????????????
    this wasn't handled on 2 servers i logged into today out of sheer interest.
    so sadly yes
    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: 20
    Last Post: 03-11-2017, 02:48 AM
  2. [PI] NPC Dialogue Options (help)
    By LeftHerForRSPS in forum Help
    Replies: 7
    Last Post: 07-12-2014, 06:48 PM
  3. Replies: 1
    Last Post: 11-21-2012, 02:06 AM
  4. [PI]Making an option in npc dialouge teleport you[PI]
    By leftbehind20 in forum Requests
    Replies: 3
    Last Post: 08-24-2011, 10:28 AM
  5. [PI] Npc which open's Option's to Teleport
    By Zerk3r in forum Tutorials
    Replies: 15
    Last Post: 03-26-2011, 09:36 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
  •