Bugs

60
Neutral Bot 10.20 ver 18 0000-0000-0000-0000-0000 0 0 listBox1 end listBox2 end listBox3 end listBoxId 0 0 0 0 0 0 0 0 0 0 0 0 0 end listBoxLabel end listBoxX 32076 32087 32089 32086 32079 32080 32074 32067 32065 32065 32058 32069 32077 end listBoxY 32155 32152 32147 32153 32155 32163 32154

Transcript of Bugs

Page 1: Bugs

Neutral Bot10.20 ver 180000-0000-0000-0000-000000listBox1endlistBox2endlistBox3endlistBoxId0000000000000endlistBoxLabel

endlistBoxX32076320873208932086320793208032074320673206532065320583206932077endlistBoxY32155321523214732153321553216332154

Page 2: Bugs

321523215232152321493215132155endlistBoxZ8888888888888endlistBoxTipo001.Walk to001.Walk to001.Walk to001.Walk to001.Walk to001.Walk to001.Walk to001.Walk to001.Walk to001.Walk to001.Walk to001.Walk to001.Walk toendlistBoxMessage

endMonsterBoxBUGendmonster_box_group0endmonster_box_sqm1endmonster_box_danger1end

Page 3: Bugs

monster_box_order1endmonster_box_minhp0endmonster_box_maxhp100endmonster_box_diagonal01.FalseendBpBox1endBpBoxType1endBpBoxValue1endBpBox2endBpBoxType2endBpBoxValue2endBpBox3endBpBoxType3endBpBoxValue3endBpBox4endBpBoxType4endBpBoxValue4endBpBox5endBpBoxType5endBpBoxValue5endBpBox6endBpBoxType6endBpBoxValue6endBpBoxMinQty1endBpBoxMinQty2endBpBoxMinQty3endBpBoxMinQty4endBpBoxMinQty5endBpBoxMinQty6endBpBoxImportant1endBpBoxImportant2end

Page 4: Bugs

BpBoxImportant3endBpBoxImportant4endBpBoxImportant5endBpBoxImportant6endBpBoxGroup1endBpBoxGroup2endBpBoxGroup3endBpBoxGroup4endBpBoxGroup5endBpBoxGroup6endDepotBox1endDepotBox1QtdendDepotBox2endDepotBox2QtdendDepotBox3endDepotBox3QtdendRepot1ItemsendRepot1MinendRepot1MaxendRepot1PrecoendRepot2ItemsendRepot2MinendRepot2MaxendRepot2PrecoendRepot3ItemsendRepot3MinendRepot3MaxendRepot3PrecoendlistBoxFreeId10207102091021610286102871028811009

Page 5: Bugs

1180011801118021180311804118051180611807118081180911810140173611736421182119212021212122212321242125212621272131213221332134213523142315231623192346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376

Page 6: Bugs

2377237823792380238123822383238423852418241924202421242224232424242524262431243224332434244124422443244424692471247224732478248024812482248324842485248625192523277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798

Page 7: Bugs

27992800280128022803280428052806280728082809281028112812298129822983298429852987298835033504351438074045086508750886114611563556356635763586359636063616362637163727864831832833834876388390619062endlistBoxBlockIdendlistBoxTrapId2025202920302043204420452046204720482059

Page 8: Bugs

2060206124452446244724482449245024512452245324542465246624672468252429042959296029612962296329642975297629792982298629972998299930003484348534863487351035113512351350465055505661096110611161126367636863696370786078617862786391329141102081021010211102121021310214

Page 9: Bugs

10215endmap_wall_lureendmap_wall_battleendmap_wall_normalendtake_skin->listBox1endtake_skin->listBox2endtake_skin->listBox3endtake_skin->listBox4endtake_skin->listBox5endtake_skin->listBox6end2Atack_spell_form->spell_listendACTIONSend4LUA_PARTHUD1000FalseFalseHUD KIller Caiman v 1.10 by Peedroh profit_total = 0total = 0 waste_total=0

info_pos_x = TelaBordaX()-170info_pos_y = 40info_offset_x_value = 120offset_y = 15;info_R = 0info_G =255info_B =0

info_list = {{name = "Level", func = Self.level()},

{name = "Exp/h",func = exp_hour()},{name = "Time next lvl", func =exp_to_next_lvl()},{name = "Cap", func = Self.cap()},

{name=Self.mlevelpc(), func= "% para ml " .. Self.mlevel()}, {name=Self.swordpc(), func= "% para sword ".. Self.sword()}, {name=Self.shieldingpc(), func= "% shield " .. Self.shielding()}, {name="Tempo de bot em minutos ", func= info_bot_time_running()/60000},}info_pos_x = 15hudbar(100,10, info_pos_y,180,TelaSizeY(),20,60,120,0,0,0,false,false)hudbar(100,tibiascreensizex() - 350, info_pos_y,183,TelaSizeY(),20,60,120,0,0,0,false,false)hudsquare(10,info_pos_y-3,info_pos_x+55+info_offset_x_value,TelaSizeY()+40,255,180,20,3)

Page 10: Bugs

hudsquare(tibiascreensizex()-350,info_pos_y-3,tibiascreensizex()-350+183,TelaSizeY()+40,255,180,20,3)

hudfont("comic san ms",1,1, 1, 20)hudtext(newstring("Self Info"),255,255,255,info_pos_x,info_pos_y)info_pos_y = (info_pos_y + offset_y + 5)hudfont("comic san ms",0,0, 1, 14)for i=1,table.getn(info_list),1 doif i >4 thenhudtext(newstring(info_list[i].name,info_list[i].func),info_R,info_G,info_B,info_pos_x,info_pos_y)elsehudtext(newstring(info_list[i].name),info_R,info_G,info_B,info_pos_x,info_pos_y)hudtext(newstring(info_list[i].func),info_R,info_G,info_B,info_pos_x+info_offset_x_value,info_pos_y)endinfo_pos_y=info_pos_y+offset_yendhudfont("comic san ms",1,0,1,25)hudtext(newstring("--------------------------"),255,180,0,info_pos_x-5,info_pos_y+10)info_pos_y=info_pos_y+offset_y

-- SELF INFO PART END --

-- BOT INFO PART --info_pos_y = (info_pos_y + 50)offset_y = 15;offset_x_on = 120

info_on_R = 0;info_on_G = 255;info_on_B = 0;

hudfont("comic san ms",1,1, 1, 20)hudtext("Bot Status",255,255,255,info_pos_x,info_pos_y)

info_pos_y = (info_pos_y + offset_y+10)

hudfont("comic san ms",0,0, 1, 14)

status_on_of = "OFF"

if status_waypointer() then status_on_of = "ON" else status_on_of = "OFF" endif status_on_of == "OFF" then info_on_R = 255info_on_G = 0info_on_B = 0elseinfo_on_R = 0info_on_G = 255info_on_B = 0end hudtext("Waypointer ",info_R,info_G,info_B,info_pos_x,info_pos_y) hudtext(status_on_of,info_on_R,info_on_G,info_on_B,info_pos_x+offset_x_on,info_pos_y) info_pos_y = (info_pos_y + offset_y)

if status_hunter() then status_on_of = "ON" else status_on_of = "OFF" endif status_on_of == "OFF" then info_on_R = 255info_on_G = 0

Page 11: Bugs

info_on_B = 0elseinfo_on_R = 0info_on_G = 255info_on_B = 0end hudtext("Hunter ",info_R,info_G,info_B,info_pos_x,info_pos_y) hudtext(status_on_of,info_on_R,info_on_G,info_on_B,info_pos_x+offset_x_on,info_pos_y) info_pos_y = (info_pos_y + offset_y)

if status_looter() then status_on_of = "ON" else status_on_of = "OFF" endif status_on_of == "OFF" then info_on_R = 255info_on_G = 0info_on_B = 0elseinfo_on_R = 0info_on_G = 255info_on_B = 0end hudtext("Looter ",info_R,info_G,info_B,info_pos_x,info_pos_y) hudtext(status_on_of,info_on_R,info_on_G,info_on_B,info_pos_x+offset_x_on,info_pos_y) info_pos_y = (info_pos_y + offset_y)

if status_waypointer() then status_on_of = "ON" else status_on_of = "OFF" endif status_on_of == "OFF" then info_on_R = 255info_on_G = 0info_on_B = 0elseinfo_on_R = 0info_on_G = 255info_on_B = 0end hudtext("Atack Spell ",info_R,info_G,info_B,info_pos_x,info_pos_y) hudtext(status_on_of,info_on_R,info_on_G,info_on_B,info_pos_x+offset_x_on,info_pos_y) info_pos_y = (info_pos_y + offset_y)

if status_lua_background() then status_on_of = "ON" else status_on_of = "OFF" endif status_on_of == "OFF" then info_on_R = 255info_on_G = 0info_on_B = 0elseinfo_on_R = 0info_on_G = 255info_on_B = 0end hudtext("Lua Background ",info_R,info_G,info_B,info_pos_x,info_pos_y) hudtext(status_on_of,info_on_R,info_on_G,info_on_B,info_pos_x+offset_x_on,info_pos_y) info_pos_y = (info_pos_y + offset_y)

if status_auto_mount() then status_on_of = "ON" else status_on_of = "OFF" endif status_on_of == "OFF" then info_on_R = 255info_on_G = 0info_on_B = 0else

Page 12: Bugs

info_on_R = 0info_on_G = 255info_on_B = 0end hudtext("Auto Mount ",info_R,info_G,info_B,info_pos_x,info_pos_y) hudtext(status_on_of,info_on_R,info_on_G,info_on_B,info_pos_x+offset_x_on,info_pos_y) info_pos_y = (info_pos_y + offset_y)

if status_recover() then status_on_of = "ON" else status_on_of = "OFF" endif status_on_of == "OFF" then info_on_R = 255info_on_G = 0info_on_B = 0elseinfo_on_R = 0info_on_G = 255info_on_B = 0end hudtext("Recover ",info_R,info_G,info_B,info_pos_x,info_pos_y) hudtext(status_on_of,info_on_R,info_on_G,info_on_B,info_pos_x+offset_x_on,info_pos_y) hudfont("comic san ms",1,0,1,25)hudtext(newstring("--------------------------"),255,180,0,info_pos_x-5,info_pos_y+20)info_pos_y = (info_pos_y + offset_y)

-- BOT INFO PART END -- -- BOT ANIMATED LIFE BAR --place_x= TelaBordaX()+20place_y= TelaBordaY()+ 40size_x = TelaSizeX()-20size_y = 15

red_variation = 0blue_bar = 255

hp = Self.hppc()if hp <= 40 and hp >=25 then

red_variation = 7if temp_life == nil thentemp_life = 255else

if temp_life >= 200 thentemp_life = (temp_life - 10)elsetemp_life = 255

endend

elseif hp <= 25 and hp >=0 thenred_variation = 4if temp_life == nil thentemp_life = 255else

if temp_life >= 200 thentemp_life = (temp_life - 10)elsetemp_life = 255end

endelse

Page 13: Bugs

temp_life = 200red_variation = 5end

hudbar(100,place_x+10,place_y,size_x-20,size_y,255,0,0,1,0,0,true,true)hudbar(hp,place_x+10,place_y,size_x-20,size_y,temp_life,0,0,red_variation,0,0,true,true)-- BOT ANIMATED LIFE BAR END----STAMINA temp_r=0temp_g=0temp_b=0if Self.stamina() >= 2400 thentemp_r=0temp_g=255temp_b=0elseif (Self.stamina()>=900) and (Self.stamina()<2400) thentemp_r=240temp_g=120temp_b=0elsetemp_r=255temp_g=0temp_b=0end

stamina_percent = Self.stamina() / (2520 / 100)

