Author Topic: UO.Macro(17,0,'')  (Read 8804 times)

0 Members and 2 Guests are viewing this topic.

Offline JocoTopic starter

  • Newbie
  • *
  • Posts: 3
  • Activity:
    0%
  • Reputation Power: 1
  • Joco has no influence.
  • Respect: 0
  • Referrals: 0
    • View Profile
UO.Macro(17,0,'')
« on: May 26, 2011, 09:08:42 AM »
0
hello :D

i need some help doing this :S

it's a script for doing hw quests

i accept the quest and now i want to mark all items toggle quest items.

i have:

Code: [Select]
t = ScanItems(true)
t = FindItems(l,{Type=Footstool,ContID=UO.BackpackID})

    
for i = 1,10 do
UO.LObjectID = t[i].ID
                UO.Macro(17,0,'') -- i think the problem is here
wait(1000)
end
        
    repeat
        UO.Key('ESC')    
    until UO.TargCurs == false

UO.Macro(17,0,'') -- i think the problem is here

because it make 2 clicks :S any solutions?

thx


« Last Edit: May 26, 2011, 09:40:45 AM by Joco »

Offline Masscre

  • Gran Master Jester !!
  • Scripthack
  • *
  • Posts: 4615
  • Activity:
    0%
  • Reputation Power: 55
  • Masscre is leading the good life!Masscre is leading the good life!Masscre is leading the good life!Masscre is leading the good life!Masscre is leading the good life!Masscre is leading the good life!Masscre is leading the good life!Masscre is leading the good life!Masscre is leading the good life!Masscre is leading the good life!Masscre is leading the good life!
  • Gender: Male
  • Air Guitar Commander !!
  • Respect: +144
  • Referrals: 1
    • View Profile
Re: UO.Macro(17,0,'')
« Reply #1 on: May 26, 2011, 09:33:15 AM »
0
I have done very little with LUA this would be better answered by our OEUO experts :) I would say either TM or EN can answer this question.

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: UO.Macro(17,0,'')
« Reply #2 on: May 26, 2011, 09:56:30 AM »
0
my first thourght is why are you passing ' '   just do UO.Macro(17,0)   my second thought is you haven't set targetkind.

But you never said what the actual problem was, also you never included or referenced the finditem code.

So i guess im saying whats the issue and where the rest of the code. (if finditem is in an library from EUO just reference the link)
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."

Offline JocoTopic starter

  • Newbie
  • *
  • Posts: 3
  • Activity:
    0%
  • Reputation Power: 1
  • Joco has no influence.
  • Respect: 0
  • Referrals: 0
    • View Profile
Re: UO.Macro(17,0,'')
« Reply #3 on: May 26, 2011, 10:11:12 AM »
0
my first thourght is why are you passing ' '   just do UO.Macro(17,0) 

it's doing the same :D

   my second thought is you haven't set targetkind.

Code: [Select]
UO.Popup(UO.CharID)
waitForSysVars('ContSizeX', '==', 234, 'ContSizeY', '==' , 150, 7)
local tempx = UO.ContPosX + 50
local tempy = UO.ContPosY + 120
UO.Click(tempx, tempy, true, true, true, false)


But you never said what the actual problem was, also you never included or referenced the finditem code.
Ups! the problem is not mark items as quest

So i guess im saying whats the issue and where the rest of the code. (if finditem is in an library from EUO just reference the link)

u cant try this and isn't working

Code: [Select]
UO.Popup(UO.CharID)
waitForSysVars('ContSizeX', '==', 234, 'ContSizeY', '==' , 150, 7)
local tempx = UO.ContPosX + 50
local tempy = UO.ContPosY + 120
UO.Click(tempx, tempy, true, true, true, false)
 
UO.LObjectID = 1076752088  --ID of one object to mark as quest
        UO.Macro(17,0)
       
       
    repeat
        UO.Key('ESC')   
    until UO.TargCurs == false

P.D: http://www.easyuo.com/forum/viewtopic.php?t=43949&postdays=0&postorder=asc&start=0


Post Merge: May 27, 2011, 01:28:30 AM
Solved :D

there are a buton in the craft menu that u can make a item with quest item
« Last Edit: May 27, 2011, 01:28:30 AM by Joco »

Offline Macrophage

  • Jr. Member
  • **
  • Posts: 12
  • Activity:
    0%
  • Reputation Power: 0
  • Macrophage has no influence.
  • Respect: 0
  • Referrals: 0
    • View Profile
Re: UO.Macro(17,0,'')
« Reply #4 on: June 02, 2011, 03:13:40 AM »
0
I didn't get through your script but I find it odd you use Last object to mark your quest item. I personnally have to use LAsttarget, unless there is something different in your shard.

Offline Crome969

  • Elite
  • *
  • *
  • Posts: 2098
  • Activity:
    0%
  • Reputation Power: 25
  • Crome969 is on the verge of being accepted.Crome969 is on the verge of being accepted.Crome969 is on the verge of being accepted.Crome969 is on the verge of being accepted.Crome969 is on the verge of being accepted.
  • Gender: Male
  • UO Enthusiast
  • Respect: +211
  • Referrals: 10
    • View Profile
    • ScriptSDK
Re: UO.Macro(17,0,'')
« Reply #5 on: August 04, 2011, 01:41:48 AM »
0
I didn't get through your script but I find it odd you use Last object to mark your quest item. I personnally have to use LAsttarget, unless there is something different in your shard.
Would suggest the same.
Toogle Quest Via UO.Popup() then Scan the Size, Sizey -15 then you have the last entry for toggle.
Next Question is why you doing a loop like for 1 = 10?
I would Scan for marked barstools in that colour. if #amount < 10 mark
But i dont know your whole Code:)

Tags: