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
32152
32152
32152
32149
32151
32155
end
listBoxZ
8
8
8
8
8
8
8
8
8
8
8
8
8
end
listBoxTipo
001.Walk to
001.Walk to
001.Walk to
001.Walk to
001.Walk to
001.Walk to
001.Walk to
001.Walk to
001.Walk to
001.Walk to
001.Walk to
001.Walk to
001.Walk to
end
listBoxMessage
end
MonsterBox
BUG
end
monster_box_group
0
end
monster_box_sqm
1
end
monster_box_danger
1
end
monster_box_order
1
end
monster_box_minhp
0
end
monster_box_maxhp
100
end
monster_box_diagonal
01.False
end
BpBox1
end
BpBoxType1
end
BpBoxValue1
end
BpBox2
end
BpBoxType2
end
BpBoxValue2
end
BpBox3
end
BpBoxType3
end
BpBoxValue3
end
BpBox4
end
BpBoxType4
end
BpBoxValue4
end
BpBox5
end
BpBoxType5
end
BpBoxValue5
end
BpBox6
end
BpBoxType6
end
BpBoxValue6
end
BpBoxMinQty1
end
BpBoxMinQty2
end
BpBoxMinQty3
end
BpBoxMinQty4
end
BpBoxMinQty5
end
BpBoxMinQty6
end
BpBoxImportant1
end
BpBoxImportant2
end
BpBoxImportant3
end
BpBoxImportant4
end
BpBoxImportant5
end
BpBoxImportant6
end
BpBoxGroup1
end
BpBoxGroup2
end
BpBoxGroup3
end
BpBoxGroup4
end
BpBoxGroup5
end
BpBoxGroup6
end
DepotBox1
end
DepotBox1Qtd
end
DepotBox2
end
DepotBox2Qtd
end
DepotBox3
end
DepotBox3Qtd
end
Repot1Items
end
Repot1Min
end
Repot1Max
end
Repot1Preco
end
Repot2Items
end
Repot2Min
end
Repot2Max
end
Repot2Preco
end
Repot3Items
end
Repot3Min
end
Repot3Max
end
Repot3Preco
end
listBoxFreeId
10207
10209
10216
10286
10287
10288
11009
11800
11801
11802
11803
11804
11805
11806
11807
11808
11809
11810
140
17361
17364
2118
2119
2120
2121
2122
2123
2124
2125
2126
2127
2131
2132
2133
2134
2135
2314
2315
2316
2319
2346
2347
2348
2349
2350
2351
2352
2353
2354
2355
2356
2357
2358
2359
2360
2361
2362
2363
2364
2365
2366
2367
2368
2369
2370
2371
2372
2373
2374
2375
2376
2377
2378
2379
2380
2381
2382
2383
2384
2385
2418
2419
2420
2421
2422
2423
2424
2425
2426
2431
2432
2433
2434
2441
2442
2443
2444
2469
2471
2472
2473
2478
2480
2481
2482
2483
2484
2485
2486
2519
2523
2775
2776
2777
2778
2779
2780
2781
2782
2783
2784
2785
2786
2787
2788
2789
2790
2791
2792
2793
2794
2795
2796
2797
2798
2799
2800
2801
2802
2803
2804
2805
2806
2807
2808
2809
2810
2811
2812
2981
2982
2983
2984
2985
2987
2988
3503
3504
3514
3807
404
5086
5087
5088
6114
6115
6355
6356
6357
6358
6359
6360
6361
6362
6371
6372
7864
831
832
833
834
8763
883
9061
9062
end
listBoxBlockId
end
listBoxTrapId
2025
2029
2030
2043
2044
2045
2046
2047
2048
2059
2060
2061
2445
2446
2447
2448
2449
2450
2451
2452
2453
2454
2465
2466
2467
2468
2524
2904
2959
2960
2961
2962
2963
2964
2975
2976
2979
2982
2986
2997
2998
2999
3000
3484
3485
3486
3487
3510
3511
3512
3513
5046
5055
5056
6109
6110
6111
6112
6367
6368
6369
6370
7860
7861
7862
7863
9132
9141
10208
10210
10211
10212
10213
10214
10215
end
map_wall_lure
end
map_wall_battle
end
map_wall_normal
end
take_skin->listBox1
end
take_skin->listBox2
end
take_skin->listBox3
end
take_skin->listBox4
end
take_skin->listBox5
end
take_skin->listBox6
end
2
Atack_spell_form->spell_list
end
ACTIONS
end
4
LUA_PART
HUD
1000
False
False
HUD KIller Caiman v 1.10 by Peedroh
profit_total = 0
total = 0
waste_total=0
info_pos_x = TelaBordaX()-170
info_pos_y = 40
info_offset_x_value = 120
offset_y = 15;
info_R = 0
info_G =255
info_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 = 15
hudbar(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 do
if i >4 then
hudtext(newstring(info_list[i].name,info_list[i].func),info_R,info_G,info_B,info
_pos_x,info_pos_y)
else
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,info_G,info_B,info_pos_x+info_offset
_x_value,info_pos_y)
end
info_pos_y=info_pos_y+offset_y
end
hudfont("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" end
if status_on_of == "OFF" then
info_on_R = 255
info_on_G = 0
info_on_B = 0
else
info_on_R = 0
info_on_G = 255
info_on_B = 0
end
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_p
os_y)
info_pos_y = (info_pos_y + offset_y)
if status_hunter() then status_on_of = "ON" else status_on_of = "OFF" end
if status_on_of == "OFF" then
info_on_R = 255
info_on_G = 0
info_on_B = 0
else
info_on_R = 0
info_on_G = 255
info_on_B = 0
end
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_p
os_y)
info_pos_y = (info_pos_y + offset_y)
if status_looter() then status_on_of = "ON" else status_on_of = "OFF" end
if status_on_of == "OFF" then
info_on_R = 255
info_on_G = 0
info_on_B = 0
else
info_on_R = 0
info_on_G = 255
info_on_B = 0
end
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_p
os_y)
info_pos_y = (info_pos_y + offset_y)
if status_waypointer() then status_on_of = "ON" else status_on_of = "OFF" end
if status_on_of == "OFF" then
info_on_R = 255
info_on_G = 0
info_on_B = 0
else
info_on_R = 0
info_on_G = 255
info_on_B = 0
end
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_p
os_y)
info_pos_y = (info_pos_y + offset_y)
if status_lua_background() then status_on_of = "ON" else status_on_of = "OFF"
end
if status_on_of == "OFF" then
info_on_R = 255
info_on_G = 0
info_on_B = 0
else
info_on_R = 0
info_on_G = 255
info_on_B = 0
end
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_p
os_y)
info_pos_y = (info_pos_y + offset_y)
if status_auto_mount() then status_on_of = "ON" else status_on_of = "OFF" end
if status_on_of == "OFF" then
info_on_R = 255
info_on_G = 0
info_on_B = 0
else
info_on_R = 0
info_on_G = 255
info_on_B = 0
end
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_p
os_y)
info_pos_y = (info_pos_y + offset_y)
if status_recover() then status_on_of = "ON" else status_on_of = "OFF" end
if status_on_of == "OFF" then
info_on_R = 255
info_on_G = 0
info_on_B = 0
else
info_on_R = 0
info_on_G = 255
info_on_B = 0
end
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_p
os_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()+20
place_y= TelaBordaY()+ 40
size_x = TelaSizeX()-20
size_y = 15
red_variation = 0
blue_bar = 255
hp = Self.hppc()
if hp <= 40 and hp >=25 then
red_variation = 7
if temp_life == nil then
temp_life = 255
else
if temp_life >= 200 then
temp_life = (temp_life - 10)
else
temp_life = 255
end
end
elseif hp <= 25 and hp >=0 then
red_variation = 4
if temp_life == nil then
temp_life = 255
else
if temp_life >= 200 then
temp_life = (temp_life - 10)
else
temp_life = 255
end
end
else
temp_life = 200
red_variation = 5
end
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=0
temp_g=0
temp_b=0
if Self.stamina() >= 2400 then
temp_r=0
temp_g=255
temp_b=0
elseif (Self.stamina()>=900) and (Self.stamina()<2400) then
temp_r=240
temp_g=120
temp_b=0
else
temp_r=255
temp_g=0
temp_b=0
end
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,TelaBor
daX()+((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 = 40
off_set_between_item = 15
offset_between_value = 130
loot_R = 0
loot_G=255
loot_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
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) then
temp_str = newstring(string.sub(temp_str,1,14),"...")
end
if 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_li
st_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_li
st_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)
-- PROFIT
waste_list = {
{name= "Mana Potion", price=50},
{name= "Strong Health Potion", price= 100},
}
-- POSITION OF PROFIT
profit_x= tibiascreensizex() - 345
profit_y= loot_list_y + 50
off_set_item=15
off_set_value=130
profit_R=0
profit_G=255
profit_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+10
for x=1,table.getn(waste_list),1 do
waste_local=count_used_items(waste_list[x].name)*waste_list[x].price
waste_total=waste_total+waste_local
temp_str=waste_list[x].name
if (string.len(temp_str) > 13) then
temp_str = (string.sub(temp_str,1,13).."...")
end
hudtext(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)
end
profit_y = profit_y +5
profit_total=total-waste_total
hudfont("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_v
alue,profit_y)
profit_y = profit_y + off_set_item+10
hudfont("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+15
hudtext(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 SYSTEM
monster=250-qtymonsterkilled("Killer Caiman")
if monster <=0 then
resetmonstercount()
end
hudfont("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+15
hudfont("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)
code_end
False
HUD level spy v 1.00 By neutral and credits to matheus campos
function 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
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
end
end
level_spy_hud()
code_end
False
HUD 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);
end
function refresh_walls_time(script_delay)
if total_wall == nil or total_wall == 0 then return end;
for i =1,total_wall do
if 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];
end
total_wall = total_wall-1;
else
array_wall[i][4] = array_wall[i][4] - (script_delay+1);
if tiletopid(array_wall[i][1],array_wall[i][2]) ==
magic_wall_id then
array_wall[i][5] = 0;
end
end
end
for 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 array
if 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];
end
total_wall = total_wall-1;
else
array_wall[i][5] = 1+array_wall[i][5];
end
end
end
end
function add_wall_time(x,y,z,this_delay)
-- create multiarray
if array_wall == nil then
array_wall = {};
for i = 1,200 do
array_wall[i] = {};
end
end
--add new array
for i =1,total_wall do
if array_wall[i][1] == x and array_wall[i][2] == y and array_wall[i]
[3] == z then
return;
end
end
if total_wall == nil or total_wall == 0 then
total_wall = 1;
else
total_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);
end
end
end
place_y = 50;
if total_wall ~= nil then
for i = 1,total_wall do
if array_wall[total_wall][3] == Self.posz() then
draw_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
end
end
refresh_walls_time(this_delay);
end
magic_wall_show()
code_end
False
HUD 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 = 0
total = 0
waste_total=0
info_pos_x = TelaBordaX()-187
info_pos_y = 90
info_offset_x_value = 120
offset_y = 15;
info_R = 173
info_G = 173
info_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
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_y
end
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" end
if status_on_of == "OFF" then
info_on_R = 247
info_on_G = 95
info_on_B = 95
else
info_on_R = 159
info_on_G = 159
info_on_B = 255
end
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_p
os_y)
info_pos_y = (info_pos_y + offset_y)
if status_hunter() then status_on_of = "ON" else status_on_of = "OFF" end
if status_on_of == "OFF" then
info_on_R = 247
info_on_G = 95
info_on_B = 95
else
info_on_R = 159
info_on_G = 159
info_on_B = 255
end
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_p
os_y)
info_pos_y = (info_pos_y + offset_y)
if status_looter() then status_on_of = "ON" else status_on_of = "OFF" end
if status_on_of == "OFF" then
info_on_R = 247
info_on_G = 95
info_on_B = 95
else
info_on_R = 159
info_on_G = 159
info_on_B = 255
end
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_p
os_y)
info_pos_y = (info_pos_y + offset_y)
if status_waypointer() then status_on_of = "ON" else status_on_of = "OFF" end
if status_on_of == "OFF" then
info_on_R = 247
info_on_G = 95
info_on_B = 95
else
info_on_R = 159
info_on_G = 159
info_on_B = 255
end
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_p
os_y)
info_pos_y = (info_pos_y + offset_y)
if status_lua_background() then status_on_of = "ON" else status_on_of = "OFF"
end
if status_on_of == "OFF" then
info_on_R = 247
info_on_G = 95
info_on_B = 95
else
info_on_R = 159
info_on_G = 159
info_on_B = 255
end
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_p
os_y)
info_pos_y = (info_pos_y + offset_y)
if status_auto_mount() then status_on_of = "ON" else status_on_of = "OFF" end
if status_on_of == "OFF" then
info_on_R = 247
info_on_G = 95
info_on_B = 95
else
info_on_R = 159
info_on_G = 159
info_on_B = 255
end
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_p
os_y)
info_pos_y = (info_pos_y + offset_y)
if status_recover() then status_on_of = "ON" else status_on_of = "OFF" end
if status_on_of == "OFF" then
info_on_R = 247
info_on_G = 95
info_on_B = 95
else
info_on_R = 159
info_on_G = 159
info_on_B = 255
end
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_p
os_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 = 90
off_set_between_item = 15
offset_between_value = 130
loot_R= 173
loot_G= 173
loot_B= 173
loot_valor_R =191
loot_valor_G =191
loot_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
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,lo
ot_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,lo
ot_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,lo
ot_valor_B,loot_list_x+100,loot_list_y)
hudtext(newstring("(",
(this_total/1000),".",math.floor(math.fmod(this_total,1000)/100),"k)"),loot_valo
r_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_item
end
loot_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() - 365
profit_y= loot_list_y + 50
off_set_item=15
off_set_value=130
profit_R=173
profit_G=173
profit_B=173
profit_valor_R =191
profit_valor_G =191
profit_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].price
waste_total=waste_total+waste_local
temp_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_va
lor_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_va
lor_G,profit_valor_B,profit_x+100,profit_y)
hudtext(newstring(waste_local/1000,".",math.floor(math.fmod(waste_local/1000)/10
0),"k"),profit_valor_R,profit_valor_G,profit_valor_B,profit_x+off_set_value,prof
it_y)
end
profit_y = (profit_y + off_set_item)
end
profit_y = profit_y +5
profit_total=total-waste_total
profit_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)
else -- IMPRIMIR EM K
hudtext(newstring(waste_total/1000,"k"),profit_valor_R,profit_valor_G,profit_val
or_B,profit_x+off_set_value,profit_y)
end
profit_y = profit_y + off_set_item+10
hudfont("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+8
5,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+15
end
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+15
hudtext(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_end
False
HUD Pepper Scripts
set_hud_delay(100)
info_pos_x = (TelaBordaX() - 135)
info_pos_y = (TelaBordaY() + 20)
info_offset_x_value = 105
offset_y = 15;
info_R = 255
info_G = 255
info_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)
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_po
s_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 .. ":" .. sec
hudtext(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 hour
exp_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;
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" end
if status_on_of == "OFF" then
info_on_R = 255
info_on_G = 0
info_on_B = 0
else
info_on_R = 0
info_on_G = 255
info_on_B = 0
end
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_p
os_y)
info_pos_y = (info_pos_y + offset_y)
if status_hunter() then status_on_of = "ON" else status_on_of = "OFF" end
if status_on_of == "OFF" then
info_on_R = 255
info_on_G = 0
info_on_B = 0
else
info_on_R = 0
info_on_G = 255
info_on_B = 0
end
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_p
os_y)
info_pos_y = (info_pos_y + offset_y)
if status_looter() then status_on_of = "ON" else status_on_of = "OFF" end
if status_on_of == "OFF" then
info_on_R = 255
info_on_G = 0
info_on_B = 0
else
info_on_R = 0
info_on_G = 255
info_on_B = 0
end
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_p
os_y)
info_pos_y = (info_pos_y + offset_y)
if status_waypointer() then status_on_of = "ON" else status_on_of = "OFF" end
if status_on_of == "OFF" then
info_on_R = 255
info_on_G = 0
info_on_B = 0
else
info_on_R = 0
info_on_G = 255
info_on_B = 0
end
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_p
os_y)
info_pos_y = (info_pos_y + offset_y)
if status_lua_background() then status_on_of = "ON" else status_on_of = "OFF"
end
if status_on_of == "OFF" then
info_on_R = 255
info_on_G = 0
info_on_B = 0
else
info_on_R = 0
info_on_G = 255
info_on_B = 0
end
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_p
os_y)
info_pos_y = (info_pos_y + offset_y)
if status_auto_mount() then status_on_of = "ON" else status_on_of = "OFF" end
if status_on_of == "OFF" then
info_on_R = 255
info_on_G = 0
info_on_B = 0
else
info_on_R = 0
info_on_G = 255
info_on_B = 0
end
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_p
os_y)
info_pos_y = (info_pos_y + offset_y)
if status_recover() then status_on_of = "ON" else status_on_of = "OFF" end
if status_on_of == "OFF" then
info_on_R = 255
info_on_G = 0
info_on_B = 0
else
info_on_R = 0
info_on_G = 255
info_on_B = 0
end
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_p
os_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 = 105
offset_y = 15;
info_R= 205
info_G= 200
info_B= 177
mlpc= 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)
info_R_f = 255
info_G_f = 255
info_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_y
end
info_pos_y=info_pos_y+offset_y
-- Feita por Gustavo do Carmo
code_end
False
HUD Principal Peedroh 2.0
set_hud_delay(100)
profit_total = 0
total = 0
waste_total=0
info_pos_x = TelaBordaX()-170
info_pos_y = 40
info_offset_x_value = 120
offset_y = 15;
info_R = 0
info_G =255
info_B =0
mlpc= 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
hudbar(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 do
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
end
hudfont("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" end
if status_on_of == "OFF" then
info_on_R = 255
info_on_G = 0
info_on_B = 0
else
info_on_R = 0
info_on_G = 255
info_on_B = 0
end
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_p
os_y)
info_pos_y = (info_pos_y + offset_y)
if status_hunter() then status_on_of = "ON" else status_on_of = "OFF" end
if status_on_of == "OFF" then
info_on_R = 255
info_on_G = 0
info_on_B = 0
else
info_on_R = 0
info_on_G = 255
info_on_B = 0
end
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_p
os_y)
info_pos_y = (info_pos_y + offset_y)
if status_looter() then status_on_of = "ON" else status_on_of = "OFF" end
if status_on_of == "OFF" then
info_on_R = 255
info_on_G = 0
info_on_B = 0
else
info_on_R = 0
info_on_G = 255
info_on_B = 0
end
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_p
os_y)
info_pos_y = (info_pos_y + offset_y)
if status_waypointer() then status_on_of = "ON" else status_on_of = "OFF" end
if status_on_of == "OFF" then
info_on_R = 255
info_on_G = 0
info_on_B = 0
else
info_on_R = 0
info_on_G = 255
info_on_B = 0
end
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_p
os_y)
info_pos_y = (info_pos_y + offset_y)
if status_lua_background() then status_on_of = "ON" else status_on_of = "OFF"
end
if status_on_of == "OFF" then
info_on_R = 255
info_on_G = 0
info_on_B = 0
else
info_on_R = 0
info_on_G = 255
info_on_B = 0
end
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_p
os_y)
info_pos_y = (info_pos_y + offset_y)
if status_auto_mount() then status_on_of = "ON" else status_on_of = "OFF" end
if status_on_of == "OFF" then
info_on_R = 255
info_on_G = 0
info_on_B = 0
else
info_on_R = 0
info_on_G = 255
info_on_B = 0
end
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_p
os_y)
info_pos_y = (info_pos_y + offset_y)
if status_recover() then status_on_of = "ON" else status_on_of = "OFF" end
if status_on_of == "OFF" then
info_on_R = 255
info_on_G = 0
info_on_B = 0
else
info_on_R = 0
info_on_G = 255
info_on_B = 0
end
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_p
os_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()+20
place_y= TelaBordaY()+ 40
size_x = TelaSizeX()-20
size_y = 15
red_variation = 0
blue_bar = 255
hp = Self.hppc()
if hp <= 40 and hp >=25 then
red_variation = 7
if temp_life == nil then
temp_life = 255
else
if temp_life >= 200 then
temp_life = (temp_life - 10)
else
temp_life = 255
end
end
elseif hp <= 25 and hp >=0 then
red_variation = 4
if temp_life == nil then
temp_life = 255
else
if temp_life >= 200 then
temp_life = (temp_life - 10)
else
temp_life = 255
end
end
else
temp_life = 200
red_variation = 5
end
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=0
temp_g=0
temp_b=0
if Self.stamina() >= 2400 then
temp_r=0
temp_g=255
temp_b=0
elseif (Self.stamina()>=900) and (Self.stamina()<2400) then
temp_r=240
temp_g=120
temp_b=0
else
temp_r=255
temp_g=0
temp_b=0
end
min = math.fmod(Self.stamina(),60)
stamina_percent = Self.stamina() / (2520 / 100)
hudfont("comic san ms",1,0,1,20)
if min < 10 then
hudtext(newstring("Stamina -> ",
Self.stamina()/60,":0",min),temp_r,temp_g,temp_b,TelaBordaX()+((TelaSizeX())/2)-
20,TelaBordaY() +TelaSizeY()+35)
else
hudtext(newstring("Stamina -> ",
Self.stamina()/60,":",min),temp_r,temp_g,temp_b,TelaBordaX()+((TelaSizeX())/2)-
20,TelaBordaY() +TelaSizeY()+35)
end
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 = "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 = 40
off_set_between_item = 15
offset_between_value = 130
loot_R = 0
loot_G=255
loot_B=0
loot_valor_R =255
loot_valor_G =180
loot_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
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
temp_str = newstring(string.sub(temp_str,1,11),"...")
end
if 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,lo
ot_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,lo
ot_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)
hudtext(newstring(qtylooteditem(item_list[i].name)),loot_valor_R,loot_valor_G,lo
ot_valor_B,loot_list_x+100,loot_list_y)
hudtext(newstring("(",
(this_total/1000),".",math.floor(math.fmod(this_total,1000)/100),"k)"),loot_valo
r_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_item
end
loot_list_y = loot_list_y +5
hudfont("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() - 345
profit_y= loot_list_y + 50
off_set_item=15
off_set_value=130
profit_R=0
profit_G=255
profit_B=0
profit_valor_R =255
profit_valor_G =180
profit_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
for x=1,table.getn(waste_list),1 do
waste_local=count_used_items(waste_list[x].name)*waste_list[x].price
waste_total=waste_total+waste_local
temp_str=waste_list[x].name
if (string.len(temp_str) > 11) then
temp_str = (string.sub(temp_str,1,11).."...")
end
if waste_local < 1000 then
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_va
lor_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
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_va
lor_G,profit_valor_B,profit_x+100,profit_y)
hudtext(newstring(waste_local/1000,".",math.floor(math.fmod(waste_local/1000)/10
0),"k"),profit_valor_R,profit_valor_G,profit_valor_B,profit_x+off_set_value,prof
it_y)
end
profit_y = (profit_y + off_set_item)
end
profit_y = profit_y +5
profit_total=total-waste_total
profit_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
hudtext(newstring(waste_total,"gps"),profit_valor_R,profit_valor_G,profit_valor_
B,profit_x+off_set_value-8,profit_y)
else
hudtext(newstring(waste_total/1000,"k"),profit_valor_R,profit_valor_G,profit_val
or_B,profit_x+off_set_value,profit_y)
end
profit_y = profit_y + off_set_item+10
hudfont("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+15
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+15
hudtext(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("Salamander")
if monster <=0 then
resetmonstercount()
end
hudfont("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+15
hudfont("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 = 0
cont_local = 0
while cont < 5 do
if cont_local == 200 then
break
else
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 -20
end
cont_local=cont_local+1
end
end
code_end
False
HUD Principal Peedroh 2.1
set_hud_delay(100)
profit_total = 0
total = 0
waste_total=0
info_pos_x = TelaBordaX()-170
info_pos_y = 40
info_offset_x_value = 120
offset_y = 15;
info_R = 0
info_G =255
info_B =0
mlpc= 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)
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
end
hudfont("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" end
-- COLOCAR ON VERDE OFF VERMELHO
if status_on_of == "OFF" then
info_on_R = 255
info_on_G = 0
info_on_B = 0
else
info_on_R = 0
info_on_G = 255
info_on_B = 0
end
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_p
os_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
info_on_G = 0
info_on_B = 0
else -- ON VERDE
info_on_R = 0
info_on_G = 255
info_on_B = 0
end
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_p
os_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 = 255
info_on_G = 0
info_on_B = 0
else -- ON VERDE
info_on_R = 0
info_on_G = 255
info_on_B = 0
end
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_p
os_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 = 255
info_on_G = 0
info_on_B = 0
else -- ON VERDE
info_on_R = 0
info_on_G = 255
info_on_B = 0
end
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_p
os_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 VERMELHO
if status_on_of == "OFF" then --OFF VERMELHO
info_on_R = 255
info_on_G = 0
info_on_B = 0
else -- ON VERDE
info_on_R = 0
info_on_G = 255
info_on_B = 0
end
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_p
os_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 VERMELHO
info_on_R = 255
info_on_G = 0
info_on_B = 0
else -- ON VERDE
info_on_R = 0
info_on_G = 255
info_on_B = 0
end
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_p
os_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 = 255
info_on_G = 0
info_on_B = 0
else -- ON VERDE
info_on_R = 0
info_on_G = 255
info_on_B = 0
end
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_p
os_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()+20
place_y= TelaBordaY()+ 40
size_x = TelaSizeX()-20
size_y = 15
red_variation = 0
blue_bar = 255
hp = Self.hppc()
if hp <= 40 and hp >=25 then
red_variation = 7
if temp_life == nil then
temp_life = 255
else
if temp_life >= 200 then
temp_life = (temp_life - 10)
else
temp_life = 255
end
end
elseif hp <= 25 and hp >=0 then
red_variation = 4
if temp_life == nil then
temp_life = 255
else
if temp_life >= 200 then
temp_life = (temp_life - 10)
else
temp_life = 255
end
end
else
temp_life = 200
red_variation = 5
end
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=0
temp_g=0
temp_b=0
if Self.stamina() >= 2400 then -- STAMINA COR VERDE SE 40HRS+
temp_r=0
temp_g=255
temp_b=0
elseif (Self.stamina()>=900) and (Self.stamina()<2400) then -- STAMINA COR
LARANJA SE 15HRS<STAMINA<40
temp_r=240
temp_g=120
temp_b=0
else -- STAMINA COR VERMELHA SE
15HRS
temp_r=255
temp_g=0
temp_b=0
end
min = 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)
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)
end
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 = "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 = 40
off_set_between_item = 15
offset_between_value = 130
loot_R = 0
loot_G=255
loot_B=0
loot_valor_R =255
loot_valor_G =180
loot_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,lo
ot_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,lo
ot_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,lo
ot_valor_B,loot_list_x+100,loot_list_y)
hudtext(newstring("(",
(this_total/1000),".",math.floor(math.fmod(this_total,1000)/100),"k)"),loot_valo
r_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_item
end
loot_list_y = loot_list_y +5
hudfont("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() - 345
profit_y= loot_list_y + 50
off_set_item=15
off_set_value=130
profit_R=0
profit_G=255
profit_B=0
profit_valor_R =255
profit_valor_G =180
profit_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
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].price
waste_total=waste_total+waste_local
temp_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_va
lor_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_va
lor_G,profit_valor_B,profit_x+100,profit_y)
hudtext(newstring(waste_local/1000,".",math.floor(math.fmod(waste_local/1000)/10
0),"k"),profit_valor_R,profit_valor_G,profit_valor_B,profit_x+off_set_value,prof
it_y)
end
profit_y = (profit_y + off_set_item)
end
profit_y = profit_y +5
profit_total=total-waste_total
profit_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_val
or_B,profit_x+off_set_value,profit_y)
end
profit_y = profit_y + off_set_item+10
hudfont("comic san ms",0,1,1,25)
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+8
5,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+15
end
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+15
hudtext(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()
end
hudfont("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+15
hudfont("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 = 0
cont_local = 0
while cont < 5 do -- imprimir 5 loot of
if cont_local == 200 then -- m?ximo de msgs, resete.
break
else
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 -20
end
cont_local=cont_local+1
end
end
code_end
/end
SETUP
--CAP SETUP--
minimun_cap = 400
-- CONFIGURE MANA POTION --
use_mp = true
mp_to_use = "Mana Potion"
min_mp = 500
min_hunt_mp = 50
mp_price = 50
-- CONFIGURE HEATLH POTION 1 ( HP/SHP) --
use_hp_one = false
hp_one_to_use = "Strong Health Potion"
min_hp_one = 50
min_hunt_hp_one = 10
hp_one_price = 100
-- CONFIGURE HEALTH POTION 2 ( GHP/UHP )
use_hp_two = true
hp_two_to_use = "Great Health Potion"
min_hp_two = 60
min_hunt_hp_two = 10
hp_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 = 0
mana_potion_id = 0
minimun_health_potion = 0
healt_potion_id = 0
--TARGET--
decrease_speed_near_yellow_map_points = true
sqm_to_consider_near_yellow_points = 3
distance_run_priority_diagonal = false
turn_from_player_when_cast_atack_spell = false
wait_by_invisible_monster = true
--WAYPOINTER--
walk_with_map_click = true
walk_through_players = true
anti_furniture_trap = true
info_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 = true
use_destroy_field_on_corposes_down_to_field = true
take_out_itens_under_loot = true
max_time_to_wait_open_when_click = 1000
max_time_looting_same_corposes = 4000
time_between_move_item = 700
time_to_wait_when_clear_loot_cordinate = 1500
time_to_wait_when_try_open_corposes = 3000
looter_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 = 100
time_between_mana_recover = 100
time_between_life_recover = 100
--[CONSTANT AREA DON'T TOUCH]--
loot_style_single_loot = 1
loot_style_all_loot = 2
loot_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 = true
key_press_delay = 50
atack_random_monster_if_traped_on_screen = true
delay_atack_spell_to_wait_combo_with_atack = 80
--===============--PRINT SCREEN--===============--
when_die = false;
when_up_lvl = false;
when_up_skill = false;
--===============--PRINT SCREEN--===============--
total_lua_engine_thread = 3
/end
repot_words
opentrade() Sleep(1000)
/end
opentrade() Sleep(1000)
/end
opentrade() Sleep(1000)
/end
SCRIPTS
advanced 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 down
list_of_bags_or_backpacks = {"purple backpack","red backpack"}; -- Lista Das
Bags<<<>>> Bags List
--
===============================================================================-
-
looged = islogged();
if looged == false then
--LOGIN PART
while 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 then
if 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 then
if bpisopen(main_bp_name_or_id) == false then
openmainbp();
Sleep(2500);
end
if 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);
end
end
did_reopen = false;
break;
end
end
if bpisopen(main_bp_name_or_id) == false then
openmainbp();
Sleep(2500);
did_reopen = false;
end
end
end
end
code_end
2
1000
0
0
0
ammo_refiller
ammo = "bolt" -- if you want you can change this by another name or id
ammo_minimun_qty = 10 -- is the minimun quantity when happens the change
if is_secure_move() then
if Self.ammoamount() <= ammo_minimun_qty then
putamunation(ammo)
end
end
code_end
2
1000
0
0
0
anti_paralize
spell = "exura"
if paralyzed() == true then
say(spell)
end
code_end
2
1000
0
0
0
auto_haste
spell = "utani hur"
if hasted() == false then
say(spell)
end
code_end
2
1000
0
0
0
auto_login
account = "account" -- your account
password = "password" -- your password
index = 1 -- this is the number of your caracter on the list
if islogged() == false then
login(account,password,index)
end
code_end
2
1000
0
0
0
keep_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 end
atack(id_);
Sleep(1000)
code_end
2
1000
0
0
0
life_alert
minimun_life_percent = 40 -- if life percent is minus than this value
if Self.hppc() < minimun_life_percent then
playalarm()
end
code_end
2
1000
0
0
0
reconnect
-- automatic use tibia memmory acc, password and index of the last player logged
--
if islogged() == false then
relogin()
end
code_end
2
1000
0
0
0
screenshoots
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();
end
if int_last_lvl < Self.level() then
take_screen_shot()
int_last_lvl = Self.level()
else
int_last_lvl = Self.level()
end
code_end
2
1000
0
0
0
take_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)
end
else
life = Self.hp()
end
code_end
2
1000
0
0
0
utura
utura_spell = "utura gran"
if strengthened() == false then
say(utura_spell)
end
code_end
2
1000
0
0
0
weapon_refiller
weapon = "Spear" -- if you want you can change this by another name or id
weapon_minimun_qty = 7 -- is the minimun quantity when happens the change
if is_secure_move() then
if Self.weaponamount() <= weapon_minimun_qty then
putweapon(weapon)
end
end
code_end
2
1000
0
0
0
/end
Inicial Label
False
LOOT_BP_ID
0
0
0
0
0
0
True
False
0
False
False
-1
False
-1
False
-1
False
-1
False
False
False
False
False
False
10000
False
False
False
False
False
True
True
True
True
True
True
True
True
True
True
0
0
0
0
-1
-1
-1
-1
-1
-1
-1
-1
-1
-1
-1
-1
-1
-1
-1
-1
-1
-1
-1
-1
6
False
False
True
True
True
False
False
False
False
False
False
False
False
end

Bugs

  • 1.
    Neutral Bot 10.20 ver18 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
  • 2.
    32152 32152 32152 32149 32151 32155 end listBoxZ 8 8 8 8 8 8 8 8 8 8 8 8 8 end listBoxTipo 001.Walk to 001.Walk to 001.Walkto 001.Walk to 001.Walk to 001.Walk to 001.Walk to 001.Walk to 001.Walk to 001.Walk to 001.Walk to 001.Walk to 001.Walk to end listBoxMessage end MonsterBox BUG end monster_box_group 0 end monster_box_sqm 1 end monster_box_danger 1 end
  • 3.
  • 4.
  • 5.
  • 6.
  • 7.
  • 8.
  • 9.
    10215 end map_wall_lure end map_wall_battle end map_wall_normal end take_skin->listBox1 end take_skin->listBox2 end take_skin->listBox3 end take_skin->listBox4 end take_skin->listBox5 end take_skin->listBox6 end 2 Atack_spell_form->spell_list end ACTIONS end 4 LUA_PART HUD 1000 False False HUD KIller Caimanv 1.10 by Peedroh profit_total = 0 total = 0 waste_total=0 info_pos_x = TelaBordaX()-170 info_pos_y = 40 info_offset_x_value = 120 offset_y = 15; info_R = 0 info_G =255 info_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 = 15 hudbar(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)
  • 10.
    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 do if i >4 then hudtext(newstring(info_list[i].name,info_list[i].func),info_R,info_G,info_B,info _pos_x,info_pos_y) else 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,info_G,info_B,info_pos_x+info_offset _x_value,info_pos_y) end info_pos_y=info_pos_y+offset_y end hudfont("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" end if status_on_of == "OFF" then info_on_R = 255 info_on_G = 0 info_on_B = 0 else info_on_R = 0 info_on_G = 255 info_on_B = 0 end 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_p os_y) info_pos_y = (info_pos_y + offset_y) if status_hunter() then status_on_of = "ON" else status_on_of = "OFF" end if status_on_of == "OFF" then info_on_R = 255 info_on_G = 0
  • 11.
    info_on_B = 0 else info_on_R= 0 info_on_G = 255 info_on_B = 0 end 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_p os_y) info_pos_y = (info_pos_y + offset_y) if status_looter() then status_on_of = "ON" else status_on_of = "OFF" end if status_on_of == "OFF" then info_on_R = 255 info_on_G = 0 info_on_B = 0 else info_on_R = 0 info_on_G = 255 info_on_B = 0 end 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_p os_y) info_pos_y = (info_pos_y + offset_y) if status_waypointer() then status_on_of = "ON" else status_on_of = "OFF" end if status_on_of == "OFF" then info_on_R = 255 info_on_G = 0 info_on_B = 0 else info_on_R = 0 info_on_G = 255 info_on_B = 0 end 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_p os_y) info_pos_y = (info_pos_y + offset_y) if status_lua_background() then status_on_of = "ON" else status_on_of = "OFF" end if status_on_of == "OFF" then info_on_R = 255 info_on_G = 0 info_on_B = 0 else info_on_R = 0 info_on_G = 255 info_on_B = 0 end 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_p os_y) info_pos_y = (info_pos_y + offset_y) if status_auto_mount() then status_on_of = "ON" else status_on_of = "OFF" end if status_on_of == "OFF" then info_on_R = 255 info_on_G = 0 info_on_B = 0 else
  • 12.
    info_on_R = 0 info_on_G= 255 info_on_B = 0 end 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_p os_y) info_pos_y = (info_pos_y + offset_y) if status_recover() then status_on_of = "ON" else status_on_of = "OFF" end if status_on_of == "OFF" then info_on_R = 255 info_on_G = 0 info_on_B = 0 else info_on_R = 0 info_on_G = 255 info_on_B = 0 end 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_p os_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()+20 place_y= TelaBordaY()+ 40 size_x = TelaSizeX()-20 size_y = 15 red_variation = 0 blue_bar = 255 hp = Self.hppc() if hp <= 40 and hp >=25 then red_variation = 7 if temp_life == nil then temp_life = 255 else if temp_life >= 200 then temp_life = (temp_life - 10) else temp_life = 255 end end elseif hp <= 25 and hp >=0 then red_variation = 4 if temp_life == nil then temp_life = 255 else if temp_life >= 200 then temp_life = (temp_life - 10) else temp_life = 255 end end else
  • 13.
    temp_life = 200 red_variation= 5 end 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=0 temp_g=0 temp_b=0 if Self.stamina() >= 2400 then temp_r=0 temp_g=255 temp_b=0 elseif (Self.stamina()>=900) and (Self.stamina()<2400) then temp_r=240 temp_g=120 temp_b=0 else temp_r=255 temp_g=0 temp_b=0 end 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,TelaBor daX()+((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 = 40 off_set_between_item = 15 offset_between_value = 130 loot_R = 0 loot_G=255 loot_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
  • 14.
    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) then temp_str = newstring(string.sub(temp_str,1,14),"...") end if 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_li st_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_li st_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) -- PROFIT waste_list = { {name= "Mana Potion", price=50}, {name= "Strong Health Potion", price= 100}, } -- POSITION OF PROFIT profit_x= tibiascreensizex() - 345 profit_y= loot_list_y + 50 off_set_item=15 off_set_value=130 profit_R=0 profit_G=255 profit_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+10 for x=1,table.getn(waste_list),1 do waste_local=count_used_items(waste_list[x].name)*waste_list[x].price waste_total=waste_total+waste_local temp_str=waste_list[x].name if (string.len(temp_str) > 13) then temp_str = (string.sub(temp_str,1,13).."...") end hudtext(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)
  • 15.
    end profit_y = profit_y+5 profit_total=total-waste_total hudfont("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_v alue,profit_y) profit_y = profit_y + off_set_item+10 hudfont("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+15 hudtext(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 SYSTEM monster=250-qtymonsterkilled("Killer Caiman") if monster <=0 then resetmonstercount() end hudfont("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+15 hudfont("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)
  • 16.
    code_end False HUD level spyv 1.00 By neutral and credits to matheus campos function 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
  • 17.
    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 end end level_spy_hud() code_end False HUD 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);
  • 18.
    end function refresh_walls_time(script_delay) if total_wall== nil or total_wall == 0 then return end; for i =1,total_wall do if 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]; end total_wall = total_wall-1; else array_wall[i][4] = array_wall[i][4] - (script_delay+1); if tiletopid(array_wall[i][1],array_wall[i][2]) == magic_wall_id then array_wall[i][5] = 0; end end end for 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 array if 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]; end total_wall = total_wall-1; else array_wall[i][5] = 1+array_wall[i][5]; end end end end function add_wall_time(x,y,z,this_delay) -- create multiarray if array_wall == nil then array_wall = {}; for i = 1,200 do array_wall[i] = {}; end end --add new array for i =1,total_wall do if array_wall[i][1] == x and array_wall[i][2] == y and array_wall[i] [3] == z then return; end end
  • 19.
    if total_wall ==nil or total_wall == 0 then total_wall = 1; else total_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); end end end place_y = 50; if total_wall ~= nil then for i = 1,total_wall do if array_wall[total_wall][3] == Self.posz() then draw_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 end end refresh_walls_time(this_delay); end magic_wall_show()
  • 20.
    code_end False HUD mnml v1.00 credits to Peedroh and Iridiumflare --HUD minimal v1.0 by: iridiumflare --Original: HUD Principal Peedroh 2.1 set_hud_delay(100) profit_total = 0 total = 0 waste_total=0 info_pos_x = TelaBordaX()-187 info_pos_y = 90 info_offset_x_value = 120 offset_y = 15; info_R = 173 info_G = 173 info_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
  • 21.
    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_y end 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 INFOPART 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" end if status_on_of == "OFF" then info_on_R = 247 info_on_G = 95 info_on_B = 95 else info_on_R = 159 info_on_G = 159 info_on_B = 255 end 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_p os_y) info_pos_y = (info_pos_y + offset_y) if status_hunter() then status_on_of = "ON" else status_on_of = "OFF" end if status_on_of == "OFF" then info_on_R = 247 info_on_G = 95 info_on_B = 95 else info_on_R = 159 info_on_G = 159 info_on_B = 255 end 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_p os_y) info_pos_y = (info_pos_y + offset_y)
  • 22.
    if status_looter() thenstatus_on_of = "ON" else status_on_of = "OFF" end if status_on_of == "OFF" then info_on_R = 247 info_on_G = 95 info_on_B = 95 else info_on_R = 159 info_on_G = 159 info_on_B = 255 end 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_p os_y) info_pos_y = (info_pos_y + offset_y) if status_waypointer() then status_on_of = "ON" else status_on_of = "OFF" end if status_on_of == "OFF" then info_on_R = 247 info_on_G = 95 info_on_B = 95 else info_on_R = 159 info_on_G = 159 info_on_B = 255 end 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_p os_y) info_pos_y = (info_pos_y + offset_y) if status_lua_background() then status_on_of = "ON" else status_on_of = "OFF" end if status_on_of == "OFF" then info_on_R = 247 info_on_G = 95 info_on_B = 95 else info_on_R = 159 info_on_G = 159 info_on_B = 255 end 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_p os_y) info_pos_y = (info_pos_y + offset_y) if status_auto_mount() then status_on_of = "ON" else status_on_of = "OFF" end if status_on_of == "OFF" then info_on_R = 247 info_on_G = 95 info_on_B = 95 else info_on_R = 159 info_on_G = 159 info_on_B = 255 end 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_p os_y) info_pos_y = (info_pos_y + offset_y) if status_recover() then status_on_of = "ON" else status_on_of = "OFF" end
  • 23.
    if status_on_of =="OFF" then info_on_R = 247 info_on_G = 95 info_on_B = 95 else info_on_R = 159 info_on_G = 159 info_on_B = 255 end 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_p os_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 = 90 off_set_between_item = 15 offset_between_value = 130 loot_R= 173 loot_G= 173 loot_B= 173 loot_valor_R =191 loot_valor_G =191 loot_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
  • 24.
    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,lo ot_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,lo ot_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,lo ot_valor_B,loot_list_x+100,loot_list_y) hudtext(newstring("(", (this_total/1000),".",math.floor(math.fmod(this_total,1000)/100),"k)"),loot_valo r_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_item end loot_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() - 365 profit_y= loot_list_y + 50 off_set_item=15 off_set_value=130 profit_R=173 profit_G=173 profit_B=173
  • 25.
    profit_valor_R =191 profit_valor_G =191 profit_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].price waste_total=waste_total+waste_local temp_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_va lor_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_va lor_G,profit_valor_B,profit_x+100,profit_y) hudtext(newstring(waste_local/1000,".",math.floor(math.fmod(waste_local/1000)/10 0),"k"),profit_valor_R,profit_valor_G,profit_valor_B,profit_x+off_set_value,prof it_y) end profit_y = (profit_y + off_set_item) end profit_y = profit_y +5 profit_total=total-waste_total profit_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)
  • 26.
    else -- IMPRIMIREM K hudtext(newstring(waste_total/1000,"k"),profit_valor_R,profit_valor_G,profit_val or_B,profit_x+off_set_value,profit_y) end profit_y = profit_y + off_set_item+10 hudfont("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+8 5,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+15 end 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+15 hudtext(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_end False HUD Pepper Scripts set_hud_delay(100) info_pos_x = (TelaBordaX() - 135) info_pos_y = (TelaBordaY() + 20) info_offset_x_value = 105 offset_y = 15; info_R = 255 info_G = 255 info_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)
  • 27.
    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_po s_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 .. ":" .. sec hudtext(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 hour exp_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;
  • 28.
    info_on_B = 0; hudfont("arialblack",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" end if status_on_of == "OFF" then info_on_R = 255 info_on_G = 0 info_on_B = 0 else info_on_R = 0 info_on_G = 255 info_on_B = 0 end 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_p os_y) info_pos_y = (info_pos_y + offset_y) if status_hunter() then status_on_of = "ON" else status_on_of = "OFF" end if status_on_of == "OFF" then info_on_R = 255 info_on_G = 0 info_on_B = 0 else info_on_R = 0 info_on_G = 255 info_on_B = 0 end 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_p os_y) info_pos_y = (info_pos_y + offset_y) if status_looter() then status_on_of = "ON" else status_on_of = "OFF" end if status_on_of == "OFF" then info_on_R = 255 info_on_G = 0 info_on_B = 0 else info_on_R = 0 info_on_G = 255 info_on_B = 0 end 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_p os_y) info_pos_y = (info_pos_y + offset_y) if status_waypointer() then status_on_of = "ON" else status_on_of = "OFF" end if status_on_of == "OFF" then info_on_R = 255 info_on_G = 0 info_on_B = 0 else info_on_R = 0 info_on_G = 255
  • 29.
    info_on_B = 0 end hudtext("AtackSpell ",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_p os_y) info_pos_y = (info_pos_y + offset_y) if status_lua_background() then status_on_of = "ON" else status_on_of = "OFF" end if status_on_of == "OFF" then info_on_R = 255 info_on_G = 0 info_on_B = 0 else info_on_R = 0 info_on_G = 255 info_on_B = 0 end 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_p os_y) info_pos_y = (info_pos_y + offset_y) if status_auto_mount() then status_on_of = "ON" else status_on_of = "OFF" end if status_on_of == "OFF" then info_on_R = 255 info_on_G = 0 info_on_B = 0 else info_on_R = 0 info_on_G = 255 info_on_B = 0 end 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_p os_y) info_pos_y = (info_pos_y + offset_y) if status_recover() then status_on_of = "ON" else status_on_of = "OFF" end if status_on_of == "OFF" then info_on_R = 255 info_on_G = 0 info_on_B = 0 else info_on_R = 0 info_on_G = 255 info_on_B = 0 end 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_p os_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 = 105 offset_y = 15; info_R= 205 info_G= 200 info_B= 177 mlpc= 100-Self.mlevelpc()
  • 30.
    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 = 255 info_G_f = 255 info_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_y end info_pos_y=info_pos_y+offset_y -- Feita por Gustavo do Carmo code_end False HUD Principal Peedroh 2.0 set_hud_delay(100) profit_total = 0 total = 0 waste_total=0 info_pos_x = TelaBordaX()-170 info_pos_y = 40 info_offset_x_value = 120 offset_y = 15;
  • 31.
    info_R = 0 info_G=255 info_B =0 mlpc= 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 hudbar(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 do 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 end hudfont("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)
  • 32.
    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" end if status_on_of == "OFF" then info_on_R = 255 info_on_G = 0 info_on_B = 0 else info_on_R = 0 info_on_G = 255 info_on_B = 0 end 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_p os_y) info_pos_y = (info_pos_y + offset_y) if status_hunter() then status_on_of = "ON" else status_on_of = "OFF" end if status_on_of == "OFF" then info_on_R = 255 info_on_G = 0 info_on_B = 0 else info_on_R = 0 info_on_G = 255 info_on_B = 0 end 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_p os_y) info_pos_y = (info_pos_y + offset_y) if status_looter() then status_on_of = "ON" else status_on_of = "OFF" end if status_on_of == "OFF" then info_on_R = 255 info_on_G = 0 info_on_B = 0 else info_on_R = 0 info_on_G = 255 info_on_B = 0 end 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_p os_y) info_pos_y = (info_pos_y + offset_y) if status_waypointer() then status_on_of = "ON" else status_on_of = "OFF" end if status_on_of == "OFF" then
  • 33.
    info_on_R = 255 info_on_G= 0 info_on_B = 0 else info_on_R = 0 info_on_G = 255 info_on_B = 0 end 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_p os_y) info_pos_y = (info_pos_y + offset_y) if status_lua_background() then status_on_of = "ON" else status_on_of = "OFF" end if status_on_of == "OFF" then info_on_R = 255 info_on_G = 0 info_on_B = 0 else info_on_R = 0 info_on_G = 255 info_on_B = 0 end 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_p os_y) info_pos_y = (info_pos_y + offset_y) if status_auto_mount() then status_on_of = "ON" else status_on_of = "OFF" end if status_on_of == "OFF" then info_on_R = 255 info_on_G = 0 info_on_B = 0 else info_on_R = 0 info_on_G = 255 info_on_B = 0 end 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_p os_y) info_pos_y = (info_pos_y + offset_y) if status_recover() then status_on_of = "ON" else status_on_of = "OFF" end if status_on_of == "OFF" then info_on_R = 255 info_on_G = 0 info_on_B = 0 else info_on_R = 0 info_on_G = 255 info_on_B = 0 end 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_p os_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)
  • 34.
    -- BOT INFOPART END -- -- BOT ANIMATED LIFE BAR -- place_x= TelaBordaX()+20 place_y= TelaBordaY()+ 40 size_x = TelaSizeX()-20 size_y = 15 red_variation = 0 blue_bar = 255 hp = Self.hppc() if hp <= 40 and hp >=25 then red_variation = 7 if temp_life == nil then temp_life = 255 else if temp_life >= 200 then temp_life = (temp_life - 10) else temp_life = 255 end end elseif hp <= 25 and hp >=0 then red_variation = 4 if temp_life == nil then temp_life = 255 else if temp_life >= 200 then temp_life = (temp_life - 10) else temp_life = 255 end end else temp_life = 200 red_variation = 5 end 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=0 temp_g=0 temp_b=0 if Self.stamina() >= 2400 then temp_r=0 temp_g=255 temp_b=0 elseif (Self.stamina()>=900) and (Self.stamina()<2400) then temp_r=240 temp_g=120 temp_b=0 else temp_r=255 temp_g=0 temp_b=0
  • 35.
    end min = math.fmod(Self.stamina(),60) stamina_percent= Self.stamina() / (2520 / 100) hudfont("comic san ms",1,0,1,20) if min < 10 then hudtext(newstring("Stamina -> ", Self.stamina()/60,":0",min),temp_r,temp_g,temp_b,TelaBordaX()+((TelaSizeX())/2)- 20,TelaBordaY() +TelaSizeY()+35) else hudtext(newstring("Stamina -> ", Self.stamina()/60,":",min),temp_r,temp_g,temp_b,TelaBordaX()+((TelaSizeX())/2)- 20,TelaBordaY() +TelaSizeY()+35) end 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 = "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 = 40 off_set_between_item = 15 offset_between_value = 130 loot_R = 0 loot_G=255 loot_B=0 loot_valor_R =255 loot_valor_G =180 loot_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 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 temp_str = newstring(string.sub(temp_str,1,11),"...") end if 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,lo ot_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,lo ot_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)
  • 36.
    hudtext(newstring(qtylooteditem(item_list[i].name)),loot_valor_R,loot_valor_G,lo ot_valor_B,loot_list_x+100,loot_list_y) hudtext(newstring("(", (this_total/1000),".",math.floor(math.fmod(this_total,1000)/100),"k)"),loot_valo r_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_item end loot_list_y = loot_list_y +5 hudfont("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() - 345 profit_y= loot_list_y + 50 off_set_item=15 off_set_value=130 profit_R=0 profit_G=255 profit_B=0 profit_valor_R =255 profit_valor_G =180 profit_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 for x=1,table.getn(waste_list),1 do waste_local=count_used_items(waste_list[x].name)*waste_list[x].price waste_total=waste_total+waste_local temp_str=waste_list[x].name if (string.len(temp_str) > 11) then temp_str = (string.sub(temp_str,1,11).."...") end if waste_local < 1000 then 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_va lor_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 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_va lor_G,profit_valor_B,profit_x+100,profit_y)
  • 37.
    hudtext(newstring(waste_local/1000,".",math.floor(math.fmod(waste_local/1000)/10 0),"k"),profit_valor_R,profit_valor_G,profit_valor_B,profit_x+off_set_value,prof it_y) end profit_y = (profit_y+ off_set_item) end profit_y = profit_y +5 profit_total=total-waste_total profit_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 hudtext(newstring(waste_total,"gps"),profit_valor_R,profit_valor_G,profit_valor_ B,profit_x+off_set_value-8,profit_y) else hudtext(newstring(waste_total/1000,"k"),profit_valor_R,profit_valor_G,profit_val or_B,profit_x+off_set_value,profit_y) end profit_y = profit_y + off_set_item+10 hudfont("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+15 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+15 hudtext(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("Salamander") if monster <=0 then resetmonstercount() end hudfont("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+15 hudfont("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)
  • 38.
    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= 0 cont_local = 0 while cont < 5 do if cont_local == 200 then break else 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 -20 end cont_local=cont_local+1 end end
  • 43.
    code_end False HUD Principal Peedroh2.1 set_hud_delay(100) profit_total = 0 total = 0 waste_total=0 info_pos_x = TelaBordaX()-170 info_pos_y = 40 info_offset_x_value = 120 offset_y = 15; info_R = 0 info_G =255 info_B =0 mlpc= 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)
  • 44.
    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 end hudfont("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" end -- COLOCAR ON VERDE OFF VERMELHO if status_on_of == "OFF" then info_on_R = 255 info_on_G = 0 info_on_B = 0 else info_on_R = 0 info_on_G = 255 info_on_B = 0 end 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_p os_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
  • 45.
    info_on_G = 0 info_on_B= 0 else -- ON VERDE info_on_R = 0 info_on_G = 255 info_on_B = 0 end 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_p os_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 = 255 info_on_G = 0 info_on_B = 0 else -- ON VERDE info_on_R = 0 info_on_G = 255 info_on_B = 0 end 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_p os_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 = 255 info_on_G = 0 info_on_B = 0 else -- ON VERDE info_on_R = 0 info_on_G = 255 info_on_B = 0 end 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_p os_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 VERMELHO if status_on_of == "OFF" then --OFF VERMELHO info_on_R = 255 info_on_G = 0 info_on_B = 0 else -- ON VERDE info_on_R = 0
  • 46.
    info_on_G = 255 info_on_B= 0 end 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_p os_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 VERMELHO info_on_R = 255 info_on_G = 0 info_on_B = 0 else -- ON VERDE info_on_R = 0 info_on_G = 255 info_on_B = 0 end 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_p os_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 = 255 info_on_G = 0 info_on_B = 0 else -- ON VERDE info_on_R = 0 info_on_G = 255 info_on_B = 0 end 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_p os_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()+20 place_y= TelaBordaY()+ 40 size_x = TelaSizeX()-20 size_y = 15 red_variation = 0 blue_bar = 255 hp = Self.hppc() if hp <= 40 and hp >=25 then red_variation = 7
  • 47.
    if temp_life ==nil then temp_life = 255 else if temp_life >= 200 then temp_life = (temp_life - 10) else temp_life = 255 end end elseif hp <= 25 and hp >=0 then red_variation = 4 if temp_life == nil then temp_life = 255 else if temp_life >= 200 then temp_life = (temp_life - 10) else temp_life = 255 end end else temp_life = 200 red_variation = 5 end 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=0 temp_g=0 temp_b=0 if Self.stamina() >= 2400 then -- STAMINA COR VERDE SE 40HRS+ temp_r=0 temp_g=255 temp_b=0 elseif (Self.stamina()>=900) and (Self.stamina()<2400) then -- STAMINA COR LARANJA SE 15HRS<STAMINA<40 temp_r=240 temp_g=120 temp_b=0 else -- STAMINA COR VERMELHA SE 15HRS temp_r=255 temp_g=0 temp_b=0 end min = 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)
  • 48.
    else -- IMPRIMIRA STAMINA NORMAL hudtext(newstring("Stamina -> ", Self.stamina()/60,":",min),temp_r,temp_g,temp_b,TelaBordaX()+((TelaSizeX())/2)- 20,TelaBordaY() +TelaSizeY()+35) end 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 = "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 = 40 off_set_between_item = 15 offset_between_value = 130 loot_R = 0 loot_G=255 loot_B=0 loot_valor_R =255 loot_valor_G =180 loot_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,lo ot_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
  • 49.
    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,lo ot_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 -- IMPRIMIREM 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,lo ot_valor_B,loot_list_x+100,loot_list_y) hudtext(newstring("(", (this_total/1000),".",math.floor(math.fmod(this_total,1000)/100),"k)"),loot_valo r_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_item end loot_list_y = loot_list_y +5 hudfont("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() - 345 profit_y= loot_list_y + 50 off_set_item=15 off_set_value=130 profit_R=0 profit_G=255 profit_B=0 profit_valor_R =255 profit_valor_G =180 profit_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
  • 50.
    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].price waste_total=waste_total+waste_local temp_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_va lor_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_va lor_G,profit_valor_B,profit_x+100,profit_y) hudtext(newstring(waste_local/1000,".",math.floor(math.fmod(waste_local/1000)/10 0),"k"),profit_valor_R,profit_valor_G,profit_valor_B,profit_x+off_set_value,prof it_y) end profit_y = (profit_y + off_set_item) end profit_y = profit_y +5 profit_total=total-waste_total profit_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_val or_B,profit_x+off_set_value,profit_y) end profit_y = profit_y + off_set_item+10 hudfont("comic san ms",0,1,1,25)
  • 51.
    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+8 5,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+15 end 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+15 hudtext(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() end hudfont("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+15 hudfont("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 = 0 cont_local = 0 while cont < 5 do -- imprimir 5 loot of if cont_local == 200 then -- m?ximo de msgs, resete.
  • 52.
    break else temporary_buffer = get_message_from_stack(cont_local) ifstring.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 -20 end cont_local=cont_local+1 end end code_end /end SETUP --CAP SETUP-- minimun_cap = 400 -- CONFIGURE MANA POTION -- use_mp = true mp_to_use = "Mana Potion" min_mp = 500 min_hunt_mp = 50 mp_price = 50 -- CONFIGURE HEATLH POTION 1 ( HP/SHP) -- use_hp_one = false hp_one_to_use = "Strong Health Potion" min_hp_one = 50 min_hunt_hp_one = 10 hp_one_price = 100 -- CONFIGURE HEALTH POTION 2 ( GHP/UHP ) use_hp_two = true hp_two_to_use = "Great Health Potion" min_hp_two = 60 min_hunt_hp_two = 10 hp_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 = 0 mana_potion_id = 0 minimun_health_potion = 0 healt_potion_id = 0 --TARGET-- decrease_speed_near_yellow_map_points = true sqm_to_consider_near_yellow_points = 3 distance_run_priority_diagonal = false turn_from_player_when_cast_atack_spell = false wait_by_invisible_monster = true --WAYPOINTER--
  • 53.
    walk_with_map_click = true walk_through_players= true anti_furniture_trap = true info_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 = true use_destroy_field_on_corposes_down_to_field = true take_out_itens_under_loot = true max_time_to_wait_open_when_click = 1000 max_time_looting_same_corposes = 4000 time_between_move_item = 700 time_to_wait_when_clear_loot_cordinate = 1500 time_to_wait_when_try_open_corposes = 3000 looter_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 = 100 time_between_mana_recover = 100 time_between_life_recover = 100 --[CONSTANT AREA DON'T TOUCH]-- loot_style_single_loot = 1 loot_style_all_loot = 2 loot_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 = true key_press_delay = 50 atack_random_monster_if_traped_on_screen = true delay_atack_spell_to_wait_combo_with_atack = 80 --===============--PRINT SCREEN--===============--
  • 54.
    when_die = false; when_up_lvl= false; when_up_skill = false; --===============--PRINT SCREEN--===============-- total_lua_engine_thread = 3 /end repot_words opentrade() Sleep(1000) /end opentrade() Sleep(1000) /end opentrade() Sleep(1000) /end SCRIPTS advanced 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 down list_of_bags_or_backpacks = {"purple backpack","red backpack"}; -- Lista Das Bags<<<>>> Bags List -- ===============================================================================- - looged = islogged(); if looged == false then --LOGIN PART while 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 then if 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 then if bpisopen(main_bp_name_or_id) == false then openmainbp(); Sleep(2500); end if 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);
  • 55.
    end end did_reopen = false; break; end end ifbpisopen(main_bp_name_or_id) == false then openmainbp(); Sleep(2500); did_reopen = false; end end end end code_end 2 1000 0 0 0 ammo_refiller ammo = "bolt" -- if you want you can change this by another name or id ammo_minimun_qty = 10 -- is the minimun quantity when happens the change if is_secure_move() then if Self.ammoamount() <= ammo_minimun_qty then putamunation(ammo) end end code_end 2 1000 0 0 0 anti_paralize spell = "exura" if paralyzed() == true then say(spell) end code_end 2 1000 0 0 0 auto_haste spell = "utani hur" if hasted() == false then say(spell) end code_end 2 1000 0 0 0
  • 56.
    auto_login account = "account"-- your account password = "password" -- your password index = 1 -- this is the number of your caracter on the list if islogged() == false then login(account,password,index) end code_end 2 1000 0 0 0 keep_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 end atack(id_); Sleep(1000) code_end 2 1000 0 0 0 life_alert minimun_life_percent = 40 -- if life percent is minus than this value if Self.hppc() < minimun_life_percent then playalarm() end code_end 2 1000 0 0 0 reconnect -- automatic use tibia memmory acc, password and index of the last player logged -- if islogged() == false then relogin() end code_end 2 1000 0 0 0 screenshoots
  • 57.
    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(); end if int_last_lvl < Self.level() then take_screen_shot() int_last_lvl = Self.level() else int_last_lvl = Self.level() end code_end 2 1000 0 0 0 take_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) end else life = Self.hp() end code_end 2 1000 0 0 0 utura utura_spell = "utura gran" if strengthened() == false then say(utura_spell) end code_end 2 1000 0 0 0 weapon_refiller weapon = "Spear" -- if you want you can change this by another name or id
  • 58.
    weapon_minimun_qty = 7-- is the minimun quantity when happens the change if is_secure_move() then if Self.weaponamount() <= weapon_minimun_qty then putweapon(weapon) end end code_end 2 1000 0 0 0 /end Inicial Label False LOOT_BP_ID 0 0 0 0 0 0 True False 0 False False -1 False -1 False -1 False -1 False False
  • 59.
  • 60.