aboutsummaryrefslogtreecommitdiff
path: root/src/server/scripts/World
diff options
context:
space:
mode:
authorShauren <shauren.trinity@gmail.com>2011-03-04 23:53:11 +0100
committerShauren <shauren.trinity@gmail.com>2011-03-04 23:53:11 +0100
commit36f848a4c222828cafb50f87790219da14245a03 (patch)
tree82b99d3949a3a38761aee9b2a51a825441ee2a2a /src/server/scripts/World
parent22cd262e6ced18d7b98c4ef0635aff5d8a7155b2 (diff)
Scripts/Icecrown Citadel: Only one Mutated Abomination can exist during Professor Putricide encounter
Scripts/Spells: Added blizzlike error messages for certain spells Scripts/Items: Removed obsolete scripts
Diffstat (limited to 'src/server/scripts/World')
-rw-r--r--src/server/scripts/World/item_scripts.cpp86
1 files changed, 11 insertions, 75 deletions
diff --git a/src/server/scripts/World/item_scripts.cpp b/src/server/scripts/World/item_scripts.cpp
index c37461fdaa0..71c3a1661ed 100644
--- a/src/server/scripts/World/item_scripts.cpp
+++ b/src/server/scripts/World/item_scripts.cpp
@@ -141,32 +141,6 @@ public:
};
/*#####
-# item_flying_machine
-#####*/
-
-class item_flying_machine : public ItemScript
-{
-public:
- item_flying_machine() : ItemScript("item_flying_machine") { }
-
- bool OnUse(Player* pPlayer, Item* pItem, SpellCastTargets const& /*targets*/)
- {
- uint32 itemId = pItem->GetEntry();
- if (itemId == 34060)
- if (pPlayer->GetBaseSkillValue(SKILL_RIDING) >= 225)
- return false;
-
- if (itemId == 34061)
- if (pPlayer->GetBaseSkillValue(SKILL_RIDING) == 300)
- return false;
-
- sLog->outDebug(LOG_FILTER_TSCR, "TSCR: Player attempt to use item %u, but did not meet riding requirement",itemId);
- pPlayer->SendEquipError(EQUIP_ERR_CANT_EQUIP_SKILL,pItem,NULL);
- return true;
- }
-};
-
-/*#####
# item_gor_dreks_ointment
#####*/
@@ -247,42 +221,6 @@ public:
};
/*#####
-# item_harvesters_gift
-#####*/
-#define GHOULS 28845
-
-class item_harvesters_gift : public ItemScript
-{
-public:
- item_harvesters_gift() : ItemScript("item_harvesters_gift") { }
-
- bool OnUse(Player* pPlayer, Item* /*pItem*/, SpellCastTargets const& /*targets*/)
- {
- std::list<Creature*> MinionList;
- pPlayer->GetAllMinionsByEntry(MinionList,GHOULS);
-
- if (pPlayer->GetQuestStatus(12698) == QUEST_STATUS_INCOMPLETE)
- {
- if (!MinionList.empty())
- {
- if (MinionList.size() < 5)
- return false;
- else
- {
- // This should be sent to the player as red text.
- // TODO: Text should be moved to DB
- pPlayer->Say("You have created enough ghouls. Return to Gothik the Harvester at Death's Breach.", LANG_UNIVERSAL);
- return true;
- }
- }
- else
- return false;
- }
- return true;
- }
-};
-
-/*#####
# item_pile_fake_furs
#####*/
@@ -512,18 +450,16 @@ public:
void AddSC_item_scripts()
{
- new item_only_for_flight;
- new item_draenei_fishing_net;
- new item_nether_wraith_beacon;
- new item_flying_machine;
- new item_gor_dreks_ointment;
- new item_incendiary_explosives;
- new item_mysterious_egg;
- new item_disgusting_jar;
- new item_harvesters_gift;
- new item_pile_fake_furs;
- new item_petrov_cluster_bombs;
- new item_dehta_trap_smasher;
- new item_trident_of_nazjan;
+ new item_only_for_flight();
+ new item_draenei_fishing_net();
+ new item_nether_wraith_beacon();
+ new item_gor_dreks_ointment();
+ new item_incendiary_explosives();
+ new item_mysterious_egg();
+ new item_disgusting_jar();
+ new item_pile_fake_furs();
+ new item_petrov_cluster_bombs();
+ new item_dehta_trap_smasher();
+ new item_trident_of_nazjan();
new item_captured_frog();
}