Author Topic: idler timer [Solved]  (Read 2696 times)

idler timer [Solved]
« on: March 22, 2014, 11:42:48 pm »
How can I remove the idler timer, or at least make it 1 second?

Less Important: Also how is it possible to clear the whole floor of items automatically on a map?
« Last Edit: March 27, 2014, 08:17:59 am by Ethanhoff »

Offline Wipe

  • Rotator
  • Random is god
Re: idler timer
« Reply #1 on: March 23, 2014, 07:01:29 pm »
how is it possible to clear the whole floor of items automatically on a map?
Just collect all items on map by one of item collecting functions. Filter these which shouldn't be removed no matter what (like blockers, Items being integral part of map, etc), and pass what left to DeleteItems().

If you want to be sure that list does not contain Items which are not on the floor, Item::Accessory is your friend; if its value is same as ACCESSORY_HEX define, item is on the ground.
Games are meant to be created, not played...

Re: idler timer
« Reply #2 on: March 23, 2014, 08:43:12 pm »
I appreciate your reply but I don't know where this would be relevant, I don't know what script to edit or things like this.

Re: idler timer
« Reply #3 on: March 26, 2014, 01:40:56 am »
Bump, no one knows how to remove idler timer?

Offline Mayck

  • Rotator
  • ...shhhh...
Re: idler timer
« Reply #4 on: March 26, 2014, 10:56:02 am »
there used to be a define, to simply turn it off, i guess i didn't commit that before we released the sources. Probably the easiest way should be to write "return;" on begining of every function inside "sleepiness.fos"

Re: idler timer
« Reply #5 on: March 27, 2014, 03:53:27 am »
Thank you for telling me this filename! I found this:

#define COMBAT_ZONE_TIMEOUT    (REAL_MINUTE(2))

I just change 2 to 0 and there is no combat zone to even make the idler timer come up if that makes sense