hudfont("comic san ms",1,0,1,20)hudtext(newstring("Stamina: ", Self.stamina()/60,":",math.fmod(Self.stamina(),60)),temp_r,temp_g,temp_b,TelaBordaX()+((TelaSizeX())/2)-20,TelaBordaY() +TelaSizeY()+35)hudbar(stamina_percent,place_x+10,TelaBordaY()+TelaSizeY()+55,size_x-20,size_y-5,temp_r,temp_g,temp_b,0,8,0,true,true)

-- BOOT LOOTED ITEM LIST --item_list = {

{name = "Gold coin", price = 1},{name = "Small Emerald", price = 250},{name = "Giant Shimmering Pearls", price= 3000},

{name = "Crocodile Boots", price=1000},

}

-- POSITION OF THE ITEM LIST AND SPACE BETWEEN ITEMS -- loot_list_x =tibiascreensizex() -345;loot_list_y = 40off_set_between_item = 15offset_between_value = 130loot_R = 0loot_G=255loot_B=0

hudfont("comic san ms",1,1, 1, 20)hudtext("Loot list by Neutral",255,255,255,loot_list_x,loot_list_y)hudfont("arial",0,1, 1, 15)loot_list_y = (loot_list_y + off_set_between_item+10)for i = 1,table.getn(item_list),1 do

Page 14: Bugs

this_total = (qtylooteditem(item_list[i].name) * item_list[i].price)total = (total +this_total)temp_str = item_list[i].name;if (string.len(temp_str) > 14) thentemp_str = newstring(string.sub(temp_str,1,14),"...")endif i==1 then

hudtext(newstring(temp_str),loot_R,loot_G,loot_B,loot_list_x,loot_list_y)

hudtext(newstring(qtylooteditem(item_list[i].name)),loot_R,loot_G,loot_B,loot_list_x+100,loot_list_y)else

hudtext(newstring(temp_str),loot_R,loot_G,loot_B,loot_list_x,loot_list_y)

hudtext(newstring(qtylooteditem(item_list[i].name)),loot_R,loot_G,loot_B,loot_list_x+100,loot_list_y) hudtext(newstring("(",(this_total/1000),"k)"),loot_R,loot_G,loot_B,(loot_list_x+offset_between_value),loot_list_y)end

loot_list_y = (loot_list_y + off_set_between_item)end -- BOOT LOOTED ITEM LIST END --

hudfont("comic san ms",1,0,1,25)hudtext(newstring("--------------------------"),255,180,0,loot_list_x-5,loot_list_y+20)loot_list_y = (loot_list_y + off_set_between_item)

-- PROFITwaste_list = { {name= "Mana Potion", price=50}, {name= "Strong Health Potion", price= 100}, }

-- POSITION OF PROFITprofit_x= tibiascreensizex() - 345profit_y= loot_list_y + 50off_set_item=15off_set_value=130profit_R=0profit_G=255profit_B=0

hudfont("comic san ms",1,1,1,20)hudtext("Profit",255,255,255,profit_x,profit_y)hudfont("comic san ms",0,1,1,14)profit_y= profit_y+off_set_item+10for x=1,table.getn(waste_list),1 dowaste_local=count_used_items(waste_list[x].name)*waste_list[x].pricewaste_total=waste_total+waste_localtemp_str=waste_list[x].nameif (string.len(temp_str) > 13) thentemp_str = (string.sub(temp_str,1,13).."...")endhudtext(newstring(temp_str),profit_R,profit_G,profit_B,profit_x,profit_y)hudtext(newstring(count_used_items(waste_list[x].name)),profit_R,profit_G,profit_B,profit_x+100,profit_y)hudtext(newstring(count_used_items(waste_list[x].name)*waste_list[x].price,"k"),profit_R,profit_G,profit_B,profit_x+off_set_value,profit_y)profit_y = (profit_y + off_set_item)

Page 15: Bugs

endprofit_y = profit_y +5profit_total=total-waste_totalhudfont("comic san ms",0,0,1,20)hudtext(newstring( "Waste Total:"),profit_R,profit_G,profit_B,profit_x,profit_y)hudtext(newstring(waste_total,"k"),profit_R,profit_G,profit_B,profit_x+off_set_value,profit_y)profit_y = profit_y + off_set_item+10hudfont("comic san ms",0,1,1,25)

hudtext(newstring("Profit: "),profit_R,profit_G,profit_B,profit_x,profit_y)hudtext(newstring(profit_total/1000,".",math.fmod(profit_total,1000),"k"),profit_R,profit_G,profit_B,profit_x+85,profit_y)profit_y=profit_y+off_set_item+15hudtext(newstring("Balance: "),profit_R,profit_G,profit_B,profit_x,profit_y)

profit_y=profit_y+off_set_item+50-- PROFIT END !!!!!hudfont("comic san ms",1,0,1,25)hudtext(newstring("--------------------------"),255,180,0,profit_x-5,profit_y-25)profit_y = (profit_y + off_set_item)

-- TASK SYSTEMmonster=250-qtymonsterkilled("Killer Caiman")if monster <=0 thenresetmonstercount()endhudfont("comic san ms",1,1,1,25)hudtext(newstring("Task Infos: "),profit_R,profit_G,profit_B,profit_x,profit_y) profit_y=profit_y+off_set_item+15hudfont("comic san ms",0,1,1,15)hudtext(newstring("Killer Caiman Restantes: "), profit_R,profit_G,profit_B,profit_x,profit_y)hudtext(newstring(monster), profit_R,profit_G,profit_B,profit_x+150,profit_y)

hudfont("comic san ms",1,0,1,25)hudtext(newstring("--------------------------"),255,180,0,profit_x-5,profit_y+25)

hudfont("comic sans ms",1,1,1,30)hudtext(newstring("HUD by Peedroh"),255,155,50,profit_x-5,profit_y+80)

Page 16: Bugs

code_endFalseHUD level spy v 1.00 By neutral and credits to matheus camposfunction draw_as_cordinate(text,r,g,b,cord_x,cord_y)

each_x = TelaSizeX() /15; each_y = TelaSizeY() /11;

initial_x = Self.posx(); initial_y = Self.posy();

dist_x = math.abs(cord_x - initial_x); dist_y = math.abs(cord_y - initial_y); if dist_x > 7 or dist_y > 5 then

Page 17: Bugs

return 0; end place_to_draw_x = TelaBordaX()+(each_y/2); place_to_draw_y = TelaBordaY()+each_y

place_to_draw_x = place_to_draw_x + each_x * (cord_x - (initial_x - 7)); place_to_draw_y = place_to_draw_y + each_y * (cord_y - (initial_y - 5));

hudtext(text,r,g,b,place_to_draw_x,place_to_draw_y);end

function level_spy_hud()

hudfont("comic san ms",0,1, 1, 15) for i = 1,monster_on_screen_total() do if monster_on_screen_visible(i-1) then r,g,b = 0,255,0; if monster_on_screen_z(i-1) < Self.posz() then r,g,b = 255,255,0;

elseif monster_on_screen_z(i-1) > Self.posz() then r,g,b = 0,255,255; end text_to_put = monster_on_screen_name(i-1); level_dif = (Self.posz() - monster_on_screen_z(i-1)); if level_dif < 0 then text_to_put = text_to_put .. level_dif; else text_to_put = text_to_put .."+".. level_dif; end draw_as_cordinate(text_to_put,r,g,b,monster_on_screen_x(i-1),monster_on_screen_y(i-1)); end endendlevel_spy_hud()code_endFalseHUD magic wall timer count v 1.00 By Neutral

function draw_as_cordinate(text,r,g,b,cord_x,cord_y)

local each_x = TelaSizeX() /15; local each_y = TelaSizeY() /11;

local initial_x = Self.posx(); local initial_y = Self.posy();

local dist_x = math.abs(cord_x - initial_x); local dist_y = math.abs(cord_y - initial_y); if dist_x > 7 or dist_y > 5 then return 0; end local place_to_draw_x = TelaBordaX()+(each_y/2); local place_to_draw_y = TelaBordaY()+each_y

local place_to_draw_x = place_to_draw_x + each_x * (cord_x - (initial_x - 7)); local place_to_draw_y = place_to_draw_y + each_y * (cord_y - (initial_y - 5));

hudtext(text,r,g,b,place_to_draw_x,place_to_draw_y);

Page 18: Bugs

end

function refresh_walls_time(script_delay)if total_wall == nil or total_wall == 0 then return end;

for i =1,total_wall doif array_wall[i][4] < 0 then

for b =i,(total_wall-1) do

array_wall[b][1] = array_wall[b+1][1];array_wall[b][2] = array_wall[b+1][2];array_wall[b][3] = array_wall[b+1][3];array_wall[b][4] = array_wall[b+1][4];

endtotal_wall = total_wall-1;

elsearray_wall[i][4] = array_wall[i][4] - (script_delay+1);if tiletopid(array_wall[i][1],array_wall[i][2]) ==

magic_wall_id thenarray_wall[i][5] = 0;

endend

endfor i =1,total_wall do

dist_x = math.abs(Self.posx() - array_wall[i][1]);dist_y = math.abs(Self.posy() - array_wall[i][2]);if dist_x <= 8 and dist_y <= 4 and tiletopid(array_wall[i]

[1],array_wall[i][2]) ~= magic_wall_id then

--eliminate form arrayif array_wall[i][5] > 3 then

for b =i,(total_wall-1) do

array_wall[b][1] = array_wall[b+1][1];array_wall[b][2] = array_wall[b+1][2];array_wall[b][3] = array_wall[b+1][3];array_wall[b][4] = array_wall[b+1][4];

endtotal_wall = total_wall-1;

elsearray_wall[i][5] = 1+array_wall[i][5];

endend

endend

function add_wall_time(x,y,z,this_delay)

-- create multiarrayif array_wall == nil then

array_wall = {};for i = 1,200 do

array_wall[i] = {};end

end--add new array

for i =1,total_wall doif array_wall[i][1] == x and array_wall[i][2] == y and array_wall[i]

[3] == z thenreturn;

endend

Page 19: Bugs

if total_wall == nil or total_wall == 0 thentotal_wall = 1;

elsetotal_wall = 1 + total_wall;

end

array_wall[total_wall][1] = x;array_wall[total_wall][2] = y;array_wall[total_wall][3] = z;array_wall[total_wall][4] = 20000-this_delay;array_wall[total_wall][5] = 0;

end

function magic_wall_show()

hudtext("Magic Wall Display 1.00",170,255,0,20,35)

hudfont("Courier New",0,1, 1, 16)this_delay = 50;set_hud_delay(this_delay)local initial_x = Self.posx() - 6;local initial_y = Self.posy() - 8;local magic_wall_id = 2129;

for x=0,17 do

for y=0,15 do

if tiletopid(initial_x+x,initial_y+y) == magic_wall_id then

add_wall_time(initial_x+x,initial_y+y,Self.posz(),this_delay);

endend

end

place_y = 50;if total_wall ~= nil then

for i = 1,total_wall do

if array_wall[total_wall][3] == Self.posz() thendraw_as_cordinate(""..array_wall[i][4],255,0,0,array_wall[i]

[1],array_wall[i][2]);end

hudtext("wall on list -> "..array_wall[i][4],170,255,0,20,place_y)place_y = place_y + 15

endend

refresh_walls_time(this_delay);

end

magic_wall_show()

Page 20: Bugs

code_endFalseHUD mnml v 1.00 credits to Peedroh and Iridiumflare--HUD minimal v1.0 by: iridiumflare--Original: HUD Principal Peedroh 2.1 set_hud_delay(100)profit_total = 0total = 0 waste_total=0

