Proximity quests example
Heres an example of how you might use the new proximity quests.
Proximity quests are quest events that are triggered by a player entering or leaving a defined area. note: they do not behave properly if you log/zone into a proximity yet. important functions: quest::set_proximity(minx, maxx, miny, maxy); - enable a proximity quest::clear_proximity(); - clear our proximity for now, an NPC can only have 1 proximity, but it can be anywhere in the zone. It makes sense to set it up in the EVENT_SPAWN unless it is only triggered by certain events. Another note: proximities use server resources... while it is not a lot, if you have 100+ proximities in a zone, your prolly going to be able to notice the increased load if theres many players in the zone. This example employs the new proximity quest, as well as some XS classes stuff. Race quest, kinda dumb, oh well: Code:
sub EVENT_SPAWN { |
Thanks alot for this, FNW. This opens up alot of new ideas.
Keep going with this new quest system, at first I didnt like it but now, it seems nice. |
All times are GMT -4. The time now is 02:07 AM. |
Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.