Author Topic: Hotkey issue  (Read 2630 times)

0 Members and 1 Guest are viewing this topic.

Offline azmanomerTopic starter

  • Jr. Member
  • **
  • Posts: 14
  • Activity:
    0%
  • Reputation Power: 1
  • azmanomer has no influence.
  • Respect: +1
  • Referrals: 0
    • View Profile
Hotkey issue
« on: September 29, 2012, 06:51:59 AM »
0
Code: [Select]
set %loot F9
set %pet1 F10
set %pet2 F11
set %kapi F12
set %runebook e
set %dismount f

Event SysMessage Script Aktif
loop:
OnHotKey %loot
gosub loot
OnHotKey %pet1
gosub pet1
OnHotKey %pet2
gosub pet2
OnHotKey %kapi
gosub kapi
OnHotKey %runebook
gosub runebook
OnHotkey %dismount
gosub dismount
goto loop


sub loot
finditem YFM G_2
if #findcnt > 0
{
set #lobjectid #findid
set %ceset #findid
event macro 17 0
wait 10
ignoreitem #findid
finditem POF C_ , %ceset  
find:
finditem * C_ , %ceset
if #findstack > 2
{
ignoreitem #findid
goto find
}
if #findcnt > 0
{
set %object #findid
gosub Check
event sysmessage %name %value
if %value > 70
{
exevent drag #findid #findstack
wait 15
exevent dropc #backpackID
wait 5
}
set %value 0
ignoreitem #findid
goto find
}
}
goto loop

sub runebook
set #lobjectid %runebook
wait 5
event macro 17 0
wait 5
goto loop

sub dismount
finditem %mount
if #findkind = 1
{
set #lobjectid #findid
wait 5
event macro 17 0
}
else
{
set #lobjectid #charid
wait 5
event macro 17 0
}
goto loop

sub pet1
event macro 1 0 [band
wait 2
set #ltargetid *pet1
wait 5
event macro 22 0
wait 10
return

sub pet2
event macro 1 0 [band
wait 2
set #ltargetid *pet2
wait 5
event macro 22 0
wait 10
return

sub kapi
finditem %kapi G_2
if #findcnt > 0
wait 5
set #lobjectid #findid
event macro 17 0
wait 5
goto loop


i tried to use these hotkeys with JUOM (Jorman's Ultima Online Macrotor) but when i started it nothing happened. It seems these hotkeys didnt focused for just ultima client. Is there anyway to fix it? i tried it with razor too but razor cant identify loot section :( sorry for my english.
« Last Edit: October 01, 2012, 07:37:24 AM by Cerveza »

Offline azmanomerTopic starter

  • Jr. Member
  • **
  • Posts: 14
  • Activity:
    0%
  • Reputation Power: 1
  • azmanomer has no influence.
  • Respect: +1
  • Referrals: 0
    • View Profile
Re: Hotkey issue
« Reply #1 on: September 29, 2012, 09:49:23 AM »
0
i did alot of research for last 5 hours it seems its not possible to focus hotkey to windows for easyuo so i change my request can you help me to change loot section for done these thing automaticly? im new at scripting so i cant handle it by myself :(

Offline Cerveza

  • Hacksimus Maximus
  • Scripthack
  • *
  • Posts: 5857
  • Activity:
    0%
  • Reputation Power: 80
  • Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!
  • Gender: Male
  • So... Hows that Hopey-Changey thing working out?
  • Respect: +403
  • Referrals: 11
    • View Profile
Re: Hotkey issue
« Reply #2 on: October 01, 2012, 07:39:52 AM »
0
Two things.

I modified your post to place code tags around the code... making it much easier to read.

Second - when writing a script it really helps to write down exactly what you want to accomplish. Don't leave anything out, or assume anything. Write down exactly what you are trying to do as if you are manually doing it online.

That will help you to understand where you may be missing something, and will really help anyone who wants to relay some assistance to you.
XXXXXXXXXX________________________________________] 20%
I've forgotten more about this game then most people will ever know.
Thank you for controlling your children. Their manners reflect your love for them.
Give a man a fish and you feed him for a day. Don't teach a man to fish, and you feed yourself. He's a grown man. Fishing's not that hard.

Offline Endless Night

  • Global Moderator
  • *
  • *
  • Posts: 5467
  • Activity:
    0%
  • Reputation Power: 62
  • Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!
  • Respect: +393
  • Referrals: 1
    • View Profile
Re: Hotkey issue
« Reply #3 on: October 04, 2012, 08:50:38 PM »
0
One thing i would recommend is to replace all the "goto loop" commands you have at the end of every sub with "Return" instead


I would help more but im not really understanding what your asking.
Outlaw Josey Wales - "Manwink, A Long Gone Scripty, and Endless are always teasing us with their private sections lol. What there realy saying is scripters rule and users drool."
Briza - "Your a living breathing vortex of usefulness."

Tags: