ScriptUO

Official ScriptUO EasyUO Scripts => Scripting Chat => Topic started by: b@ndito on January 20, 2011, 10:31:50 AM

Title: Clicking trees
Post by: b@ndito on January 20, 2011, 10:31:50 AM
On the freeshard i'm currently playing has been started a weird event, players have to click bushes, trees and various other statics in order to find the hidden treasure, the only way to find statics in easyuo is the tile get function but it actually returns only coordinates of an item, then the question is, there is any simple way to make mouse clicks directly by tile coord or i have to convert game's tile x/y to screen x/y? this would be terrbly complex, as every static has a z coord and different layer size...
Title: Re: Clicking trees
Post by: TrailMyx on January 20, 2011, 10:36:05 AM
If you take a look at my generic LocateTree sub, you might be able to adapt it to your freeshard:

http://www.scriptuo.com/index.php?topic=1227.0;highlight=locatetree (http://www.scriptuo.com/index.php?topic=1227.0;highlight=locatetree)