One button purple pot activate+throw

baddie

Master
Code:
//by baddie
//public version
if targetexists
  if timer 'purpz' > 2300
    target 'enemy'
  else
    headmsg 'Button spam protected!' 33
  endif
else
  if findtype 0xf0d 0 'backpack'
    useobject 'found'
    settimer 'purpz' 0
    headmsg '*Shaking Purple Pot!*' 24
  else
    headmsg '**OUT of Purple Pots!**' 15
  endif
endif
 
Last edited:

baddie

Master
lol what? not sure what the big deal is. you still have to time it, just doesnt make it so you need to bind a "target last" button when youre playing a warrior that never uses that for anything except purple pots. hence, 1 button. big whoop. thing is like 10 lines.
 

AreYouKidden

Grandmaster
Once pandora's box is open, it can never be closed. At least he makes it public.

Not to mention we all know there are scripts out there that use the journal to time/throw when it sees 2 above your head. This one at least still has the manual button presses.
 

halygon

Grandmaster
Not sure you guys are understanding what this script does. It's not an autoscript.

Its a consolidation of the two button approach. The "timer" in it is not for auto-throw, it is instead how he is identifying to the script that the button was already pressed to cook a pot. If pressed a second time it will throw the pot. If you don't press the button again, it blows up on yourself.
 

baddie

Master
Once pandora's box is open, it can never be closed. At least he makes it public.

Not to mention we all know there are scripts out there that use the journal to time/throw when it sees 2 above your head. This one at least still has the manual button presses.
yea, but it also will trigger from the 2 above anyone else's head that's cooking their own pot, including any player even just saying "2", and there's no way for the script to distinguish. super unreliable, except for maybe a solo pk.

waitforjournal is allowed on uof and can read players' messages, but cannot distinguish who is saying what. it's just looking for the text ANYWHERE in the journal

injournal 'text' 'author' is disabled on the server, and would be the only steam command that can distinguish who says what.
 
Last edited:

Young Star

Grandmaster
waitforjournal can distinguish specific names. it is still unreliable though since even slight changes in ping as you move around will mess it up.
 
Top