ScriptUO

Official ScriptUO EasyUO Scripts => Scripting Chat => Topic started by: relliker on November 14, 2011, 08:03:31 AM

Title: Click command HELP
Post by: relliker on November 14, 2011, 08:03:31 AM
Hello,

I'm trying to create a script that searches for house states.
I've figured out how to make it search for the signs on screen, but i can't figure it out how to single-click each sign so it shows the state, and searches the journal for the states specific words.

First, how does the click command work? is it by axis or could it work by coordinates in game?
Second, let's say that i realized the first problem, now, how would i set the script to not click the same signs that it clicked before?

I'm stuck on this for about 2 weeks, and can't figure it out.

Hope you guys can help me.

Thank you.
Title: Re: Click command HELP
Post by: camotbik on November 14, 2011, 09:51:00 AM
is event property working on your shard?
about the click command. when you open up your easyuo, and move your mouse cursor, you will see that some of the cordinates in the botton of the window are changing - those are the cordinates you need for mouse clicking, but if you shard does support event property, then you dont have to worrie about that - in this particullar case.
Title: Re: Click command HELP
Post by: Noobie on November 14, 2011, 12:19:17 PM
You need to try the event property command.

http://wiki.easyuo.com/index.php?title=Event_Property (http://wiki.easyuo.com/index.php?title=Event_Property) Here is the info for event Property
also I would look at the finditem command if you are new to scripting.
http://wiki.easyuo.com/index.php?title=FindItem (http://wiki.easyuo.com/index.php?title=FindItem)

hope that helps you!

Code: [Select]
Your code should look something like...
set %house_sign KKE
finditem %house_sign           ; This line will find the Signs listed in the item type %house_sign
wait 2
event property #findid           ; This line will get the information associated with the current #finditem index
gosub do_something
Title: Re: Click command HELP
Post by: TrailMyx on November 14, 2011, 01:20:57 PM
Event property works on post-AOS shards.  Just an FYI.  If you are playing a pre-AOS shard, then you are out of luck.
Title: Re: Click command HELP
Post by: relliker on November 14, 2011, 05:24:19 PM
I play on H.ybrid. I don`t think the property works, i`ve already tried that.
Thats why i wanted to make the click command, click on each sign by ingame coordinates.
Single click though, so it can show the name of the house and state to capture in journal.
Is there a way to do that?
Title: Re: Click command HELP
Post by: camotbik on November 14, 2011, 06:07:26 PM
We play on the same shard. From which idoc guild are you?
Title: Re: Click command HELP
Post by: relliker on November 14, 2011, 06:10:42 PM
I`m not in any guild ^^ i run solo.
Which guild are you in?

Any ideas on that problem though?
Title: Re: Click command HELP
Post by: camotbik on November 14, 2011, 06:17:39 PM
Rolling on your own and doing idocs?? You must be kidding me. anyways. check this out.
http://www.easyuo.com/docs/lexia-dev/subs_clickScreenXYZ.php
and http://www.easyuo.com/forum/viewtopic.php?t=44459&start=0&postdays=0&postorder=asc&highlight=clickscreenxyz
Title: Re: Click command HELP
Post by: relliker on November 14, 2011, 06:26:15 PM
Insane right? ONE is freaking owning this shard nowadays.. They suck imo though.

Anyways, have you created a similar script?