Skocz do zawartości
  • 👋 Witaj na MPCForum!

    Przeglądasz forum jako gość, co oznacza, że wiele świetnych funkcji jest jeszcze przed Tobą! 😎

    • Pełny dostęp do działów i ukrytych treści
    • Możliwość pisania i odpowiadania w tematach
    • System prywatnych wiadomości
    • Zbieranie reputacji i rozwijanie swojego profilu
    • Członkostwo w jednej z największych społeczności graczy

    👉 Dołączenie zajmie Ci mniej niż minutę – a zyskasz znacznie więcej!

    Zarejestruj się teraz

[Pytanie]HUD redbot


eaeae

Rekomendowane odpowiedzi

Opublikowano

Jak to jest że na tym samym skrypcie raz działa hud a raz nie działa? Używałem tego samego skryptu na 2 postaciach i na jednej działał a na drugiej nie ... Jeśli wiecie co zrobić to proszę tutaj pisać :)

ostrywariat.png

Opublikowano

Jak to jest że na tym samym skrypcie raz działa hud a raz nie działa? Używałem tego samego skryptu na 2 postaciach i na jednej działał a na drugiej nie ... Jeśli wiecie co zrobić to proszę tutaj pisać :)

podaj zawartość swojego huda

 

 

to jest to gdzie mozesz wpisywac komendy? :D

Główne menu bota, Hud

Opublikowano

 

// All credits other than the basic HUD go to Grishnabob //

bool showLootcounter = true;

bool showLoots = true; // Show last loot messages?
int showLootNum = 7; // 1-10

bool showPms = true; // Show last private messages?
int showPmNum = 5; // 1-10

int LootX = $gamewindow.right; // X pos of left side of the loot counter

int lastLootX = $gamewindow.x; // X pos of Last Loot Messages
int lastLootY = $gamewindow.bottom-20*showLootNum-20; // Y pos of Last Loot messages

int lastPmX = $gamewindow.x; // X pos of Last pm Messages
int lastPmY = $gamewindow.bottom-50*showLootNum-20*showPmNum-20; // Y pos of Last pm messages


string[] content = filecontent($name);
int LootLength = countLoot.Length/2;
int SupplyLength = Supplies.Length/2;
int profit = 0;
if(showLoots) {
for(int i = 0; i if(content.Length>5) {
addtext("" +content.Split(';')[2], lastLootX, (lastLootY+20*showLootNum)-i*20, content.Split(';')[1], "Tahoma", 8, "Bold");
}
}
}
if(showPms) {
for(int i = 0; i string pm = content[i+10].Split(';')[0];
int header = pm.IndexOf(":");
if(pm.Length-header> 50)
pm = pm.Substring(0,100)+"(...)";
addtext("" +pm, lastPmX, (lastPmY+20*showPmNum)-i*20, "Aqua", "Tahoma", 8, "Bold");
}
}
if(showLootcounter) {
addtext("Loot Counter", LootX+60, 8, "Gold", "Tahoma", 12, "Bold");
addtext("By Grishnabob", LootX+80, 26, "Gold", "Tahoma", 7, "Bold");
addtext("Looted Items", LootX, 40, "DeepSkyBlue", "Tahoma", 8, "Bold");
int LootCounted = 0;
for(int i = 0; i int Lootvalue = int.Parse(countLoot[i, 1]) * int.Parse(content[21+i]);
double Value = Lootvalue/1000.0;
if(int.Parse(content[21+i])>0) {
addtext("" +countLoot[i,0], LootX, 60+15*LootCounted, "AntiqueWhite", "Tahoma", 8, "Bold");
if(Value%1>0)
addtext("" + content[21+i] + " (" + Value.ToString("0.0k") + ")", LootX+145, 60+15*LootCounted, "White", "Tahoma", 8, "Bold");
else
addtext("" + content[21+i] + " (" + Value + "k)", LootX+145, 60+15*LootCounted, "White", "Tahoma", 8, "Bold");
profit += Lootvalue;
LootCounted+=1;
}
}
double profitValue = profit/1000.0;
if(profitValue%1>0)
addtext("Total: " + profitValue.ToString("0.0k")+"", LootX+40, 60+15*LootCounted, "Lime", "Tahoma", 8, "Bold");
else
addtext("Total: " + profitValue+"k", LootX+40, 60+15*LootCounted, "Lime", "Tahoma", 8, "Bold");
int supplycost = 0;
addtext("Supplies", LootX, 80+15*LootCounted, "DeepSkyBlue", "Tahoma", 8, "Bold");
for(int i = 0; i string[] count= content[i+22+LootLength].Split(',');
addtext("" + Supplies[i, 0], LootX, 100+15*LootCounted+15*i, "AntiqueWhite", "Tahoma", 8, "Bold");
int cost = int.Parse(Supplies[i, 1])*int.Parse(count[0]);
double Value = cost/1000.0;
if(Value%1>0)
addtext("" + count[0] + " (" + Value.ToString("0.0k") + ")", LootX+145, 100+15*LootCounted+15*i, "White", "Tahoma", 8, "Bold");
else
addtext("" + count[0] + " (" + Value + "k)", LootX+145, 100+15*LootCounted+15*i, "White", "Tahoma", 8, "Bold");
profit -= cost;
supplycost += cost;
}
double supplyValue = supplycost/1000.0;
if(supplyValue%1>0)
addtext("Total: " + supplyValue.ToString("0.0k")+"", LootX+40, 100+15*LootCounted+15*SupplyLength, "Crimson", "Tahoma", 8, "Bold");
else
addtext("Total: " + supplyValue+"k", LootX+40, 100+15*LootCounted+15*SupplyLength, "Crimson", "Tahoma", 8, "Bold");

addtext("Total", LootX, 120+15*LootCounted+15*SupplyLength, "DeepSkyBlue", "Tahoma", 8, "Bold");
string color = "Lime";
if(profit<0) color = "Crimson";
double display = profit/1000.0;
double perhr = profit*3600.0/$exptime/1000.0;
if(display%1>0)
addtext(display.ToString("0.0K")+" gold ("+perhr.ToString("0.0"+" k/hr)"), LootX, 140+15*LootCounted+15*SupplyLength, color, "Tahoma", 8, "Bold");
else
addtext(display+"k gold ("+perhr.ToString("0.0"+" k/hr)"), LootX, 140+15*LootCounted+15*SupplyLength, color, "Tahoma", 8, "Bold");
}


