Welcome, guest! Please login or register.

    * Shoutbox

    RefreshHistory
    • Zezuma09: how do i get this game started ?
      Today at 03:24:27 AM
    • Striker Fox2: Much more on General Board
      October 21, 2017, 04:30:25 AM
    • Striker Fox2: New price guide link [link]
      October 21, 2017, 04:30:18 AM
    • Striker Fox2: New discord link [link]
      October 21, 2017, 04:30:03 AM
    • Saltyspade10: If you are new and reading this, stick around becaus it's a great server and community! Hope to see you in-game :)
      October 21, 2017, 02:44:16 AM
    • damian6: hello i wanne buy this server can u add me
      October 20, 2017, 03:54:38 PM
    • Wilkooo: lol jks
      October 20, 2017, 02:39:53 PM
    • Wilkooo: ilyall
      October 20, 2017, 02:39:48 PM
    • tm4dz: why cant i see any download links??
      October 20, 2017, 10:46:55 AM
    • stCky: u dont need to its fudgeing sick
      October 19, 2017, 08:13:13 PM
    • odin stormborn: how do i change my username
      October 19, 2017, 12:16:51 PM
    • qazplm102938: everyone play manicps its best server out there loads to do its badboyyyy - manicps manicps shout out kiteshield
      October 19, 2017, 10:28:21 AM
    • qazplm102938: everyone play manicps its best server out there loads to do its badboyyyy - manicps manicps
      October 19, 2017, 10:11:08 AM
    • Travas: wtf
      October 19, 2017, 07:37:52 AM
    • stCky: Adaro, you are a threat to the communities image, yes
      October 18, 2017, 02:53:43 PM
    • Krackkid: Hello everyone it is I, Krackkid.
      October 18, 2017, 07:21:56 AM
    • soma_: Does anyone have an updated link to a blank Source / Client? 317/508
      October 18, 2017, 04:57:44 AM
    • michaeltrailer: olm t pst
      October 18, 2017, 04:52:48 AM
    • Adaro: Strange that staff think I'm a threat when I'm not threatening anyone
      October 18, 2017, 03:07:16 AM
    • Adaro: My Skype is: Mod Adaro
      October 18, 2017, 02:47:02 AM

    Author Topic: [PI] NPC INDENTIFIER  (Read 310 times)

    0 Members and 1 Guest are viewing this topic.

    Offlinemalimt

    • Member
    • ****
    • Posts: 472
    • Thanks: +0/-0
      • View Profile
    [PI] NPC INDENTIFIER
    « on: May 13, 2015, 08:50:26 PM »
    Hello there, I am looking to add npc indentifier.. Not sure if that's what it's called, but i'll explain...
    What i'm looking for is; To be able to identify any NPC by right-clicking on the NPC, then show's the NPC ID.
    I thought it would be much easier to add this since I am moving NPC's around a lot.
    I am looking to remove some that's just bloating the server so yeah.
    Any help is greatly appreciated.

    OfflineWarTusk-RSPS

    • Member
    • ***
    • Posts: 186
    • Thanks: +0/-0
      • View Profile
    "Speaking of if you want me to stop flooding your server and want a solution on how to prevent it, I'll start the negotiations at 500$. A drop in the bucket for you I suppose. And I'll help fix the XSS vulnerabilities for 100$ each."

    -Sini


    Offlinesk8rdude461

    • MOPARSCAPE WAS HACKED
    • Member
    • ****
    • *
    • Posts: 12,471
    • Thanks: +0/-0
      • View Profile
    Re: [PI] NPC INDENTIFIER
    « Reply #2 on: May 13, 2015, 09:00:20 PM »
    This is in your client..

    Look for:
    buildAtNPCMenu
    Within that method, you need to find the "menuActionName" that you want the npc ID to display next to, then edit it in.

    Ex:
    Code: Java
    1. if(itemSelected ==1){
    2.                         menuActionName[menuActionRow]="Use "+ selectedItemName
    3.                                         +" with @[email protected]"+ s;
    4.                         menuActionID[menuActionRow]=582;
    5.                         menuActionCmd1[menuActionRow]= i;
    6.                         menuActionCmd2[menuActionRow]= k;
    7.                         menuActionCmd3[menuActionRow]= j;
    8.                         menuActionRow++;
    9.                         return;
    10.                 }
    ^That is only drawn if a user has an item selected in their inventory and they right click the npc.
    You'd add "+ entityDef.id" after the s for the menuactionname. (Assuming the variables are named the same).


    Offlinemalimt

    • Member
    • ****
    • Posts: 472
    • Thanks: +0/-0
      • View Profile
    Re: [PI] NPC INDENTIFIER
    « Reply #3 on: May 13, 2015, 09:29:15 PM »
    Thanks guys. Got it ! :D

     

    Copyright © 2017 MoparScape. All rights reserved.
    Powered by SMFPacks SEO Pro Mod |
    SimplePortal 2.3.5 © 2008-2012, SimplePortal