ScriptUO

Scripting Resources & Utilities => OEUO => OpenEUO Scripting Chat => Topic started by: Joco on May 26, 2011, 09:08:42 AM

Title: UO.Macro(17,0,'')
Post by: Joco on May 26, 2011, 09:08:42 AM
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


Title: Re: UO.Macro(17,0,'')
Post by: Masscre on May 26, 2011, 09:33:15 AM
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.
Title: Re: UO.Macro(17,0,'')
Post by: Endless Night on May 26, 2011, 09:56:30 AM
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)
Title: Re: UO.Macro(17,0,'')
Post by: Joco on May 26, 2011, 10:11:12 AM
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 (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
Title: Re: UO.Macro(17,0,'')
Post by: Macrophage on June 02, 2011, 03:13:40 AM
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.
Title: Re: UO.Macro(17,0,'')
Post by: Crome969 on August 04, 2011, 01:41:48 AM
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:)