local player
local playerhp
local playername = xxxx
for v, k in pairs(g_game.getCreatures())doif k:getName()=="playername"and k:isPlayer()then
player = k
player:getHealthPercent()= playerhp
breakendendif playerhp <=70then
g_game.talk("exura sio" playername)end
auto(250)
When ever I try to use this it throws this error "Direct use of "pairs(g_game.getCreatures())" is prohibited."
Request Script
in Lua scripts
Posted
When ever I try to use this it throws this error "Direct use of "pairs(g_game.getCreatures())" is prohibited."