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

Post Reply 
 
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
check ss
Author Message
atrivido1 Offline
Expired VIP Member
**

Posts: 25
Joined: Aug 2014
Reputation: 2
Version: 1.4.2.139.2b
Post: #1
check ss

anyone have a script check ss pet cuz it's bug and not reactive Huh
(This post was last modified: 08-16-2014 03:44 AM by atrivido1.)
08-16-2014 03:43 AM
Find all posts by this user Quote this message in a reply
tophersoccer Offline
Expired VIP Member
**

Posts: 422
Joined: Aug 2012
Reputation: 142
Version: 1.4.3.143
Post: #2
RE: check ss

(08-16-2014 03:43 AM)atrivido1 Wrote:  anyone have a script check ss pet cuz it's bug and not reactive Huh

This might help:

    LUA Programming
function hasItem(name)
	local invList = GetInventory();
		for item in invList.list do
			if (item.Name == name) then
				return true;
			end;
		end;
	return false;
end;
--6645	Beast Soulshot
--6646	Beast Spiritshot
if not hasItem("Beast Soulshot") then
-- do something
end



Use L2TowerHelp.exe. There are two ways:

    LUA Programming
function hasItemByName(name)
	local invList = GetInventory();
		for item in invList.list do
			if (item.Name == name) then
				return true;
			end;
		end;
	return false;
end;
 
function hasItemById(id)
	local invList = GetInventory();
		for item in invList.list do
			if (item.displayId == id) then
				return true;
			end;
		end;
	return false;
end;
--6645	Beast Soulshot
--6646	Beast Spiritshot
 
if hasItemById(6645) then
ShowToClient("GOD","has by id",3)
end
Sleep(1000)
if hasItemByName("Beast Soulshot") then
ShowToClient("GOD","has by name",3)
end

(This post was last modified: 08-16-2014 04:28 AM by tophersoccer.)
08-16-2014 04:19 AM
Find all posts by this user Quote this message in a reply
atrivido1 Offline
Expired VIP Member
**

Posts: 25
Joined: Aug 2014
Reputation: 2
Version: 1.4.2.139.2b
Post: #3
RE: check ss

did not work Sad
(This post was last modified: 08-16-2014 04:46 AM by atrivido1.)
08-16-2014 04:46 AM
Find all posts by this user Quote this message in a reply
capucine Offline
Expired VIP Member
**

Posts: 1,083
Joined: Jan 2013
Reputation: 208
Version: 1.4.2.142
Post: #4
RE: check ss

(08-16-2014 03:43 AM)atrivido1 Wrote:  anyone have a script check ss pet cuz it's bug and not reactive Huh

try this:

+2 rep me if it helped you...!

    LUA Programming
name = "Beast Soulshot";
repeat
i=0;
invList = GetInventory();
for item in invList.list do
	if (item.Name==name) then
		i=item.ItemNum;
		if (i < 100) and (GetMe():GetTarget() ~= nil) then
			if (GetZoneType() == 15) then
				UseItem(736); --SoE
			end;
			if (GetZoneType() == 12) then
				Sleep(15000);
			    ShowToClient("Script", "Bye.");
				LogOut();
			end;
		end;
	end;
end;
until false;
 
function CountMonstersInRange(range)
	local me = GetMe();
	local l = GetMonsterList();
	local c = 0;
 
	for user in l.list do 
		if ((user:IsAlikeDeath() == false) and (user:GetRangeTo(me)<range)) then
			c = c + 1;
		end;		
	end;
	return c;
end;
 
Sleep(1000);

08-16-2014 21:45 PM
Find all posts by this user Quote this message in a reply
atrivido1 Offline
Expired VIP Member
**

Posts: 25
Joined: Aug 2014
Reputation: 2
Version: 1.4.2.139.2b
Post: #5
RE: check ss

(08-16-2014 21:45 PM)capucine Wrote:  
(08-16-2014 03:43 AM)atrivido1 Wrote:  anyone have a script check ss pet cuz it's bug and not reactive Huh

try this:

+2 rep me if it helped you...!

    LUA Programming
name = "Beast Soulshot";
repeat
i=0;
invList = GetInventory();
for item in invList.list do
	if (item.Name==name) then
 i=item.ItemNum;
 if (i < 100) and (GetMe():GetTarget() ~= nil) then
 if (GetZoneType() == 15) then
 UseItem(736); --SoE
 end;
 if (GetZoneType() == 12) then
 Sleep(15000);
 ShowToClient("Script", "Bye.");
 LogOut();
 end;
 end;
	end;
end;
until false;
 
function CountMonstersInRange(range)
	local me = GetMe();
	local l = GetMonsterList();
	local c = 0;
 
	for user in l.list do 
 if ((user:IsAlikeDeath() == false) and (user:GetRangeTo(me)<range)) then
 c = c + 1;
 end; 
	end;
	return c;
end;
 
Sleep(1000);


still not working
08-17-2014 00:33 AM
Find all posts by this user Quote this message in a reply
tophersoccer Offline
Expired VIP Member
**

Posts: 422
Joined: Aug 2012
Reputation: 142
Version: 1.4.3.143
Post: #6
RE: check ss

LOL everything posted works. Stop trolling or go cry somewhere else. Don't just reply with "not working", add some more detail and shit or no one is going to help you
(This post was last modified: 08-20-2014 01:03 AM by tophersoccer.)
08-20-2014 01:02 AM
Find all posts by this user Quote this message in a reply
Post Reply 


Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  check l2 deathwhisper truthak0s69 0 1,857 11-07-2016 23:40 PM
Last Post: truthak0s69
  Free Check EXP to Town Script!!!!!!!!!!!!!!!!! soul2eat 7 5,097 12-23-2014 15:24 PM
Last Post: TheQQmaster
Question Check masterparty benbt91 10 5,912 09-05-2014 22:18 PM
Last Post: kerberos464
Exclamation check weapon/gear KristalSystem 4 3,497 07-06-2014 00:10 AM
Last Post: KristalSystem
  How i can check "on/off" some scripts? hcetigol 2 2,585 05-22-2014 18:27 PM
Last Post: hcetigol
  How do check mobs or me in side polyin by script? haolong5 0 1,875 02-20-2014 18:21 PM
Last Post: haolong5
  L2 neo guys check it pasxalis891 0 2,472 01-14-2014 23:13 PM
Last Post: pasxalis891
  Character Class check Lordbl4 3 3,928 01-10-2014 20:13 PM
Last Post: SimonHM
  New Update, New Problem - Please Check vingz 23 12,472 08-18-2013 13:11 PM
Last Post: vexara
  Check it it's important please. OneManAmry 5 4,008 09-30-2012 16:35 PM
Last Post: dcsilviu89



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