Grunt
2014-06-25 23:36:01
So I've been wondering how Orion pro's farming plugin can tell you the status of your crops. Is it possible for smart to do the same?
2014-06-25 23:36:01
2014-06-25 23:38:31
2014-07-02 22:43:53
2014-07-02 22:52:36
2014-07-02 23:50:36
From: Flight
Off the top of my head I would assume it has a list of every tile which your player can grow crops on, and keeps track of these tiles. If the object ID at that tile matches the ID of diseased plant the bot will know, based on which tile, if the farming patch at "X location" is healthy or diseased.
Simple stuff when you think about it. You could make a script to instantly tell you which of your farming patches have something growing, if they're healthy, and if they're diseased or not. It's nothing fancy, believe me.
2014-07-03 00:20:49
From: Method
It's far simpler than that, actually. Each player's account has a bunch of variables associated with it that keep track of things like quest progress, achievement status, unlockable events, game settings, etc. Information on farming patches is also stored in these variables. The server notifies the client when these variables change so the client can display things properly, and Orion just needs to figure out which variables correspond to the patches and decode the information.
As an aside, the farming patches always have the same id whether the plant is diseased, healthy, or if there is nothing in the patch at all. Under the hood, the client uses the variables I mentioned before to display the correct farming patch for each player.
2014-07-03 07:23:12
From: Flight
I can't say I'm too surprised but that sure is a lot of specific variables to store in the client itself. AFAIK we don't have those hooks in the updater that OSR-Reflection uses so if he's really wanting a tool to do just that he might as well use the method I said above.
2014-07-03 12:30:00