View Single Post
  #6  
Old 02-19-2015, 11:36 PM
ghanja's Avatar
ghanja
Dragon
 
Join Date: Aug 2012
Location: Hershey, PA
Posts: 499
Default

Quote:
Originally Posted by Maceblade View Post
Yes my timer is set for 2 seconds once proximity is left to depop the npc and Ghanja's code is way more cleaner than mine lol
Meh, it all works the same is what I say, so.. heh

Greyhelm, I see you were looking into timers.

The reason there is a lack of conditional, i.e.:
Code:
if ($timer eq "setprox") {
}
Is that that particular code of Mace's only has one timer being dealt with, which will call the EVENT_TIMER subroutine every "2 seconds", so there is no need to check what the timers name is.

In case you were wondering why it may have looked a little screwy.
Reply With Quote