Lineage 2 Tower Forum

Full Version: Soulshot
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
I made Auto-activation script for Beast SS.
I used 1 function from Sakaszli's Samples and it works good.

    LUA Programming
function getItemCount(name)
invList = GetInventory();
lol=0;
	for item in invList.list do
		if (item.displayId == name or item.objectId==name or item.Name==name) then
			lol=item.ItemNum
		end
	end
return lol;
end;
 
repeat
	BeastSSstart = getItemCount(6645)
	Sleep(2000)
	BeastSSend = getItemCount(6645)
	if BeastSSend < BeastSSstart then
		--do Nothing
	else
		ActivateSoulShot(6645, true); -- Beast Soulshot
	end
	Sleep(5000)
until false

/wrong section
/there is already a plugin in script repository what does that and also activates other shots...
very usefull.
Pages: 1 2
Reference URL's