View Single Post
  #1  
Old 06-06-2003, 11:52 PM
GrowlZ1010 GrowlZ1010 is offline
defunct
Join Date: May 2002
Posts: 187
GrowlZ1010 is on a distinguished road
Command for class NPCs: "rename"

NPC Code:

rename newname;



Since classes can be accessed with the getnpc statement and their cryptic NPCServer internal code number - usually looking something like localnpc_growlzblank_14777372_0 - shouldn't it be possible to rename them to something coherent? For example, giving a NPC a serial number:

NPC Code:

rename Sign #v(this.serial);



You could then do with (getnpc(Sign 2210)) instead of having to use something obscure like localnpc_signtest_33712039_4. This way, scripts could write their serial number to a string list on a DB NPC (no more having class NPCs somebody else laid but that you can't locate), and the database could even send them information about other class NPCs.
Reply With Quote