Thread: NPC Clickbox

Results 1 to 4 of 4
  1. #1 NPC Clickbox 
    Donator

    Join Date
    Jan 2014
    Posts
    81
    Thanks given
    19
    Thanks received
    8
    Rep Power
    36
    After updating to 180.7 data a few weeks ago I found out that my clickboxes for implings in puro puro are gone.

    Theres absolutely no option when right clicking any impling, using ascend base.

    Cheers in advance
    Reply With Quote  
     

  2. #2  
    Donator

    Join Date
    Jan 2014
    Posts
    81
    Thanks given
    19
    Thanks received
    8
    Rep Power
    36
    Bumppp
    [Only registered and activated users can see links. ]
    Reply With Quote  
     

  3. #3  
    Arix Developer

    Tutus Frutus's Avatar
    Join Date
    Feb 2018
    Posts
    340
    Thanks given
    72
    Thanks received
    176
    Discord
    Tutus Frutus#0001
    Rep Power
    574
    Quote Originally Posted by DefusedRSPS View Post
    After updating to 180.7 data a few weeks ago I found out that my clickboxes for implings in puro puro are gone.

    Theres absolutely no option when right clicking any impling, using ascend base.

    Cheers in advance
    I've had this issue as well, in your NPCDefinitions/Readvalues there will be an issue..
    Show your Readvalues... I dont remember which one it was exactly but I think last few... make sure it's something like this:

    Code:
    			} else if (opcode == 106 || opcode == 118) {
    				anInt57 = stream.readUnsignedShort();
    				
    				if (anInt57 == 65535) { //anInt57 = Varbit
    					anInt57 = -1;
    				}
    				anInt59 = stream.readUnsignedShort();
    				
    				if (anInt59 == 65535) {
    					anInt59 = -1;
    				}
    				
    				int value = -1;
    				
    				if (opcode == 118) {
                        value = stream.readUnsignedShort();
                    }
    				
    				int len = stream.readUnsignedByte();
    				childrenIDs = new int[len + 2];
    				for (int i = 0; i <= len; i++) {
    					childrenIDs[i] = stream.readUnsignedShort();
    					if (childrenIDs[i] == 65535) {
    						childrenIDs[i] = -1;
    				}
    			}
    			childrenIDs[len + 1] = value;
    		} else if (opcode == 107) {
    			clickable = false;
    		} else if (opcode == 109) {
    			//TODO
    		} else {
                System.out.println(String.format("npc def invalid opcode: %d", opcode));
    		}
    	}
    }
    It had to do with 107 (clickable) for me if I recall well but not entirely sure what it got changed from.
    [Only registered and activated users can see links. ]
    Reply With Quote  
     

  4. #4  
    Donator

    Join Date
    Jan 2014
    Posts
    81
    Thanks given
    19
    Thanks received
    8
    Rep Power
    36
    Quote Originally Posted by Tutus Frutus View Post
    I've had this issue as well, in your NPCDefinitions/Readvalues there will be an issue..
    Show your Readvalues... I dont remember which one it was exactly but I think last few... make sure it's something like this:

    Code:
    			} else if (opcode == 106 || opcode == 118) {
    				anInt57 = stream.readUnsignedShort();
    				
    				if (anInt57 == 65535) { //anInt57 = Varbit
    					anInt57 = -1;
    				}
    				anInt59 = stream.readUnsignedShort();
    				
    				if (anInt59 == 65535) {
    					anInt59 = -1;
    				}
    				
    				int value = -1;
    				
    				if (opcode == 118) {
                        value = stream.readUnsignedShort();
                    }
    				
    				int len = stream.readUnsignedByte();
    				childrenIDs = new int[len + 2];
    				for (int i = 0; i <= len; i++) {
    					childrenIDs[i] = stream.readUnsignedShort();
    					if (childrenIDs[i] == 65535) {
    						childrenIDs[i] = -1;
    				}
    			}
    			childrenIDs[len + 1] = value;
    		} else if (opcode == 107) {
    			clickable = false;
    		} else if (opcode == 109) {
    			//TODO
    		} else {
                System.out.println(String.format("npc def invalid opcode: %d", opcode));
    		}
    	}
    }
    It had to do with 107 (clickable) for me if I recall well but not entirely sure what it got changed from.
    Gotcha, you and @RSPSi replied at the same time. Cheers
    [Only registered and activated users can see links. ]
    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. [tut]Poison Npcs (With green splat)..
    By Santa Clause in forum Tutorials
    Replies: 9
    Last Post: 05-21-2007, 03:55 AM
  2. All Lists - item, object and NPC
    By purepkownage in forum Tools
    Replies: 2
    Last Post: 05-11-2007, 09:46 AM
  3. NPC Magic Distance Bug Fix
    By Zekkalkan in forum Tutorials
    Replies: 5
    Last Post: 05-06-2007, 07:21 PM
  4. Replies: 8
    Last Post: 05-04-2007, 09:52 PM
  5. Replies: 4
    Last Post: 05-03-2007, 03:57 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
  •