info_pos_x = TelaBordaX()-187info_pos_y = 90info_offset_x_value = 120offset_y = 15;info_R = 173info_G = 173info_B = 173

mlpc= 100-Self.mlevelpc()swpc= 100 - Self.axepc()shpc= 100 - Self.shieldingpc()time_running = info_bot_time_running()time_h = math.floor(time_running/3600000)time_min = math.fmod(math.floor(time_running/60000),60)time_sec =math.fmod(math.floor(time_running/1000),60)qty_exp_h= exp_hour()exp_pro_lvl = exp_to_next_lvl()exp_h= math.floor ((exp_to_next_lvl() / exp_hour()))exp_m= math.fmod(math.floor(exp_to_next_lvl() / (exp_hour() / 60)),60)

exp_s=0

info_list = {{name = "Level", func = Self.level()},

{name = "Exp/h",func = qty_exp_h},{name = "Exp next lvl", func =exp_pro_lvl },

{name = "Time Next Lvl", func = "" ..exp_h.. ":" .. exp_m}, {name= "Bot time running: ", func ="" .. time_h .. ":" .. time_min .. ":" .. time_sec}, {name= "ML ", func = ""..Self.mlevel().. "(" .. mlpc .."%)"}, {name= "Axe ", func = "" .. Self.axe().. "(".. swpc .. "%)"}, {name= "Shield ", func="" .. Self.shielding().. "(".. shpc .. "%)"},

}info_pos_x = 15

hudfont("tohoma",0,0, 1, 20)hudtext(newstring("Self Info"),247,95,95,info_pos_x,info_pos_y)info_pos_y = (info_pos_y + offset_y + 5)

hudfont("tohoma",0,0, 1, 14)for i=1,table.getn(info_list),1 do -- IMPRIMIR ARRAY INF_LIST

Page 21: Bugs

hudtext(newstring(info_list[i].name),info_R,info_G,info_B,info_pos_x,info_pos_y)

hudtext(newstring(info_list[i].func),191,191,191,info_pos_x+info_offset_x_value,info_pos_y)

info_pos_y=info_pos_y+offset_yend

hudfont("tohoma",0,0,0,25)hudtext(newstring("________________"),191,191,191,info_pos_x-3,info_pos_y+10)info_pos_y=info_pos_y+offset_y

-- SELF INFO PART END --

-- BOT INFO PART --info_pos_y = (info_pos_y + 50)offset_y = 15;offset_x_on = 120

info_on_R = 0;info_on_G = 255;info_on_B = 0;

hudfont("tohoma",0,0, 1, 20)hudtext("Bot Status",247,95,95,info_pos_x,info_pos_y)

info_pos_y = (info_pos_y + offset_y+10)

hudfont("tohoma",0,0, 1, 14)

status_on_of = "OFF"

if status_waypointer() then status_on_of = "ON" else status_on_of = "OFF" endif status_on_of == "OFF" then info_on_R = 247info_on_G = 95info_on_B = 95elseinfo_on_R = 159info_on_G = 159info_on_B = 255end hudtext("Waypointer ",info_R,info_G,info_B,info_pos_x,info_pos_y) hudtext(status_on_of,info_on_R,info_on_G,info_on_B,info_pos_x+offset_x_on,info_pos_y) info_pos_y = (info_pos_y + offset_y)

if status_hunter() then status_on_of = "ON" else status_on_of = "OFF" endif status_on_of == "OFF" then info_on_R = 247info_on_G = 95info_on_B = 95elseinfo_on_R = 159info_on_G = 159info_on_B = 255end hudtext("Hunter ",info_R,info_G,info_B,info_pos_x,info_pos_y) hudtext(status_on_of,info_on_R,info_on_G,info_on_B,info_pos_x+offset_x_on,info_pos_y) info_pos_y = (info_pos_y + offset_y)

Page 22: Bugs

if status_looter() then status_on_of = "ON" else status_on_of = "OFF" endif status_on_of == "OFF" then info_on_R = 247info_on_G = 95info_on_B = 95elseinfo_on_R = 159info_on_G = 159info_on_B = 255end hudtext("Looter ",info_R,info_G,info_B,info_pos_x,info_pos_y) hudtext(status_on_of,info_on_R,info_on_G,info_on_B,info_pos_x+offset_x_on,info_pos_y) info_pos_y = (info_pos_y + offset_y)

if status_waypointer() then status_on_of = "ON" else status_on_of = "OFF" endif status_on_of == "OFF" then info_on_R = 247info_on_G = 95info_on_B = 95elseinfo_on_R = 159info_on_G = 159info_on_B = 255end hudtext("Atack Spell ",info_R,info_G,info_B,info_pos_x,info_pos_y) hudtext(status_on_of,info_on_R,info_on_G,info_on_B,info_pos_x+offset_x_on,info_pos_y) info_pos_y = (info_pos_y + offset_y)

if status_lua_background() then status_on_of = "ON" else status_on_of = "OFF" endif status_on_of == "OFF" then info_on_R = 247info_on_G = 95info_on_B = 95elseinfo_on_R = 159info_on_G = 159info_on_B = 255end hudtext("Lua Background ",info_R,info_G,info_B,info_pos_x,info_pos_y) hudtext(status_on_of,info_on_R,info_on_G,info_on_B,info_pos_x+offset_x_on,info_pos_y) info_pos_y = (info_pos_y + offset_y)

if status_auto_mount() then status_on_of = "ON" else status_on_of = "OFF" endif status_on_of == "OFF" then info_on_R = 247info_on_G = 95info_on_B = 95elseinfo_on_R = 159info_on_G = 159info_on_B = 255end hudtext("Auto Mount ",info_R,info_G,info_B,info_pos_x,info_pos_y) hudtext(status_on_of,info_on_R,info_on_G,info_on_B,info_pos_x+offset_x_on,info_pos_y) info_pos_y = (info_pos_y + offset_y)

if status_recover() then status_on_of = "ON" else status_on_of = "OFF" end

Page 23: Bugs

if status_on_of == "OFF" then info_on_R = 247info_on_G = 95info_on_B = 95elseinfo_on_R = 159info_on_G = 159info_on_B = 255end hudtext("Recover ",info_R,info_G,info_B,info_pos_x,info_pos_y) hudtext(status_on_of,info_on_R,info_on_G,info_on_B,info_pos_x+offset_x_on,info_pos_y)

-- BOT INFO PART END --

-- BOOT LOOTED ITEM LIST --

-- BOOT LOOTED ITEM LIST --item_list = {

{name = "Gold coin", price = 1},{name = "Damselfly Wing", price = 20},{name = "Damselfly Eye", price= 25},

{name = "Marsh Stalker Beak", price=60},{name = "Marsh Stalker Feather", price=50},{name = "Swampling Moss", price=20},{name = "Piece of Swampling Wood", price=30},

}

-- POSITION OF THE ITEM LIST AND SPACE BETWEEN ITEMS -- loot_list_x =tibiascreensizex() -365;loot_list_y = 90off_set_between_item = 15offset_between_value = 130loot_R= 173loot_G= 173loot_B= 173loot_valor_R =191loot_valor_G =191loot_valor_B =191

hudfont("tohoma",0,0, 1, 20)hudtext("Loot:",247,95,95,loot_list_x,loot_list_y)hudfont("tohoma",0,0, 1, 14)loot_list_y = (loot_list_y + off_set_between_item+10)for i = 1,table.getn(item_list),1 do -- IMPRIMIR O ARRAY ITEM_LIST

this_total = (qtylooteditem(item_list[i].name) * item_list[i].price)total = (total +this_total)temp_str = item_list[i].name;

if (string.len(temp_str) > 11) then -- DIMINUIR O NOME DO LOOT EX: MARSH STALK..

temp_str = newstring(string.sub(temp_str,1,11),"...")end

if i==1 then -- VERIFICAR SE O LOOT ? GOLD COIN, PARA IMPRIMIR APENAS A QUANTIDADE! GOLD COIN TEM QUE SER O PRIMEIRO DO ARRAY ITEM_LIST

Page 24: Bugs

hudtext(newstring(temp_str),loot_R,loot_G,loot_B,loot_list_x,loot_list_y)

hudtext(newstring(qtylooteditem(item_list[i].name)),loot_valor_R,loot_valor_G,loot_valor_B,loot_list_x+120,loot_list_y)

elseif this_total < 1000 then -- IMPRIMIR O RESTANTE DOS LOOTS E FAZER ELE VIRAR GPS CASO SEJA MENOR QUE 1K

hudtext(newstring(temp_str),loot_R,loot_G,loot_B,loot_list_x,loot_list_y)

hudtext(newstring(qtylooteditem(item_list[i].name)),loot_valor_R,loot_valor_G,loot_valor_B,loot_list_x+100,loot_list_y) hudtext(newstring("(",(this_total),"gps)"),loot_valor_R,loot_valor_G,loot_valor_B,(loot_list_x+offset_between_value-8),loot_list_y)

else -- IMPRIMIR EM K

hudtext(newstring(temp_str),loot_R,loot_G,loot_B,loot_list_x,loot_list_y)

hudtext(newstring(qtylooteditem(item_list[i].name)),loot_valor_R,loot_valor_G,loot_valor_B,loot_list_x+100,loot_list_y) hudtext(newstring("(",(this_total/1000),".",math.floor(math.fmod(this_total,1000)/100),"k)"),loot_valor_R,loot_valor_G,loot_valor_B,(loot_list_x+offset_between_value),loot_list_y)

endloot_list_y = loot_list_y + off_set_between_item

endloot_list_y = loot_list_y +5

hudfont("tohoma",0,0,1,19)hudtext(newstring("Total: "),loot_R,loot_G,loot_B,loot_list_x,loot_list_y)hudtext(newstring(total),159,159,255,loot_list_x+100,loot_list_y)

loot_list_y = (loot_list_y + off_set_between_item)

-- BOOT LOOTED ITEM LIST END --

hudfont("tohoma",0,0,0,25)hudtext(newstring("________________"),191,191,191,loot_list_x-5,loot_list_y+20)loot_list_y = (loot_list_y + off_set_between_item)

-- PROFIT

waste_list = { {name= "Mana Potion", price=50}, {name= "Strong Health Potion", price= 100}, }

-- POSITION OF PROFIT

profit_x= tibiascreensizex() - 365profit_y= loot_list_y + 50off_set_item=15off_set_value=130profit_R=173profit_G=173profit_B=173

Page 25: Bugs

profit_valor_R =191profit_valor_G =191profit_valor_B =191

hudfont("tohoma",0,0,1,20)hudtext("Profit",247,95,95,profit_x,profit_y)hudfont("tohoma",0,0,1,14)profit_y= profit_y+off_set_item+10

for x=1,table.getn(waste_list),1 do -- IMPRIMIR O ARRAY WASTE_LIST

waste_local=count_used_items(waste_list[x].name)*waste_list[x].pricewaste_total=waste_total+waste_localtemp_str=waste_list[x].name

if (string.len(temp_str) > 11) then -- REDUZIR O NOME DO LOOT EX: MARSH STALK...

temp_str = (string.sub(temp_str,1,11).."...")end

if waste_local < 1000 then -- IMPRIMIR EM GPS

hudtext(newstring(temp_str),profit_R,profit_G,profit_B,profit_x,profit_y)

hudtext(newstring(count_used_items(waste_list[x].name)),profit_valor_R,profit_valor_G,profit_valor_B,profit_x+100,profit_y)

hudtext(newstring(waste_local,"gps"),profit_valor_R,profit_valor_G,profit_valor_B,profit_x+off_set_value,profit_y)

else -- IMPRIMIR EM K

hudtext(newstring(temp_str),profit_R,profit_G,profit_B,profit_x,profit_y)

