mirror of
https://gitcode.com/GitHub_Trending/az/azerothcore-wotlk.git
synced 2026-07-11 03:13:10 +00:00
less duplicate items
This commit is contained in:
@@ -3,7 +3,17 @@ DELETE FROM `creature_template` WHERE (entry = 100000);
|
||||
INSERT INTO `creature_template` (`entry`, `difficulty_entry_1`, `difficulty_entry_2`, `difficulty_entry_3`, `KillCredit1`, `KillCredit2`, `modelid1`, `modelid2`, `modelid3`, `modelid4`, `name`, `subname`, `IconName`, `gossip_menu_id`, `minlevel`, `maxlevel`, `exp`, `faction`, `npcflag`, `speed_walk`, `speed_run`, `scale`, `rank`, `dmgschool`, `BaseAttackTime`, `RangeAttackTime`, `unit_class`, `unit_flags`, `unit_flags2`, `dynamicflags`, `family`, `trainer_type`, `trainer_spell`, `trainer_class`, `trainer_race`, `type`, `type_flags`, `lootid`, `pickpocketloot`, `skinloot`, `resistance1`, `resistance2`, `resistance3`, `resistance4`, `resistance5`, `resistance6`, `spell1`, `spell2`, `spell3`, `spell4`, `spell5`, `spell6`, `spell7`, `spell8`, `PetSpellDataId`, `VehicleId`, `mingold`, `maxgold`, `AIName`, `MovementType`, `InhabitType`, `HoverHeight`, `Health_mod`, `Mana_mod`, `Armor_mod`, `RacialLeader`, `movementId`, `RegenHealth`, `mechanic_immune_mask`, `flags_extra`, `ScriptName`, `VerifiedBuild`) VALUES
|
||||
(100000, 0, 0, 0, 0, 0, 23055, 0, 0, 0, 'Han\'al', 'Master Lorekeeper', NULL, 30000, 83, 83, 0, 2007, 3, 1.1, 1.5, 1.2, 1, 0, 0, 0, 8, 33536, 2048, 0, 0, 0, 0, 0, 0, 7, 32, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 'SmartAI', 0, 3, 0, 10, 10, 1, 0, 0, 1, 0, 2, 'npc_han_al', 12341);
|
||||
|
||||
-- VENDORS
|
||||
DELETE FROM npc_text WHERE ID IN (100000, 100001, 100002, 100003);
|
||||
INSERT INTO npc_text (ID, text0_0, text0_1, lang0, Prob0, em0_0) VALUES
|
||||
(100000, "È bello che tu voglia aiutarmi $N, la storia dev'essere scrupolosamente registrata... nulla deve andar perso!", 0, 0,100, 0),
|
||||
(100001, "Hai già delle missioni da completare, ritorna quando sarai riuscito a portarle a termine o quando avrai rinunciato...\nNonostante il fallimento potrei avere ancora bisogno di te, $R", 0, 0,100, 0),
|
||||
(100002, "Grazie del tuo aiuto, $C, per oggi mi hai aiutato a sufficienza!\nRitorna domani.", 0, 0,100, 0),
|
||||
(100003, "Hai già molto lavoro da fare, $N. Non vorrei che ti affaticassi troppo... torna da me quando avrai concluso un po' del tuo lavoro.", 0, 0,100, 0);
|
||||
|
||||
UPDATE `item_template` SET `Flags` = 64, `ScriptName` = 'item_azth_hearthstone_loot_sack', stackable = 1, `spellid_1` = 36177, maxcount = 5 WHERE (entry = 32558);
|
||||
|
||||
|
||||
-- VENDORS (DEBUG)
|
||||
-- NEUTRAL
|
||||
DELETE FROM `creature_template` WHERE (entry = 100002);
|
||||
INSERT INTO `creature_template` (`entry`, `difficulty_entry_1`, `difficulty_entry_2`, `difficulty_entry_3`, `KillCredit1`, `KillCredit2`, `modelid1`, `modelid2`, `modelid3`, `modelid4`, `name`, `subname`, `IconName`, `gossip_menu_id`, `minlevel`, `maxlevel`, `exp`, `faction`, `npcflag`, `speed_walk`, `speed_run`, `scale`, `rank`, `dmgschool`, `BaseAttackTime`, `RangeAttackTime`, `unit_class`, `unit_flags`, `unit_flags2`, `dynamicflags`, `family`, `trainer_type`, `trainer_spell`, `trainer_class`, `trainer_race`, `type`, `type_flags`, `lootid`, `pickpocketloot`, `skinloot`, `resistance1`, `resistance2`, `resistance3`, `resistance4`, `resistance5`, `resistance6`, `spell1`, `spell2`, `spell3`, `spell4`, `spell5`, `spell6`, `spell7`, `spell8`, `PetSpellDataId`, `VehicleId`, `mingold`, `maxgold`, `AIName`, `MovementType`, `InhabitType`, `HoverHeight`, `Health_mod`, `Mana_mod`, `Armor_mod`, `RacialLeader`, `movementId`, `RegenHealth`, `mechanic_immune_mask`, `flags_extra`, `ScriptName`, `VerifiedBuild`) VALUES
|
||||
@@ -29,12 +39,6 @@ DELETE FROM `creature_template` WHERE (entry = 100006);
|
||||
INSERT INTO `creature_template` (`entry`, `difficulty_entry_1`, `difficulty_entry_2`, `difficulty_entry_3`, `KillCredit1`, `KillCredit2`, `modelid1`, `modelid2`, `modelid3`, `modelid4`, `name`, `subname`, `IconName`, `gossip_menu_id`, `minlevel`, `maxlevel`, `exp`, `faction`, `npcflag`, `speed_walk`, `speed_run`, `scale`, `rank`, `dmgschool`, `BaseAttackTime`, `RangeAttackTime`, `unit_class`, `unit_flags`, `unit_flags2`, `dynamicflags`, `family`, `trainer_type`, `trainer_spell`, `trainer_class`, `trainer_race`, `type`, `type_flags`, `lootid`, `pickpocketloot`, `skinloot`, `resistance1`, `resistance2`, `resistance3`, `resistance4`, `resistance5`, `resistance6`, `spell1`, `spell2`, `spell3`, `spell4`, `spell5`, `spell6`, `spell7`, `spell8`, `PetSpellDataId`, `VehicleId`, `mingold`, `maxgold`, `AIName`, `MovementType`, `InhabitType`, `HoverHeight`, `Health_mod`, `Mana_mod`, `Armor_mod`, `RacialLeader`, `movementId`, `RegenHealth`, `mechanic_immune_mask`, `flags_extra`, `ScriptName`, `VerifiedBuild`) VALUES
|
||||
(100006, 0, 0, 0, 0, 0, 22439, 0, 0, 0, 'Azth Exalted Vendor', 'AzerothShard', '', 0, 70, 70, 1, 35, 128, 1, 1.14286, 1, 0, 0, 2000, 2000, 1, 33555202, 2048, 0, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, '', 0, 1, 1, 4, 1, 1, 0, 0, 1, 0, 128, '', 12340);
|
||||
|
||||
-- vendor
|
||||
-- FULL `creature_template` of entry 100007
|
||||
-- DELETE FROM `creature_template` WHERE (entry = 100007);
|
||||
-- INSERT INTO `creature_template` (`entry`, `difficulty_entry_1`, `difficulty_entry_2`, `difficulty_entry_3`, `KillCredit1`, `KillCredit2`, `modelid1`, `modelid2`, `modelid3`, `modelid4`, `name`, `subname`, `IconName`, `gossip_menu_id`, `minlevel`, `maxlevel`, `exp`, `faction`, `npcflag`, `speed_walk`, `speed_run`, `scale`, `rank`, `dmgschool`, `BaseAttackTime`, `RangeAttackTime`, `unit_class`, `unit_flags`, `unit_flags2`, `dynamicflags`, `family`, `trainer_type`, `trainer_spell`, `trainer_class`, `trainer_race`, `type`, `type_flags`, `lootid`, `pickpocketloot`, `skinloot`, `resistance1`, `resistance2`, `resistance3`, `resistance4`, `resistance5`, `resistance6`, `spell1`, `spell2`, `spell3`, `spell4`, `spell5`, `spell6`, `spell7`, `spell8`, `PetSpellDataId`, `VehicleId`, `mingold`, `maxgold`, `AIName`, `MovementType`, `InhabitType`, `HoverHeight`, `Health_mod`, `Mana_mod`, `Armor_mod`, `RacialLeader`, `movementId`, `RegenHealth`, `mechanic_immune_mask`, `flags_extra`, `ScriptName`, `VerifiedBuild`) VALUES
|
||||
-- (100007, 0, 0, 0, 0, 0, 19707, 0, 0, 0, 'Halduron Brightwing', 'Ranger General', NULL, 0, 70, 70, 1, 1602, 129, 1, 1.14286, 1, 1, 0, 2000, 2000, 2, 32832, 2048, 0, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, '', 1, 3, 1, 100, 8, 1, 0, 0, 1, 0, 0, 'npc_azth_vendor', 12340);
|
||||
|
||||
UPDATE creature_template SET resistance2 = 0 WHERE entry = 100002;
|
||||
UPDATE creature_template SET resistance2 = 3000 WHERE entry = 100003;
|
||||
UPDATE creature_template SET resistance2 = 6000 WHERE entry = 100004;
|
||||
@@ -43,16 +47,8 @@ UPDATE creature_template SET resistance2 = 21000 WHERE entry = 100006;
|
||||
|
||||
UPDATE creature_template SET `npcflag` = 129, `unit_flags` = 768, `type_flags` = 134217728, `flags_extra` = 2, scriptname = "npc_azth_vendor", resistance1 = 32001, gossip_menu_id = 32001 WHERE entry IN (100002, 100003, 100004, 100005, 100006);
|
||||
|
||||
-- SELECT entry, resistance2 FROM creature_template WHERE entry >= 100002;
|
||||
|
||||
DELETE FROM npc_text WHERE ID IN (100000, 100001, 100002, 100003);
|
||||
INSERT INTO npc_text (ID, text0_0, text0_1, lang0, Prob0, em0_0) VALUES
|
||||
(100000, "È bello che tu voglia aiutarmi $N, la storia dev'essere scrupolosamente registrata... nulla deve andar perso!", 0, 0,100, 0),
|
||||
(100001, "Hai già delle missioni da completare, ritorna quando sarai riuscito a portarle a termine o quando avrai rinunciato...\nNonostante il fallimento potrei avere ancora bisogno di te, $R", 0, 0,100, 0),
|
||||
(100002, "Grazie del tuo aiuto, $C, per oggi mi hai aiutato a sufficienza!\nRitorna domani.", 0, 0,100, 0),
|
||||
(100003, "Hai già molto lavoro da fare, $N. Non vorrei che ti affaticassi troppo... torna da me quando avrai concluso un po' del tuo lavoro.", 0, 0,100, 0);
|
||||
|
||||
UPDATE `item_template` SET `Flags` = 64, `ScriptName` = 'item_azth_hearthstone_loot_sack', stackable = 1, `spellid_1` = 36177, maxcount = 5 WHERE (entry = 32558);
|
||||
-- END VENDORS DEBUG
|
||||
|
||||
-- DEBUG ONLY
|
||||
DELETE FROM npc_vendor WHERE entry IN (100002, 100003, 100004, 100005, 100006, 100007);
|
||||
|
||||
+3
-19
@@ -264,7 +264,7 @@ class item_azth_hearthstone_loot_sack : public ItemScript
|
||||
|
||||
while (i <= EVERYTHING)
|
||||
{
|
||||
srand(seed);
|
||||
//srand(seed);
|
||||
int quality = 0;
|
||||
quality = getQuality();
|
||||
uint32 id = 0;
|
||||
@@ -281,7 +281,7 @@ class item_azth_hearthstone_loot_sack : public ItemScript
|
||||
i = 1;
|
||||
while (i <= ONLY_COMMON)
|
||||
{
|
||||
srand(seed);
|
||||
//srand(seed + 3);
|
||||
int quality = 1;
|
||||
if (rand_chance() > 80)
|
||||
{
|
||||
@@ -302,7 +302,7 @@ class item_azth_hearthstone_loot_sack : public ItemScript
|
||||
i = 1;
|
||||
while (i <= NOT_COMMON)
|
||||
{
|
||||
srand(seed);
|
||||
//srand(seed + 4);
|
||||
int quality = 0;
|
||||
quality = getQuality();
|
||||
while (quality < 2)
|
||||
@@ -335,25 +335,9 @@ class item_azth_hearthstone_loot_sack : public ItemScript
|
||||
}
|
||||
};
|
||||
|
||||
class npc_azth_quest_taker : public CreatureScript
|
||||
{
|
||||
public:
|
||||
npc_azth_quest_taker() : CreatureScript("npc_azth_quest_taker") { }
|
||||
|
||||
bool OnQuestComplete(Player* player, Creature* creature, Quest const* quest)
|
||||
{
|
||||
uint32 low = PVE_LOWER_RANGE;
|
||||
uint32 up = PVE_UPPER_RANGE;
|
||||
if (quest->GetQuestId() >= low && quest->GetQuestId() < up)
|
||||
player->RewardReputation(player, 5.f);
|
||||
return true;
|
||||
}
|
||||
};
|
||||
|
||||
void AddSC_hearthstone()
|
||||
{
|
||||
new npc_han_al();
|
||||
new npc_azth_vendor();
|
||||
new item_azth_hearthstone_loot_sack();
|
||||
new npc_azth_quest_taker();
|
||||
}
|
||||
Reference in New Issue
Block a user