Scripts/Oculus: Fixed issues in scripts after recent changes in Oculus.
Signed-off-by: Manuel <[email protected]>
This commit is contained in:
@@ -70,7 +70,7 @@ public:
|
||||
|
||||
void OnPlayerEnter(Player* player)
|
||||
{
|
||||
if (GetData(DATA_DRAKOS_EVENT) == DONE && GetData(DATA_VAROS_EVENT) != DONE)
|
||||
if (GetBossState(DATA_DRAKOS_EVENT) == DONE && GetBossState(DATA_VAROS_EVENT) != DONE)
|
||||
{
|
||||
player->SendUpdateWorldState(WORLD_STATE_CENTRIFUGE_CONSTRUCT_SHOW,1);
|
||||
player->SendUpdateWorldState(WORLD_STATE_CENTRIFUGE_CONSTRUCT_AMOUNT,centrifugueConstructCounter);
|
||||
@@ -122,7 +122,7 @@ public:
|
||||
{
|
||||
if (go->GetEntry() == GO_DRAGON_CAGE_DOOR)
|
||||
{
|
||||
if (GetData(DATA_DRAKOS_EVENT) == DONE)
|
||||
if (GetBossState(DATA_DRAKOS_EVENT) == DONE)
|
||||
go->SetGoState(GO_STATE_ACTIVE);
|
||||
else
|
||||
go->SetGoState(GO_STATE_READY);
|
||||
|
||||
@@ -155,15 +155,18 @@ public:
|
||||
return true;
|
||||
}
|
||||
|
||||
bool OnGossipHello(Player* pPlayer, Creature* pCreature)
|
||||
bool OnGossipHello(Player* player, Creature* creature)
|
||||
{
|
||||
if (pCreature->isQuestGiver())
|
||||
pPlayer->PrepareQuestMenu(pCreature->GetGUID());
|
||||
if (creature->isQuestGiver())
|
||||
player->PrepareQuestMenu(creature->GetGUID());
|
||||
|
||||
if (pCreature->GetInstanceScript()->GetData(DATA_DRAKOS_EVENT) == DONE)
|
||||
if (InstanceScript* instance = creature->GetInstanceScript())
|
||||
{
|
||||
pPlayer->ADD_GOSSIP_ITEM(GOSSIP_ICON_CHAT, GOSSIP_ITEM_DRAKES, GOSSIP_SENDER_MAIN, GOSSIP_ACTION_INFO_DEF + 1);
|
||||
pPlayer->SEND_GOSSIP_MENU(GOSSIP_TEXTID_DRAKES, pCreature->GetGUID());
|
||||
if (instance->GetBossState(DATA_DRAKOS_EVENT) == DONE)
|
||||
{
|
||||
player->ADD_GOSSIP_ITEM(GOSSIP_ICON_CHAT, GOSSIP_ITEM_DRAKES, GOSSIP_SENDER_MAIN, GOSSIP_ACTION_INFO_DEF + 1);
|
||||
player->SEND_GOSSIP_MENU(GOSSIP_TEXTID_DRAKES, creature->GetGUID());
|
||||
}
|
||||
}
|
||||
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user