Guest User

Untitled

a guest
Jan 21st, 2019
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.60 KB | None | 0 0
  1. -- salve applying function --
  2. function doApply(salve,part)
  3.     if not states.applying and gmcp.Char.Vitals.salve == "1" then
  4.         if part then
  5.             send("apply "..salve.." to "..part)
  6.         else
  7.             send("apply "..salve)
  8.         states.applying = "1"
  9.         tempTimer( 2, [[states.applying = nil]] )
  10.         end
  11.     end
  12. end
  13.  
  14. -- poultice pressing function --
  15. function doPress(poultice,part)
  16.     if not states.applying and gmcp.Char.Vitals.salve == "1" then
  17.         if part then
  18.             send("press "..poultice.." to "..part)
  19.         else
  20.             send("press "..poultice)
  21.         end
  22.         states.applying = "1"
  23.         tempTimer( 2, [[states.applying = nil]] )
  24.     end
  25. end
Add Comment
Please, Sign In to add comment