Tibia RPG Brasil Posted September 8, 2018 Report Share Posted September 8, 2018 Galerinha dos script, tem como fazer esse script abaixo dropar as novas potion? --[[ script de dropar potions id das potions = {283 = Strong ,284 = Great, 285 = Normal} ]] 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...
ThiagoMetal Posted September 8, 2018 Report Share Posted September 8, 2018 1 hora atrás, Pet Mercenarys disse: Galerinha dos script, tem como fazer esse script abaixo dropar as novas potion? --[[ script de dropar potions id das potions = {283 = Strong ,284 = Great, 285 = Normal} ]] 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) eh soh trocar o id da pot em local id = '285' Quote Link to comment Share on other sites More sharing options...
Tibia RPG Brasil Posted September 8, 2018 Author Report Share Posted September 8, 2018 33 minutos atrás, ThiagoMetal disse: eh soh trocar o id da pot em local id = '285' {283 = Strong ,284 = Great, 285 = Normal} , nao tem ultimate amigo, o script nao dropa as pot nova Quote Link to comment Share on other sites More sharing options...
ThiagoMetal Posted September 8, 2018 Report Share Posted September 8, 2018 eu disse em local id, vc procura o id da potion q quer e troca ali. isso aqui eh soh um comentário e n altera em nada o funcionamento do script. --[[ script de dropar potionsid das potions = {283 = Strong ,284 = Great, 285 = Normal}]] Quote Link to comment Share on other sites More sharing options...
Elder Druid Posted September 8, 2018 Report Share Posted September 8, 2018 1 hora atrás, Pet Mercenarys disse: {283 = Strong ,284 = Great, 285 = Normal} , nao tem ultimate amigo, o script nao dropa as pot nova Igual o @ThiagoMetal falou @Pet Mercenarys só trocar o ID 283 = Strong ,284 = Great, 285 = Potion troca em: 1 hora atrás, ThiagoMetal disse: local id = '285' ai voce poe o tipo de pot que vai dropar= 285 mana potion 284 supreme health potion Quote Link to comment Share on other sites More sharing options...
Tibia RPG Brasil Posted September 8, 2018 Author Report Share Posted September 8, 2018 1 hora atrás, Tutor Elder Druid disse: Igual o @ThiagoMetal falou @Pet Mercenarys só trocar o ID 283 = Strong ,284 = Great, 285 = Potion troca em: ai voce poe o tipo de pot que vai dropar= 285 mana potion 284 supreme health potion Gente, o Great 284 dropa a pot antiga, não dropa a mais recente Quote Link to comment Share on other sites More sharing options...
Tibia RPG Brasil Posted September 8, 2018 Author Report Share Posted September 8, 2018 1 hora atrás, Tutor Elder Druid disse: Igual o @ThiagoMetal falou @Pet Mercenarys só trocar o ID 283 = Strong ,284 = Great, 285 = Potion troca em: ai voce poe o tipo de pot que vai dropar= 285 mana potion 284 supreme health potion a 284 nao é supreme, é great mano Quote Link to comment Share on other sites More sharing options...
Gugu - Karin Uzumaki Posted September 8, 2018 Report Share Posted September 8, 2018 potion_event = cycleEvent( function() local potions = {283, 284, 285} if g_game.isOnline() then local player = g_game.getLocalPlayer() local mypos = player:getPosition() for k,v in pairs(potions) do local flask = player:getItem(v) if flask and flask:getCount() > 0 then g_game.move(flask, mypos, flask:getCount()) break end end end end, 1000/2) usa esse script aki, editei e dropa qualquer potion vazia que vc tiver dentro da bp que estiver dentro da lista chamada "potions", ai vc coloca o id das potions ali e já era Quote Link to comment Share on other sites More sharing options...
Gugu - Karin Uzumaki Posted September 8, 2018 Report Share Posted September 8, 2018 6 horas atrás, Pet Mercenarys disse: Gente, o Great 284 dropa a pot antiga, não dropa a mais recente Então vc pega o id certo das potions e coloca dentro do script e já era 1 Quote Link to comment Share on other sites More sharing options...
Tibia RPG Brasil Posted September 8, 2018 Author Report Share Posted September 8, 2018 3 horas atrás, Gugu - Karin Uzumaki disse: potion_event = cycleEvent( function() local potions = {283, 284, 285} if g_game.isOnline() then local player = g_game.getLocalPlayer() local mypos = player:getPosition() for k,v in pairs(potions) do local flask = player:getItem(v) if flask and flask:getCount() > 0 then g_game.move(flask, mypos, flask:getCount()) break end end end end, 1000/2) usa esse script aki, editei e dropa qualquer potion vazia que vc tiver dentro da bp que estiver dentro da lista chamada "potions", ai vc coloca o id das potions ali e já era O tibiawiki me da os Ids abaixo, oque eu faço agora? coloco em que lugar do script Gu? (nao manjo nada disso, desculpa) ultimate mana potion 23373 ultimate spirit potion 23374 Quote Link to comment Share on other sites More sharing options...
Gugu - Karin Uzumaki Posted September 9, 2018 Report Share Posted September 9, 2018 potion_event = cycleEvent( function() local potions = {283, 284, 285, 23373, 23374} if g_game.isOnline() then local player = g_game.getLocalPlayer() local mypos = player:getPosition() for k,v in pairs(potions) do local flask = player:getItem(v) if flask and flask:getCount() > 0 then g_game.move(flask, mypos, flask:getCount()) break end end end end, 1000/2) 1 hora atrás, Pet Mercenarys disse: O tibiawiki me da os Ids abaixo, oque eu faço agora? coloco em que lugar do script Gu? (nao manjo nada disso, desculpa) ultimate mana potion 23373 ultimate spirit potion 23374 tó 1 Quote Link to comment Share on other sites More sharing options...
Tibia RPG Brasil Posted September 9, 2018 Author Report Share Posted September 9, 2018 1 hora atrás, Gugu - Karin Uzumaki disse: potion_event = cycleEvent( function() local potions = {283, 284, 285, 23373, 23374} if g_game.isOnline() then local player = g_game.getLocalPlayer() local mypos = player:getPosition() for k,v in pairs(potions) do local flask = player:getItem(v) if flask and flask:getCount() > 0 then g_game.move(flask, mypos, flask:getCount()) break end end end end, 1000/2) tó vlw, desculpa ti dar trabalho. 1 Quote Link to comment Share on other sites More sharing options...
Tibia RPG Brasil Posted September 9, 2018 Author Report Share Posted September 9, 2018 Gu, ele ta dropando as pot cheia. Quote Link to comment Share on other sites More sharing options...
ThiagoMetal Posted September 9, 2018 Report Share Posted September 9, 2018 12 horas atrás, Pet Mercenarys disse: Gu, ele ta dropando as pot cheia. Você passou o id das potions cheias, o id delas vazias eh o msm das great vazias, 284. potion_event = cycleEvent( function() local potions = {283, 284, 285} if g_game.isOnline() then local player = g_game.getLocalPlayer() local mypos = player:getPosition() for k,v in pairs(potions) do local flask = player:getItem(v) if flask and flask:getCount() > 0 then g_game.move(flask, mypos, flask:getCount()) break end end end end, 1000/2) 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.