EQEmulator Forums

EQEmulator Forums (https://www.eqemulator.org/forums/index.php)
-   Quests::Q&A (https://www.eqemulator.org/forums/forumdisplay.php?f=599)
-   -   Proximity level checker (https://www.eqemulator.org/forums/showthread.php?t=36827)

Maceblade 05-08-2013 06:49 PM

Proximity level checker
 
I want to setup a zone where clients levels are checked by a "guardian" type mob outside each of the room's where the events are taken place. Similar to Vox's banish but I don't want the event initiated before banish takes effect.

Anyone able to give me the code please?

nenelan 05-08-2013 07:24 PM

Set up an invisible mob. Set a proximity on spawn. On enter, check the client's level. If too high, move person/do whatever you want.

I find I learn more if people point me in a direction I need to go, then muddling through it myself.

You want sub EVENT_ENTER and quest::set_proximity(minx, maxx, miny, maxy , minz=0, maxz=0). Shouldn't be too bad, but if you find yourself head-desking a few times, give another post.


All times are GMT -4. The time now is 06:30 PM.

Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.