View Categories

Remove Trap

1 min read

Details #

All scripts have been collected over the years and if available will still contain the creators details, these scripts may run well or not.

Scripts #

Details: The below scripts run concurrently with one casting Magic Trap and the other untrapping the box.

magictrap-cast.sc #

sub main()
Start:
aaa:
IF UO.Mana<=20 THEN

repeat
wait(2000)
Uo.Useskill("Meditation")
until UO.InJournal("You enter")

repeat
wait(2000)
until UO.InJournal("You stop") || UO.InJournal("You lost")

uo.print("end")
goto bbb 
ENDIF 

bbb:
IF UO.InJournal('grunge') THEN
	 UO.SAY('is dead.') 
		UO.Press(116) #cast magic trap
			wait (2500)
		UO.Press(112) #target box
			wait(2000) 
UO.DeleteJournal()
wait(1000) 
goto aaa
ENDIF 
goto Start:
end sub

magictrap-uncast.sc #

sub main()
start:
aaa: 
IF UO.InJournal('And have made the creature unresponsive to taming') THEN #if you fail #and its unresponsive then wait 6 minutes. 
UO.SAY('Waiting') 
   wait(360000) 
   UO.DeleteJournal() 
   goto aaa 
ELSE 
   goto ccc 
ENDIF 

ccc: 
   wait(3000) 
UO.Press(118) #ingame untrap macro (F7 in this case) 
 	wait(1000)
UO.Press(119)
   wait(7000)    
IF UO.InJournal('You successfully disarm the trap.') THEN #if success goto casting section 
   UO.DeleteJournal() 
   goto ddd 
ELSE 

IF UO.InJournal('You failed to') THEN #if fail start over    
   UO.SAY('damn failed') # you failed 
   UO.DeleteJournal() 
      goto aaa 
ELSE 

IF UO.InJournal('That may not be trapped') THEN #box is already untrapped 
   UO.SAY('grunge') # tell mage to cast 
   UO.DeleteJournal() 
   wait(5000)
   goto aaa #start again 
ELSE 

IF UO.InJournal('What you selected does') THEN #usually happens when it clicks wrong thing 
UO.DeleteJournal() 
   wait(2000)
   goto aaa #start again 
ENDIF 

ddd:  
# wait(3000) 
UO.SAY('grunge') # tell mage to cast 
goto aaa 

end sub 

goto start
end sub

Powered by BetterDocs