hudtext(newstring(count_used_items(waste_list[x].name)),profit_valor_R,profit_valor_G,profit_valor_B,profit_x+100,profit_y)

hudtext(newstring(waste_local/1000,".",math.floor(math.fmod(waste_local/1000)/100),"k"),profit_valor_R,profit_valor_G,profit_valor_B,profit_x+off_set_value,profit_y)

endprofit_y = (profit_y + off_set_item)

endprofit_y = profit_y +5profit_total=total-waste_totalprofit_hora=(profit_total/time_h)

hudfont("tohoma",0,0,1,20)hudtext(newstring( "Waste Total:"),profit_R,profit_G,profit_B,profit_x,profit_y)

if waste_total < 1000 then -- IMPRIMIR EM GPS

hudtext(newstring(waste_total,"gps"),profit_valor_R,profit_valor_G,profit_valor_B,profit_x+off_set_value-8,profit_y)

Page 26: Bugs

else -- IMPRIMIR EM K

hudtext(newstring(waste_total/1000,"k"),profit_valor_R,profit_valor_G,profit_valor_B,profit_x+off_set_value,profit_y)

endprofit_y = profit_y + off_set_item+10hudfont("tohoma",0,0,1,20)

if time_h < 1 then -- n?o ficar profit negativo!

hudtext(newstring("Profit/H:"),profit_R,profit_G,profit_B,profit_x,profit_y)

hudtext(newstring("0.0"),profit_valor_R,profit_valor_G,profit_valor_B,profit_x+85,profit_y)

profit_y=profit_y+off_set_item+15

else -- IMPRIMIR PROFIT/H DEPOIS DE 1 HORA

hudtext(newstring("Profit/H:"),profit_R,profit_G,profit_B,profit_x,profit_y)hudtext(newstring(profit_hora/1000,".",

math.floor(math.fmod(profit_hora,10)),"k"),profit_valor_R,profit_valor_G,profit_valor_B,profit_x+85,profit_y)

profit_y=profit_y+off_set_item+15end

hudtext(newstring("Profit:"),profit_R,profit_G,profit_B,profit_x,profit_y)hudtext(newstring(profit_total/1000,".",math.floor(math.fmod(profit_total,1000)/100),"k"),profit_valor_R,profit_valor_G,profit_valor_B,profit_x+85,profit_y)profit_y=profit_y+off_set_item+15hudtext(newstring("Balance:"),profit_R,profit_G,profit_B,profit_x,profit_y)hudtext(newstring(last_balance()/10),profit_valor_R,profit_valor_G,profit_valor_B,profit_x+100,profit_y)profit_y=profit_y+off_set_item+50

-- PROFIT END !!!!!

code_endFalseHUD Pepper Scriptsset_hud_delay(100)info_pos_x = (TelaBordaX() - 135)info_pos_y = (TelaBordaY() + 20)info_offset_x_value = 105offset_y = 15;info_R = 255info_G = 255info_B = 255

info_pos_y = (info_pos_y + offset_y + 10)hudfont("arial black",0,0, 1, 25)hudtext(" Pepper Scripts ",255,165,0,info_pos_x+10,info_pos_y)info_pos_y = (info_pos_y + offset_y + 10)hudfont("arial black",0,0, 1, 20)hudtext(" Self Info ",30,144,255,info_pos_x,info_pos_y)info_pos_y = (info_pos_y + offset_y + 10)hudfont("Cambria",0,0, 1, 14)

hudtext(newstring("Name "),205,200,177,info_pos_x,info_pos_y) hudtext(newstring(": ",Self.name()),info_R,info_G,info_B,info_pos_x+info_offset_x_value,info_pos_y) info_pos_y = (info_pos_y + offset_y)

Page 27: Bugs

hudtext(newstring("Level "),205,200,177,info_pos_x,info_pos_y) hudtext(newstring(": ",Self.level()),info_R,info_G,info_B,info_pos_x+info_offset_x_value,info_pos_y) info_pos_y = (info_pos_y + offset_y)hudtext(newstring("Hp"),205,200,177,info_pos_x,info_pos_y) hudtext(newstring(": ",Self.hp()),info_R,info_G,info_B,info_pos_x+info_offset_x_value,info_pos_y) info_pos_y = (info_pos_y + offset_y)hudtext(newstring("Mp"),205,200,177,info_pos_x,info_pos_y) hudtext(newstring(": ",Self.mp()),info_R,info_G,info_B,info_pos_x+info_offset_x_value,info_pos_y) info_pos_y = (info_pos_y + offset_y)hudtext(newstring("Cap "),205,200,177,info_pos_x,info_pos_y) hudtext(newstring(": ",Self.cap()),info_R,info_G,info_B,info_pos_x+info_offset_x_value,info_pos_y)

info_pos_y = (info_pos_y + offset_y)hudtext(newstring("Current exp"),205,200,177,info_pos_x,info_pos_y) hudtext(newstring(": ",Self.exp()),info_R,info_G,info_B,info_pos_x+info_offset_x_value,info_pos_y)

info_pos_y = (info_pos_y + offset_y)hudtext(newstring("Exp hour "),205,200,177,info_pos_x,info_pos_y) hudtext(newstring(": ",exp_hour()),info_R,info_G,info_B,info_pos_x+info_offset_x_value,info_pos_y)

info_pos_y = (info_pos_y + offset_y)hudtext(newstring("Exp to next level "),205,200,177,info_pos_x,info_pos_y) hudtext(newstring(": ",exp_to_next_lvl()),info_R,info_G,info_B,info_pos_x+info_offset_x_value,info_pos_y)

info_pos_y = (info_pos_y + offset_y)hudtext(newstring("Time to next level "),205,200,177,info_pos_x,info_pos_y) time_to_next_lvl = exp_to_next_lvl() / (exp_hour()/3600)

hour = math.floor(time_to_next_lvl/3600)minute = math.floor((time_to_next_lvl - hour * 3600 )/60)sec = math.floor(time_to_next_lvl - hour * 3600 - minute *60)temp_str_time = "".. time_to_next_lvl/3600 .. ":" .. minute .. ":" .. sechudtext(newstring(": ",hour ,":",minute,":",sec ),info_R,info_G,info_B,info_pos_x+info_offset_x_value,info_pos_y)

min = math.fmod(Self.stamina(),60)info_pos_y = (info_pos_y + offset_y)hudtext(newstring("Stamina "),205,200,177,info_pos_x,info_pos_y) hudtext(newstring(": ",Self.stamina()/60,":",min),info_R,info_G,info_B,info_pos_x+info_offset_x_value,info_pos_y)

exp_hour() -- int return the exp per hourexp_to_next_lvl() -- return the exp to next lvl

-- SELF INFO PART END --

-- BOT INFO PART --

info_pos_y = (info_pos_y + 30)offset_y = 15;offset_x_on = 120

info_on_R = 0;info_on_G = 255;

Page 28: Bugs

info_on_B = 0;

hudfont("arial black",0,0, 1, 20)hudtext(" Bot Status ",30,144,255,info_pos_x,info_pos_y)

info_pos_y = (info_pos_y + offset_y+10)

hudfont("Cambria",0,0, 1, 14)

status_on_of = "OFF"

if status_waypointer() then status_on_of = "ON" else status_on_of = "OFF" endif status_on_of == "OFF" then info_on_R = 255info_on_G = 0info_on_B = 0elseinfo_on_R = 0info_on_G = 255info_on_B = 0end hudtext("Waypointer ",205,200,177,info_pos_x,info_pos_y) hudtext(status_on_of,info_on_R,info_on_G,info_on_B,info_pos_x+offset_x_on,info_pos_y) info_pos_y = (info_pos_y + offset_y)

if status_hunter() then status_on_of = "ON" else status_on_of = "OFF" endif status_on_of == "OFF" then info_on_R = 255info_on_G = 0info_on_B = 0elseinfo_on_R = 0info_on_G = 255info_on_B = 0end hudtext("Hunter ",205,200,177,info_pos_x,info_pos_y) hudtext(status_on_of,info_on_R,info_on_G,info_on_B,info_pos_x+offset_x_on,info_pos_y) info_pos_y = (info_pos_y + offset_y)

if status_looter() then status_on_of = "ON" else status_on_of = "OFF" endif status_on_of == "OFF" then info_on_R = 255info_on_G = 0info_on_B = 0elseinfo_on_R = 0info_on_G = 255info_on_B = 0end hudtext("Looter ",205,200,177,info_pos_x,info_pos_y) hudtext(status_on_of,info_on_R,info_on_G,info_on_B,info_pos_x+offset_x_on,info_pos_y) info_pos_y = (info_pos_y + offset_y)

if status_waypointer() then status_on_of = "ON" else status_on_of = "OFF" endif status_on_of == "OFF" then info_on_R = 255info_on_G = 0info_on_B = 0elseinfo_on_R = 0info_on_G = 255

Page 29: Bugs

info_on_B = 0end hudtext("Atack Spell ",205,200,177,info_pos_x,info_pos_y) hudtext(status_on_of,info_on_R,info_on_G,info_on_B,info_pos_x+offset_x_on,info_pos_y) info_pos_y = (info_pos_y + offset_y)

if status_lua_background() then status_on_of = "ON" else status_on_of = "OFF" endif status_on_of == "OFF" then info_on_R = 255info_on_G = 0info_on_B = 0elseinfo_on_R = 0info_on_G = 255info_on_B = 0end hudtext("Lua Background ",205,200,177,info_pos_x,info_pos_y) hudtext(status_on_of,info_on_R,info_on_G,info_on_B,info_pos_x+offset_x_on,info_pos_y) info_pos_y = (info_pos_y + offset_y)

if status_auto_mount() then status_on_of = "ON" else status_on_of = "OFF" endif status_on_of == "OFF" then info_on_R = 255info_on_G = 0info_on_B = 0elseinfo_on_R = 0info_on_G = 255info_on_B = 0end hudtext("Auto Mount ",205,200,177,info_pos_x,info_pos_y) hudtext(status_on_of,info_on_R,info_on_G,info_on_B,info_pos_x+offset_x_on,info_pos_y) info_pos_y = (info_pos_y + offset_y)

if status_recover() then status_on_of = "ON" else status_on_of = "OFF" endif status_on_of == "OFF" then info_on_R = 255info_on_G = 0info_on_B = 0elseinfo_on_R = 0info_on_G = 255info_on_B = 0end hudtext("Recover ",205,200,177,info_pos_x,info_pos_y) hudtext(status_on_of,info_on_R,info_on_G,info_on_B,info_pos_x+offset_x_on,info_pos_y) info_pos_y = (info_pos_y + offset_y)-- BOT INFO PART END --

-- Info Skills --

info_pos_y = (info_pos_y + 15)info_offset_x_value = 105offset_y = 15;info_R= 205info_G= 200info_B= 177mlpc= 100-Self.mlevelpc()

Page 30: Bugs

swpc= 100 - Self.swordpc()shpc=100 - Self.shieldingpc()time_running = info_bot_time_running()time_h = math.floor(time_running/3600000)time_min = math.fmod(math.floor(time_running/60000),60)time_sec =math.fmod(math.floor(time_running/1000),60)qty_exp_h= exp_hour()exp_pro_lvl = exp_to_next_lvl()exp_h= math.floor ((exp_to_next_lvl() / exp_hour()))exp_m= math.fmod(math.floor(exp_to_next_lvl() / (exp_hour() / 60)),60)info_R_f = 255info_G_f = 255info_B_f = 255

