Core/Script: Code style and remove unused core.
Signed-off-by: Gyx <[email protected]>
This commit is contained in:
@@ -52,7 +52,7 @@ class npc_henry_stern : public CreatureScript
|
||||
public:
|
||||
npc_henry_stern() : CreatureScript("npc_henry_stern") { }
|
||||
|
||||
bool OnGossipSelect (Player* player, Creature* creature, uint32 /*sender*/, uint32 action)
|
||||
bool OnGossipSelect(Player* player, Creature* creature, uint32 /*sender*/, uint32 action)
|
||||
{
|
||||
player->PlayerTalkClass->ClearMenus();
|
||||
if (action == GOSSIP_ACTION_INFO_DEF + 1)
|
||||
@@ -70,7 +70,7 @@ public:
|
||||
return true;
|
||||
}
|
||||
|
||||
bool OnGossipHello (Player* player, Creature* creature)
|
||||
bool OnGossipHello(Player* player, Creature* creature)
|
||||
{
|
||||
if (player->GetBaseSkillValue(SKILL_COOKING) >= 175 && !player->HasSpell(SPELL_GOLDTHORN_TEA))
|
||||
player->ADD_GOSSIP_ITEM(GOSSIP_ICON_CHAT, GOSSIP_ITEM_TEA, GOSSIP_SENDER_MAIN, GOSSIP_ACTION_INFO_DEF + 1);
|
||||
@@ -81,7 +81,6 @@ public:
|
||||
player->SEND_GOSSIP_MENU(player->GetGossipTextId(creature), creature->GetGUID());
|
||||
return true;
|
||||
}
|
||||
|
||||
};
|
||||
|
||||
/*######
|
||||
|
||||
@@ -399,9 +399,9 @@ public:
|
||||
|
||||
enum
|
||||
{
|
||||
ZOMBIE = 7286,
|
||||
DEAD_HERO = 7276,
|
||||
ZOMBIE_CHANCE = 65,
|
||||
ZOMBIE = 7286,
|
||||
DEAD_HERO = 7276,
|
||||
ZOMBIE_CHANCE = 65,
|
||||
DEAD_HERO_CHANCE = 10
|
||||
};
|
||||
|
||||
@@ -419,13 +419,12 @@ public:
|
||||
if (randomchance < ZOMBIE_CHANCE)
|
||||
go->SummonCreature(ZOMBIE, go->GetPositionX(), go->GetPositionY(), go->GetPositionZ(), 0, TEMPSUMMON_CORPSE_TIMED_DESPAWN, 30000);
|
||||
else
|
||||
if ((randomchance-ZOMBIE_CHANCE) < DEAD_HERO_CHANCE)
|
||||
if ((randomchance - ZOMBIE_CHANCE) < DEAD_HERO_CHANCE)
|
||||
go->SummonCreature(DEAD_HERO, go->GetPositionX(), go->GetPositionY(), go->GetPositionZ(), 0, TEMPSUMMON_CORPSE_TIMED_DESPAWN, 30000);
|
||||
}
|
||||
go->AddUse();
|
||||
return false;
|
||||
}
|
||||
|
||||
};
|
||||
|
||||
/*######
|
||||
|
||||
@@ -602,7 +602,7 @@ public:
|
||||
ravager->AI()->AttackStart(player);
|
||||
}
|
||||
}
|
||||
return true ;
|
||||
return true;
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
@@ -277,7 +277,6 @@ public:
|
||||
TEMPSUMMON_TIMED_OR_DEAD_DESPAWN, 60000);
|
||||
}
|
||||
};
|
||||
|
||||
};
|
||||
|
||||
/*#####
|
||||
@@ -316,6 +315,7 @@ public:
|
||||
{
|
||||
if (player->GetQuestStatus(QUEST_SCOOP) == QUEST_STATUS_INCOMPLETE)
|
||||
player->ADD_GOSSIP_ITEM(GOSSIP_ICON_CHAT, GOSSIP_P, GOSSIP_SENDER_MAIN, GOSSIP_ACTION_INFO_DEF+1);
|
||||
|
||||
player->SEND_GOSSIP_MENU(738, creature->GetGUID());
|
||||
|
||||
return true;
|
||||
@@ -410,7 +410,6 @@ public:
|
||||
|
||||
bool OnGossipHello(Player* player, GameObject* go)
|
||||
{
|
||||
|
||||
if (player->GetQuestStatus(5151) == QUEST_STATUS_INCOMPLETE)
|
||||
{
|
||||
if (Creature* panther = go->FindNearestCreature(ENRAGED_PANTHER, 5, true))
|
||||
@@ -421,7 +420,7 @@ public:
|
||||
}
|
||||
}
|
||||
|
||||
return true ;
|
||||
return true;
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
@@ -161,12 +161,12 @@ public:
|
||||
{
|
||||
player->ADD_GOSSIP_ITEM(GOSSIP_ICON_CHAT, GOSSIP_HWDM, GOSSIP_SENDER_MAIN, GOSSIP_ACTION_INFO_DEF+1);
|
||||
player->SEND_GOSSIP_MENU(3377, creature->GetGUID());
|
||||
}else
|
||||
}
|
||||
else
|
||||
player->SEND_GOSSIP_MENU(3375, creature->GetGUID());
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
};
|
||||
|
||||
void AddSC_winterspring()
|
||||
|
||||
Reference in New Issue
Block a user