L2Tower Discord Let's keep the community alive with discord. Discussions about plugins and scripts L2Tower Discord

Post Reply 
 
Thread Rating:
  • 1 Vote(s) - 4 Average
  • 1
  • 2
  • 3
  • 4
  • 5
use custom potion
Author Message
mark1975 Offline
Ratman Chieftain
*

Posts: 24
Joined: Apr 2012
Reputation: 0
Version: 1.4.2.133
Post: #1
use custom potion

hello

i can use custom potion with tower ??

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

ty
03-23-2014 23:11 PM
Find all posts by this user Quote this message in a reply
Fox Away
Fraka-kaka-kaka-kaka-kow!
******

Posts: 5,632
Joined: Oct 2011
Reputation: -6666548
Version: 1.4.2.142
Post: #2
RE: use custom potion

use shortcut ?

Heart
03-23-2014 23:37 PM
Visit this user's website Find all posts by this user Quote this message in a reply
mark1975 Offline
Ratman Chieftain
*

Posts: 24
Joined: Apr 2012
Reputation: 0
Version: 1.4.2.133
Post: #3
RE: use custom potion

(03-23-2014 23:37 PM)Fox Wrote:  use shortcut ?

be more precise plz

ty
03-23-2014 23:40 PM
Find all posts by this user Quote this message in a reply
eustach3 Offline
VIP Member
***

Posts: 324
Joined: Sep 2011
Reputation: 133
Version: 1.4.3.143
Post: #4
RE: use custom potion

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
(This post was last modified: 03-24-2014 00:20 AM by eustach3.)
03-24-2014 00:20 AM
Find all posts by this user Quote this message in a reply
Fox Away
Fraka-kaka-kaka-kaka-kow!
******

Posts: 5,632
Joined: Oct 2011
Reputation: -6666548
Version: 1.4.2.142
Post: #5
RE: use custom potion

search there are 99999999 examples of using shortcuts

PS read

Possibly Related Threads...

Heart
03-24-2014 01:03 AM
Visit this user's website Find all posts by this user Quote this message in a reply
mark1975 Offline
Ratman Chieftain
*

Posts: 24
Joined: Apr 2012
Reputation: 0
Version: 1.4.2.133
Post: #6
RE: use custom potion

(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
03-27-2014 14:43 PM
Find all posts by this user Quote this message in a reply
eustach3 Offline
VIP Member
***

Posts: 324
Joined: Sep 2011
Reputation: 133
Version: 1.4.3.143
Post: #7
RE: use custom potion

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
Find all posts by this user Quote this message in a reply
mark1975 Offline
Ratman Chieftain
*

Posts: 24
Joined: Apr 2012
Reputation: 0
Version: 1.4.2.133
Post: #8
RE: use custom potion

(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-28-2014 19:41 PM
Find all posts by this user Quote this message in a reply
TheQQmaster Offline
Trolling the Trolls
*****

Posts: 1,532
Joined: Jun 2012
Reputation: 642
Version: 1.4.2.133
Post: #9
RE: use custom potion

(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;


PUSH [Image: knUu53] IF HELPED
03-28-2014 20:17 PM
Visit this user's website Find all posts by this user Quote this message in a reply
 Reputed by : sylverio(+2)
mark1975 Offline
Ratman Chieftain
*

Posts: 24
Joined: Apr 2012
Reputation: 0
Version: 1.4.2.133
Post: #10
RE: use custom potion

(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
03-31-2014 21:32 PM
Find all posts by this user Quote this message in a reply
Post Reply 


Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  Need Mana Potion script aa300598 2 4,773 02-06-2016 09:01 AM
Last Post: aa300598
  custom Autotarget SCRIPT fd2dpwnz 3 3,759 08-02-2015 21:19 PM
Last Post: TheQQmaster
Information NEED SCRIPT MANA POTION FOR ES-L2 c1powstyle 6 5,670 09-07-2014 23:51 PM
Last Post: sirblackhole
  Mana Potion Stop Atack ferreir4 0 2,610 02-02-2013 01:54 AM
Last Post: ferreir4
Information [Request] Script for custom NPC shopping? MrSmirnov 2 4,683 10-14-2012 02:41 AM
Last Post: MrSmirnov
  Script Mana Potion MrGalun 4 14,335 05-09-2012 16:04 PM
Last Post: MrGalun
  Add poison potion? devilnam 6 5,136 01-15-2012 20:02 PM
Last Post: Sakaszli



User(s) browsing this thread: 1 Guest(s)