addtext("===============", 0, 0, "AntiqueWhite", "Arial", 12, "Italic");
addtext("Asderfoo's Hud", 0, 20, "White", "Arial", 12, "Italic");
addtext("===============", 0, 40, "AntiqueWhite", "Arial", 12, "Italic");
addtext("Hit Points:", 0, 60, "White", "Arial", 9, "Bold");
if ($hp < 99*1) {
addtext("" + ($hp/10) + "" + ($hp % 10).ToString(""), 80, 60, "Red", "Arial", 8, "Bold");
}
else if ($hp > 100*1) {
addtext("" + ($hp/10) + "" + ($hp % 10).ToString(""), 80, 60, "LimeGreen", "Arial", 8, "Bold");
}
addtext("Mp Points:", 0, 80, "White", "Arial", 9, "Bold");
if ($mp < 25*1) {
addtext("" + ($mp/10) + "" + ($mp % 10).ToString(""), 80, 80, "Red", "Arial", 8, "Bold");
}
else if ($mp > 26*1) {
addtext("" + ($mp/10) + "" + ($mp % 10).ToString(""), 80, 80, "LimeGreen", "Arial", 8, "Bold");
}
addtext("Total Exp:", 0, 100, "White", "Arial", 8, "Bold");
addtext("" + $exp, 80, 100, "White", "Arial", 8, "Bold");
addtext("Exp Took:", 0, 120, "White", "Arial", 8, "Bold");
addtext("" + $expgained, 80, 120, "White", "Arial", 8, "Bold");
addtext("Exp/Hour: ", 0, 140, "White", "Arial", 8, "Bold");
addtext("" + $exphour, 80, 140, "White", "Arial", 8, "Bold");
addtext("ExpForLvL:", 0, 160, "White", "Arial", 8, "Bold");
addtext("" + $expleft, 80, 160, "White", "Arial", 8, "Bold");
addtext("TimeForLvl:", 0, 180, "White", "Arial", 8, "Bold");
addtext(" " + timetolevel(), 70, 180, "White", "Arial", 8, "Bold");
addtext("Stamina:", 0, 200, "White", "Arial", 8, "Bold");
if ($stamina < 14*60) {
addtext("" + ($stamina/60) + ":" + ($stamina % 60).ToString("00"), 80, 200, "Red", "Arial", 8, "Bold");
}
else if ($stamina > 40*60) {
addtext("" + ($stamina/60) + ":" + ($stamina % 60).ToString("00"), 80, 200, "LimeGreen", "Arial", 8, "Bold");
}
else {
addtext("" + ($stamina/60) + ":" + ($stamina % 60).ToString("00"), 80, 200, "White", "Arial", 8, "Bold");
}
addtext("Mouse ID:", 0, 220, "White", "Arial", 8, "Bold");
addtext("" + $clickid, 80, 220, "White", "Arial", 8, "Bold");
addtext("Balance:", 0, 240, "White", "Arial", 8, "Bold");
if ($balance > 1000000) {
addtext("" + $balance, 80, 240, "LimeGreen", "Arial", 8, "Bold");
}
else {
addtext("" + $balance, 80, 240, "Red", "Arial", 8, "Bold");
}
addtext("Time Online:", 0, 260, "White", "Arial", 8, "Bold");
addtext("" + ($exptime/3600).ToString("00") + ":" + ($exptime/60%60).ToString("00") + ":" + ($exptime % 60).ToString("00"), 80, 260, "White", "Arial", 8, "Bold");
addtext("Cavebot:", 0, 280, "White", "Arial", 8, "Bold");
if ($cavebot) {
addtext("ON", 80, 280, "LimeGreen", "Arial", 8, "Bold");
}
else {
addtext("OFF", 80, 280, "Red", "Arial", 8, "Bold");
}
addtext("Targeting:", 0, 300, "White", "Arial", 8, "Bold");
if ($targeting) {
addtext("ON", 80, 300, "LimeGreen", "Arial", 8, "Bold");
}
else {
addtext("OFF", 80, 300, "Red", "Arial", 8, "Bold");
}
addtext("Looting:", 0, 320, "White", "Arial", 8, "Bold");
if ($looting) {
addtext("ON", 80, 320, "LimeGreen", "Arial", 8, "Bold");
}
else {
addtext("OFF", 80, 320, "Red", "Arial", 8, "Bold");
}
addtext("Healer:", 0, 340, "White", "Arial", 8, "Bold");
if ($healer) {
addtext("ON", 80, 340, "LimeGreen", "Arial", 8, "Bold");
}
else {
addtext("OFF", 80, 340, "Red", "Arial", 8, "Bold");
}
addtext("OpenNextBP:", 0, 360, "White", "Arial", 8, "Bold");
if (setopennextbackpack("on")) {
addtext("ON", 80, 360, "LimeGreen", "Arial", 8, "Bold");
}
else {
addtext("OFF", 80, 360, "Red", "Arial", 8, "Bold");
}
addtext("WalkMode:", 0, 380, "White", "Arial", 8, "Bold");
addtext("" + $walkingmethod, 80, 380, "White", "Arial", 8, "Bold");
addtext("BodiesToLoot: ", 0, 400, "White", "Arial", 8, "Bold");
addtext(" " + $lootbodies , 85, 400, "White", "Arial", 8, "Bold");

