Making lastname work
NPC_types has a column called lastname. The lastname text goes under the NPC's name in parenthesis (like you see with the merchants and bankers). In current releases of EQEmu, it isn't implemented.
Here is how to make it work. First, you will need to change the definition to the table. lastname needs to be changed so it can no longer be NULL. If you don't do this, your zone server will crash. Use the following mysql line to make the change: Code:
alter table npc_types modify lastname varchar(32) NOT NULL default ''; Code:
MakeAnyLenString(&query, "SELECT id,name,level,race,class,hp,gender,texture,helmtexture,size,loottable_id, merchant_id, banish, mindmg, maxdmg, npcspecialattks, npc_spells_id, d_meele_texture1,d_meele_texture2, walkspeed, runspeed,fixedz,hp_regen_rate,mana_regen_rate,aggroradius,bodytype,npc_faction_id,face FROM npc_types");//WHERE zone='%s'", zone_name Code:
MakeAnyLenString(&query, "SELECT id,name,level,race,class,hp,gender,texture,helmtexture,size,loottable_id, merchant_id, banish, mindmg, maxdmg, npcspecialattks, npc_spells_id, d_meele_texture1,d_meele_texture2, walkspeed, runspeed,fixedz,hp_regen_rate,mana_regen_rate,aggroradius,bodytype,npc_faction_id,face,lastname FROM npc_types");//WHERE zone='%s'", zone_name Code:
tmpNPCType.mana_regen = atoi(row[23]); Code:
strncpy(tmpNPCType.lastname, row[28], 32); Code:
strcpy(ns->spawn.last_name, ns->spawn.last_name); Code:
strcpy(ns->spawn.last_name, lastname); |
but whats the purpose of lastname now? we use _'s to show more than one word names.
Guard_Xama00 |
Quote:
Guard_Xama (King's Guard) Mattmeck (Newbie Slayer) |
!!!! :shock:
|
Quote:
|
All times are GMT -4. The time now is 10:21 PM. |
Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.