cabtiz
05-24-2004, 08:34 AM
here is some SQL statements that will enable the guildmasters to train you if you are using the 5/20/2004 cvs dump and the MW_057DR2 alpha 1 database. they are all set to class 0 by default in the database so this goes through and parses the npc_types.name field looking for class guildmaster and making the necessary change to the class number in the record. if a zone is populated but the npc's don't have the appropriate titles appended onto their names it obviously won't flag them as the trainers.
following this is various sql statements that will insert various things into the lastname field of the database based on whats in portions of the name field.. I have not had it remove the stuff from the name field as i have not had a chance to play around with why the current cvs will not use the lastname field to put whatever is in it in paranthesis under the npc's name.
UPDATE npc_types SET class = 29
WHERE (right(name,16)="Shaman Guildmast");
UPDATE npc_types SET class = 25
WHERE (right(name,15)="Druid Guildmast");
UPDATE npc_types SET class = 21
WHERE (right(name,16)="Cleric Guildmast");
UPDATE npc_types SET class = 20
WHERE (right(name,17)="Warrior Guildmast");
UPDATE npc_types SET class = 26
WHERE (right(name,14)="Monk Guildmast");
UPDATE npc_types SET class = 22
WHERE (right(name,17)="Paladin Guildmast");
UPDATE npc_types SET class = 24
WHERE (right(name,23)="Shadow Knight Guildmast");
UPDATE npc_types SET class = 23
WHERE (right(name,16)="Ranger Guildmast");
UPDATE npc_types SET class = 28
WHERE (right(name,15)="Rogue Guildmast");
UPDATE npc_types SET class = 34
WHERE (right(name,19)="BeastLord Guildmast");
UPDATE npc_types SET class = 27
WHERE (right(name,19)="Berserker Guildmast");
UPDATE npc_types SET class = 31
WHERE (right(name,16)="Wizard Guildmast");
UPDATE npc_types SET class = 30
WHERE (right(name,21)="Necromancer Guildmast");
UPDATE npc_types SET class = 32
WHERE (right(name,18)="Magician Guildmast");
UPDATE npc_types SET class = 33
WHERE (right(name,19)="Enchanter Guildmast");
Next is some sql statements that will insert "Class Guildmaster" into the lastname field in the database where class is actually the class.
UPDATE npc_types SET lastname = "Shaman Guildmaster"
WHERE (right(name,16)="Shaman Guildmast");
UPDATE npc_types SET lastname = "Druid Guildmaster"
WHERE (right(name,15)="Druid Guildmast");
UPDATE npc_types SET lastname = "Cleric Guildmaster"
WHERE (right(name,16)="Cleric Guildmast");
UPDATE npc_types SET lastname = "Warrior Guildmaster"
WHERE (right(name,17)="Warrior Guildmast");
UPDATE npc_types SET lastname = "Monk Guildmaster"
WHERE (right(name,14)="Monk Guildmast");
UPDATE npc_types SET lastname = "Paladin Guildmaster"
WHERE (right(name,17)="Paladin Guildmast");
UPDATE npc_types SET lastname = "ShadowKnight Guildmaster"
WHERE (right(name,23)="Shadow Knight Guildmast");
UPDATE npc_types SET lastname = "Ranger Guildmaster"
WHERE (right(name,16)="Ranger Guildmast");
UPDATE npc_types SET lastname = "Rogue Guildmaster"
WHERE (right(name,15)="Rogue Guildmast");
UPDATE npc_types SET lastname = "Beastlord Guildmaster"
WHERE (right(name,19)="BeastLord Guildmast");
UPDATE npc_types SET lastname = "Berserker Guildmaster"
WHERE (right(name,19)="Berserker Guildmast");
UPDATE npc_types SET lastname = "Wizard Guildmaster"
WHERE (right(name,16)="Wizard Guildmast");
UPDATE npc_types SET lastname = "Necromancer Guildmaster"
WHERE (right(name,21)="Necromancer Guildmast");
UPDATE npc_types SET lastname = "Magician Guildmaster"
WHERE (right(name,18)="Magician Guildmast");
UPDATE npc_types SET lastname = "Enchanter Guildmaster"
WHERE (right(name,19)="Enchanter Guildmast");
next here is some sql code that will insert "Class Spell Merchant" into the last name field of the database where class = the actual class
UPDATE npc_types SET lastname = "Shaman Spell Merchant"
WHERE (right(name,11)="Shaman Spel");
UPDATE npc_types SET lastname = "Druid Spell Merchant"
WHERE (right(name,10)="Druid Spel");
UPDATE npc_types SET lastname = "Cleric Spell Merchant"
WHERE (right(name,11)="Cleric Spel");
UPDATE npc_types SET lastname = "Warrior Spell Merchant"
WHERE (right(name,12)="Warrior Spel");
UPDATE npc_types SET lastname = "Monk Spell Merchant"
WHERE (right(name,9)="Monk Spel");
UPDATE npc_types SET lastname = "Paladin Spell Merchant"
WHERE (right(name,12)="Paladin Spel");
UPDATE npc_types SET lastname = "ShadowKnight Spell Merchant"
WHERE (right(name,18)="Shadow Knight Spel");
UPDATE npc_types SET lastname = "Ranger Spell Merchant"
WHERE (right(name,11)="Ranger Spel");
UPDATE npc_types SET lastname = "Rogue Spell Merchant"
WHERE (right(name,10)="Rogue Spel");
UPDATE npc_types SET lastname = "Beastlord Spell Merchant"
WHERE (right(name,14)="BeastLord Spel");
UPDATE npc_types SET lastname = "Berserker Spell Merchant"
WHERE (right(name,14)="Berserker Spel");
UPDATE npc_types SET lastname = "Wizard Spell Merchant"
WHERE (right(name,11)="Wizard Spel");
UPDATE npc_types SET lastname = "Necromancer Spell Merchant"
WHERE (right(name,16)="Necromancer Spel");
UPDATE npc_types SET lastname = "Magician Spell Merchant"
WHERE (right(name,13)="Magician Spel");
UPDATE npc_types SET lastname = "Enchanter Spell Merchant"
WHERE (right(name,14)="Enchanter Spel");
and finally here is some sql code to insert "####### Supplies" into the lastname field were ####### equals brewing, baking etc etc etc.
UPDATE npc_types SET lastname = "Adventure Recruiter"
WHERE (right(name,17)="Adventure Recruit");
UPDATE npc_types SET lastname = "Adventure Merchant"
WHERE (right(name,16)="Adventure Mercha");
UPDATE npc_types SET lastname = "Raid Recruiter"
WHERE (right(name,12)="Raid Recruit");
UPDATE npc_types SET lastname = "Baking Supplies"
WHERE (right(name,13)="Baking Suppli");
UPDATE npc_types SET lastname = "Brewing Supplies"
WHERE (right(name,14)="Brewing Suppli");
UPDATE npc_types SET lastname = "Magician Supplies"
WHERE (right(name,15)="Magician Suppli");
UPDATE npc_types SET lastname = "Wizard Supplies"
WHERE (right(name,13)="Wizard Suppli");
UPDATE npc_types SET lastname = "Enchanter Supplies"
WHERE (right(name,16)="Enchanter Suppli");
UPDATE npc_types SET lastname = "Fishing Supplies"
WHERE (right(name,14)="Fishing Suppli");
UPDATE npc_types SET lastname = "Necromancer Supplies"
WHERE (right(name,18)="Necromancer Suppli");
UPDATE npc_types SET lastname = "Tinkering Supplies"
WHERE (right(name,16)="Tinkering Suppli");
UPDATE npc_types SET lastname = "Tribute Master"
WHERE (right(name,12)="Tribute Mast");
UPDATE npc_types SET lastname = "Poison Supplies"
WHERE (right(name,13)="Poison Suppli");
UPDATE npc_types SET lastname = "Soulbinder"
WHERE (right(name,8)="Soulbind");
UPDATE npc_types SET lastname = "Spell Components"
WHERE (right(name,14)="Spell Componen");
UPDATE npc_types SET lastname = "Dye Supplies"
WHERE (right(name,10)="Dye Suppli");
following this is various sql statements that will insert various things into the lastname field of the database based on whats in portions of the name field.. I have not had it remove the stuff from the name field as i have not had a chance to play around with why the current cvs will not use the lastname field to put whatever is in it in paranthesis under the npc's name.
UPDATE npc_types SET class = 29
WHERE (right(name,16)="Shaman Guildmast");
UPDATE npc_types SET class = 25
WHERE (right(name,15)="Druid Guildmast");
UPDATE npc_types SET class = 21
WHERE (right(name,16)="Cleric Guildmast");
UPDATE npc_types SET class = 20
WHERE (right(name,17)="Warrior Guildmast");
UPDATE npc_types SET class = 26
WHERE (right(name,14)="Monk Guildmast");
UPDATE npc_types SET class = 22
WHERE (right(name,17)="Paladin Guildmast");
UPDATE npc_types SET class = 24
WHERE (right(name,23)="Shadow Knight Guildmast");
UPDATE npc_types SET class = 23
WHERE (right(name,16)="Ranger Guildmast");
UPDATE npc_types SET class = 28
WHERE (right(name,15)="Rogue Guildmast");
UPDATE npc_types SET class = 34
WHERE (right(name,19)="BeastLord Guildmast");
UPDATE npc_types SET class = 27
WHERE (right(name,19)="Berserker Guildmast");
UPDATE npc_types SET class = 31
WHERE (right(name,16)="Wizard Guildmast");
UPDATE npc_types SET class = 30
WHERE (right(name,21)="Necromancer Guildmast");
UPDATE npc_types SET class = 32
WHERE (right(name,18)="Magician Guildmast");
UPDATE npc_types SET class = 33
WHERE (right(name,19)="Enchanter Guildmast");
Next is some sql statements that will insert "Class Guildmaster" into the lastname field in the database where class is actually the class.
UPDATE npc_types SET lastname = "Shaman Guildmaster"
WHERE (right(name,16)="Shaman Guildmast");
UPDATE npc_types SET lastname = "Druid Guildmaster"
WHERE (right(name,15)="Druid Guildmast");
UPDATE npc_types SET lastname = "Cleric Guildmaster"
WHERE (right(name,16)="Cleric Guildmast");
UPDATE npc_types SET lastname = "Warrior Guildmaster"
WHERE (right(name,17)="Warrior Guildmast");
UPDATE npc_types SET lastname = "Monk Guildmaster"
WHERE (right(name,14)="Monk Guildmast");
UPDATE npc_types SET lastname = "Paladin Guildmaster"
WHERE (right(name,17)="Paladin Guildmast");
UPDATE npc_types SET lastname = "ShadowKnight Guildmaster"
WHERE (right(name,23)="Shadow Knight Guildmast");
UPDATE npc_types SET lastname = "Ranger Guildmaster"
WHERE (right(name,16)="Ranger Guildmast");
UPDATE npc_types SET lastname = "Rogue Guildmaster"
WHERE (right(name,15)="Rogue Guildmast");
UPDATE npc_types SET lastname = "Beastlord Guildmaster"
WHERE (right(name,19)="BeastLord Guildmast");
UPDATE npc_types SET lastname = "Berserker Guildmaster"
WHERE (right(name,19)="Berserker Guildmast");
UPDATE npc_types SET lastname = "Wizard Guildmaster"
WHERE (right(name,16)="Wizard Guildmast");
UPDATE npc_types SET lastname = "Necromancer Guildmaster"
WHERE (right(name,21)="Necromancer Guildmast");
UPDATE npc_types SET lastname = "Magician Guildmaster"
WHERE (right(name,18)="Magician Guildmast");
UPDATE npc_types SET lastname = "Enchanter Guildmaster"
WHERE (right(name,19)="Enchanter Guildmast");
next here is some sql code that will insert "Class Spell Merchant" into the last name field of the database where class = the actual class
UPDATE npc_types SET lastname = "Shaman Spell Merchant"
WHERE (right(name,11)="Shaman Spel");
UPDATE npc_types SET lastname = "Druid Spell Merchant"
WHERE (right(name,10)="Druid Spel");
UPDATE npc_types SET lastname = "Cleric Spell Merchant"
WHERE (right(name,11)="Cleric Spel");
UPDATE npc_types SET lastname = "Warrior Spell Merchant"
WHERE (right(name,12)="Warrior Spel");
UPDATE npc_types SET lastname = "Monk Spell Merchant"
WHERE (right(name,9)="Monk Spel");
UPDATE npc_types SET lastname = "Paladin Spell Merchant"
WHERE (right(name,12)="Paladin Spel");
UPDATE npc_types SET lastname = "ShadowKnight Spell Merchant"
WHERE (right(name,18)="Shadow Knight Spel");
UPDATE npc_types SET lastname = "Ranger Spell Merchant"
WHERE (right(name,11)="Ranger Spel");
UPDATE npc_types SET lastname = "Rogue Spell Merchant"
WHERE (right(name,10)="Rogue Spel");
UPDATE npc_types SET lastname = "Beastlord Spell Merchant"
WHERE (right(name,14)="BeastLord Spel");
UPDATE npc_types SET lastname = "Berserker Spell Merchant"
WHERE (right(name,14)="Berserker Spel");
UPDATE npc_types SET lastname = "Wizard Spell Merchant"
WHERE (right(name,11)="Wizard Spel");
UPDATE npc_types SET lastname = "Necromancer Spell Merchant"
WHERE (right(name,16)="Necromancer Spel");
UPDATE npc_types SET lastname = "Magician Spell Merchant"
WHERE (right(name,13)="Magician Spel");
UPDATE npc_types SET lastname = "Enchanter Spell Merchant"
WHERE (right(name,14)="Enchanter Spel");
and finally here is some sql code to insert "####### Supplies" into the lastname field were ####### equals brewing, baking etc etc etc.
UPDATE npc_types SET lastname = "Adventure Recruiter"
WHERE (right(name,17)="Adventure Recruit");
UPDATE npc_types SET lastname = "Adventure Merchant"
WHERE (right(name,16)="Adventure Mercha");
UPDATE npc_types SET lastname = "Raid Recruiter"
WHERE (right(name,12)="Raid Recruit");
UPDATE npc_types SET lastname = "Baking Supplies"
WHERE (right(name,13)="Baking Suppli");
UPDATE npc_types SET lastname = "Brewing Supplies"
WHERE (right(name,14)="Brewing Suppli");
UPDATE npc_types SET lastname = "Magician Supplies"
WHERE (right(name,15)="Magician Suppli");
UPDATE npc_types SET lastname = "Wizard Supplies"
WHERE (right(name,13)="Wizard Suppli");
UPDATE npc_types SET lastname = "Enchanter Supplies"
WHERE (right(name,16)="Enchanter Suppli");
UPDATE npc_types SET lastname = "Fishing Supplies"
WHERE (right(name,14)="Fishing Suppli");
UPDATE npc_types SET lastname = "Necromancer Supplies"
WHERE (right(name,18)="Necromancer Suppli");
UPDATE npc_types SET lastname = "Tinkering Supplies"
WHERE (right(name,16)="Tinkering Suppli");
UPDATE npc_types SET lastname = "Tribute Master"
WHERE (right(name,12)="Tribute Mast");
UPDATE npc_types SET lastname = "Poison Supplies"
WHERE (right(name,13)="Poison Suppli");
UPDATE npc_types SET lastname = "Soulbinder"
WHERE (right(name,8)="Soulbind");
UPDATE npc_types SET lastname = "Spell Components"
WHERE (right(name,14)="Spell Componen");
UPDATE npc_types SET lastname = "Dye Supplies"
WHERE (right(name,10)="Dye Suppli");