YASSE TM (script)

From Elanthipedia
Jump to navigation Jump to search

This is part of the YASSE Combat Package.

Last Updated:

  • --Hithrael 04:09, 20 November 2010 (UTC)
#Looting variables
set predefined on
setglobalvariable yetarrange [no]
setglobalvariable knife [skinning knife]
setglobalvariable arrangenumber [0]
setglobalvariable skinningknifemessage [wrist sheath]
setglobalvariable skinmax [3]

put dodge

setup:
echo [Enter target (creature or location).]
getline

setvariable spell pd
setvariable mana 15

prep:
match target You trace
match target You are already
put prep $spell$ $mana$
matchwait

target:
match face You are not engaged
match cast You begin to weave
match pausing 
put target
matchwait

cast:
pause 2
match prep You gesture at
match release The secondary spell pattern
put cast
matchwait

face:
gosub loot
pause
match pausing There is nothing else to face!
match prep You turn to face
put face next
matchwait

pausing:
put release
waitfor closes to pole
goto prep

release:
put release
goto face

end:
exit

loot:
setglobalvariable huntingweapon [%righthanditem]
pause
put look
nextroom

skin:
if %youalsosee contains dead 
	begin
		call skin
		pause
	end

lootstuff:
pause
call loot
pause
if %righthanditem contains empty	
	begin
	if $huntingweapon$ contains empty
		return
	pause
	put wield $huntingweapon$
	pause
	end
pause
return

tmtrainer2:
MAGIC
tm:
pause
put prep $spell$ $mana$
pausetext 2 You trace
put target
pausetext 2 You begin to wave
pause $targettime$
put cast
pausetext 2 You gesture at
pause
goto tm