Graal Forums  

Go Back   Graal Forums > Development Forums > Future Improvements
FAQ Members List Calendar Today's Posts

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #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
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 01:21 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.