;>;>;>;>

 

teraz nie działa na żadnej postaci ...

 

hud w spoilerze :)

ostrywariat.png

Opublikowano

Do twojego trzeba actiony bo masz w hudzie loot counter

 

Jak chcesz masz tutaj ten co ja używam w każdym skrypcie, BEZ LOOT COUNTER

 

int x = 10;
int y = -30;

addtext("Script Info", x, y+35, "Gold", "Tahoma", 8, "Bold");
addtext("____________________________", x, y+40, "White", "Arial", 9, "Bold");
addtext("Name:", x, y+60, "AntiqueWhite", "Tahoma", 8, "Bold");
addtext("Yalahar Nightmare", x+80, y+60, "OrangeRed", "Tahoma", 8, "Bold");
addtext("Version:", x, y+75, "AntiqueWhite", "Tahoma", 8, "Bold");
addtext("v1.0", x+80, y+75, "OrangeRed", "Tahoma", 8, "Bold");
addtext("____________________________", x, y+90, "White", "Arial", 9, "Bold");
addtext("Character Info", x, y+105, "Gold", "Tahoma", 8, "Bold");
addtext("____________________________", x, y+110, "White", "Arial", 9, "Bold");
addtext("Exp:", x, y+130, "AntiqueWhite", "Tahoma", 8, "Bold");
addtext("" + $exp, x+80, y+130, "White", "Tahoma", 8, "Bold");
addtext("Exp Gained:", x, y+145, "AntiqueWhite", "Tahoma", 8, "Bold");
addtext("" + $expgained, x+80, y+145, "White", "Tahoma", 8, "Bold");
addtext("Exp/h (tibia):", x, y+160, "AntiqueWhite", "Tahoma", 8, "Bold");
addtext("" + $exphour, x+80, y+160, "White", "Tahoma", 8, "Bold");
addtext("Exp/h (bot): ", x, y+175, "AntiqueWhite", "Tahoma", 8, "Bold");
addtext("" + ($expgained/$exptime)*3600, x+80, y+175, "White", "Tahoma", 8, "Bold");
addtext("Exp Left:", x, y+190, "AntiqueWhite", "Tahoma", 8, "Bold");
addtext("" + $expleft, x+80, y+190, "White", "Tahoma", 8, "Bold");
addtext("Time Left:", x, y+205, "AntiqueWhite", "Tahoma", 8, "Bold");
addtext("" + timetolevel(), x+80, y+205, "White", "Tahoma", 8, "Bold");
addtext("Time Online:", x, y+220, "AntiqueWhite", "Tahoma", 8, "Bold");
addtext("" + ($exptime/3600).ToString("00") + ":" + ($exptime/60%60).ToString("00") + ":" + ($exptime % 60).ToString("00"), x+80, y+220, "White", "Tahoma", 8, "Bold");
addtext("Stamina:", x, y+235, "AntiqueWhite", "Tahoma", 8, "Bold");
if ($stamina < 14*60) {
addtext("" + ($stamina/60) + ":" + ($stamina % 60).ToString("00"), x+80, y+235, "Crimson", "Tahoma", 8, "Bold");
}
else if ($stamina > 40*60) {
addtext("" + ($stamina/60) + ":" + ($stamina % 60).ToString("00"), x+80, y+235, "Lime", "Tahoma", 8, "Bold");
}
else {
addtext("" + ($stamina/60) + ":" + ($stamina % 60).ToString("00"), x+80, y+235, "White", "Tahoma", 8, "Bold");
}
addtext("Balance:", x, y+250, "AntiqueWhite", "Tahoma", 8, "Bold");
if ($balance > 1000000) {
addtext("" + $balance, x+80, y+250, "Gold", "Tahoma", 8, "Bold");
}
else {
addtext("" + $balance, x+80, y+250, "White", "Tahoma", 8, "Bold");
}
addtext("____________________________", x, y+265, "White", "Arial", 9, "Bold");
addtext("Botting Status", x, y+280, "Gold", "Tahoma", 8, "Bold");
addtext("____________________________", x, y+285, "White", "Arial", 9, "Bold");
addtext("Healer:", x, y+305, "AntiqueWhite", "Tahoma", 8, "Bold");
if ($healer) {
addtext("Enabled", x+80, y+305, "Lime", "Tahoma", 8, "Bold");
}
else {
addtext("Disabled", x+80, y+305, "Crimson", "Tahoma", 8, "Bold");
}
addtext("Cavebot:", x, y+320, "AntiqueWhite", "Tahoma", 8, "Bold");
if ($cavebot) {
addtext("Enabled", x+80, y+320, "Lime", "Tahoma", 8, "Bold");
}
else {
addtext("Disabled", x+80, y+320, "Crimson", "Tahoma", 8, "Bold");
}
addtext("Targeting:", x, y+335, "AntiqueWhite", "Tahoma", 8, "Bold");
if ($targeting) {
addtext("Enabled", x+80, y+335, "Lime", "Tahoma", 8, "Bold");
}
else {
addtext("Disabled", x+80, y+335, "Crimson", "Tahoma", 8, "Bold");
}
addtext("Looting:", x, y+350, "AntiqueWhite", "Tahoma", 8, "Bold");
if ($looting) {
addtext("Enabled", x+80, y+350, "Lime", "Tahoma", 8, "Bold");
}
else {
addtext("Disabled", x+80, y+350, "Crimson", "Tahoma", 8, "Bold");
}
addtext("Walking:", x, y+375, "AntiqueWhite", "Tahoma", 8, "Bold");
addtext("" + $walkingmethod, x+80, y+375, "White", "Tahoma", 8, "Bold");
addtext("Loot Bodies:", x, y+390, "AntiqueWhite", "Tahoma", 8, "Bold");
addtext("" + $lootbodies, x+80, y+390, "White", "Tahoma", 8, "Bold");
addtext("Mouse ID:", x, y+405, "AntiqueWhite", "Tahoma", 8, "Bold");
addtext("" + $clickid, x+80, y+405, "White", "Tahoma", 8, "Bold");

 

