Lineage 2 Tower Forum

Full Version: use custom potion
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3
hello

i can use custom potion with tower ??

i have alot custom potion and i can use ; exist some metod ??

ty
use shortcut ?
(03-23-2014 23:37 PM)Fox Wrote: [ -> ]use shortcut ?

be more precise plz

ty
He means you put your potion on your skill bar and use for example
    LUA Programming
Command("/useshortcut 1 10")


Another thing you can do is simply write .recstart custompots, then use potion then .recstop. This way u`ll see the id of the potion
search there are 99999999 examples of using shortcuts

PS read

Possibly Related Threads...
(03-24-2014 00:20 AM)eustach3 Wrote: [ -> ]He means you put your potion on your skill bar and use for example
    LUA Programming
Command("/useshortcut 1 10")


Another thing you can do is simply write .recstart custompots, then use potion then .recstop. This way u`ll see the id of the potion

how i can see ???

explain more plz
Well, usually you can see by opening your eyes...
I`ll have to guess then... Well probably you dont know how to "see" what u recorded, so follow these steps:
1. After injecting l2tower and joined the server, type .recstart custom
2. Use custom potion
3. type .recstop
4. go in your l2tower folder then double click L2TowerScript.exe
5. go to file -> open -> select custom.lua
6. You will see UseItem(XXXX) => XXXX is your item id.
(03-27-2014 18:03 PM)eustach3 Wrote: [ -> ]Well, usually you can see by opening your eyes...
I`ll have to guess then... Well probably you dont know how to "see" what u recorded, so follow these steps:
1. After injecting l2tower and joined the server, type .recstart custom
2. Use custom potion
3. type .recstop
4. go in your l2tower folder then double click L2TowerScript.exe
5. go to file -> open -> select custom.lua
6. You will see UseItem(XXXX) => XXXX is your item id.

ty

nice explication

ty again
(03-23-2014 23:11 PM)mark1975 Wrote: [ -> ]hello

i can use custom potion with tower ??

i have alot custom potion and i can use ; exist some metod ??

ty

CP

    LUA Programming
ShowToClient("POTS","Superior CP pots");
 
PN = "Superior CP Potion";
 
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:GetCpPercent() < 95) and (GetItemAmountByName(PN) > 0) then
		UseItem(PNID); -- Superior CP Potion
		Sleep(250);
	end;
	Sleep(200);
 
until false;




HP

    LUA Programming
ShowToClient("POTS","Superior HP pots");
 
--UseItem(35930); -- Healing Potion of Chaos
 
 
PN = "Healing Potion of Chaos";
 
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() < 100) and (GetItemAmountByName(PN) > 0) then
		UseItem(PNID); -- Superior CP Potion
		Sleep(250);
	end;
	Sleep(200);
 
until false;

(03-28-2014 20:17 PM)TheQQmaster Wrote: [ -> ]
(03-23-2014 23:11 PM)mark1975 Wrote: [ -> ]hello

i can use custom potion with tower ??

i have alot custom potion and i can use ; exist some metod ??

ty

CP

    LUA Programming
ShowToClient("POTS","Superior CP pots");
 
PN = "Superior CP Potion";
 
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:GetCpPercent() < 95) and (GetItemAmountByName(PN) > 0) then
 UseItem(PNID); -- Superior CP Potion
 Sleep(250);
	end;
	Sleep(200);
 
until false;




HP

    LUA Programming
ShowToClient("POTS","Superior HP pots");
 
--UseItem(35930); -- Healing Potion of Chaos
 
 
PN = "Healing Potion of Chaos";
 
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() < 100) and (GetItemAmountByName(PN) > 0) then
 UseItem(PNID); -- Superior CP Potion
 Sleep(250);
	end;
	Sleep(200);
 
until false;


ty

i will try to put my potion id and make working for me
Pages: 1 2 3
Reference URL's