Theraze
Active member
Trying to see if there's a good way to decide if a monster is a wandering/non-standard in a zone. The best option I've found so far appears to be checking
but if it's possible to go straight to
that would be significantly easier... for me, at least.
Is that sort of thing actually possible, or is my first (working) code the best way to do this?
Basically, trying to come up with some good avoidance for the windchimes/phones getting broken in WHAM (cause by BatBrain saying they're always good in those locations) and running 13 thousand attempted turns. That's a whole lot of wasted server hits. Winterbay can hardcode the item as an override, but if there's a good way to make BatBrain smarter without needing to keep calling slow and messy code, I can actually suggest fixing the root in a useful way rather then just muttering to myself.
Code:
boolean monsterfound = false; foreach mon,rate in appearance_rates(my_location()) if (mon == last_monster() && rate > 0) monsterfound = true;
Code:
if (appearance_rates(my_location())[last_monster()] > 0)

Basically, trying to come up with some good avoidance for the windchimes/phones getting broken in WHAM (cause by BatBrain saying they're always good in those locations) and running 13 thousand attempted turns. That's a whole lot of wasted server hits. Winterbay can hardcode the item as an override, but if there's a good way to make BatBrain smarter without needing to keep calling slow and messy code, I can actually suggest fixing the root in a useful way rather then just muttering to myself.
