ScriptUO

Scripting Resources & Utilities => UOSteam => UOSteam scripts => Topic started by: m3lgar on December 11, 2021, 06:40:01 AM

Title: UOS Script for CARPENTRY, BOWCRAFTING, CAMPING TRAINER
Post by: m3lgar on December 11, 2021, 06:40:01 AM
if not @findalias 'Saw'
  promptalias 'Saw'
endif
if not @findalias 'Dagger'
  promptalias 'Dagger'
endif
if not @findalias 'Food'
  promptalias 'Food'
endif
if not timerexists 'finishMacro'
  createtimer 'finishMacro'
endif
settimer 'finishMacro' 0
clearjournal
if counttype! 0x1bdd 'any' 'backpack' < 1
  organizer 'RestockContainer'
  pause 1000
endif
useobject 'Saw'
pause 870
msg '[menuresponse 1'
msg '[menuresponse 1'
while not @injournal 'You create the item' and not @injournal 'You fail'
  headmsg 'Waiting for Board!'
  if timer 'finishMacro' >= 30000
    replay
  endif
  pause 500
endwhile
pause 500
clearjournal
if not @findtype 0x1bd7 'any' 'backpack'
  replay
else
  useobject 'Dagger'
  waitfortarget 1500
  targettype '0x1bd7'
  pause 1000
  msg '[menuresponse 1'
endif
while not @injournal 'You create the item' and not @injournal 'You fail'
  headmsg 'Waiting for Kindling!'
  if timer 'finishMacro' > 30000
    replay
  endif
  pause 500
endwhile
pause 500
clearjournal
while @findtype 0xde1 'any' 'backpack'
  usetype! '0xde1'
  headmsg 'Kindling found'
  pause 1000
endwhile
useobject 'Food'
waitfortarget 1000

Post Merge: December 11, 2021, 06:42:26 AM
let me know any question :)