TheQQmaster
Trolling the Trolls
    
Posts: 1,532
Joined: Jun 2012
Reputation: 642
Version:
1.4.2.133
|
RE: Warriors temporary healing potion (хиро квики)
Quote:Подскажите, пожалуйста, как включить в боте использование хиро квиков (Warriors temporary healing potion)?
esli tam netu tavo pota neizpolzajish ih, skoka pomnju bilo tolka abicniji poti
Quote:Level max
Level min (что за левел? левел персонажа?)
левел персонажа - da
Quote:Percent (что за процент? на мп банке выставлен процент 50, но она начинает юзаться раньше, например)
ot skoka pracentof juzat
Quote:Damage (что ха урон?)
pahodu eta dumana skoka ona othilit, ob etam niznaju
Quote:Cooldowntime (ну тут все понятно)
Впервые пользуюсь л2товером, да и ботом вообще, сильно не ругайте 
PS И еще, вот например, мне нужно чтобы банка мп использовалась с интервалом в 30 секунд. Что мне для этого нужно? Пробовал запускать l2tower configuration editor, открывать там конфиг с ником нужного персонажа, выставлял кулдаун 30 сек, сохранял под этим же именем. Захожу в игру - ничего не меняется. Снова открываю этот же конфиг - там стандартный кулдаун (5 сек вроде, не помню, в общем не 30, которые я сохранял).
Через /xcfg пробовал - много чего делал и крутил, вроде заработало. Сейчас хочу уточнить, если я зашел на нужного персонажа и запустил /xcfg, настроил там кулдаун на мп банке - это нужно сохранять в самом
l2tower configuration editor? Или если его запускать из игры - сохраняется само собой?
naprimer v igri jesli izminajesh v /xcfg togda mozhesh sahranit /save_imjapersonazha
ja vopsem vsegda juzal skript
dostat pot imja
LUA Programming
myname= GetMe():GetName();
mylvl= GetMe():GetLevel();
filename = GetDir() .. "InventoryList-".. myname..".txt";
file = io.open(filename, "w");
ShowToClient(tostring(os.date("%X")), "file: " .. filename, 3);
if (file) then
invList = GetInventory();
for item in invList.list do
if not (item.IsEquipped) then
idaux = tostring(item.displayId)
nameaux = tostring(item.Name)
countaux = tostring(item.ItemNum)
file:write( idaux .." \t\t-- "..nameaux .. " ("..countaux..")\n");
end;
end;
file:close();
else
ShowToClient(tostring(os.date("%X")), "Can't save into file: " .. filename, 3);
end;
mp pots na procentah
LUA Programming
ShowToClient(tostring(os.date("%X")),"MP pots");
PN = "manapotname"; -- edit pot name (Large Mana Potion is not equal to large mana potion), so type it correct
percentouse = 80; -- percent to stsrt use MP pots
function GetItemAmountByName(name) -- getting id of pot to use them
local invList = GetInventory();
for item in invList.list do
if (item.Name == name) then
PNID = item.displayId;
return item.ItemNum;
end;
end;
return 0;
end;
repeat
if(GetMe():GetMpPercent() < percentouse) and (GetItemAmountByName(PN) > 0) then -- percent to use and we got items
UseItem(PNID);
Sleep(250);
end;
Sleep(200);
until false;
hp pots na procentah
LUA Programming
ShowToClient(tostring(os.date("%X")),"Auto HP pots ON",3);
PN = "Healing Potion of Chaos";
percentouse = 70; -- percent to stsrt use MP pots
function GetItemAmountByName(name)
local invList = GetInventory();
for item in invList.list do
if (item.Name == name) then
PNID = item.displayId;
return item.ItemNum;
end;
end;
return 0;
end;
repeat
I = GetMe();
if(I:GetHpPercent() < percentouse) and (GetItemAmountByName(PN) > 0) then
UseItem(PNID); -- Superior CP Potion
Sleep(250);
end;
Sleep(200);
until false;
PUSH IF HELPED
(This post was last modified: 04-17-2016 09:19 AM by TheQQmaster.)
|
|