...
...the last gump opened is the npc's paperdoll, so that's why it keeps running and running in circles and calling for quest without accepting it...
Sub Target_NPC
Target_NPC:
Finditem %NPCQUESTER G_18
if #findkind <> -1
{
set #lobjectid %NPCQUESTER
event macro 17 0
wait 15
until #contname = generic_gump
do {
set %badgumpx #contposx + 50
set %badgumpy #contposy + 50
click %badgumpx %badgumpy r
wait 15
}
Return
}
Return
Thx for posting it, i will see if i can change my macro, it is so obsolete now and i found ways more productive to script this kind of macro, maybe i just upload a completely new version, right now i'm so busy in real life that i dont know if i'll be able to do so.and the spare time you have left, i keep ya busy :P
B*tch :DThx for posting it, i will see if i can change my macro, it is so obsolete now and i found ways more productive to script this kind of macro, maybe i just upload a completely new version, right now i'm so busy in real life that i dont know if i'll be able to do so.and the spare time you have left, i keep ya busy :P
sub Toogle_Quest
call kalocr.txt getMLQInfo QuestOffer #contposx #contposy
if mother in %1
{
set %clickx #contposx + 139
set %clicky #contposy + 461
click %clickx %clicky
}
else
{
goto start
}
Return
after adjusting the contposx and contposy... Sub Toogle_Quest_Items
exevent popup #charid
wait 10
set %Contsize #contsize
str mid %contsize 5 3
wait 10
set %Tooglex #contposx + 50
set %Toogley #contposy + #strres - 20
click %Tooglex %Toogley
wait 10
Return
sub GetNewQuest
GetNewQuest:
Set #LObjectID %CrafterID
Set #LObjectType %CrafterType
Event Macro 17 0
wait 30
if #CONTNAME = generic_gump && #CONTSIZE = 507_436
gosub offsetclick 130 400
Wait 20
return
Crisis: Im not a good, not even moderate, scripter/prorgammer. But I have gotten around 18 old scripts to work since i came back to UO couple of months ago after several years of absence. This one, as I have stated in 3 posts above, is just beyond me, i dont understand how the quest system works. "Keep at it" doesnt really cut it, since ive spent quite a few hours on this after my wrists startet to act up from the HW turn ins, without making any progress.
TheGhost: Its very nice of you to try to help, but I wonder if your realize that your comment is about the only part of the script thats working, so not really actual helpful. ;)
said3: I didnt know you were still active on this site, since this script havent been updated. Its of course good to know that you have a MUCH better script somewhere, that works perfectly for you. Always pleasant to have it rubbed in really hard... :D
Anyways..I got the Scrappers recipie (the hard and manual way) and i can get the runics via bods in no time, so no need to ever do a HW quest again for my part...