quick_n_dirty
Journeyman
Hello Scripter,
I copied and pasted some scripts to one and now I need help for a potion check. If I have no pots it spams object not found and now I would need a check if no potion avaliable it should only uses the bandages and ignore the pots. Possible? Other tweaks are welcome...
OK, now with pot check...thx @Young Star
Attention: This works for PvE and real PvP Noobs like me who would get away from bad boys --> sometimes!!!
Designed for looping it...
If you have a good con, you can drop pause maybe to 600 or lower...check it out!
// choose 2h weapon or shield
if not @findalias '2hWeapon/Shield'
promptalias '2hWeapon/Shield'
endif
// bandage script
if not timerexists 'Bandage Timer'
createtimer 'Bandage Timer'
settimer 'Bandage Timer' 10250
endif
//poisoned
if poisoned 'self' and timer 'Bandage Timer' >= 11000
bandageself
waitfortarget 1500
target! 'self'
settimer 'Bandage Timer' 0
endif
if hits < maxhits and timer 'Bandage Timer' >= 10250
bandageself
waitfortarget 1500
target! 'self'
settimer 'Bandage Timer' 0
endif
// potion script
if not timerexists 'Heal Potion'
createtimer 'Heal Potion'
endif
if stam < 30
// Refresh potion
if findtype '0xf0b'
clearhands 'left'
pause 1000
usetype! 0xf0b
pause 1000
equipitem '2hWeapon/Shield' '1'
else
headmsg 'out of refresh pots'
endif
endif
if hits < 80 and poisoned 'self'
// Cure potion
if findtype '0xf07'
clearhands 'left'
pause 1000
usetype! 0xf07
pause 1000
equipitem '2hWeapon/Shield' '1'
else
headmsg 'out of cure pots'
endif
endif
if hits < 60 and timer 'Heal Potion' >= 10250
// Heal potion
if findtype '0xf0c'
clearhands 'left'
pause 1000
if usetype! 0xf0c
settimer 'Heal Potion' 0
pause 1000
equipitem '2hWeapon/Shield' '1'
else
headmsg 'out of heal pots'
endif
endif
endif
Maybe a job for @Experience
I copied and pasted some scripts to one and now I need help for a potion check. If I have no pots it spams object not found and now I would need a check if no potion avaliable it should only uses the bandages and ignore the pots. Possible? Other tweaks are welcome...
OK, now with pot check...thx @Young Star
Attention: This works for PvE and real PvP Noobs like me who would get away from bad boys --> sometimes!!!
Designed for looping it...
If you have a good con, you can drop pause maybe to 600 or lower...check it out!
// choose 2h weapon or shield
if not @findalias '2hWeapon/Shield'
promptalias '2hWeapon/Shield'
endif
// bandage script
if not timerexists 'Bandage Timer'
createtimer 'Bandage Timer'
settimer 'Bandage Timer' 10250
endif
//poisoned
if poisoned 'self' and timer 'Bandage Timer' >= 11000
bandageself
waitfortarget 1500
target! 'self'
settimer 'Bandage Timer' 0
endif
if hits < maxhits and timer 'Bandage Timer' >= 10250
bandageself
waitfortarget 1500
target! 'self'
settimer 'Bandage Timer' 0
endif
// potion script
if not timerexists 'Heal Potion'
createtimer 'Heal Potion'
endif
if stam < 30
// Refresh potion
if findtype '0xf0b'
clearhands 'left'
pause 1000
usetype! 0xf0b
pause 1000
equipitem '2hWeapon/Shield' '1'
else
headmsg 'out of refresh pots'
endif
endif
if hits < 80 and poisoned 'self'
// Cure potion
if findtype '0xf07'
clearhands 'left'
pause 1000
usetype! 0xf07
pause 1000
equipitem '2hWeapon/Shield' '1'
else
headmsg 'out of cure pots'
endif
endif
if hits < 60 and timer 'Heal Potion' >= 10250
// Heal potion
if findtype '0xf0c'
clearhands 'left'
pause 1000
if usetype! 0xf0c
settimer 'Heal Potion' 0
pause 1000
equipitem '2hWeapon/Shield' '1'
else
headmsg 'out of heal pots'
endif
endif
endif
Maybe a job for @Experience
Last edited by a moderator: