SRL Archive - OSR Help

Helpp


bigbutts5

2012-04-15 20:09:05

Hey all Im slightly confused here by the run energy, I want to add energy support to one of my scripts, when it banks I want it to withdraw an energy pot if it is below 25% run energy, I can make it withdraw, and drink pot, I just cant get it to recognize that it is below 25% run. How would I write a function to check run %?

Caotom

2012-04-15 20:27:28

From: bigbutts5
Hey all Im slightly confused here by the run energy, I want to add energy support to one of my scripts, when it banks I want it to withdraw an energy pot if it is below 25% run energy, I can make it withdraw, and drink pot, I just cant get it to recognize that it is below 25% run. How would I write a function to check run %?


By using the almighty search tool inside the srl library…
Well to start, you could use
if RunEnergy <= 25 then
to check the run energy, the banking procedure and drinking procedure is VERY simple, there are several commands (such as OpenBank, GetBankItemAmount, etc) or you can use your own dtms.

~Caotom

bigbutts5

2012-04-15 20:29:12

I kept using run energy wrong >.< Thanks mate! I have everything else! haha