Lastname command and Name Registrar NPC
PostPosted: Tue Jan 04, 2005 10:56 am
In the actual CVS is not included any /lastname command handler or any Name Registrar NPC, so I've written these two scripts that work together: are both necessary since one depends from the other.
lastname.cs contains /lastname command handler and you can put it under /scripts/playercommands
NameRegistrar.cs contains Name Registrar NPC and you can put it under /scripts/customnpc
To change your lastname select a Name Registrar and type:
/lastname <name>
The script check your level and/or your crafting skill to see if you can have a lastname.
Also check if lastname contains invalid characters or it's too long.
All the checks done are based on how is actually working on american live servers, maybe GOA localized server permits lastname with accented letters or so.
edit: I attached an old zip, this new one also check for illegal lastnames by the file invalidnames.txt
lastname.cs contains /lastname command handler and you can put it under /scripts/playercommands
NameRegistrar.cs contains Name Registrar NPC and you can put it under /scripts/customnpc
To change your lastname select a Name Registrar and type:
/lastname <name>
The script check your level and/or your crafting skill to see if you can have a lastname.
Also check if lastname contains invalid characters or it's too long.
All the checks done are based on how is actually working on american live servers, maybe GOA localized server permits lastname with accented letters or so.
edit: I attached an old zip, this new one also check for illegal lastnames by the file invalidnames.txt