EQEmulator Forums

EQEmulator Forums (https://www.eqemulator.org/forums/index.php)
-   Archive::Database/World Building (https://www.eqemulator.org/forums/forumdisplay.php?f=625)
-   -   MW_057DR2 alpha 1 database mods (working trainers) (https://www.eqemulator.org/forums/showthread.php?t=13954)

Darkdrizzt 07-21-2004 03:53 PM

woot thanks sotonin

Cripp 07-21-2004 04:13 PM

to take out "EQEmu shopkeeper" and "EQEmu Banker"..

in mob.cpp around line 555...

change
Code:

        if (ns->spawn.class_==MERCHANT)
                strcpy(ns2->spawn.last_name, "EQEmu Shopkeeper");
        else if (ns->spawn.class_==TRIBUTE_MASTER)
                strcpy(ns2->spawn.last_name, "Tribute Master");
        else if (ns->spawn.class_==BANKER)
                strcpy(ns2->spawn.last_name, "EQEmu Banker");
        else if (ns->spawn.class_==ADVENTUREMERCHANT)

to

Code:

        /*if (ns->spawn.class_==MERCHANT)
                strcpy(ns2->spawn.last_name, "EQEmu Shopkeeper");
        else if (ns->spawn.class_==TRIBUTE_MASTER)
                strcpy(ns2->spawn.last_name, "Tribute Master");
        else if (ns->spawn.class_==BANKER)
                strcpy(ns2->spawn.last_name, "EQEmu Banker");
        else */if (ns->spawn.class_==ADVENTUREMERCHANT)


and around line 630 change..

Code:

        if (ns->spawn.class_==MERCHANT)
                strcpy(ns->spawn.last_name, "EQEmu Shopkeeper");
        else if (ns->spawn.class_==BANKER)
                strcpy(ns->spawn.last_name, "EQEmu Banker");
        else if (ns->spawn.class_==ADVENTUREMERCHANT)

to

Code:

        /*if (ns->spawn.class_==MERCHANT)
                strcpy(ns->spawn.last_name, "EQEmu Shopkeeper");
        else if (ns->spawn.class_==BANKER)
                strcpy(ns->spawn.last_name, "EQEmu Banker");
        else */if (ns->spawn.class_==ADVENTUREMERCHANT)

so basically just comment out the merchant and banker lastnames in those 2 parts and the lastname in npc_types should work for them.

rizzen04 07-22-2004 12:07 AM

why comment things out when you can change it from

Code:

if (ns->spawn.class_==MERCHANT)
      strcpy(ns2->spawn.last_name, "EQEmu Shopkeeper");
  else if (ns->spawn.class_==TRIBUTE_MASTER)
      strcpy(ns2->spawn.last_name, "Tribute Master");
  else if (ns->spawn.class_==BANKER)
      strcpy(ns2->spawn.last_name, "EQEmu Banker");
  else if (ns->spawn.class_==ADVENTUREMERCHANT)

to
Code:

if (ns->spawn.class_==MERCHANT)
      strcpy(ns2->spawn.last_name, "Shopkeeper");
  else if (ns->spawn.class_==TRIBUTE_MASTER)
      strcpy(ns2->spawn.last_name, "Tribute Master");
  else if (ns->spawn.class_==BANKER)
      strcpy(ns2->spawn.last_name, "Banker");
  else if (ns->spawn.class_==ADVENTUREMERCHANT)

Just removing the EQEMU part out.[/quote]

sotonin 07-22-2004 02:12 AM

Because most people do not want anything there. They want the NPC's lastname, Which tells specifics about what they sale

Cripp 07-22-2004 04:13 PM

Quote:

Originally Posted by rizzen04
why comment things out when you can change it from

Code:

if (ns->spawn.class_==MERCHANT)
      strcpy(ns2->spawn.last_name, "EQEmu Shopkeeper");
  else if (ns->spawn.class_==TRIBUTE_MASTER)
      strcpy(ns2->spawn.last_name, "Tribute Master");
  else if (ns->spawn.class_==BANKER)
      strcpy(ns2->spawn.last_name, "EQEmu Banker");
  else if (ns->spawn.class_==ADVENTUREMERCHANT)

to
Code:

if (ns->spawn.class_==MERCHANT)
      strcpy(ns2->spawn.last_name, "Shopkeeper");
  else if (ns->spawn.class_==TRIBUTE_MASTER)
      strcpy(ns2->spawn.last_name, "Tribute Master");
  else if (ns->spawn.class_==BANKER)
      strcpy(ns2->spawn.last_name, "Banker");
  else if (ns->spawn.class_==ADVENTUREMERCHANT)

Just removing the EQEMU part out.


because if you do that, the lastname still wont work and everyone would still be stuck with Shopkeeper for all there merchants. taking it out will make lastname work, so you can have Spell Merchant, Supplies, or whatever you want.

govtcheeze 07-22-2004 04:22 PM

rofl cripp, that avatar owns


All times are GMT -4. The time now is 01:05 AM.

Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.