Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5

Injection: Passing a parameter into a function?
#1

Does anyone know how I would pass a value into my function using ,exec / a hotkey? My goal here is to have one set of functions to handle casting instead of one for scrolls and a copy for normal casting.

Also, I'm not sure if boolean values even exist in injection's script?

Code:
sub greaterHeal_self(useScroll)
    uo.waittargetself();

    if uo.count(scroll_greater_heal) > 0 AND useScroll = true then
        uo.usetype(scroll_greater_heal);
    else
        uo.cast("Greater Heal");
    endif
end sub


Messages In This Thread
Injection: Passing a parameter into a function? - by Nasir - 02-26-2012, 08:08 AM
Injection: Passing a parameter into a function? - by Cana - 02-27-2012, 02:38 PM
Injection: Passing a parameter into a function? - by Raziel_ - 02-27-2012, 03:02 PM
Injection: Passing a parameter into a function? - by Cana - 02-27-2012, 03:27 PM
Injection: Passing a parameter into a function? - by Eru - 02-27-2012, 09:36 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)