Opublikowano

no ten co dałeś też mam ale chciałbym z loot counterem mieć ... może muszę zrobić jakiś plik tekstowy sam czy coś? Może macie jakieś inne pomysły?

ostrywariat.png

Opublikowano

No to tu hud + counter którego używam

To wklej do hud

 

// All credits other than the basic HUD go to Grishnabob //

bool showBasicHud = true; // Credits to RoxZin xD
int basicHudLeft = $gamewindow.right;

bool showLoots=true; // Show last loot messages?
int showLootNum=7; // 1-10

bool showPms = false; // Show last private messages?
int showPmNum = 5; // 1-10

int LootX = 965; // X pos of left side of the loot counter

int lastLootX = $gamewindow.x; // X pos of Last Loot Messages
int lastLootY = $gamewindow.bottom-20*showLootNum-20; // Y pos of Last Loot messages

int lastPmX = $gamewindow.x; // X pos of Last pm Messages
int lastPmY = $gamewindow.bottom-50*showLootNum-20*showPmNum-20; // Y pos of Last pm messages



string[] content = filecontent($name);
int LootLength = countLoot.Length/2;
int SupplyLength = Supplies.Length/2;
int profit = 0;
if(showLoots) {
for(int i = 0; i if(content.Length>5) {
addtext("" +content.Split(';')[2], lastLootX, (lastLootY+20*showLootNum)-i*20, content.Split(';')[1], "Tahoma", 8, "Bold");
}
}
}
if(showPms) {
for(int i = 0; i addtext("" +content[i+10].Split(';')[0], lastPmX, (lastPmY+20*showPmNum)-i*20, "Aqua", "Tahoma", 8, "Bold");
}
}

