O script abaixo não está jogando as pots de kina (mana) fora, alguém pode ajudar? Segue script


Patata

Recommended Posts

--[[ 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) 
Link to comment
Share on other sites

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) 
Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...