Ir para conteúdo
  • Cadastre-se

Posts Recomendados

  • Respostas 43
  • Created
  • Última resposta

Top Posters In This Topic

Top Posters In This Topic

Popular Posts

Bom, vi por aqui e não achei nenhum autoloot igual o da pxg ou sem bugs, então decidi vir aqui postar o que eu fiz. Vamos lá.   1º - Vá na pasta Lib, no arquivo some functions.lua e adicione isso d

Tenta assim : lib na some fuctions.lua  no final end como o dono do topico fez!   vai actions/script   cria arquivo.lua e escreve autoloot.lua, dentro você coloka assim:     No tol

Posted Images

Muito legal, acredito que da pra fazer com uma checagem se é corpse e evitar ter que colocar os IDS dos corpses um por um, mas tá legal o sistema, inves de ficar usando comentarios, você poderia ter feito uma variavel se utilizaria o sistema de itens especificos ou não e verificar a variavel com um IF, acredito que seja melhor para quem não tem conhecimento nenhum de scripts, eu modifiquei e ficou assim:

  Mostrar conteúdo oculto

local toloot = {11441, 11441, 11443, 11444, 11445, 11446, 11447, 11448, 11449,11450, 11451, 11452, 11453, 11454, 12618, 12232, 12244} -- PREFERENCIAL - SE QUISER APENAS COM ALGUNS ITENS
local useSpecific = false --True para lotear somente os itens que estiverem na tabela toloot, false para todos os itens do corpse
function onUse(cid, item, frompos, item2, topos)
if getItemAttribute(item.uid, "corpseowner") ~= cid then
doPlayerSendCancel(cid, "You're not the owner.")
return true
end
local items = {}
for x=0, (getContainerSize(item.uid)) do
local itens = getContainerItem(item.uid, x)
if useSpecific == true then
    if isInArray(toloot, itens.itemid) then
        table.insert(items, {i=itens.itemid, q=itens.type})
        doRemoveItem(itens.uid)
        break
    end
else
table.insert(items, {i=itens.itemid, q=itens.type})
doRemoveItem(itens.uid)
end
end
for y=1, #items do
doPlayerAddItemStacking(cid, items[y].i, items[y].q)
doPlayerSendTextMessage(cid, 20, "Looted "..items[y].q.."x "..getItemNameById(items[y].i)..".")
end
if #items > 0 then
return true
else
return false
end
end
--[[
AUTO LOOT BY GABRIEL SALES
SE QUISER ATIVAR O AUTOLOOT APENAS PARA ALGUNS ITENS, ADICIONE OS IDS NA TABELA toloot E TIRE OS COMENTÁRIOS(--).
--]]


Mais uma vez, excelente sistema, obrigado por disponibilizar.

Grande abraço :3

Editado por Mateuso (veja o histórico de edições)
Link para o post
Compartilhar em outros sites

Eu nem ia deixar aquela tabela, só deixei porque poderia ser util.

Quanto ao corpse, creio que não seja problema pegar todos eles por um pequeno script, é facil

De qualquer maneira, de nada.

Att. Featzen.

Link para o post
Compartilhar em outros sites
  Em 07/09/2014 em 07:29, otaviogfl disse:

Ótimo Conteúdo!

Mostrar mais  

Obrigado.

ps : Qualquer dúvida, comentem.

Att. Featzen.

Link para o post
Compartilhar em outros sites

  Em 04/09/2014 em 16:16, Mateuso disse:
eu modifiquei e ficou assim:
Mostrar mais  

Essa sua script que você modificou tem algum erro? porque vou usar ela '-'

 

Gabrielbsales Não teria como colocar para quando o player clicar no corpse do pokemon vim qualquer item?