addtext("Loot Counter", LootX+60, 8, "Gold", "Tahoma", 12, "Bold");
addtext("By Grishnabob", LootX+80, 26, "Gold", "Tahoma", 7, "Bold");
addtext("Looted Items", LootX, 40, "DeepSkyBlue", "Tahoma", 8, "Bold");
int LootCounted = 0;
for(int i = 0; i int Lootvalue = int.Parse(countLoot[i, 1]) * int.Parse(content[21+i]);
double Value = Lootvalue/1000.0;
if(int.Parse(content[21+i])>0) {
addtext("" +countLoot[i,0], LootX, 60+15*LootCounted, "AntiqueWhite", "Tahoma", 8, "Bold");
addtext("" + content[21+i] + " (" + Value.ToString("0.0k") + ")", LootX+175, 60+15*LootCounted, "White", "Tahoma", 8, "Bold");
profit += Lootvalue;
LootCounted+=1;
}
}
double profitValue = profit/1000.0;
addtext("Total: " + profitValue.ToString("0.0k")+"", LootX+40, 60+15*LootCounted, "Lime", "Tahoma", 8, "Bold");
int supplycost = 0;
addtext("Supplies", LootX, 80+15*LootCounted, "DeepSkyBlue", "Tahoma", 8, "Bold");
for(int i = 0; i string[] count= content[i+22+LootLength].Split(',');
addtext("" + Supplies[i, 0], LootX, 100+15*LootCounted+15*i, "AntiqueWhite", "Tahoma", 8, "Bold");
int cost = int.Parse(Supplies[i, 1])*int.Parse(count[0]);
double Value = cost/1000.0;
addtext("" + count[0] + " (" + Value.ToString("0.0k") + ")", LootX+175, 100+15*LootCounted+15*i, "White", "Tahoma", 8, "Bold");
profit -= cost;
supplycost += cost;
}
double supplyValue = supplycost/1000.0;
addtext("Total: " + supplyValue.ToString("0.0k")+"", LootX+40, 100+15*LootCounted+15*SupplyLength, "Crimson", "Tahoma", 8, "Bold");

addtext("Total", LootX, 120+15*LootCounted+15*SupplyLength, "DeepSkyBlue", "Tahoma", 8, "Bold");
string color = "Lime";
if(profit<0) color = "Crimson";
double display = profit/1000.0;
double perhr = profit*3600.0/$exptime/1000.0;
addtext(display.ToString("0.0K")+" gold ("+perhr.ToString("0.0"+" k/hr)"), LootX, 140+15*LootCounted+15*SupplyLength, color, "Tahoma", 8, "Bold");



int x = 10;
int y = -30;

