blackmetal
Exalted Member
After searching about no fly zone for specific zone, i found this http://emudevs.com/showthread.php/1931-HELP-Custom-Restricted-Flight-Area. And here the code from script i coppied
Problem is this spell 58600 does not effect much, it only stop player from flying, after that player can dismount and mount fly again. :sweaty: I dont know how to complete disable player fly in that zone
Code:
// Copy from Tommy - Emudevs - Thank you for create this script :)
class restricted_fly : public PlayerScript
{
public:
restricted_fly() : PlayerScript("restricted_fly") { }
void OnUpdateZone(Player* player, uint32 newZone, uint32 newArea)
{
if (newArea == 4197 || newArea == 200) // Change to your areaId
{
player->CastSpell(player, 58600); // Restricted Flight
player->GetSession()->SendNotification("You aren't allowed to fly here!");
}
}
};
void AddSC_restricted_fly()
{
new restricted_fly;
}
Problem is this spell 58600 does not effect much, it only stop player from flying, after that player can dismount and mount fly again. :sweaty: I dont know how to complete disable player fly in that zone