Patata Posted March 9, 2016 Report Share Posted March 9, 2016 --[[ script de dropar potions id das potions = {285 = Normal,284 = Great,283 = Strong } ]] cycleEvent( function() if g_game.isOnline() then local id = '284' local player = g_game.getLocalPlayer() local mypos = player:getPosition() local flask = player:getItem(id) if flask == nil then return elseif flask:getCount() > 0 then g_game.move(flask, mypos, flask:getCount()) end end end, 1000/2) Quote Link to comment Share on other sites More sharing options...
Gustavo Fortuna Posted March 9, 2016 Report Share Posted March 9, 2016 tem que editar o ID man, tenta assim .... --[[ script de dropar potions id das potions = {285 = Normal,284 = Great,283 = Strong } ]] cycleEvent( function() if g_game.isOnline() then local id = '285' local player = g_game.getLocalPlayer() local mypos = player:getPosition() local flask = player:getItem(id) if flask == nil then return elseif flask:getCount() > 0 then g_game.move(flask, mypos, flask:getCount()) end end end, 1000/2) Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.