addtext("Script Info", x, y+35, "Gold", "Tahoma", 8, "Bold");
addtext("____________________________", x, y+40, "White", "Arial", 9, "Bold");
addtext("Name:", x, y+60, "AntiqueWhite", "Tahoma", 8, "Bold");
addtext("Yalahar Nightmare", x+80, y+60, "OrangeRed", "Tahoma", 8, "Bold");
addtext("Version:", x, y+75, "AntiqueWhite", "Tahoma", 8, "Bold");
addtext("v1.0", x+80, y+75, "OrangeRed", "Tahoma", 8, "Bold");
addtext("____________________________", x, y+90, "White", "Arial", 9, "Bold");
addtext("Character Info", x, y+105, "Gold", "Tahoma", 8, "Bold");
addtext("____________________________", x, y+110, "White", "Arial", 9, "Bold");
addtext("Exp:", x, y+130, "AntiqueWhite", "Tahoma", 8, "Bold");
addtext("" + $exp, x+80, y+130, "White", "Tahoma", 8, "Bold");
addtext("Exp Gained:", x, y+145, "AntiqueWhite", "Tahoma", 8, "Bold");
addtext("" + $expgained, x+80, y+145, "White", "Tahoma", 8, "Bold");
addtext("Exp/h (tibia):", x, y+160, "AntiqueWhite", "Tahoma", 8, "Bold");
addtext("" + $exphour, x+80, y+160, "White", "Tahoma", 8, "Bold");
addtext("Exp/h (bot): ", x, y+175, "AntiqueWhite", "Tahoma", 8, "Bold");
addtext("" + ($expgained/$exptime)*3600, x+80, y+175, "White", "Tahoma", 8, "Bold");
addtext("Exp Left:", x, y+190, "AntiqueWhite", "Tahoma", 8, "Bold");
addtext("" + $expleft, x+80, y+190, "White", "Tahoma", 8, "Bold");
addtext("Time Left:", x, y+205, "AntiqueWhite", "Tahoma", 8, "Bold");
addtext("" + timetolevel(), x+80, y+205, "White", "Tahoma", 8, "Bold");
addtext("Time Online:", x, y+220, "AntiqueWhite", "Tahoma", 8, "Bold");
addtext("" + ($exptime/3600).ToString("00") + ":" + ($exptime/60%60).ToString("00") + ":" + ($exptime % 60).ToString("00"), x+80, y+220, "White", "Tahoma", 8, "Bold");
addtext("Stamina:", x, y+235, "AntiqueWhite", "Tahoma", 8, "Bold");
if ($stamina < 14*60) {
addtext("" + ($stamina/60) + ":" + ($stamina % 60).ToString("00"), x+80, y+235, "Crimson", "Tahoma", 8, "Bold");
}
else if ($stamina > 40*60) {
addtext("" + ($stamina/60) + ":" + ($stamina % 60).ToString("00"), x+80, y+235, "Lime", "Tahoma", 8, "Bold");
}
else {
addtext("" + ($stamina/60) + ":" + ($stamina % 60).ToString("00"), x+80, y+235, "White", "Tahoma", 8, "Bold");
}
addtext("Balance:", x, y+250, "AntiqueWhite", "Tahoma", 8, "Bold");
if ($balance > 1000000) {
addtext("" + $balance, x+80, y+250, "Gold", "Tahoma", 8, "Bold");
}
else {
addtext("" + $balance, x+80, y+250, "White", "Tahoma", 8, "Bold");
}
addtext("____________________________", x, y+265, "White", "Arial", 9, "Bold");
addtext("Botting Status", x, y+280, "Gold", "Tahoma", 8, "Bold");
addtext("____________________________", x, y+285, "White", "Arial", 9, "Bold");
addtext("Healer:", x, y+305, "AntiqueWhite", "Tahoma", 8, "Bold");
if ($healer) {
addtext("Enabled", x+80, y+305, "Lime", "Tahoma", 8, "Bold");
}
else {
addtext("Disabled", x+80, y+305, "Crimson", "Tahoma", 8, "Bold");
}
addtext("Cavebot:", x, y+320, "AntiqueWhite", "Tahoma", 8, "Bold");
if ($cavebot) {
addtext("Enabled", x+80, y+320, "Lime", "Tahoma", 8, "Bold");
}
else {
addtext("Disabled", x+80, y+320, "Crimson", "Tahoma", 8, "Bold");
}
addtext("Targeting:", x, y+335, "AntiqueWhite", "Tahoma", 8, "Bold");
if ($targeting) {
addtext("Enabled", x+80, y+335, "Lime", "Tahoma", 8, "Bold");
}
else {
addtext("Disabled", x+80, y+335, "Crimson", "Tahoma", 8, "Bold");
}
addtext("Looting:", x, y+350, "AntiqueWhite", "Tahoma", 8, "Bold");
if ($looting) {
addtext("Enabled", x+80, y+350, "Lime", "Tahoma", 8, "Bold");
}
else {
addtext("Disabled", x+80, y+350, "Crimson", "Tahoma", 8, "Bold");
}
addtext("Walking:", x, y+375, "AntiqueWhite", "Tahoma", 8, "Bold");
addtext("" + $walkingmethod, x+80, y+375, "White", "Tahoma", 8, "Bold");
addtext("Loot Bodies:", x, y+390, "AntiqueWhite", "Tahoma", 8, "Bold");
addtext("" + $lootbodies, x+80, y+390, "White", "Tahoma", 8, "Bold");
addtext("Mouse ID:", x, y+405, "AntiqueWhite", "Tahoma", 8, "Bold");
addtext("" + $clickid, x+80, y+405, "White", "Tahoma", 8, "Bold");

;>;>;>;>

 

Te dwa hotkeye do persistent

Loot Counter

 

