fodev.net

FOnline Development => Questions and Answers => Topic started by: Ethanhoff on March 22, 2014, 11:42:48 pm

Title: idler timer [Solved]
Post by: Ethanhoff 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?
Title: Re: idler timer
Post by: Wipe 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.
Title: Re: idler timer
Post by: Ethanhoff 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.
Title: Re: idler timer
Post by: Ethanhoff on March 26, 2014, 01:40:56 am
Bump, no one knows how to remove idler timer?
Title: Re: idler timer
Post by: Mayck 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"
Title: Re: idler timer
Post by: Ethanhoff 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