info_list = {{name= "Ml ", func = ": "..Self.mlevel().. "(" ..

mlpc .."%)"}, {name= "Sword ", func = ": " .. Self.sword().. "(".. shpc .. "%)"}, {name= "Axe ", func=": " .. Self.axe().. "(".. shpc .. "%)"}, {name= "Club ", func = ": " .. Self.club().. "(".. shpc .. "%)"}, {name= "Distance ", func = ": " .. Self.club().. "(".. shpc .. "%)"}, {name= "Shield ", func=": " .. Self.shielding().. "(".. shpc .. "%)"},

}

hudfont("arial black",0,0, 1, 20)hudtext(newstring("Self Info"),30,144,255,info_pos_x+5,info_pos_y)info_pos_y = (info_pos_y + offset_y + 5)hudfont("cambria",0,0, 1, 14)for i=1,table.getn(info_list),1 do -- IMPRIMIR ARRAY INF_LIST

hudtext(newstring(info_list[i].name),info_R,info_G,info_B,info_pos_x,info_pos_y)

hudtext(newstring(info_list[i].func),info_R_f,info_G_f,info_B_f,info_pos_x+info_offset_x_value,info_pos_y)

info_pos_y=info_pos_y+offset_yendinfo_pos_y=info_pos_y+offset_y

-- Feita por Gustavo do Carmo

code_endFalseHUD Principal Peedroh 2.0 set_hud_delay(100)

profit_total = 0total = 0 waste_total=0

info_pos_x = TelaBordaX()-170info_pos_y = 40info_offset_x_value = 120offset_y = 15;

Page 31: Bugs

info_R = 0info_G =255info_B =0mlpc= 100-Self.mlevelpc()swpc= 100 - Self.swordpc()shpc=100 - Self.shieldingpc()time_running = info_bot_time_running()time_h = math.floor(time_running/3600000)time_min = math.fmod(math.floor(time_running/60000),60)time_sec =math.fmod(math.floor(time_running/1000),60)qty_exp_h= exp_hour()exp_pro_lvl = exp_to_next_lvl()exp_h= math.floor ((exp_to_next_lvl() / exp_hour()))exp_m= math.fmod(math.floor(exp_to_next_lvl() / (exp_hour() / 60)),60)

exp_s=0

info_list = {{name = "Level", func = Self.level()},

{name = "Exp/h",func = qty_exp_h},{name = "Exp next lvl", func =exp_pro_lvl },

{name = "Time Next Lvl", func = "" ..exp_h.. ":" .. exp_m}, {name="Tempo de bot: ", func ="" .. time_h .. ":" .. time_min .. ":" .. time_sec},

{name = "Cap", func = Self.cap()}, {name= "Ml ", func = ""..Self.mlevel().. "(" .. mlpc .."%)"}, {name= "Sword ", func = "" .. Self.sword().. "(".. swpc .. "%)"}, {name= "Shield ", func="" .. Self.shielding().. "(".. shpc .. "%)"},

}info_pos_x = 15hudbar(100,10, info_pos_y,180,TelaSizeY(),20,60,120,0,0,0,false,false)hudbar(100,tibiascreensizex() - 350, info_pos_y,183,TelaSizeY(),20,60,120,0,0,0,false,false)hudsquare(10,info_pos_y-3,info_pos_x+55+info_offset_x_value,TelaSizeY()+40,255,180,20,3)hudsquare(tibiascreensizex()-350,info_pos_y-3,tibiascreensizex()-350+183,TelaSizeY()+40,255,180,20,3)

hudfont("comic san ms",1,1, 1, 20)hudtext(newstring("Self Info"),255,255,255,info_pos_x,info_pos_y)info_pos_y = (info_pos_y + offset_y + 5)hudfont("comic san ms",0,0, 1, 14)for i=1,table.getn(info_list),1 dohudtext(newstring(info_list[i].name),info_R,info_G,info_B,info_pos_x,info_pos_y)hudtext(newstring(info_list[i].func),info_R+255,info_G -75,info_B+20,info_pos_x+info_offset_x_value,info_pos_y)

info_pos_y=info_pos_y+offset_yendhudfont("comic san ms",1,0,1,25)hudtext(newstring("--------------------------"),255,180,0,info_pos_x-5,info_pos_y+10)info_pos_y=info_pos_y+offset_y

-- SELF INFO PART END --

-- BOT INFO PART --info_pos_y = (info_pos_y + 50)

Page 32: Bugs

offset_y = 15;offset_x_on = 120

info_on_R = 0;info_on_G = 255;info_on_B = 0;

hudfont("comic san ms",1,1, 1, 20)hudtext("Bot Status",255,255,255,info_pos_x,info_pos_y)

info_pos_y = (info_pos_y + offset_y+10)

hudfont("comic san ms",0,0, 1, 14)

status_on_of = "OFF"

if status_waypointer() then status_on_of = "ON" else status_on_of = "OFF" endif status_on_of == "OFF" then info_on_R = 255info_on_G = 0info_on_B = 0elseinfo_on_R = 0info_on_G = 255info_on_B = 0end hudtext("Waypointer ",info_R,info_G,info_B,info_pos_x,info_pos_y) hudtext(status_on_of,info_on_R,info_on_G,info_on_B,info_pos_x+offset_x_on,info_pos_y) info_pos_y = (info_pos_y + offset_y)

if status_hunter() then status_on_of = "ON" else status_on_of = "OFF" endif status_on_of == "OFF" then info_on_R = 255info_on_G = 0info_on_B = 0elseinfo_on_R = 0info_on_G = 255info_on_B = 0end hudtext("Hunter ",info_R,info_G,info_B,info_pos_x,info_pos_y) hudtext(status_on_of,info_on_R,info_on_G,info_on_B,info_pos_x+offset_x_on,info_pos_y) info_pos_y = (info_pos_y + offset_y)

if status_looter() then status_on_of = "ON" else status_on_of = "OFF" endif status_on_of == "OFF" then info_on_R = 255info_on_G = 0info_on_B = 0elseinfo_on_R = 0info_on_G = 255info_on_B = 0end hudtext("Looter ",info_R,info_G,info_B,info_pos_x,info_pos_y) hudtext(status_on_of,info_on_R,info_on_G,info_on_B,info_pos_x+offset_x_on,info_pos_y) info_pos_y = (info_pos_y + offset_y)

if status_waypointer() then status_on_of = "ON" else status_on_of = "OFF" endif status_on_of == "OFF" then

Page 33: Bugs

info_on_R = 255info_on_G = 0info_on_B = 0elseinfo_on_R = 0info_on_G = 255info_on_B = 0end hudtext("Atack Spell ",info_R,info_G,info_B,info_pos_x,info_pos_y) hudtext(status_on_of,info_on_R,info_on_G,info_on_B,info_pos_x+offset_x_on,info_pos_y) info_pos_y = (info_pos_y + offset_y)

if status_lua_background() then status_on_of = "ON" else status_on_of = "OFF" endif status_on_of == "OFF" then info_on_R = 255info_on_G = 0info_on_B = 0elseinfo_on_R = 0info_on_G = 255info_on_B = 0end hudtext("Lua Background ",info_R,info_G,info_B,info_pos_x,info_pos_y) hudtext(status_on_of,info_on_R,info_on_G,info_on_B,info_pos_x+offset_x_on,info_pos_y) info_pos_y = (info_pos_y + offset_y)

if status_auto_mount() then status_on_of = "ON" else status_on_of = "OFF" endif status_on_of == "OFF" then info_on_R = 255info_on_G = 0info_on_B = 0elseinfo_on_R = 0info_on_G = 255info_on_B = 0end hudtext("Auto Mount ",info_R,info_G,info_B,info_pos_x,info_pos_y) hudtext(status_on_of,info_on_R,info_on_G,info_on_B,info_pos_x+offset_x_on,info_pos_y) info_pos_y = (info_pos_y + offset_y)

if status_recover() then status_on_of = "ON" else status_on_of = "OFF" endif status_on_of == "OFF" then info_on_R = 255info_on_G = 0info_on_B = 0elseinfo_on_R = 0info_on_G = 255info_on_B = 0end hudtext("Recover ",info_R,info_G,info_B,info_pos_x,info_pos_y) hudtext(status_on_of,info_on_R,info_on_G,info_on_B,info_pos_x+offset_x_on,info_pos_y) hudfont("comic san ms",1,0,1,25)hudtext(newstring("--------------------------"),255,180,0,info_pos_x-5,info_pos_y+20)info_pos_y = (info_pos_y + offset_y)

Page 34: Bugs

-- BOT INFO PART END -- -- BOT ANIMATED LIFE BAR --place_x= TelaBordaX()+20place_y= TelaBordaY()+ 40size_x = TelaSizeX()-20size_y = 15

red_variation = 0blue_bar = 255

hp = Self.hppc()if hp <= 40 and hp >=25 then

red_variation = 7if temp_life == nil thentemp_life = 255else

if temp_life >= 200 thentemp_life = (temp_life - 10)elsetemp_life = 255

endend

elseif hp <= 25 and hp >=0 thenred_variation = 4if temp_life == nil thentemp_life = 255else

if temp_life >= 200 thentemp_life = (temp_life - 10)elsetemp_life = 255end

endelse

temp_life = 200red_variation = 5end

hudbar(100,place_x+10,place_y,size_x-20,size_y,255,0,0,1,0,0,true,true)hudbar(hp,place_x+10,place_y,size_x-20,size_y,temp_life,0,0,red_variation,0,0,true,true)-- BOT ANIMATED LIFE BAR END----STAMINA temp_r=0temp_g=0temp_b=0if Self.stamina() >= 2400 thentemp_r=0temp_g=255temp_b=0elseif (Self.stamina()>=900) and (Self.stamina()<2400) thentemp_r=240temp_g=120temp_b=0elsetemp_r=255temp_g=0temp_b=0

Page 35: Bugs

endmin = math.fmod(Self.stamina(),60)stamina_percent = Self.stamina() / (2520 / 100)

hudfont("comic san ms",1,0,1,20)if min < 10 thenhudtext(newstring("Stamina -> ", Self.stamina()/60,":0",min),temp_r,temp_g,temp_b,TelaBordaX()+((TelaSizeX())/2)-20,TelaBordaY() +TelaSizeY()+35)elsehudtext(newstring("Stamina -> ", Self.stamina()/60,":",min),temp_r,temp_g,temp_b,TelaBordaX()+((TelaSizeX())/2)-20,TelaBordaY() +TelaSizeY()+35)endhudbar(stamina_percent,place_x+10,TelaBordaY()+TelaSizeY()+55,size_x-20,size_y-5,temp_r,temp_g,temp_b,0,8,0,true,true)-- BOOT LOOTED ITEM LIST --item_list = {

{name = "Gold coin", price = 1},{name = "Marsh Stalker Beak", price = 65},{name = "Marsh Stalker Feather", price= 50},

}

-- POSITION OF THE ITEM LIST AND SPACE BETWEEN ITEMS -- loot_list_x =tibiascreensizex() -345;loot_list_y = 40off_set_between_item = 15offset_between_value = 130loot_R = 0loot_G=255loot_B=0loot_valor_R =255loot_valor_G =180loot_valor_B =20

hudfont("comic san ms",1,1, 1, 20)hudtext("Loot list by Neutral",255,255,255,loot_list_x,loot_list_y)hudfont("arial",0,1, 1, 15)loot_list_y = (loot_list_y + off_set_between_item+10)for i = 1,table.getn(item_list),1 dothis_total = (qtylooteditem(item_list[i].name) * item_list[i].price)total = (total +this_total)temp_str = item_list[i].name;if (string.len(temp_str) > 11) thentemp_str = newstring(string.sub(temp_str,1,11),"...")endif i==1 then

hudtext(newstring(temp_str),loot_R,loot_G,loot_B,loot_list_x,loot_list_y)

