Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function dwbStuff(event, affliction, class)
- if event == "got aff" then
- if affliction == "damagedhead" then
- if (affPosition("damagedhead") ~= afflictionPrioritiesDefault["blindness"]) then
- send("curing priority damagedhead 26")
- if sys.bals.salve then
- send("apply restoration to legs")
- sys.bals.salve = false
- end
- end
- elseif affliction == "damagedleftarm" or affliciton == "damagedrightarm" then
- if (affPosition("damagedleftarm") ~= afflictionPrioritiesDefault["blindness"]) then
- send("curing priority damagedleftarm 26")
- send("curing priority damagedrightarm 26")
- if sys.bals.salve then
- send("apply resoration to legs")
- sys.bals.salve = false
- end
- end
- end
- end
- end
- registerAnonymousEventHandler("got aff", "dwbStuff")
- function dwbRewind(event, affliction, class)
- if event == "lost aff" then
- if affliction == "prone" then
- if (affPosition("damagedleftarm") ~= afflictionPrioritiesDefault["damagedleftarm"]) then
- affPrioRestore( "damagedleftarm" )
- affPrioRestore( "damagedrightarm" )
- elseif (affPosition("damagedhead") ~= afflictionPrioritiesDefault["damagedhead"]) then
- affPrioRestore( "damagedhead" )
- end
- end
- end
- end
- registerAnonymousEventHandler("lost aff", "dwbRewind")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement