-- Realized I posted this in the wrong section, my apologies. If someone could be so kind to move it to the support section. Cheers. --
Right, I'm fairly new to C++ but I'm pretty sure this -should- be working. The same logic works in other scripts, but not in this one and I really can't figure out why. It's not helping that I haven't slept and it's ridiculously late.
The script loads properly without returning errors, but it teleports me away and applies the aura without even printing the notification despite my security being 3.
void OnUpdateZone(Player* player, uint32 /*newZone*/, uint32 newArea)
if (newArea == 3486) //Ravenholt
if (player->GetSession()->GetSecurity() >= 1) //is sec 1 or more? then allow
player->GetSession()->SendNotification("Welcome to the VIP only Zone.");
else //if it's under 1
player->GetSession()->SendNotification("This area is restricted to VIPs only, you will be returned to the mall.");
player->TeleportTo(571, 590.877f, -5098.649f, 5.260f, 1.3588f);