porque tem servidores que tem muitos items e sai colocando de 1 em 1 é ruim :(

                                                            vps-plano-01.png

 

                                                                                                                    http://www.weblara.com.br/

Link para o post
Compartilhar em outros sites
  Em 11/09/2014 em 13:51, SliceFalso disse:

Essa sua script que você modificou tem algum erro? porque vou usar ela '-'

 

Gabrielbsales Não teria como colocar para quando o player clicar no corpse do pokemon vim qualquer item?

porque tem servidores que tem muitos items e sai colocando de 1 em 1 é ruim :(

Mostrar mais  

Mas ja está assim Oo

Att. Featzen.

Link para o post
Compartilhar em outros sites
  Em 04/09/2014 em 15:40, Gabrielbsales disse:
--local toloot = {11441, 11441, 11443, 11444, 11445, 11446, 11447, 11448, 11449,11450, 11451, 11452, 11453, 11454, 12618, 12232, 12244} -- PREFERENCIAL - SE QUISER
Mostrar mais  

então nessa parte é qual IDS?

 

EDIT

o systema não está funcionando, quando o pokemon morre e clico em cima do corpo dele os items não vem para bp

Editado por SliceFalso (veja o histórico de edições)

                                                            vps-plano-01.png

 

                                                                                                                    http://www.weblara.com.br/

Link para o post
Compartilhar em outros sites
  Em 13/09/2014 em 15:01, otaviogfl disse:

Tá funcionando sim você não está sabendo colocar.

Mostrar mais  

mais eu fiz certinho e quando mato o pokemon que vou clicar com o botão direito não vem nada para a bp

                                                            vps-plano-01.png

 

                                                                                                                    http://www.weblara.com.br/

Link para o post
Compartilhar em outros sites

Colocou os ids dos corpses no actions.xml?


  Em 13/09/2014 em 11:50, SliceFalso disse:

então nessa parte é qual IDS?

 

EDIT

o systema não está funcionando, quando o pokemon morre e clico em cima do corpo dele os items não vem para bp

Mostrar mais  

Poderia ler '-'

Att. Featzen.

Link para o post
Compartilhar em outros sites

  Em 13/09/2014 em 15:59, Gabrielbsales disse:
Colocou os ids dos corpses no actions.xml?
Mostrar mais  

sim olha ai como deixei

<?xml version="1.0" encoding="UTF-8"?>
<actions>

              <action itemid="1819" script="vipname.lua"/>

              <action itemid="247;9924;202;12687;187;218;12534;12906;10519;8935;5970;5972;6012;13501;2936;13537;5975;12545;12741;2928;13247;139;6072;11920;12749;5962;13539;12695;159;12438;12743;12514;12599;12689;297;12725;9872;6056;5765;12604;6036;9923;13362;5978;606;12859;12437;6364;230;12516;3004;5986;6336;12441;127;12527;204;2970;10520;12744;5996;677;6002;12694;6043;12491;9781;5969;6046;8960;6011;610;6034;12466;5968;12717;12684;163;13519;9876;12602;206;9875;2932;181;9774;6029;13201;13532;13235;12543;4295;6019;5963;12705;6031;3035;6071;619;614;8957;618;12507;235;12453;12544;226;6009;5981;6005;5988;8958;9937;12431;12556;3038;6020;11987;12771;9868;6028;9916;12918;216;9925;9921;13419;604;12852;6038;155;5987;9920;220;198;9009;9083;12720;6013;8943;12862;6076;147;3002;208;12781;153;6017;12439;3288;6050;1051;12702;5998;12907;5979;12733;13522;2806;4323;12502;12465;12549;6057;9081;13173;12601;12460;9963;13361;6023;6042;6332;12701;5983;12690;12706;12855;12753;6025;12857;13414;6060;8967;2842;12755;13534;3007;12434;12461;145;12518;13261;13513;12595;12464;6051;6306;10002;622;12746;13359;12524;9961;13503;6037;12679;12740;12704;12723;3005;6035;6014;5997;613;6338;8939;6006;6069;6015;253;12513;12550;267;2879;13264;13423;6039;7283;8956;605;12425;6026;161;13510;10603;8938;259;13514;9871;5999;5993;8941;10508;2817;12860;6345;131;13529;13517;10008;12537;6007;10539;5971;12712;2872;167;8969;8953;13523;2953;5990;5989;13535;5992;12525;9107;13253;13542;13213;12597;189;13536;12568;169;8951;12698;9803;9915;10003;5974;6054;11839;6032;5966;5977;12482;2926;2905;7320;9913;6041;157;9654;9873;6008;6016;6340;3564;10171;2990;12682;6073;13516;6024;129;177;12508;9879;12478;684;6010;5960;9823;13511;623;214;8950;13262;590;10015;9880;10538;13401;12519;8946;2925;2968;713;12735;200;12738;5982;9801;593;9783;12731;6065;5995;624;175;13360;6033;13204;13358;12709;683;682;13502;2973;13531;13533;9965;6047;12583;13508;12716;1452;6067;12938;13263;2858;4428;3297;3286;3274;265;11919;11921;1453;12904;12881;12767;12766;12930;4445;12880;12759;609;13528;12715;12728;12868;4251;8942;12861;12745;241;5976;12422;6003;12915;12627;9831;7282;13530;12752;12751;12750;149;3008;6000;8966;12748;237;12520;12747;6004;5984;12754;12742;8964;12739;6040;10524;6044;12567;12737;12663;12736;12734;6055;137;12468;12445;13515;12526;12730;12729;8968;12727;12726;13249;12724;12722;6302;12721;13211;12719;12718;191;12714;12603;12713;12710;12711;5985;13538;2845;165;12707;12700;12495;6331;12865;12699;9877;12477;12697;12696;8947;12692;8937;12691;12569;12686;12492;12685;12683;12536;625;9914;617;616;615;612;611;12854;9780;608;271;13509;251;12770;592;591;6048;9867;607;9829;243;269;263;173;257;255;249;239;9917;228;6030;222;6516;210;196;193;185;183;2982;179;171;12708;151;6053;13356;13357;13260;12732;13212;13269;13512;12600;12598;2837;12596;9881;6059;13526;6027;233;13525;12693;10525;6045;13518;9960;9962;9658;5964;10522;10521;9802;9936;8952;9964;12864;9938;9919;9775;10005;2818;10518;9882;9824;9935;8955;8949;12555;5961;12554;6001;12547;12517;5994;12467;6018;12462;687;12484;9869;11843;6049;12662;224;2836;212;2961" event="script" value="Autoloot.lua"/>
 
              <action itemid="6569" event="script" value="candy_up.lua"/>

    <!-- Agatha Quest -->
    <action actionid="6616" event="script" value="Agatha/Agatha_Colar.lua"/>
    <action actionid="3544" event="script" value="Agatha/Agatha_Door.lua"/>
    <action actionid="6655" event="script" value="Agatha/Agatha_Enigma.lua"/>
    <action actionid="6657" event="script" value="Agatha/Agatha_Espelho_Lab.lua"/>
    <action actionid="6658" event="script" value="Agatha/Agatha_Espelho_Out.lua"/>
    <action actionid="6660" event="script" value="Agatha/Agatha_Estante.lua"/>
    <action actionid="6661" event="script" value="Agatha/Agatha_Hammer.lua"/>
    <action actionid="6617-6653" event="script" value="Agatha/Agatha_Items.lua"/>
    <action actionid="6654" event="script" value="Agatha/Agatha_Receita.lua"/>
    <action actionid="6659" event="script" value="Agatha/Agatha_Receita[2].lua"/>

    <action itemid="12594" event="script" value="Squirtle Bottle.lua"/>
    <action fromid="11790" toid="11803" event="script" value="other/doors.lua"/>

    <action itemid="12688" event="script" value="bike.lua"/>

              <action itemid="1822" event="script" value="troll.lua"/>

        <action uniqueid="6798" script="bikebau.lua"/>

    <action actionid="32698" event="script" value="bau_Pewter.lua"/>

     <!-- Water quest -->
        <action uniqueid="8999" script="Water/1hora.lua"/>
        <action uniqueid="2111" script="Water/water.lua"/>
 
        <!-- Poison quest -->
        <action uniqueid="1746" script="Poison Quest/poison.lua"/>

        <!-- Pokeball quest -->
        <action uniqueid="20006" script="Pokeball/pokeball.lua"/>
        <action uniqueid="20993" script="inicial/firestone.lua"/>
        <action uniqueid="20994" script="inicial/waterstone.lua"/>
        <action uniqueid="20995" script="inicial/leafstone.lua"/>
 
        <!-- Pewter quest -->
        <action uniqueid="20000" script="Pewter quest/Pewter.lua"/>
        <action uniqueid="20001" script="Pewter quest/geloquest.lua"/>
        
        <!-- Outland quest -->
        <action actionid="19381;19382;19383;19384" event="script" value="Outland/Outland-waves.lua"/>
        <action actionid="19385" event="script" value="Outland/Outland-Saida.lua"/>
        <action uniqueid="19386" event="script" value="Outland/Outland-Bau.lua"/>

         
        <!-- Addon quest -->
        <action uniqueid="12154" event="script" value="addonquest.lua"/>


        <!-- Dungeon quest -->
        <action uniqueid="7897" event="script" value="dungeon/icedungeon.lua"/>   
        <action uniqueid="7898" event="script" value="dungeon/leafdungeon.lua"/>

        <!-- Leaf valley Quest -->
        <action actionid="7100" script="LeafQuest/Leafquest.lua"/>
        <action uniqueid="7105" script="LeafQuest/Leafquest2.lua"/>

        <!-- Water valley Quest -->
        <action actionid="7101" script="WaterQuest/waterquest.lua"/>
        <action uniqueid="7104" script="WaterQuest/waterquest2.lua"/>

        <!-- Fire valley Quest -->
        <action actionid="7102" script="FireQuest/firequest.lua"/>
        <action uniqueid="7103" script="FireQuest/firequest2.lua"/>

        <!-- Helds -->

        <action itemid="13487;13488;13489;13490;13491;13492.13493;13494;13495;13496;13497;13498;13499;13500" event="script" value="heldsystem.lua"/>



        <!-- Golden Arena -->
    <action actionid="65535" event="script" value="Quadro_Golden.lua"/>
    <action actionid="55356" event="script" value="Quadro_Golden_Rank.lua"/>
    <action itemid="6527" event="script" value="Meowth Coin.lua"/>

    <!-- Quests -->
    <action actionid="2000" event="script" value="quests/system.lua"/>
    <action actionid="2001" event="script" value="quests/system.lua"/>
        <action uniqueid="3251" event="script" value="quests/ceruleanforest.lua"/>
        <action uniqueid="3252" event="script" value="quests/desert.lua"/>
    <action uniqueid="3253" event="script" value="quests/mewtwocave.lua"/>
              <action uniqueid="6794" event="script" value="quests/saffronquest.lua"/>
              <action uniqueid="6795" event="script" value="quests/box3.lua"/>
              <action uniqueid="6796" event="script" value="quests/box1.lua"/>
              <action uniqueid="6797" event="script" value="quests/box2.lua"/>

    <!-- Weapons enchanting (Gems) -->
    <action itemid="2150" event="script" value="other/enchanting.lua"/>
    <action itemid="2149" event="script" value="other/enchanting.lua"/>
    <action itemid="7759" event="script" value="other/enchanting.lua"/>
    <action itemid="7760" event="script" value="other/enchanting.lua"/>
    <action itemid="7761" event="script" value="other/enchanting.lua"/>
    <action itemid="7762" event="script" value="other/enchanting.lua"/>

    <!-- Tools -->
    <action itemid="2420" event="script" value="tools/machete.lua"/>
    <action itemid="2442" event="script" value="tools/machete.lua"/>
    <action itemid="2580" event="script" value="tools/fishing.lua" allowfaruse="1"/>
    <action itemid="10223" event="script" value="tools/fishing.lua" allowfaruse="1"/>
    <action itemid="2554" event="script" value="tools/shovel.lua"/>
    <action itemid="5710" event="script" value="tools/shovel.lua"/>
    <action itemid="2120" event="script" value="tools/rope.lua"/>
    <action itemid="7731" event="script" value="tools/rope.lua"/>
    <action itemid="2553" event="script" value="tools/pick.lua"/>
    <action itemid="5908" event="script" value="tools/obsidian_knife.lua"/>
    <action itemid="5942" event="script" value="tools/blessed_wooden_stake.lua"/>

    <!-- Food -->
    <action itemid="2362;2666-2691" event="script" value="other/food.lua"/>
    <action fromid="2695" toid="2696" event="script" value="other/food.lua"/>
    <action fromid="2787" toid="2796" event="script" value="other/food.lua"/>
    <action itemid="5097" event="script" value="other/food.lua"/>
    <action itemid="6125" event="script" value="other/food.lua"/>
    <action itemid="6278" event="script" value="other/food.lua"/>
    <action itemid="6279" event="script" value="other/food.lua"/>
    <action itemid="6394" event="script" value="other/food.lua"/>
    <action itemid="6501" event="script" value="other/food.lua"/>
    <action fromid="6541" toid="6545" event="script" value="other/food.lua"/>
    <action itemid="6574" event="script" value="other/food.lua"/>
    <action itemid="7158" event="script" value="other/food.lua"/>
    <action itemid="7159" event="script" value="other/food.lua"/>
    <action fromid="7372" toid="7377" event="script" value="other/food.lua"/>
    <action itemid="7909" event="script" value="other/food.lua"/>
    <action fromid="8838" toid="8845" event="script" value="other/food.lua"/>
    <action itemid="8847" event="script" value="other/food.lua"/>
    <action itemid="12211;12213-12222" event="script" value="other/food.lua"/>

    <!-- Increase/Decrease ItemId -->
    <action itemid="461" event="function" value="increaseItemId"/>
    <action itemid="462" event="function" value="decreaseItemId"/>
    <action itemid="1873" event="function" value="increaseItemId"/>
    <action itemid="1874" event="function" value="decreaseItemId"/>
    <action itemid="1875" event="function" value="increaseItemId"/>
    <action itemid="1876" event="function" value="decreaseItemId"/>
    <action itemid="2162" event="function" value="increaseItemId"/>
    <action itemid="2163" event="function" value="decreaseItemId"/>
    <action itemid="3743" event="function" value="increaseItemId"/>
    <action itemid="3744" event="function" value="decreaseItemId"/>
    <action itemid="3947" event="function" value="increaseItemId"/>
    <action itemid="3948" event="function" value="decreaseItemId"/>
    <action itemid="1479" event="function" value="increaseItemId"/>
    <action itemid="1480" event="function" value="decreaseItemId"/>
    <action itemid="2058" event="function" value="increaseItemId"/>
    <action itemid="2059" event="function" value="decreaseItemId"/>
    <action itemid="2060" event="function" value="increaseItemId"/>
    <action itemid="2061" event="function" value="decreaseItemId"/>
    <action itemid="2066" event="function" value="increaseItemId"/>
    <action itemid="2067" event="function" value="decreaseItemId"/>
    <action itemid="2068" event="function" value="increaseItemId"/>
    <action itemid="2069" event="function" value="decreaseItemId"/>
    <action itemid="2064" event="function" value="increaseItemId"/>
    <action itemid="2065" event="function" value="decreaseItemId"/>
    <action itemid="2096" event="function" value="increaseItemId"/>
    <action itemid="2097" event="function" value="decreaseItemId"/>
    <action itemid="1786" event="function" value="increaseItemId"/>
    <action itemid="1787" event="function" value="decreaseItemId"/>
    <action itemid="1788" event="function" value="increaseItemId"/>
    <action itemid="1789" event="function" value="decreaseItemId"/>
    <action itemid="1790" event="function" value="increaseItemId"/>
    <action itemid="1791" event="function" value="decreaseItemId"/>
    <action itemid="1792" event="function" value="increaseItemId"/>
    <action itemid="1793" event="function" value="decreaseItemId"/>
    <action itemid="1634" event="function" value="increaseItemId"/>
    <action itemid="1635" event="function" value="decreaseItemId"/>
    <action itemid="1636" event="function" value="increaseItemId"/>
    <action itemid="1637" event="function" value="decreaseItemId"/>
    <action itemid="1638" event="function" value="increaseItemId"/>
    <action itemid="1639" event="function" value="decreaseItemId"/>
    <action itemid="1640" event="function" value="increaseItemId"/>
    <action itemid="1641" event="function" value="decreaseItemId"/>
    <action itemid="7058" event="function" value="increaseItemId"/>
    <action itemid="7059" event="function" value="decreaseItemId"/>
    <action itemid="8684" event="function" value="increaseItemId"/>
    <action itemid="8685" event="function" value="decreaseItemId"/>
    <action itemid="8686" event="function" value="increaseItemId"/>
    <action itemid="8687" event="function" value="decreaseItemId"/>
    <action itemid="8688" event="function" value="increaseItemId"/>
    <action itemid="8689" event="function" value="decreaseItemId"/>
    <action itemid="8690" event="function" value="increaseItemId"/>
    <action itemid="8691" event="function" value="decreaseItemId"/>
    <action itemid="9575" event="function" value="increaseItemId"/>
    <action itemid="9576" event="function" value="decreaseItemId"/>
    <action itemid="9577" event="function" value="increaseItemId"/>
    <action itemid="9578" event="function" value="decreaseItemId"/>
    <action itemid="9579" event="function" value="increaseItemId"/>
    <action itemid="9580" event="function" value="decreaseItemId"/>
    <action itemid="9581" event="function" value="increaseItemId"/>
    <action itemid="9582" event="function" value="decreaseItemId"/>
    <action itemid="9624" event="function" value="increaseItemId"/>
    <action itemid="9625" event="function" value="decreaseItemId"/>
    <action itemid="9747" event="function" value="increaseItemId"/>
    <action itemid="9748" event="function" value="decreaseItemId"/>
    <action itemid="9749" event="function" value="increaseItemId"/>
    <action itemid="9750" event="function" value="decreaseItemId"/>
    <action itemid="9825" event="function" value="increaseItemId"/>
    <action itemid="9826" event="function" value="decreaseItemId"/>
    <action itemid="9827" event="function" value="increaseItemId"/>
    <action itemid="9828" event="function" value="decreaseItemId"/>
    <action itemid="9973" event="function" value="increaseItemId"/>
    <action itemid="9974" event="function" value="decreaseItemId"/>
    <action itemid="10044" event="function" value="increaseItemId"/>
    <action itemid="10045" event="function" value="decreaseItemId"/>

    <!-- Spellbooks -->
    <action itemid="2175" event="script" value="other/spellbook.lua"/>
    <action itemid="6120" event="script" value="other/spellbook.lua"/>
    <action fromid="8900" toid="8904" event="script" value="other/spellbook.lua"/>
    <action itemid="8918" event="script" value="other/spellbook.lua"/>

    <!-- Change gold -->
    <action itemid="2148;2152;2160;12416" event="script" value="other/changegold.lua"/>

    <!-- Construction kits -->
    <action fromid="3901" toid="3938" event="script" value="other/constructionkits.lua"/>
    <action fromid="5086" toid="5088" event="script" value="other/constructionkits.lua"/>
    <action fromid="6114" toid="6115" event="script" value="other/constructionkits.lua"/>
    <action fromid="6372" toid="6373" event="script" value="other/constructionkits.lua"/>
    <action fromid="7960" toid="7962" event="script" value="other/constructionkits.lua"/>
    <action fromid="8692" toid="8693" event="script" value="other/constructionkits.lua"/>
    <action itemid="7503" event="script" value="other/constructionkits.lua"/>
    <action itemid="7700" event="script" value="other/constructionkits.lua"/>

    <!-- Bed construction kits -->
    <action fromid="7904" toid="7907" event="script" value="other/furniturebeds.lua"/>

    <!-- Music, instruments -->
    <action fromid="2070" toid="2085" event="script" value="other/music.lua"/>
    <action itemid="2095" event="script" value="other/music.lua"/>
    <action itemid="2332" event="script" value="other/music.lua"/>
    <action itemid="2364" event="script" value="other/music.lua"/>
    <action fromid="2367" toid="2374" event="script" value="other/music.lua"/>
    <action fromid="3951" toid="3953" event="script" value="other/music.lua"/>
    <action itemid="3957" event="script" value="other/music.lua"/>
    <action itemid="5786" event="script" value="other/music.lua"/>
    <action itemid="6572" event="script" value="other/music.lua"/>

    <!-- Teleport (stairs, ladders) -->
    <action itemid="430" event="script" value="other/teleport.lua"/>
    <action itemid="1368" event="script" value="other/teleport.lua"/>
    <action itemid="1369" event="script" value="other/teleport.lua"/>
    <action itemid="1386" event="script" value="other/teleport.lua"/>
    <action itemid="3678" event="script" value="other/teleport.lua"/>
    <action itemid="5543" event="script" value="other/teleport.lua"/>
    <action itemid="8580" event="script" value="other/teleport.lua"/>
    <action itemid="8599" event="script" value="other/teleport.lua"/>
    <action itemid="10035" event="script" value="other/teleport.lua"/>

    <!-- Destroy -->
    <action id="2321;2390-2398;2400-2404;2406-2409;2411-2417;2419;2421-2441;2443-2454;3961-3964;3966;4846;6101;6528;6553;7379-7392;7402-7437;7449;7451-7456;7744-7758;7763-7777;7854-7883;7958;8601-8602;8924-8932;10293" event="script" value="other/destroy.lua"/>

    <!-- Bread Creating -->
    <action itemid="2692" event="script" value="other/createbread.lua"/>
    <action itemid="2694" event="script" value="other/createbread.lua"/>

    <!-- Windows -->
    <action fromid="5303" toid="5305" event="script" value="other/windows.lua"/>
    <action fromid="6436" toid="6473" event="script" value="other/windows.lua"/>
    <action fromid="6788" toid="6791" event="script" value="other/windows.lua"/>
    <action fromid="7025" toid="7032" event="script" value="other/windows.lua"/>
    <action fromid="10264" toid="10267" event="script" value="other/windows.lua"/>
    <action fromid="10488" toid="10491" event="script" value="other/windows.lua"/>

    <!-- Doors -->
    <action fromid="1209" toid="1214" event="script" value="other/doors.lua"/>
    <action fromid="1219" toid="1262" event="script" value="other/doors.lua"/>
    <action fromid="1539" toid="1542" event="script" value="other/doors.lua"/>
    <action fromid="2086" toid="2092" event="script" value="other/doors.lua"/>
    <action fromid="3535" toid="3552" event="script" value="other/doors.lua"/>
    <action fromid="4913" toid="4918" event="script" value="other/doors.lua"/>
    <action fromid="5082" toid="5085" event="script" value="other/doors.lua"/>
    <action fromid="5098" toid="5145" event="script" value="other/doors.lua"/>
    <action fromid="5278" toid="5295" event="script" value="other/doors.lua"/>
    <action fromid="5515" toid="5518" event="script" value="other/doors.lua"/>
    <action fromid="5732" toid="5737" event="script" value="other/doors.lua"/>
    <action fromid="5745" toid="5749" event="script" value="other/doors.lua"/>
    <action fromid="6192" toid="6209" event="script" value="other/doors.lua"/>
    <action fromid="6249" toid="6266" event="script" value="other/doors.lua"/>
    <action fromid="6795" toid="6802" event="script" value="other/doors.lua"/>
    <action fromid="6891" toid="6908" event="script" value="other/doors.lua"/>
    <action fromid="7033" toid="7050" event="script" value="other/doors.lua"/>
    <action fromid="7054" toid="7057" event="script" value="other/doors.lua"/>
    <action fromid="8541" toid="8558" event="script" value="other/doors.lua"/>
    <action fromid="9165" toid="9184" event="script" value="other/doors.lua"/>
    <action fromid="9267" toid="9284" event="script" value="other/doors.lua"/>
    <action itemid="10032" event="script" value="other/doors.lua"/>
    <action itemid="10091" event="script" value="other/doors.lua"/>
    <action fromid="10268" toid="10285" event="script" value="other/doors.lua"/>
    <action fromid="10468" toid="10486" event="script" value="other/doors.lua"/>
    <action fromid="10774" toid="10776" event="script" value="other/doors.lua"/>
    <action fromid="10779" toid="10785" event="script" value="other/doors.lua"/>
    <action fromid="10788" toid="10791" event="script" value="other/doors.lua"/>

    <!-- Watch -->
    <action itemid="2036" event="script" value="other/watch.lua"/>
    <action fromid="1728" toid="1731" event="script" value="other/watch.lua"/>
    <action itemid="1877" event="script" value="other/watch.lua"/>
    <action fromid="6091" toid="6092" event="script" value="other/watch.lua"/>
    <action itemid="8187" event="script" value="other/watch.lua"/>

    <!-- Decay To -->
    <action fromid="2041" toid="2042" event="script" value="other/decayto.lua"/>
    <action fromid="2044" toid="2045" event="script" value="other/decayto.lua"/>
    <action fromid="2047" toid="2048" event="script" value="other/decayto.lua"/>
    <action fromid="2050" toid="2055" event="script" value="other/decayto.lua"/>
    <action fromid="5812" toid="5813" event="script" value="other/decayto.lua"/>
    <action itemid="7183" event="script" value="other/decayto.lua"/>
    <action itemid="9006" event="script" value="other/decayto.lua"/>
    <action fromid="9976" toid="9979" event="script" value="other/decayto.lua"/>

    <!-- Other -->
    <action itemid="2114" event="script" value="other/piggybank.lua"/>
    <action fromid="6570" toid="6571" event="script" value="other/surprisebag.lua"/>
    <action fromid="5792" toid="5797" event="script" value="other/dice.lua"/>
    <action itemid="6576" event="script" value="other/fireworksrocket.lua"/>
    <action itemid="6578" event="script" value="other/partyhat.lua"/>
    <action itemid="2785" event="script" value="other/blueberrybush.lua"/>
    <action itemid="2579" event="script" value="other/trap.lua"/>

    <action itemid="5791" event="script" value="other/stuffeddragon.lua"/>
    <action itemid="6566" event="script" value="other/stuffeddragon.lua"/>

              <action itemid="748;751;755;752;754;753" event="script" value="addons.lua"/>

-- POTIONS / ANTIDOTE
    <action itemid="12343;12345-12348" event="script" value="potion.lua" allowfaruse="1" blockwalls="1"/>
    <action itemid="12349" event="script" value="medicine.lua" allowfaruse="1" blockwalls="1"/>
    <action itemid="12344" event="script" value="revive.lua" allowfaruse="1" blockwalls="1"/>

-- BOXES (poke inicial)
    <action itemid="1740" event="script" value="starter.lua"/>

-- POKEMON PRIZE BOXES / RARE CANDY
    -- POKEMON PRIZE BOXES / RARE CANDY

        <action itemid="11638;11639;11640;11641" event="script" value="box_antiga.lua"/>
        <action itemid="12227" event="script" value="shiny box.lua"/>
        <action itemid="12331" event="script" value="lendaria box.lua"/>

-- POKEDEX
    <action itemid="2382" event="script" value="pokedex.lua" allowfaruse="1" blockwalls="1"/>
    <action itemid="7385" event="script" value="pokeinfo.lua"/>

-- LOJA DE ROUPAS
    <action itemid="3896;3897;3867;3868" event="script" value="roupas.lua"/>

-- GO/BACK E CATCH
    <action itemid="11826-11837;11737-11748;10975-10977;12621-12623" event="script" value="goback.lua"/>
    <action itemid="2391-2394;12617" event="script" value="catch.lua" allowfaruse="1"/>

-- CASSINO

-- TV / CAM
    <action itemid="11416-11418;11395-11398;11401-11404" event="script" value="television.lua"/>
    <action itemid="12330" event="script" value="camera.lua"/>

-- PC
    <action itemid="11462-11469" event="script" value="computer.lua"/>

-- BOOST MACHINE
    <action itemid="12352-12357" event="script" value="boost.lua"/>

-- ORDER
    <action itemid="2550" event="script" value="order.lua" allowfaruse="1" blockwalls="0"/>

-- PEDRAS DE EVO
    <action itemid="11441;11454;12232;12242;12244;12417;12419;12401;12414;1820;1821;2037;2038;2396;2397;2398;2399" event="script" value="evolution.lua" allowfaruse="1"/>
              <action itemid="2400" event="script" value="Shiny stone.lua" allowfaruse="1"/>

  </actions>

                                                            vps-plano-01.png

 

                                                                                                                    http://www.weblara.com.br/

Link para o post
Compartilhar em outros sites

Coloca isto aqui no autoloot.lua:

 
local toloot = {11441, 11441, 11443, 11444, 11445, 11446, 11447, 11448, 11449,11450, 11451, 11452, 11453, 11454, 12618, 12232, 12244} -- PREFERENCIAL - SE QUISER APENAS COM ALGUNS ITENS
local useSpecific = false --True para lotear somente os itens que estiverem na tabela toloot, false para todos os itens do corpse
function onUse(cid, item, frompos, item2, topos)
if getItemAttribute(item.uid, "corpseowner") ~= cid then
doPlayerSendCancel(cid, "You're not the owner.")
return true
end
local items = {}
for x=0, (getContainerSize(item.uid)) do
local itens = getContainerItem(item.uid, x)
if useSpecific == true then
    if isInArray(toloot, itens.itemid) then
        table.insert(items, {i=itens.itemid, q=itens.type})
        doRemoveItem(itens.uid)
        break
    end
else
table.insert(items, {i=itens.itemid, q=itens.type})
doRemoveItem(itens.uid)
end
end
for y=1, #items do
doPlayerAddItemStacking(cid, items[y].i, items[y].q)
doPlayerSendTextMessage(cid, 20, "Looted "..items[y].q.."x "..getItemNameById(items[y].i)..".")
end
if #items > 0 then
return true
else
return false
end
end
--[[
AUTO LOOT BY GABRIEL SALES
SE QUISER ATIVAR O AUTOLOOT APENAS PARA ALGUNS ITENS, ADICIONE OS IDS NA TABELA toloot E TIRE OS COMENTÁRIOS(--).
--]]
Editado por otaviogfl (veja o histórico de edições)
Link para o post
Compartilhar em outros sites

não está indo será por causa do meu some fuctions?

olha ele ai

 

  Mostrar conteúdo oculto

                                                            vps-plano-01.png

 

                                                                                                                    http://www.weblara.com.br/

Link para o post
Compartilhar em outros sites
  Em 13/09/2014 em 17:12, otaviogfl disse:

Vc usa qual servidor?

Expand   Mostrar mais  

PDA by bolz

Gabrielbsales está dando esse erro aqui

[14/09/2014 09:09:20] [Error - Action Interface]
[14/09/2014 09:09:20] data/actions/scripts/Autoloot.lua:onUse
[14/09/2014 09:09:20] Description:
[14/09/2014 09:09:20] (luaGetContainerSize) Container not found

[14/09/2014 09:09:20] [Error - Action Interface]
[14/09/2014 09:09:20] data/actions/scripts/Autoloot.lua:onUse
[14/09/2014 09:09:20] Description:
[14/09/2014 09:09:20] data/actions/scripts/Autoloot.lua:9: 'for' limit must be a number
[14/09/2014 09:09:20] stack traceback:
[14/09/2014 09:09:20]     data/actions/scripts/Autoloot.lua:9: in function <data/actions/scripts/Autoloot.lua:3>

Gabrielbsales

                                                            vps-plano-01.png

 

                                                                                                                    http://www.weblara.com.br/

Link para o post
Compartilhar em outros sites

Participe da conversa

Você pode postar agora e se cadastrar mais tarde. Se você tem uma conta, faça o login para postar com sua conta.

Visitante
Responder

×   Você colou conteúdo com formatação.   Remover formatação

  Apenas 75 emojis são permitidos.

×   Seu link foi automaticamente incorporado.   Mostrar como link

×   Seu conteúdo anterior foi restaurado.   Limpar o editor

×   Não é possível colar imagens diretamente. Carregar ou inserir imagens do URL.

  • Quem Está Navegando   0 membros estão online

    Nenhum usuário registrado visualizando esta página.

  • Conteúdo Similar

    • Por FeeTads
      salve rapaziada, do TK, esses tempos eu tava a procura de um autoloot bom e eficiente, e como vocês devem saber, o autoloot usado nos scripts .lua são bem "pesados"
      o @Naze fez um excelentíssimo trabalho e disponibilizou um script de autoloot na source, porém como a vida é dificil, ele tem alguns bugs de função e um deles é no 
      "remove autoloot" que quando o player digita "!autoloot remove, nome-do-item" nada acontece, eu decidi mexer e vim disponibilizar arrumado pra vcs.
      LEMBRANDO QUE 100% DOS CRÉDITOS SÃO AO @Naze porém se vc procurar no tópico dele ainda vai estar bugado, então resolvi deixar aqui certinho pra ajudar quem precisar.


      Link do tópico do naze: https://tibiaking.com/forums/topic/101086-otimizado-autoloot-in-sources-for-otx2-ou-menor/
       

      caso alguém ja utilize esse autoloot e esteja com o problema de remover items do autoloot
      só ir em player.cpp e trocar

      isso:
       
      void Player::removeAutoLoot(uint16_t id) { if(checkAutoLoot(id)) { return; } AutoLoot.remove(id); }
      por isso:
      void Player::removeAutoLoot(uint16_t id) { if(!checkAutoLoot(id)) return; for(std::list<uint16_t>::iterator it = AutoLoot.begin(); it != AutoLoot.end(); ++it) { if((*it) == id) { AutoLoot.erase(it); break; } } }
      todos os créditos ao Naze, não sei se alguém mais fez esse código, mas como peguei do link citado acima que é post dele deixo aqui o autoloot 100% funcional direto nas sources
    • Por Featzen
      Bom, como um individuo(Vudi) não sabe cumprir o que fala, vou postar o sistema aqui.(não cabe ao post explicar aqui)
      Bom, aqui está o smeargle system, igual o da PxG. Vamos lá.
       
      1 - Vá na pasta Lib, substitua seu cooldown bar.lua por isso:



       
      2 - Ainda no Lib, no fim(depois do ultimo end) do Some Functions.lua, adicione isso:



       
      3 - Agora no order.lua, do Actions, em baixo de:
      if getTileThingByPos(checkpos).uid <= 0 then return true end Adicione:



       
      4 - Se seu servidor ja tiver os spells, sketch 1, sketch 2... Substitua por esses:
       



       
      Se não, use os mesmos acima, não esqueça de adicionar no spells.xml.
       
      5 - Agora, vá em talkactions/scripst, abra o move1.lua e substitua:



       
      Pronto, se tiver feito tudo certo, funcionará.
      Como ficará:



      Como usar:



       
      Créditos: Eu(Todo o script)
    • Por Cicuta Verde
      Alguem teria as sprites de todos hero cards do pxg q cujo alguns foram usados no Defenders de natal?
       
      Eu ja tive uma vez na epoca q dava pra pegar pelo próprio cliente, mas troquei de pc e perdi, agr to precisando pro meu projeto.
       
      *pesquisei por tags aqui no forum e ja pesquisei no google mas nao achei nada.
    • Por Digoshow
      Ola eu instalei um scrip no meu otserv que e o Auto-loot, tudo certinho blz, mais eu queria editar o comando que e usado para diciona um item, o comando que esta e esse /aloot remove:2170 eu queria deixa assim /aloot remove, 2170 tirar os 2 pontos e deixa uma virgula e um espaco depois da virgula, alguem consegue editar pra mim porfavor:
      Scrip que estou usando : http://www.tibiaking.com/forum/topic/8172-sistema-auto-loot/
      Obrigado, REP+ !
    • Por lucasmacaca
      OLA MEUS AMIGOS ,GOSTARIA DE SABER COMO EU CONSIGO FAZER UM MINI MAP TIPO ESSE , A MANEIRA MAIS FACIL ,DES DE JA AGRADEÇO  
  • Estatísticas dos Fóruns

    96823
    Tópicos
    519565
    Posts



×
×
  • Criar Novo...

Informação Importante

Confirmação de Termo