hudtext(newstring(qtylooteditem(item_list[i].name)),loot_valor_R,loot_valor_G,loot_valor_B,loot_list_x+120,loot_list_y)elseif this_total < 1000 then

hudtext(newstring(temp_str),loot_R,loot_G,loot_B,loot_list_x,loot_list_y)

hudtext(newstring(qtylooteditem(item_list[i].name)),loot_valor_R,loot_valor_G,loot_valor_B,loot_list_x+100,loot_list_y) hudtext(newstring("(",(this_total),"gps)"),loot_valor_R,loot_valor_G,loot_valor_B,(loot_list_x+offset_between_value-8),loot_list_y)else

hudtext(newstring(temp_str),loot_R,loot_G,loot_B,loot_list_x,loot_list_y)

Page 36: Bugs

hudtext(newstring(qtylooteditem(item_list[i].name)),loot_valor_R,loot_valor_G,loot_valor_B,loot_list_x+100,loot_list_y) hudtext(newstring("(",(this_total/1000),".",math.floor(math.fmod(this_total,1000)/100),"k)"),loot_valor_R,loot_valor_G,loot_valor_B,(loot_list_x+offset_between_value),loot_list_y)end

loot_list_y = loot_list_y + off_set_between_itemendloot_list_y = loot_list_y +5hudfont("arial",0,1,1,19)hudtext(newstring("Total: "),loot_R,loot_G,loot_B,loot_list_x,loot_list_y)hudtext(newstring(total),loot_R+255,loot_G-75,loot_B+20,loot_list_x+100,loot_list_y)

loot_list_y = (loot_list_y + off_set_between_item)

-- BOOT LOOTED ITEM LIST END --

hudfont("comic san ms",1,0,1,25)hudtext(newstring("--------------------------"),255,180,0,loot_list_x-5,loot_list_y+20)loot_list_y = (loot_list_y + off_set_between_item)

-- PROFITwaste_list = { {name= "Mana Potion", price=50}, {name= "Strong Health Potion", price= 100}, }

-- POSITION OF PROFITprofit_x= tibiascreensizex() - 345profit_y= loot_list_y + 50off_set_item=15off_set_value=130profit_R=0profit_G=255profit_B=0profit_valor_R =255profit_valor_G =180profit_valor_B =20

hudfont("comic san ms",1,1,1,20)hudtext("Profit",255,255,255,profit_x,profit_y)hudfont("comic san ms",0,1,1,14)profit_y= profit_y+off_set_item+10for x=1,table.getn(waste_list),1 dowaste_local=count_used_items(waste_list[x].name)*waste_list[x].pricewaste_total=waste_total+waste_localtemp_str=waste_list[x].nameif (string.len(temp_str) > 11) thentemp_str = (string.sub(temp_str,1,11).."...")endif waste_local < 1000 thenhudtext(newstring(temp_str),profit_R,profit_G,profit_B,profit_x,profit_y)hudtext(newstring(count_used_items(waste_list[x].name)),profit_valor_R,profit_valor_G,profit_valor_B,profit_x+100,profit_y)hudtext(newstring(waste_local,"gps"),profit_valor_R,profit_valor_G,profit_valor_B,profit_x+off_set_value,profit_y)elsehudtext(newstring(temp_str),profit_R,profit_G,profit_B,profit_x,profit_y)hudtext(newstring(count_used_items(waste_list[x].name)),profit_valor_R,profit_valor_G,profit_valor_B,profit_x+100,profit_y)

Page 37: Bugs

hudtext(newstring(waste_local/1000,".",math.floor(math.fmod(waste_local/1000)/100),"k"),profit_valor_R,profit_valor_G,profit_valor_B,profit_x+off_set_value,profit_y)endprofit_y = (profit_y + off_set_item)

endprofit_y = profit_y +5profit_total=total-waste_totalprofit_hora=(profit_total/time_h)hudfont("comic san ms",0,0,1,20)hudtext(newstring( "Waste Total:"),profit_R,profit_G,profit_B,profit_x,profit_y)if waste_total < 1000 thenhudtext(newstring(waste_total,"gps"),profit_valor_R,profit_valor_G,profit_valor_B,profit_x+off_set_value-8,profit_y)elsehudtext(newstring(waste_total/1000,"k"),profit_valor_R,profit_valor_G,profit_valor_B,profit_x+off_set_value,profit_y)endprofit_y = profit_y + off_set_item+10hudfont("comic san ms",0,1,1,25)

hudtext(newstring("Profit/H:"),profit_R,profit_G,profit_B,profit_x,profit_y)hudtext(newstring(profit_hora/1000,".", math.floor(math.fmod(profit_hora,10)),"k"),profit_valor_R,profit_valor_G,profit_valor_B,profit_x+85,profit_y)profit_y=profit_y+off_set_item+15hudtext(newstring("Profit:"),profit_R,profit_G,profit_B,profit_x,profit_y)hudtext(newstring(profit_total/1000,".",math.floor(math.fmod(profit_total,1000)/100),"k"),profit_valor_R,profit_valor_G,profit_valor_B,profit_x+85,profit_y)profit_y=profit_y+off_set_item+15hudtext(newstring("Balance:"),profit_R,profit_G,profit_B,profit_x,profit_y)hudtext(newstring(last_balance()/10),profit_valor_R,profit_valor_G,profit_valor_B,profit_x+100,profit_y)

profit_y=profit_y+off_set_item+50-- PROFIT END !!!!!hudfont("comic san ms",1,0,1,25)hudtext(newstring("--------------------------"),255,180,0,profit_x-5,profit_y-25)profit_y = (profit_y + off_set_item)

-- TASK SYSTEMmonster=250-qtymonsterkilled("Salamander")if monster <=0 thenresetmonstercount()endhudfont("comic san ms",1,1,1,25)hudtext(newstring("Task Infos: "),profit_R+255,profit_G,profit_B+255,profit_x,profit_y) profit_y=profit_y+off_set_item+15hudfont("comic san ms",0,1,1,15)hudtext(newstring("Killer Caiman Restantes: "), profit_R,profit_G,profit_B,profit_x,profit_y)hudtext(newstring(monster), profit_R+255,profit_G-75,profit_B+20,profit_x+150,profit_y)

hudfont("comic san ms",1,0,1,25)hudtext(newstring("--------------------------"),255,180,0,profit_x-5,profit_y+25)

hudfont("comic sans ms",1,1,1,30)

Page 38: Bugs

hudtext(newstring("HUD by Peedroh"),255,155,50,profit_x-5,profit_y+80)hudfont("verdana",1,0,0,15)pos_Y_msg=TelaSizeY()

cont = 0cont_local = 0

while cont < 5 do

if cont_local == 200 thenbreakelse

temporary_buffer = get_message_from_stack(cont_local)if string.find(temporary_buffer,"Loot of") ~= nil then

hudtext(temporary_buffer, 255,255,0, place_x-10,pos_Y_msg+15)cont=cont+1

pos_Y_msg = pos_Y_msg -20endcont_local=cont_local+1endend

Page 39: Bugs
Page 40: Bugs
Page 41: Bugs
Page 42: Bugs
Page 43: Bugs

code_endFalseHUD Principal Peedroh 2.1 set_hud_delay(100)

profit_total = 0total = 0 waste_total=0

info_pos_x = TelaBordaX()-170info_pos_y = 40info_offset_x_value = 120offset_y = 15;info_R = 0info_G =255info_B =0mlpc= 100-Self.mlevelpc()swpc= 100 - Self.swordpc()shpc=100 - Self.shieldingpc()time_running = info_bot_time_running()time_h = math.floor(time_running/3600000)time_min = math.fmod(math.floor(time_running/60000),60)time_sec =math.fmod(math.floor(time_running/1000),60)qty_exp_h= exp_hour()exp_pro_lvl = exp_to_next_lvl()exp_h= math.floor ((exp_to_next_lvl() / exp_hour()))exp_m= math.fmod(math.floor(exp_to_next_lvl() / (exp_hour() / 60)),60)

exp_s=0

info_list = {{name = "Level", func = Self.level()},

{name = "Exp/h",func = qty_exp_h},{name = "Exp next lvl", func =exp_pro_lvl },

{name = "Time Next Lvl", func = "" ..exp_h.. ":" .. exp_m}, {name="Tempo de bot: ", func ="" .. time_h .. ":" .. time_min .. ":" .. time_sec},

{name = "Cap", func = Self.cap()}, {name= "Ml ", func = ""..Self.mlevel().. "(" .. mlpc .."%)"}, {name= "Sword ", func = "" .. Self.sword().. "(".. swpc .. "%)"}, {name= "Shield ", func="" .. Self.shielding().. "(".. shpc .. "%)"},

}info_pos_x = 15

-- IMPRIMIR CONTORNO

hudbar(100,10, info_pos_y,180,TelaSizeY(),20,60,120,0,0,0,false,false)

Page 44: Bugs

hudbar(100,tibiascreensizex() - 350, info_pos_y,183,TelaSizeY(),20,60,120,0,0,0,false,false)hudsquare(10,info_pos_y-3,info_pos_x+55+info_offset_x_value,TelaSizeY()+40,255,180,20,3)hudsquare(tibiascreensizex()-350,info_pos_y-3,tibiascreensizex()-350+183,TelaSizeY()+40,255,180,20,3)

-- FIM CONTORNO

hudfont("comic san ms",1,1, 1, 20)hudtext(newstring("Self Info"),255,255,255,info_pos_x,info_pos_y)info_pos_y = (info_pos_y + offset_y + 5)hudfont("comic san ms",0,0, 1, 14)for i=1,table.getn(info_list),1 do -- IMPRIMIR ARRAY INF_LIST

hudtext(newstring(info_list[i].name),info_R,info_G,info_B,info_pos_x,info_pos_y)hudtext(newstring(info_list[i].func),info_R+255,info_G

-75,info_B+20,info_pos_x+info_offset_x_value,info_pos_y)info_pos_y=info_pos_y+offset_y

endhudfont("comic san ms",1,0,1,25)hudtext(newstring("--------------------------"),255,180,0,info_pos_x-5,info_pos_y+10)info_pos_y=info_pos_y+offset_y

-- SELF INFO PART END --

-- BOT INFO PART --

info_pos_y = (info_pos_y + 50)offset_y = 15;offset_x_on = 120info_on_R = 0;info_on_G = 255;info_on_B = 0;hudfont("comic san ms",1,1, 1, 20)hudtext("Bot Status",255,255,255,info_pos_x,info_pos_y)info_pos_y = (info_pos_y + offset_y+10)hudfont("comic san ms",0,0, 1, 14)status_on_of = "OFF"if status_waypointer() then status_on_of = "ON" else status_on_of = "OFF" end -- COLOCAR ON VERDE OFF VERMELHOif status_on_of == "OFF" then info_on_R = 255info_on_G = 0info_on_B = 0elseinfo_on_R = 0info_on_G = 255info_on_B = 0end hudtext("Waypointer ",info_R,info_G,info_B,info_pos_x,info_pos_y) hudtext(status_on_of,info_on_R,info_on_G,info_on_B,info_pos_x+offset_x_on,info_pos_y) info_pos_y = (info_pos_y + offset_y)

if status_hunter() then status_on_of = "ON" else status_on_of = "OFF" end -- COLOCAR ON VERDE OFF VERMELHO

if status_on_of == "OFF" then -- OFF VERMELHO

info_on_R = 255

Page 45: Bugs

info_on_G = 0info_on_B = 0

else -- ON VERDE

info_on_R = 0info_on_G = 255info_on_B = 0end hudtext("Hunter ",info_R,info_G,info_B,info_pos_x,info_pos_y) hudtext(status_on_of,info_on_R,info_on_G,info_on_B,info_pos_x+offset_x_on,info_pos_y) info_pos_y = (info_pos_y + offset_y)

