rendered paste body#include "StdAfx.h"
#include "Setup.h"
class Auber_Exo : public GameObjectAIScript
{
public:
Auber_Exo(GameObject* goinstance) : GameObjectAIScript(goinstance) {}
void OnActivate(Player * pPlayer)
{
pPlayer->SafeTeleport(530, 0, -4271.2, -11340.5, 6.4, 1);
}
static GameObjectAIScript *Create(GameObject * GO) { return new Auber_Exo(GO); }
};
GameObjectAIScript * create_go(GameObject * GO) { return new Auber_Exo(GO); }
class Auber_Menet : public GameObjectAIScript
{
public:
Auber_Menet(GameObject* goinstance) : GameObjectAIScript(goinstance) {}
void OnActivate(Player * pPlayer)
{
pPlayer->SafeTeleport(0, 0, -3770.8, -741.0, 8.1, 1);
}
static GameObjectAIScript *Create(GameObject * GO) { return new Auber_Menet(GO); }
};
GameObjectAIScript * create_go2(GameObject * GO) { return new Auber_Menet(GO); }
class Auber_Teldra : public GameObjectAIScript
{
public:
Auber_Teldra(GameObject* goinstance) : GameObjectAIScript(goinstance) {}
void OnActivate(Player * pPlayer)
{
pPlayer->SafeTeleport(1, 0, 8552.6, 1016.3, 6.5, 1);
}
static GameObjectAIScript *Create(GameObject * GO) { return new Auber_Teldra(GO); }
};
GameObjectAIScript * create_go3(GameObject * GO) { return new Auber_Teldra(GO); }
class BB_ratchet: public GameObjectAIScript
{
public:
BB_ratchet(GameObject* goinstance) : GameObjectAIScript(goinstance) {}
void OnActivate(Player * pPlayer)
{
pPlayer->SafeTeleport(1, 0, -989.4, -3828.7, 6.4, 1);
}
static GameObjectAIScript *Create(GameObject * GO) { return new BB_ratchet(GO); }
};
GameObjectAIScript * create_go4(GameObject * GO) { return new BB_ratchet(GO); }
class Exo_Auber: public GameObjectAIScript
{
public:
Exo_Auber(GameObject* goinstance) : GameObjectAIScript(goinstance) {}
void OnActivate(Player * pPlayer)
{
pPlayer->SafeTeleport(1, 0, 6499.8, 795.6, 7.9, 1);
}
static GameObjectAIScript *Create(GameObject * GO) { return new Exo_Auber(GO); }
};
GameObjectAIScript * create_go5(GameObject * GO) { return new Exo_Auber(GO); }
class Forgo_Feat: public GameObjectAIScript
{
public:
Forgo_Feat(GameObject* goinstance) : GameObjectAIScript(goinstance) {}
void OnActivate(Player * pPlayer)
{
pPlayer->SafeTeleport(1, 0, -4218.9, 3292.0, 4.0, 1);
}
static GameObjectAIScript *Create(GameObject * GO) { return new Forgo_Feat(GO); }
};
GameObjectAIScript * create_go6(GameObject * GO) { return new Forgo_Feat(GO); }
class Forgo_Feat2: public GameObjectAIScript
{
public:
Forgo_Feat2(GameObject* goinstance) : GameObjectAIScript(goinstance) {}
void OnActivate(Player * pPlayer)
{
pPlayer->SafeTeleport(1, 0, -4218.9, 3292.0, 4.0, 1);
}
static GameObjectAIScript *Create(GameObject * GO) { return new Forgo_Feat2(GO); }
};
GameObjectAIScript * create_go7(GameObject * GO) { return new Forgo_Feat2(GO); }
class FRW_DOWN: public GameObjectAIScript
{
public:
FRW_DOWN(GameObject* goinstance) : GameObjectAIScript(goinstance) {}
void OnActivate(Player * pPlayer)
{
pPlayer->SafeTeleport(1, 0, -5401.0, -2513.4, 40.6, 1);
}
static GameObjectAIScript *Create(GameObject * GO) { return new FRW_DOWN(GO); }
};
GameObjectAIScript * create_go8(GameObject * GO) { return new FRW_DOWN(GO); }
class FRW_UP: public GameObjectAIScript
{
public:
FRW_UP(GameObject* goinstance) : GameObjectAIScript(goinstance) {}
void OnActivate(Player * pPlayer)
{
pPlayer->SafeTeleport(1, 0, -5408.0, -2494.0, 89.0, 1);
}
static GameObjectAIScript *Create(GameObject * GO) { return new FRW_UP(GO); }
};
GameObjectAIScript * create_go45(GameObject * GO) { return new FRW_UP(GO); }
class GROM_ORG: public GameObjectAIScript
{
public:
GROM_ORG(GameObject* goinstance) : GameObjectAIScript(goinstance) {}
void OnActivate(Player * pPlayer)
{
pPlayer->SafeTeleport(1, 0, 1353.9, -4642.5, 53.6, 1);
}
static GameObjectAIScript *Create(GameObject * GO) { return new GROM_ORG(GO); }
};
GameObjectAIScript * create_go9(GameObject * GO) { return new GROM_ORG(GO); }
class GROM_UND: public GameObjectAIScript
{
public:
GROM_UND(GameObject* goinstance) : GameObjectAIScript(goinstance) {}
void OnActivate(Player * pPlayer)
{
pPlayer->SafeTeleport(1, 0, 2664.0, 288.5, 97.1, 1);
}
static GameObjectAIScript *Create(GameObject * GO) { return new GROM_UND(GO); }
};
GameObjectAIScript * create_go10(GameObject * GO) { return new GROM_UND(GO); }
class guilddoor: public GameObjectAIScript
{
public:
guilddoor(GameObject* goinstance) : GameObjectAIScript(goinstance) {}
void OnActivate(Player * pPlayer)
{
if(pPlayer->GetItemInterface()->GetItemCount(50500, 1));
{
pPlayer->SafeTeleport(0, 0, -9630.1, 674.3, 37.16, 1);
pPlayer->PlaySoundToSet(11720);
}
pPlayer->SendChatMessage(CHAT_MSG_MONSTER_SAY, LANG_UNIVERSAL, "This Place Is only for Members of The Order of The Silver Hand");
pPlayer->BroadcastMessage("This Place Is only for Members of The Order of The Silver Hand");
}
static GameObjectAIScript *Create(GameObject * GO) { return new guilddoor(GO); }
};
GameObjectAIScript * create_go11(GameObject * GO) { return new guilddoor(GO); }
class guilddoor2: public GameObjectAIScript
{
public:
guilddoor2(GameObject* goinstance) : GameObjectAIScript(goinstance) {}
void OnActivate(Player * pPlayer)
{
pPlayer->SafeTeleport(1, 0, -9643.2, 679.3, 37.5, 1);
}
static GameObjectAIScript *Create(GameObject * GO) { return new guilddoor2(GO); }
};
GameObjectAIScript * create_go12(GameObject * GO) { return new guilddoor2(GO); }
class Menet_Auber: public GameObjectAIScript
{
public:
Menet_Auber(GameObject* goinstance) : GameObjectAIScript(goinstance) {}
void OnActivate(Player * pPlayer)
{
pPlayer->SafeTeleport(1, 0, 6499.8, 795.6, 7.9, 1);
}
static GameObjectAIScript *Create(GameObject * GO) { return new Menet_Auber(GO); }
};
GameObjectAIScript * create_go13(GameObject * GO) { return new Menet_Auber(GO); }
class Menet_Thera: public GameObjectAIScript
{
public:
Menet_Thera(GameObject* goinstance) : GameObjectAIScript(goinstance) {}
void OnActivate(Player * pPlayer)
{
pPlayer->SafeTeleport(1, 0, 3991.2, -4735.0, 5.7, 1);
}
static GameObjectAIScript *Create(GameObject * GO) { return new Menet_Thera(GO); }
};
GameObjectAIScript * create_go14(GameObject * GO) { return new Menet_Thera(GO); }
class Org_grom: public GameObjectAIScript
{
public:
Org_grom(GameObject* goinstance) : GameObjectAIScript(goinstance) {}
void OnActivate(Player * pPlayer)
{
pPlayer->SafeTeleport(0, 0, -12417.8, 208.3, 31.4, 1);
}
static GameObjectAIScript *Create(GameObject * GO) { return new Org_grom(GO); }
};
GameObjectAIScript * create_go15(GameObject * GO) { return new Org_grom(GO); }
class Org_grom2: public GameObjectAIScript
{
public:
Org_grom2(GameObject* goinstance) : GameObjectAIScript(goinstance) {}
void OnActivate(Player * pPlayer)
{
pPlayer->SafeTeleport(0, 0, 2664.0, 288.5, 97.1, 1);
}
static GameObjectAIScript *Create(GameObject * GO) { return new Org_grom2(GO); }
};
GameObjectAIScript * create_go16(GameObject * GO) { return new Org_grom2(GO); }
class Racthet_BB: public GameObjectAIScript
{
public:
Racthet_BB(GameObject* goinstance) : GameObjectAIScript(goinstance) {}
void OnActivate(Player * pPlayer)
{
pPlayer->SafeTeleport(0, 0, -14280.0, 548.4, 9.7, 1);
}
static GameObjectAIScript *Create(GameObject * GO) { return new Racthet_BB(GO); }
};
GameObjectAIScript * create_go17(GameObject * GO) { return new Racthet_BB(GO); }
class Teldra_Auber: public GameObjectAIScript
{
public:
Teldra_Auber(GameObject* goinstance) : GameObjectAIScript(goinstance) {}
void OnActivate(Player * pPlayer)
{
pPlayer->SafeTeleport(1, 0, 6499.8, 795.6, 7.9, 1);
}
static GameObjectAIScript *Create(GameObject * GO) { return new Teldra_Auber(GO); }
};
GameObjectAIScript * create_go18(GameObject * GO) { return new Teldra_Auber(GO); }
class Thera_Menet: public GameObjectAIScript
{
public:
Thera_Menet(GameObject* goinstance) : GameObjectAIScript(goinstance) {}
void OnActivate(Player * pPlayer)
{
pPlayer->SafeTeleport(0, 0, -3770.8, -741.0, 8.1, 1);
}
static GameObjectAIScript *Create(GameObject * GO) { return new Thera_Menet(GO); }
};
GameObjectAIScript * create_go19(GameObject * GO) { return new Thera_Menet(GO); }
class druid: public GameObjectAIScript
{
public:
druid(GameObject* goinstance) : GameObjectAIScript(goinstance) {}
void OnActivate(Player * pPlayer)
{
if(pPlayer->getClass() == 11);
{
pPlayer->SafeTeleport(1, 0, 7996.0, -2663.0, 512.0, 1);
}
pPlayer->SendChatMessage(CHAT_MSG_MONSTER_SAY, LANG_UNIVERSAL, "This Portal Stone is only meant for Druids!");
pPlayer->BroadcastMessage("This Portal Stone is only meant for Druids!");
}
static GameObjectAIScript *Create(GameObject * GO) { return new druid(GO); }
};
GameObjectAIScript * create_go20(GameObject * GO) { return new druid(GO); }
class To_Rama: public GameObjectAIScript
{
public:
To_Rama(GameObject* goinstance) : GameObjectAIScript(goinstance) {}
void OnActivate(Player * pPlayer)
{
pPlayer->SafeTeleport(0, 0, -4197.0, -1401.8, 202.0, 1);
}
static GameObjectAIScript *Create(GameObject * GO) { return new To_Rama(GO); }
};
GameObjectAIScript * create_go21(GameObject * GO) { return new To_Rama(GO); }
class To_shat: public GameObjectAIScript
{
public:
To_shat(GameObject* goinstance) : GameObjectAIScript(goinstance) {}
void OnActivate(Player * pPlayer)
{
if(pPlayer->getLevel() >= 58)
{
pPlayer->SafeTeleport(530, 0, -1863.03, 4998.05, -21.1847, 1);
}
else
{
pPlayer->SendChatMessage(CHAT_MSG_MONSTER_SAY, LANG_UNIVERSAL, "You must be lvl 58 or higher to use this aircraft! In the Pond you can find aircrafts to the lower level cities.");
pPlayer->BroadcastMessage("You must be lvl 58 or higher to use this aircraft! In the Pond you can find aircrafts to the lower level cities.");
}
}
static GameObjectAIScript *Create(GameObject * GO) { return new To_shat(GO); }
};
GameObjectAIScript * create_go22(GameObject * GO) { return new To_shat(GO); }
class Und_Grom: public GameObjectAIScript
{
public:
Und_Grom(GameObject* goinstance) : GameObjectAIScript(goinstance) {}
void OnActivate(Player * pPlayer)
{
pPlayer->SafeTeleport(0, 0, -12417.8, 208.3, 31.4, 1);
}
static GameObjectAIScript *Create(GameObject * GO) { return new Und_Grom(GO); }
};
GameObjectAIScript * create_go23(GameObject * GO) { return new Und_Grom(GO); }
class Und_Org: public GameObjectAIScript
{
public:
Und_Org(GameObject* goinstance) : GameObjectAIScript(goinstance) {}
void OnActivate(Player * pPlayer)
{
pPlayer->SafeTeleport(1, 0, 1353.9, -4642.5, 53.6, 1);
}
static GameObjectAIScript *Create(GameObject * GO) { return new Und_Org(GO); }
};
GameObjectAIScript * create_go24(GameObject * GO) { return new Und_Org(GO); }
void SetupSCRIPT(ScriptMgr * mgr)
{
mgr->register_gameobject_script(200017, &Und_Grom::Create);
mgr->register_gameobject_script(200013, &Und_Org::Create);
mgr->register_gameobject_script(200045, &To_shat::Create);
mgr->register_gameobject_script(200020, &To_Rama::Create);
mgr->register_gameobject_script(200046, &druid::Create);
mgr->register_gameobject_script(200009, &Thera_Menet::Create);
mgr->register_gameobject_script(200004, &Teldra_Auber::Create);
mgr->register_gameobject_script(200000, &Racthet_BB::Create);
mgr->register_gameobject_script(200012, &Org_grom2::Create);
mgr->register_gameobject_script(200015, &Org_grom::Create);
mgr->register_gameobject_script(200007, &Menet_Auber::Create);
mgr->register_gameobject_script(200008, &Menet_Thera::Create);
mgr->register_gameobject_script(200101, &guilddoor2::Create);
mgr->register_gameobject_script(200100, &guilddoor::Create);
mgr->register_gameobject_script(200016, &GROM_UND::Create);
mgr->register_gameobject_script(200014, &GROM_ORG::Create);
mgr->register_gameobject_script(200018, &FRW_UP::Create);
mgr->register_gameobject_script(200019, &FRW_DOWN::Create);
mgr->register_gameobject_script(200001, &BB_ratchet::Create);
mgr->register_gameobject_script(200002, &Exo_Auber::Create);
mgr->register_gameobject_script(200003, &Auber_Exo::Create);
mgr->register_gameobject_script(200006, &Auber_Menet::Create);
mgr->register_gameobject_script(200005, &Auber_Teldra::Create);
mgr->register_gameobject_script(200010, &Forgo_Feat::Create);
mgr->register_gameobject_script(200011, &Forgo_Feat2::Create);
}