// Check if already recorded //
string[] firstMsg = fileline($name, 0).Split(';');
if(int.Parse(firstMsg[0])!=lootIndex) {
for(int i=0; i if (lootContent.Contains(Rares.ToLower())) {
colormsg=lootIndex+";"+RareColor+";"+lootContent;
if(ssOnRare) {
wait(500);
focusclient();
screenshot();
}
}
}
for(int i=8; i>-1; i--) {
filewriteline($name, i + 1, fileline($name, i)); // Push previous loot messages back
}
filewriteline($name, 0, colormsg); // Record the new loot message in text file
string check = ": " + lootContent;
for(int j = 0; j < LootLength; j++) { // Count the loot in the message
string item = countLoot[j, 0].ToLower();
string[] singles = {"a " + item, "an " + item, ", " + item, ": " + item};
while(check.Contains(item)) {
int count = 0;
for(int i = 0; i < singles.Length; i++) {
if(check.Contains(singles)) {
count = 1;
}
}
if(check.Contains(item) && count==0) {
string loot = check.Substring(check.IndexOf(countLoot[j, 0].ToLower())-5, 10); // Get the 5 characters before the ITEM_NAME (will contain the count of the item and a few more chars)
count = int.Parse(loot.Trim(": abcdefghijklmnopqrstuvwxyz,".ToCharArray())); // Trim off anything but a number
}
int pos = check.IndexOf(item);
check = check.Substring(0,pos)+check.Substring(pos+1, check.Length-pos-1);
int newAmount = int.Parse(fileline($name, 21+j))+count; // Add new count to old count
filewriteline($name, j+21, newAmount.ToString()); // Write new count to file
}
}
}

// Soft Boot Counter //
string npcmsg = $lastmsg.npc.content.ToLower();
int npcindex = $lastmsg.npc.index;
if(npcmsg.ToLower().Contains("repair")) {
for(int i =0 ; i if(Supplies[i,0].ToLower().Contains("soft boot")) {
string [] prev = fileline($name, 22+i+LootLength).Split(',');
if(int.Parse(prev[1])!=npcindex) {
int newAmount = int.Parse(prev[0]) + 1;
filewriteline($name, i+22+LootLength, newAmount.ToString()+","+npcindex);
}
}
}
}

// Supply Counter //
string msg = ".." + $lastmsg.serverlog.content.ToLower();
if (msg.IndexOf("usi")>1) { // Check if using supplies
for(int i =0 ; i if (msg.Contains(Supplies[i,0].ToLower())) {
string[] suppliescount = fileline($name, 22+i+LootLength).Split(',');
int previous = 0;
if (msg.Contains( "last " + Supplies[i,0].ToLower() )) {
previous = 1;
} else {
string loot = msg.Substring(msg.IndexOf(Supplies[i,0].ToLower())-5, 10); // Get the 5 characters before the ITEM_NAME (will contain the count of the item and a few more chars)
previous = int.Parse(loot.Trim(": abcdefghijklmnopqrstuvwxyz,".ToCharArray()));
}
if(previous!=int.Parse(suppliescount[1]) || previous==null) {
int newAmount = int.Parse(suppliescount[0])+1; // Add new count to old count
filewriteline($name, i+22+LootLength, newAmount.ToString()+","+previous.ToString() ); // Write new count to file
}
}
}
} else if (msg.IndexOf("bought")>0 && msg.IndexOf("potion")<=0 && msg.IndexOf("rune")<=0) { // Count Ammo
for(int i =0 ; i string[] prev = fileline($name, 22+i+LootLength).Split(',');
if(msg.Contains(Supplies[i,0].ToLower())) {
if (int.Parse(prev[1])!=$lastmsg.serverlog.index) {
string bought = msg.Substring(8,7).Trim(": abcdefghijklmnopqrstuvwxyz,".ToCharArray());
int newAmount = int.Parse(bought)+int.Parse(prev[0]);
filewriteline($name, i+22+LootLength, newAmount.ToString()+","+$lastmsg.serverlog.index);
}
}
}
}

;>;>;>;>

 

Loot Counter Reset

 

int LootLength = countLoot.Length/2;
int SupplyLength = Supplies.Length/2;
for(int i=0; i<24+LootLength+SupplyLength; i++) {
filewriteline($name, i, "0");
}

 

 

To do Global Variables

 

//LOOT COUNTER by Grishnabob//

