blackdragonsdg
04-20-2010, 11:58 PM
What's the configuration for the NPC banker, class and such? There was already one in the guildhall for me but when I click him it causes my client to crash.
Well I don't know about the crash part but the banker stuff I might can help with.
Banker = Class 40
Guild Banker = Class 66
Since examples tend to work better I exported the spawn data from the guild banker in the guild hall so here you go.
Guild Banker
INSERT INTO `spawnentry` (`spawngroupID`, `npcID`, `chance`) VALUES (46046, 345003, 100);
INSERT INTO `spawngroup` (`id`, `name`, `spawn_limit`, `dist`, `max_x`, `min_x`, `max_y`, `min_y`, `delay`) VALUES (46046, 'guildhall3450003', 0, 0, 0, 0, 0, 0, 0);
INSERT INTO `spawn2` (`id`, `spawngroupID`, `zone`, `version`, `x`, `y`, `z`, `heading`, `respawntime`, `variance`, `pathgrid`, `_condition`, `cond_value`, `enabled`) VALUES (57310, 46046, 'guildhall', 0, -37.000000, -4.000000, 4.125000, 20.000000, 640, 0, 0, 0, 1, 1);
INSERT INTO `npc_types` (`id`, `name`, `lastname`, `level`, `race`, `class`, `bodytype`, `hp`, `gender`, `texture`, `helmtexture`, `size`, `hp_regen_rate`, `mana_regen_rate`, `loottable_id`, `merchant_id`, `npc_spells_id`, `npc_faction_id`, `adventure_template_id`, `trap_template`, `mindmg`, `maxdmg`, `npcspecialattks`, `aggroradius`, `face`, `luclin_hairstyle`, `luclin_haircolor`, `luclin_eyecolor`, `luclin_eyecolor2`, `luclin_beardcolor`, `luclin_beard`, `drakkin_heritage`, `drakkin_tattoo`, `drakkin_details`, `armortint_id`, `armortint_red`, `armortint_green`, `armortint_blue`, `d_meele_texture1`, `d_meele_texture2`, `prim_melee_type`, `sec_melee_type`, `runspeed`, `MR`, `CR`, `DR`, `FR`, `PR`, `see_invis`, `see_invis_undead`, `qglobal`, `AC`, `npc_aggro`, `spawn_limit`, `attack_speed`, `findable`, `STR`, `STA`, `DEX`, `AGI`, `_INT`, `WIS`, `CHA`, `see_hide`, `see_improved_hide`, `trackable`, `isbot`, `exclude`, `ATK`, `Accuracy`, `slow_mitigation`, `version`, `maxlevel`, `scalerate`, `private_corpse`, `unique_spawn_by_name`) VALUES (345003, 'a_guild_treasurer', 'Guild Banker', 50, 1, 66, 1, 3750, 0, 11, 47, 6, 19, 19, 0, 0, 0, 0, 0, 0, 74, 200, '', 55, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 28, 28, 1.7, 41, 41, 41, 41, 41, 0, 1, 0, 1197, 0, 1, -15, 1, 191, 191, 191, 191, 191, 191, 191, 0, 0, 1, 0, 1, 0, 0, 0, 0, 0, 100, 0, 0);
As an example of a normal banker I used a custom banker I had created for Relic, The Artifact City, so here you go.
Normal Banker
INSERT INTO `spawnentry` VALUES (70295, 700295, 100);
INSERT INTO `spawngroup` VALUES (70295, '70295', 1, 0, 0, 0, 0, 0, 0);
INSERT INTO `spawn2` VALUES (700295, 70295, 'relic', 0, 343.200012, 1129.000000, -273.899994, 67.800003, 1200, 0, 0, 0, 1, 1);
INSERT INTO `npc_types` (`id`, `name`, `lastname`, `level`, `race`, `class`, `bodytype`, `hp`, `gender`, `texture`, `helmtexture`, `size`, `hp_regen_rate`, `mana_regen_rate`, `loottable_id`, `merchant_id`, `npc_spells_id`, `npc_faction_id`, `adventure_template_id`, `trap_template`, `mindmg`, `maxdmg`, `npcspecialattks`, `aggroradius`, `face`, `luclin_hairstyle`, `luclin_haircolor`, `luclin_eyecolor`, `luclin_eyecolor2`, `luclin_beardcolor`, `luclin_beard`, `drakkin_heritage`, `drakkin_tattoo`, `drakkin_details`, `armortint_id`, `armortint_red`, `armortint_green`, `armortint_blue`, `d_meele_texture1`, `d_meele_texture2`, `runspeed`, MR, CR, DR, FR, PR, `see_invis`, `see_invis_undead`, `qglobal`, AC, `npc_aggro`, `spawn_limit`, `attack_speed`, `findable`, STR, STA, DEX, AGI, _INT, WIS, CHA, `see_hide`, `see_improved_hide`, `trackable`, `isbot`, `exclude`, ATK, `Accuracy`, `slow_mitigation`, `version`, `maxlevel`, `scalerate`, `private_corpse`, `unique_spawn_by_name`) VALUES (700295, 'Relic Banker', '', 85, 1, 40, 19, 7500000, 2, 0, 0, 6, 500, 0, 0, 0, 0, 0, 0, 0, 50000, 75000, 'SRENCMIf', 75, 0, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 350, 350, 350, 350, 350, 1, 1, 1, 5000, 0, 1, -35, 0, 750, 750, 750, 750, 750, 750, 750, 1, 1, 0, 0, 1, 8000, 99, 0, 0, 0, 100, 0, 0);
Both examples are pulled from my database which is at rev 1395. I found that copying an existing banker or merchant then changing the zone and location data was much easier than creating one from scratch.
vBulletin® v3.8.11, Copyright ©2000-2025, vBulletin Solutions Inc.