Yogurt's Apply lethal poison to your weapon by _yogurt

1// apply lethal poison to weapon on your hand
2// created by: Yogurt
3// updated: 16 December 2024
4
5 @setvar! poisonfailed 1
6 
7 if findlayer self righthand as weapon
8     overhead 'Weapon found!'
9     wait 200
10     if findtype 'green potion' self as poisonpotion
11         getlabel poisonpotion potionlabel
12         if 'lethal'in potionlabel
13             overhead 'Applying poison'
14             menu weapon 0
15             wait 4000
16             if insysmsg 'You fail to apply a sufficient dose of poison'
17                 overhead  'Trying again'            
18             else 
19                 overhead 'Poison applied'
20                 @setvar! poisonfailed 0
21             endif
22             clearsysmsg 
23         else 
24             overhead 'Lethal poison not found'
25            @setvar! poisonfailed 0
26         endif
27     else
28         overhead 'No poison pot'
29         @setvar! poisonfailed 0
30     endif
31 else 
32     overhead 'No weapon found'
33     @setvar! poisonfailed 0
34 endif
35 
36 if poisonfailed = 1
37     loop
38 else
39 // return to your loop script
40 script 'Bandage'
41 endif