PDA

View Full Version : Vip Area Only | Custom Script



Wise
26-11-13, 12:00 PM
Very simple but yet useful script to some users. This script will stop players from entering the per set area, and teleport them to anther place such as the main mall. I recently made this for someone on Skype, and thought I'd release it for fun.

At the moment, the script is per set for stormwind but it can easily be edited.

Go down the script until you find:

player->GetAreaId() == 1519


and just change 1519 to whatever AreaId you want to be.

You can change the location it teleports the player away on line 20 This is Map, X, Y, Z, O:


player->TeleportTo(0, -13328.414063f, 59.765587f, 24.107542f, 0.581469f);

Script: https://gist.github.com/Ghostcrawler...5c02fc69cb6db5 (https://gist.github.com/Ghostcrawler336/997f565c02fc69cb6db5)

Don't know how to add c++ scripts into Trinity Click Here (http://collab.kpsn.org/display/tc/How-to_CustomScript)







Credits






Ghostcrawler336.

Suraf
26-11-13, 08:14 PM
Excellant!