if status_looter() then status_on_of = "ON" else status_on_of = "OFF" end -- COLOCAR ON VERDE OFF VERMELHO

if status_on_of == "OFF" then -- OFF VERMELHO

info_on_R = 255info_on_G = 0info_on_B = 0

else -- ON VERDE

info_on_R = 0info_on_G = 255info_on_B = 0end hudtext("Looter ",info_R,info_G,info_B,info_pos_x,info_pos_y) hudtext(status_on_of,info_on_R,info_on_G,info_on_B,info_pos_x+offset_x_on,info_pos_y) info_pos_y = (info_pos_y + offset_y)

if status_waypointer() then status_on_of = "ON" else status_on_of = "OFF" end -- COLOCAR ON VERDE OFF VERMELHO

if status_on_of == "OFF" then -- OFF VERMELHO

info_on_R = 255info_on_G = 0info_on_B = 0

else -- ON VERDE

info_on_R = 0info_on_G = 255info_on_B = 0end hudtext("Atack Spell ",info_R,info_G,info_B,info_pos_x,info_pos_y) hudtext(status_on_of,info_on_R,info_on_G,info_on_B,info_pos_x+offset_x_on,info_pos_y) info_pos_y = (info_pos_y + offset_y)

if status_lua_background() then status_on_of = "ON" else status_on_of = "OFF" end -- COLOCAR ON VERDE OFF VERMELHOif status_on_of == "OFF" then --OFF VERMELHOinfo_on_R = 255info_on_G = 0info_on_B = 0

else -- ON VERDE

info_on_R = 0

Page 46: Bugs

info_on_G = 255info_on_B = 0end hudtext("Lua Background ",info_R,info_G,info_B,info_pos_x,info_pos_y) hudtext(status_on_of,info_on_R,info_on_G,info_on_B,info_pos_x+offset_x_on,info_pos_y) info_pos_y = (info_pos_y + offset_y)

if status_auto_mount() then status_on_of = "ON" else status_on_of = "OFF" end -- COLOCAR ON VERDE OFF VERMELHO

if status_on_of == "OFF" then -- OFF VERMELHOinfo_on_R = 255info_on_G = 0info_on_B = 0

else -- ON VERDE

info_on_R = 0info_on_G = 255info_on_B = 0end hudtext("Auto Mount ",info_R,info_G,info_B,info_pos_x,info_pos_y) hudtext(status_on_of,info_on_R,info_on_G,info_on_B,info_pos_x+offset_x_on,info_pos_y) info_pos_y = (info_pos_y + offset_y)

if status_recover() then status_on_of = "ON" else status_on_of = "OFF" end -- COLOCAR ON VERDE OFF VERMELHO

if status_on_of == "OFF" then -- OFF VERMELHO

info_on_R = 255info_on_G = 0info_on_B = 0

else -- ON VERDE

info_on_R = 0info_on_G = 255info_on_B = 0end hudtext("Recover ",info_R,info_G,info_B,info_pos_x,info_pos_y) hudtext(status_on_of,info_on_R,info_on_G,info_on_B,info_pos_x+offset_x_on,info_pos_y) hudfont("comic san ms",1,0,1,25)hudtext(newstring("--------------------------"),255,180,0,info_pos_x-5,info_pos_y+20)info_pos_y = (info_pos_y + offset_y)

-- BOT INFO PART END -- -- BOT ANIMATED LIFE BAR --

place_x= TelaBordaX()+20place_y= TelaBordaY()+ 40size_x = TelaSizeX()-20size_y = 15red_variation = 0blue_bar = 255hp = Self.hppc()

if hp <= 40 and hp >=25 then red_variation = 7

Page 47: Bugs

if temp_life == nil thentemp_life = 255

elseif temp_life >= 200 then

temp_life = (temp_life - 10)else

temp_life = 255end

endelseif hp <= 25 and hp >=0 then

red_variation = 4if temp_life == nil then

temp_life = 255else

if temp_life >= 200 thentemp_life = (temp_life - 10)

elsetemp_life = 255

endend

else

temp_life = 200red_variation = 5

endhudbar(100,place_x+10,place_y,size_x-20,size_y,255,0,0,1,0,0,true,true)hudbar(hp,place_x+10,place_y,size_x-20,size_y,temp_life,0,0,red_variation,0,0,true,true)

-- BOT ANIMATED LIFE BAR END--

--STAMINA

temp_r=0temp_g=0temp_b=0

if Self.stamina() >= 2400 then -- STAMINA COR VERDE SE 40HRS+

temp_r=0temp_g=255temp_b=0

elseif (Self.stamina()>=900) and (Self.stamina()<2400) then -- STAMINA COR LARANJA SE 15HRS<STAMINA<40

temp_r=240temp_g=120temp_b=0

else -- STAMINA COR VERMELHA SE 15HRS

temp_r=255temp_g=0temp_b=0

endmin = math.fmod(Self.stamina(),60)stamina_percent = Self.stamina() / (2520 / 100)

hudfont("comic san ms",1,0,1,20)

if min < 10 then -- IMPRIMIR A STAMINA CORRETA EX: 35:08 // SE RETIRAR ESSE IF ELE IRA IMRPIMIR 35:8

hudtext(newstring("Stamina -> ", Self.stamina()/60,":0",min),temp_r,temp_g,temp_b,TelaBordaX()+((TelaSizeX())/2)-20,TelaBordaY() +TelaSizeY()+35)

Page 48: Bugs

else -- IMPRIMIR A STAMINA NORMAL

hudtext(newstring("Stamina -> ", Self.stamina()/60,":",min),temp_r,temp_g,temp_b,TelaBordaX()+((TelaSizeX())/2)-20,TelaBordaY() +TelaSizeY()+35)

endhudbar(stamina_percent,place_x+10,TelaBordaY()+TelaSizeY()+55,size_x-20,size_y-5,temp_r,temp_g,temp_b,0,8,0,true,true)

-- BOOT LOOTED ITEM LIST --

item_list = {{name = "Gold coin", price = 1},{name = "Marsh Stalker Beak", price = 65},{name = "Marsh Stalker Feather", price= 50},

}

-- POSITION OF THE ITEM LIST AND SPACE BETWEEN ITEMS --

loot_list_x =tibiascreensizex() -345;loot_list_y = 40off_set_between_item = 15offset_between_value = 130loot_R = 0loot_G=255loot_B=0loot_valor_R =255loot_valor_G =180loot_valor_B =20

hudfont("comic san ms",1,1, 1, 20)hudtext("Loot list by Neutral",255,255,255,loot_list_x,loot_list_y)hudfont("arial",0,1, 1, 15)loot_list_y = (loot_list_y + off_set_between_item+10)for i = 1,table.getn(item_list),1 do -- IMPRIMIR O ARRAY ITEM_LIST

this_total = (qtylooteditem(item_list[i].name) * item_list[i].price)total = (total +this_total)temp_str = item_list[i].name;

if (string.len(temp_str) > 11) then -- DIMINUIR O NOME DO LOOT EX: MARSH STALK..

temp_str = newstring(string.sub(temp_str,1,11),"...")end

if i==1 then -- VERIFICAR SE O LOOT ? GOLD COIN, PARA IMPRIMIR APENAS A QUANTIDADE! GOLD COIN TEM QUE SER O PRIMEIRO DO ARRAY ITEM_LIST

hudtext(newstring(temp_str),loot_R,loot_G,loot_B,loot_list_x,loot_list_y)

hudtext(newstring(qtylooteditem(item_list[i].name)),loot_valor_R,loot_valor_G,loot_valor_B,loot_list_x+120,loot_list_y)

elseif this_total < 1000 then -- IMPRIMIR O RESTANTE DOS LOOTS E FAZER ELE VIRAR GPS CASO SEJA MENOR QUE 1K

Page 49: Bugs

hudtext(newstring(temp_str),loot_R,loot_G,loot_B,loot_list_x,loot_list_y)

hudtext(newstring(qtylooteditem(item_list[i].name)),loot_valor_R,loot_valor_G,loot_valor_B,loot_list_x+100,loot_list_y) hudtext(newstring("(",(this_total),"gps)"),loot_valor_R,loot_valor_G,loot_valor_B,(loot_list_x+offset_between_value-8),loot_list_y)

else -- IMPRIMIR EM K

hudtext(newstring(temp_str),loot_R,loot_G,loot_B,loot_list_x,loot_list_y)

hudtext(newstring(qtylooteditem(item_list[i].name)),loot_valor_R,loot_valor_G,loot_valor_B,loot_list_x+100,loot_list_y) hudtext(newstring("(",(this_total/1000),".",math.floor(math.fmod(this_total,1000)/100),"k)"),loot_valor_R,loot_valor_G,loot_valor_B,(loot_list_x+offset_between_value),loot_list_y)

endloot_list_y = loot_list_y + off_set_between_item

endloot_list_y = loot_list_y +5hudfont("arial",0,1,1,19)hudtext(newstring("Total: "),loot_R,loot_G,loot_B,loot_list_x,loot_list_y)hudtext(newstring(total),loot_R+255,loot_G-75,loot_B+20,loot_list_x+100,loot_list_y)

loot_list_y = (loot_list_y + off_set_between_item)

-- BOOT LOOTED ITEM LIST END --

hudfont("comic san ms",1,0,1,25)hudtext(newstring("--------------------------"),255,180,0,loot_list_x-5,loot_list_y+20)loot_list_y = (loot_list_y + off_set_between_item)

-- PROFIT

waste_list = { {name= "Mana Potion", price=50}, {name= "Strong Health Potion", price= 100}, }

-- POSITION OF PROFIT

profit_x= tibiascreensizex() - 345profit_y= loot_list_y + 50off_set_item=15off_set_value=130profit_R=0profit_G=255profit_B=0profit_valor_R =255profit_valor_G =180profit_valor_B =20

hudfont("comic san ms",1,1,1,20)hudtext("Profit",255,255,255,profit_x,profit_y)hudfont("comic san ms",0,1,1,14)profit_y= profit_y+off_set_item+10

Page 50: Bugs

for x=1,table.getn(waste_list),1 do -- IMPRIMIR O ARRAY WASTE_LIST

waste_local=count_used_items(waste_list[x].name)*waste_list[x].pricewaste_total=waste_total+waste_localtemp_str=waste_list[x].name

if (string.len(temp_str) > 11) then -- REDUZIR O NOME DO LOOT EX: MARSH STALK...

temp_str = (string.sub(temp_str,1,11).."...")end

if waste_local < 1000 then -- IMPRIMIR EM GPS

hudtext(newstring(temp_str),profit_R,profit_G,profit_B,profit_x,profit_y)

hudtext(newstring(count_used_items(waste_list[x].name)),profit_valor_R,profit_valor_G,profit_valor_B,profit_x+100,profit_y)

hudtext(newstring(waste_local,"gps"),profit_valor_R,profit_valor_G,profit_valor_B,profit_x+off_set_value,profit_y)

else -- IMPRIMIR EM K

hudtext(newstring(temp_str),profit_R,profit_G,profit_B,profit_x,profit_y)

hudtext(newstring(count_used_items(waste_list[x].name)),profit_valor_R,profit_valor_G,profit_valor_B,profit_x+100,profit_y)

hudtext(newstring(waste_local/1000,".",math.floor(math.fmod(waste_local/1000)/100),"k"),profit_valor_R,profit_valor_G,profit_valor_B,profit_x+off_set_value,profit_y)

endprofit_y = (profit_y + off_set_item)

