What's new
  • Visit Rebornbuddy
  • Visit Panda Profiles
  • Visit LLamamMagic
  • Visit Resources
  • Visit Downloads
  • Visit Portal
RebornBuddy Forums

Register a free account today to become a member! Once signed in, you'll be able to participate on this site by adding your own topics and posts, as well as connect with other members through your own private inbox!

Plugin development - Detect zoning?

Farmith

Member
Joined
Mar 23, 2019
Messages
30
Is there a way to within a plugin detect when "zoning" happens?

What i would like to do is create a timer, so that i can for example keep track of how long im inside POTD divided in a per-level basis,

I.e so that i could:

1. save a timestamp when i first talk to the NPC (in the potd case, and further down this example all is potd case)

2. save and display a time stamp entering and exiting each level (Level timer + total timer)

3. save and display total time divided by each level upon exiting level 10 of POTD

But to do this i either have to detect zoning from my own plugin, and be able to hook it, or i will have to remodel the deep dungeon botbase to have the timers in the way i want :) Which would be the preffered route? i mean my own "timer plugin" would probably be more versatile, but remodelling all other plugins as a fallback i guess is option #2


EDIT #1:

Found it, this can be achieved by using the logic inside the createbehaviourlogic composite method, i.e using the priorityselector, checking which zone you are in compared to the zone previously registered, if its not the same then do the math for timestamps :) So yeah, solved it myself
 
Last edited:
Back
Top