C++ you dont need to be pro to make portals there pretty basic you should have a extra scripts folder in your scripts folder (the one that has all of the arcemu C++ scripts) in it theres a file name portals
addthis change the names though from jechobsportal to whatever you want and change the x y z o mapID and zoneID ok
Code:
class jechobsportal: public GameObjectAIScript // Orgrimarr to Undercity
{
public:
jechobsportal(GameObject* goinstance) : GameObjectAIScript(goinstance) {}
void OnActivate(Player * pPlayer)
{
pPlayer->SafeTeleport(mapID, ZoneID, x, y, z, o);
}
static GameObjectAIScript *Create(GameObject * GO) { return new jechobsportal(GO); }
};
GameObjectAIScript * create_go30000000(GameObject * GO) { return new jechobsportal(GO); }
and register like this
Code:
[/CDclass jechobsportal: public GameObjectAIScript // Orgrimarr to Undercity
{
public:
jechobsportal(GameObject* goinstance) : GameObjectAIScript(goinstance) {}
void OnActivate(Player * pPlayer)
{
pPlayer->SafeTeleport(mapID, ZoneID, x, y, z, o);
}
static GameObjectAIScript *Create(GameObject * GO) { return new jechobsportal(GO); }
};
GameObjectAIScript * create_go30000000(GameObject * GO) { return new jechobsportal(GO); }
register it like this add it into all of the registers at he bottom you'll see them
Code:
mgr->register_gameobject_script(GOID, &jechobsportal::Create);
then compile your scripts