endprofit_y = profit_y +5profit_total=total-waste_totalprofit_hora=(profit_total/time_h)hudfont("comic san ms",0,0,1,20)hudtext(newstring( "Waste Total:"),profit_R,profit_G,profit_B,profit_x,profit_y)

if waste_total < 1000 then -- IMPRIMIR EM GPS

hudtext(newstring(waste_total,"gps"),profit_valor_R,profit_valor_G,profit_valor_B,profit_x+off_set_value-8,profit_y)

else -- IMPRIMIR EM K

hudtext(newstring(waste_total/1000,"k"),profit_valor_R,profit_valor_G,profit_valor_B,profit_x+off_set_value,profit_y)

endprofit_y = profit_y + off_set_item+10hudfont("comic san ms",0,1,1,25)

Page 51: Bugs

if time_h < 1 then -- n?o ficar profit negativo!

hudtext(newstring("Profit/H:"),profit_R,profit_G,profit_B,profit_x,profit_y)

hudtext(newstring("0.0"),profit_valor_R,profit_valor_G,profit_valor_B,profit_x+85,profit_y)

profit_y=profit_y+off_set_item+15

else -- IMPRIMIR PROFIT/H DEPOIS DE 1 HORA

hudtext(newstring("Profit/H:"),profit_R,profit_G,profit_B,profit_x,profit_y)hudtext(newstring(profit_hora/1000,".",

math.floor(math.fmod(profit_hora,10)),"k"),profit_valor_R,profit_valor_G,profit_valor_B,profit_x+85,profit_y)

profit_y=profit_y+off_set_item+15endhudtext(newstring("Profit:"),profit_R,profit_G,profit_B,profit_x,profit_y)hudtext(newstring(profit_total/1000,".",math.floor(math.fmod(profit_total,1000)/100),"k"),profit_valor_R,profit_valor_G,profit_valor_B,profit_x+85,profit_y)profit_y=profit_y+off_set_item+15hudtext(newstring("Balance:"),profit_R,profit_G,profit_B,profit_x,profit_y)hudtext(newstring(last_balance()/10),profit_valor_R,profit_valor_G,profit_valor_B,profit_x+100,profit_y)profit_y=profit_y+off_set_item+50

-- PROFIT END !!!!!

hudfont("comic san ms",1,0,1,25)hudtext(newstring("--------------------------"),255,180,0,profit_x-5,profit_y-25)profit_y = (profit_y + off_set_item)

-- TASK SYSTEM

monster=250-qtymonsterkilled("Killer Caiman")

if monster <=0 then -- resetar quando matar 250 criaturas

resetmonstercount()endhudfont("comic san ms",1,1,1,25)hudtext(newstring("Task Infos: "),profit_R+255,profit_G,profit_B+255,profit_x,profit_y) profit_y=profit_y+off_set_item+15hudfont("comic san ms",0,1,1,15)hudtext(newstring("Killer Caiman Restantes: "), profit_R,profit_G,profit_B,profit_x,profit_y)hudtext(newstring(monster), profit_R+255,profit_G-75,profit_B+20,profit_x+150,profit_y)hudfont("comic san ms",1,0,1,25)hudtext(newstring("--------------------------"),255,180,0,profit_x-5,profit_y+25)hudfont("comic sans ms",1,1,1,30)hudtext(newstring("HUD by Peedroh"),255,155,50,profit_x-5,profit_y+80)hudfont("verdana",1,0,0,15)pos_Y_msg=TelaSizeY()cont = 0cont_local = 0

while cont < 5 do -- imprimir 5 loot of

if cont_local == 200 then -- m?ximo de msgs, resete.

Page 52: Bugs

breakelse

temporary_buffer = get_message_from_stack(cont_local)if string.find(temporary_buffer,"Loot of") ~= nil then --

verificar se a mensagem possui 'loot of'

hudtext(temporary_buffer, 255,255,0, place_x-10,pos_Y_msg+15)cont=cont+1

pos_Y_msg = pos_Y_msg -20end

cont_local=cont_local+1end

end

code_end/endSETUP--CAP SETUP--minimun_cap = 400

-- CONFIGURE MANA POTION --use_mp = truemp_to_use = "Mana Potion"min_mp = 500min_hunt_mp = 50mp_price = 50

-- CONFIGURE HEATLH POTION 1 ( HP/SHP) --use_hp_one = falsehp_one_to_use = "Strong Health Potion"min_hp_one = 50min_hunt_hp_one = 10hp_one_price = 100

-- CONFIGURE HEALTH POTION 2 ( GHP/UHP )use_hp_two = truehp_two_to_use = "Great Health Potion"min_hp_two = 60min_hunt_hp_two = 10hp_two_price = 190

-- CONFIGURE BACKPACKS --loot_bp = "Purple Backpack"gold_bp = "Red Backpack"main_bp = "Backpack"main_dp_bp = "Blue Backpack"stack_bp_dp = "Orange Backpack"nostack_bp_dp = "Beach Backpack"

--SIMPLE USER SETUP--minimun_mana_pot = 0mana_potion_id = 0minimun_health_potion = 0healt_potion_id = 0

--TARGET--decrease_speed_near_yellow_map_points = true sqm_to_consider_near_yellow_points = 3 distance_run_priority_diagonal = falseturn_from_player_when_cast_atack_spell = falsewait_by_invisible_monster = true--WAYPOINTER--

Page 53: Bugs

walk_with_map_click = truewalk_through_players = trueanti_furniture_trap = trueinfo_enforced_waypointer = true anti_trap_by_monster = true waypoint_start_label = "NULL"

--LOOTER--auto_reopen_backpack = true

looter_instantly_loot = true take_skin_under_items = true looter_take_skin = false max_sqm_dist_to_take_loot = 60--<100

loot_from_down_other_corposes = trueuse_destroy_field_on_corposes_down_to_field = truetake_out_itens_under_loot = truemax_time_to_wait_open_when_click = 1000max_time_looting_same_corposes = 4000time_between_move_item = 700time_to_wait_when_clear_loot_cordinate = 1500time_to_wait_when_try_open_corposes = 3000looter_bp_1 = 0 looter_bp_2 = 0 looter_bp_3 = 0 looter_bp_4 = 0 looter_bp_5 = 0 looter_bp_6 = 0

monsters_list_to_ignore_loot = {"Slime", "Snake"

}

--DEPOT--

bp_depot_1 = 0 bp_depot_2 = 0 bp_depot_3 = 0

--SPELLCASTER--

time_between_atack_spells = 100time_between_mana_recover = 100time_between_life_recover = 100

--[CONSTANT AREA DON'T TOUCH]--

loot_style_single_loot = 1loot_style_all_loot = 2loot_style_all_loot_only_name_of_hunter = 3

--[END OF CONSTANT AREA]----SELECT YOUR LOOTER STYLE--

loot_style = loot_style_single_loot

ignore_loot_not_your = truekey_press_delay = 50 atack_random_monster_if_traped_on_screen = true delay_atack_spell_to_wait_combo_with_atack = 80

--===============--PRINT SCREEN--===============--

Page 54: Bugs

when_die = false; when_up_lvl = false; when_up_skill = false; --===============--PRINT SCREEN--===============-- total_lua_engine_thread = 3

/endrepot_wordsopentrade() Sleep(1000)/endopentrade() Sleep(1000)/endopentrade() Sleep(1000)/endSCRIPTSadvanced relogin--Edite aqui de acordo com sua necessidade <<>> Edit here following that you want--

account = "put your acc here"password = "put your password here"num_on_list = 1 --> character order in the list from the top going downlist_of_bags_or_backpacks = {"purple backpack","red backpack"}; -- Lista Das Bags<<<>>> Bags List

--===============================================================================--

looged = islogged();if looged == false then

--LOGIN PARTwhile islogged() == false do

login(account,password,num_on_list);Sleep(1500);

end--SECURE REOPEN BACKPACKS PART-- dont touch down this only if you really know what's doing or if u wanna

to learn XD.main_bp_name_or_id = idmainbptibia();did_reopen = false;while did_reopen == false do

if islogged() == false thenif is_secure_move() then

did_reopen = true;

for i=1,table.getn(list_of_bags_or_backpacks),1 do

if bpisopen(list_of_bags_or_backpacks[i]) == false thenif bpisopen(main_bp_name_or_id) == false then

openmainbp();Sleep(2500);

endif bpisopen(main_bp_name_or_id) then

if bpisopen(list_of_bags_or_backpacks[i]) == false then

openitem(list_of_bags_or_backpacks[i]);Sleep(2500);

Page 55: Bugs

end

end

did_reopen = false;

break;end

end

if bpisopen(main_bp_name_or_id) == false thenopenmainbp();Sleep(2500);did_reopen = false;

endend

endendcode_end21000000ammo_refillerammo = "bolt" -- if you want you can change this by another name or idammo_minimun_qty = 10 -- is the minimun quantity when happens the change

if is_secure_move() thenif Self.ammoamount() <= ammo_minimun_qty then

putamunation(ammo)end

endcode_end21000000anti_paralizespell = "exura"

if paralyzed() == true thensay(spell)endcode_end21000000auto_hastespell = "utani hur"

if hasted() == false thensay(spell)endcode_end21000000

Page 56: Bugs

auto_loginaccount = "account" -- your accountpassword = "password" -- your passwordindex = 1 -- this is the number of your caracter on the list

if islogged() == false then

login(account,password,index)

endcode_end21000000keep_target_on_most_near--NOTE THE HUNTER CONFIGURATION MUST BE NOT SET THE PRIORITY--ATENCAO VOCE NAO DEVE COLOCAR PRIORIDADE NO HUNTER DO BOT------------------------------------------------------------monsters = {"Monster1", "Monster2", "Monster3"};------------------------------------------------------------id_ = get_monster_id_most_near(monsters) if Target.id() == id_ or Target.id() == 0 then return endatack(id_);Sleep(1000)

code_end21000000life_alertminimun_life_percent = 40 -- if life percent is minus than this value

if Self.hppc() < minimun_life_percent then

playalarm()

end

code_end21000000reconnect-- automatic use tibia memmory acc, password and index of the last player logged --

if islogged() == false then

relogin()

endcode_end21000000screenshoots

Page 57: Bugs

when_die = true;when_up_lvl = true;

--screenshoot when die--if Self.hppc() == 0 then

take_screen_shot()disableluascript("screenshoots");

end

--screenshoot up level--int_last_lvl;if int_last_lvl == nill then

int_last_lvl = Self.level();endif int_last_lvl < Self.level() then

take_screen_shot()int_last_lvl = Self.level()

elseint_last_lvl = Self.level()

endcode_end21000000take_screen_shoot_when_die if life == nil then life = 100 end

if life ~= 0 then life = Self.hp() if life == 0 then

take_screen_shot() Sleep(1000)

endelse

life = Self.hp()end

code_end21000000uturautura_spell = "utura gran"

if strengthened() == false thensay(utura_spell)

endcode_end21000000weapon_refillerweapon = "Spear" -- if you want you can change this by another name or id

Page 58: Bugs

weapon_minimun_qty = 7 -- is the minimun quantity when happens the change

if is_secure_move() thenif Self.weaponamount() <= weapon_minimun_qty then

putweapon(weapon)end

endcode_end21000000/endInicial LabelFalseLOOT_BP_ID000000TrueFalse0FalseFalse

-1False

-1False

-1False

-1False

False

Page 59: Bugs

False

False

FalseFalse10000FalseFalseFalse

False

FalseTrueTrueTrueTrueTrueTrueTrueTrueTrueTrue0000-1-1-1-1-1

Page 60: Bugs

-1-1-1-1-1-1-1-1-1-1

-1-1-1-1-16FalseFalseTrueTrueTrueFalseFalseFalseFalseFalseFalseFalseFalseend