string[,] countLoot = {
{"Gold Coin", "1"},
{"Platinum Coin", "100"},
{"Peanut", "100"},
{"Mutated Rat Tail", "150"},
{"Stealth Ring", "200"},
{"Spellbook of Enlightenment", "4000"},
{"Tower Shield", "8000"},
{"Life Ring", "500"},
{"Strong Health Potion", "60"},
{"Glorious Axe", "3000"},
{"Guardian Shield", "2000"},
{"Angelic Axe", "5000"},
{"Boggy Dreads", "200"},
{"Great Spirit Potion", "100"},
{"Springsprout Rod", "3700"},
{"Paladin Armor", "15000"},
{"Seeds", "150"},
{"Essence of a Bad Dream", "360"},
{"Scythe Leg", "450"},
{"Death Ring", "1000"},
{"Diamond Sceptre", "3000"},
{"Crown Helmet", "2500"},
{"Bar of Chocolate", "500"},
{"Crystal of Focus", "2000"},
{"Focus Cape", "6000"},
{"Shadow Sceptre", "10000"},
{"Ancient Shield", "900"},
{"Knight Legs", "5000"},
{"Skeleton Decoration", "3000"},
{"Boots of Haste", "30000"},
{"War Axe", "12000"},
{"Mysterious Voodoo Skull", "4000"},
{"Small Amethyst", "200"},
{"Demonic Essence", "1000"},
{"Soul Orb", "50"},
{"Metal Spike", "320"},
{"Giant Sword", "17000"},
{"Chaos Mace", "9000"},
{"Crystal Necklace", "400"},
{"Dreaded Cleaver", "15000"},
{"Steel Boots", "30000"},
{"Skull Helmet", "40000"},
{"Silver Brooch", "150"},
{"Piece of Hell Steel", "500"},
{"Piece of Royal Steel", "10000"},
{"Piece of Draconian Steel", "3000"},
{"Hammer of Wrath", "30000"},
{"War Horn", "8000"},
{"Emerald Bangle", "800"},
{"Great Mana Potion", "110"},
{"Small Emerald", "250"},
{"Assassin Star", "100"},
{"Fire Axe", "8000"},
{"Talon", "320"},
{"Orb", "750"},
{"Golden Sickle", "1000"},
{"Devil Helmet", "1000"},
{"Purple Tome", "2000"},
{"Gold Ring", "8000"},
{"Platinum Amulet", "2500"},
{"Ice Rapier", "1000"},
{"Demon Shield", "30000"},
{"Ring of Healing", "800"},
{"Demon Horn", "1000"},
{"Golden Legs", "30000"},
{"Mastermind Shield", "60000"},
{"Might Ring", "800"},
{"Magic Plate Armor", "120000"},
{"Demon Trophy", "40000"},
{"Demonrage Sword", "36000"},
{"Ultimate Health Potion", "150"},
{"Great Health Potion", "190"},
{"Axe Ring", "400"}
}; // No plural names
string[] Rares = {"Demonrage Sword", "Demon Trophy", "Magic Plate Armor", "Mastermind Shield", "Golden Legs", "Angelic Axe", "Guardian Shield", "Fire Axe", "Golden Sickle", "Devil Helmet", "Purple Tome", "Gold Ring", "Platinum Amulet", "Ice Rapier", "Demon Shield", "Demon Horn", "Demonic Essence", "Giant Sword", "Chaos Mace", "Dreaded Cleaver", "Steel Boots", "Skull Helmet", "Piece of Royal Steel", "Piece of Draconian Steel", "Hammer of Wrath", "War Horn", "Death Ring", "Knight Legs", "Diamond Sceptre", "Shadow Sceptre", "Crystal of Focus", "Focus Cape", "Skeleton Decoration", "Boots of Haste", "War Axe", "Mysterious Voodoo Skull", "Spellbook of Enlightenment", "Tower Shield", "Springsprout Rod", "Paladin Armor"};
string[,] Supplies = {
{"Mana Potion", "50"},
{"Great Health Potion", "190"}
};
string RareColor = "Red";
string NormalColor = "White";
bool ssOnRare = false;

 

 

oczywiście zmień sie itemki, cene, supple w global variables ;)

Opublikowano

za szybko dałem rozwiązany ;p wkleiłem całość i jeszcze nic nie zrobiłem a już errory w loot counterze wyskoczyły :| Linijki 41, 42, 45, 46, 47, 48, 51, 52, 54. Może wiesz dlaczego? ;p

 

 

 

 

same errory cały czas ....

 

chyba wiem w czym jest problem ... tam jest coś i softach i dla tego są errory i rzecz w tym że jak usunę to z softami to mam jeszcze więcej errorów ...

ostrywariat.png

Opublikowano

no nie powiedziałbym że to jest to samo ;p Loot counter się różni i to bardzo. Teraz jak włączam hud to dopiero są errory czyli jesteśmy na dobrej drodze :)

 

 

 

 

siedziałem chyba od 15 i w końcu się udało :D z 3 zrobiłem 1 i to działający :) dziękuje za pomoc i temat do zamknięcia :)

ostrywariat.png

  • 3 miesiące temu...
  • 4 miesiące temu...

Zarchiwizowany

Ten temat przebywa obecnie w archiwum. Dodawanie nowych odpowiedzi zostało zablokowane.

×
×
  • Dodaj nową pozycję...