Zell
Intermediate OT User
- Joined
- Oct 23, 2010
- Messages
- 214
- Reaction score
- 117
Hiho, I dont have the getplayersonline function on my sources, so i can't check if some player that are online has X storage for do something, Maybe I can add this on functions or global.lua
I want something like this:
local heal = getCreatureMaxHealth(cid) / 3
for _, cid in ipairs(getPlayersOnline()) do
if getCreatureCondition(cid, CONDITION_INFIGHT) == false then
doCreatureAddHealth(cid, heal)
Any idea?
thanks!
0.6.3 avesta
I want something like this:
local heal = getCreatureMaxHealth(cid) / 3
for _, cid in ipairs(getPlayersOnline()) do
if getCreatureCondition(cid, CONDITION_INFIGHT) == false then
doCreatureAddHealth(cid, heal)
Any idea?
thanks!
0.6.3 avesta