class TwinIslands : public GameObjectAIScript { public: TwinIslands(GameObject* goinstance) : GameObjectAIScript(goinstance) {} void OnActivate(Player * pPlayer, Player *Plr) { if(Plr->GetItemInterface()->GetItemCount(11078, 1)) { pPlayer->SafeTeleport(1, 0, -11251.2, -4673.2, 16.2, 4.724170); // teleports you } } static GameObjectAIScript *Create(GameObject * GO) { return new TwinIslands(GO); } }; GameObjectAIScript * create_go4(GameObject * GO) { return new TwinIslands(GO); }