Thread: Npc dialogue + features

Page 2 of 3 FirstFirst 123 LastLast
Results 11 to 20 of 23
  1. #11  
    I'm unique


    Join Date
    Oct 2006
    Age
    29
    Posts
    708
    Thanks given
    0
    Thanks received
    1
    Rep Power
    82
    Good work! Thanks.
    Sincerly yours,
    Simox.
     

  2. #12  
    Xx nub xx
    Guest
    the dialogue works great.... idk why though but it only works on certain npcs, for example, here is my packet 155

    Code:
                                    case 155: //first Click npc
    					int NPCSlot = (misc.HexToInt(inStream.buffer, 0, packetSize) / 1000);
    					int NPCID = server.npcHandler.npcs[NPCSlot].npcType;
                                   		faceNPC(NPCSlot);
    					boolean PutNPCCoords = false;
    					switch(NPCID) {
    						case 2261: // zamorak mage
    							abyss = true;
    							selectoption("@[email protected] you like to teleport to the abyss?", "Yes", "No", "");
    						break;
    						case 2262: //magic shop
    							PutNPCCoords = true;
    							WanneShop = 32;
    						break;
    						case 944: // pking shop
    							PutNPCCoords = true;
    							WanneShop = 42;
    						break;
    						case 552: // weapon shop
    							PutNPCCoords = true;
    							WanneShop = 47;
    						break;
    						case 550: //ranging shop
    							PutNPCCoords = true;
    							WanneShop = 11;
    						break;
    						case 796: // ModZone shop
    							PutNPCCoords = true;
    							WanneShop = 46;
    						break;
    						case 3117: // armor shop
    							PutNPCCoords = true;
    							WanneShop = 44;
    						break;
    						case 2167: // team capes 1
    							PutNPCCoords = true;
    							WanneShop = 33;
    						break;
    						case 2168: // team capes 2
    							PutNPCCoords = true;
    							WanneShop = 34;
    						break;
    						case 555: //pking shop
    							PutNPCCoords = true;
    							WanneShop = 39;
    						break;
    						case 380:
    							PutNPCCoords = true;
    							NpcWanneTalk = 1;
    						break;
    						case 1332: //lobster and swordfish
    							PutNPCCoords = true;
    							server.skillHandler.fishing("lobster", 40, 900, 377, "lobster pot", 301, 1332, 619, playerId);
    						break;
    					}
    					misc.println("NPCID: "+NPCID);
    				if (PutNPCCoords == true) {
    					skillX = server.npcHandler.npcs[NPCSlot].absX;
    					skillY = server.npcHandler.npcs[NPCSlot].absY;
    				}
    				break;
    the npc im trying to add a dialogue to a custom officer (npcid 380) but the dialogue only works if i add the NpcWanneTalk to the pking shop (npcid 555), also, when i click on the npc, it is supposed to print their npcid, but for most npcs that i spawn, it always prints "NPCID: 112" instead of their true id.... any ideas?
     

  3. #13  
    bcdutton
    Guest
    You had to bump up the hackers thread?
     

  4. #14  
    Xx nub xx
    Guest
    soz... forgot it wasnt you o.O
     

  5. #15  
    Registered Member super's Avatar
    Join Date
    Jan 2008
    Age
    29
    Posts
    188
    Thanks given
    0
    Thanks received
    0
    Rep Power
    7
    Will be using this!

    very helpful!
     

  6. #16  
    Well, aren't you clever!

    Concious's Avatar
    Join Date
    Feb 2008
    Posts
    1,697
    Thanks given
    27
    Thanks received
    60
    Rep Power
    195
    Nice, But I'm Using ZDR, And There Isn't Any Dialogue's In Case 155, I Checked. So How Am I Going To Know What To Put.

    BTW: I'm Trying To Make An Npc Tele You Places.
     

  7. #17  
    Registered Member Aggi's Avatar
    Join Date
    Oct 2007
    Posts
    687
    Thanks given
    203
    Thanks received
    49
    Rep Power
    111
    this has been posted like 1000000 times so ill bet its leeched
     

  8. #18  
    tw1n
    Guest
    Quote Originally Posted by Dambi View Post
    this has been posted like 1000000 times so ill bet its leeched

    how about you shut the **** up, this tutorial helped me and its the best dialogue tut on here. Who cares if its leeched?
     

  9. #19  
    Registered Member
    Rune Arc's Avatar
    Join Date
    Nov 2007
    Age
    26
    Posts
    788
    Thanks given
    30
    Thanks received
    12
    Rep Power
    215
    how do u make it so u can like select an option? and if it gives u an item, and u ask again, it doesnt give u it again? like a starter thing so they can only get the starter 1 time.

    edit: oops, didnt see how old this was =p no wonder no replys
    "There is no such thing as a bad drug. Or a good drug. They don't have moral qualities. Human beings have moral qualities. There are plenty of opportunities to misuse a drug or use a drug in a bad way, that's not the drugs fault. It simply has the pharmacological chemical properties it has." - Dennis Mckenna
     

  10. #20  
    Registered Member
    Join Date
    Jul 2006
    Posts
    103
    Thanks given
    0
    Thanks received
    0
    Rep Power
    3
    I'm using ZDR source and I can't find UpdateNPCChat in it :O, help please?
     

Page 2 of 3 FirstFirst 123 LastLast

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
  •