Lineage 2 Tower Forum

Full Version: [Request]Script for ISS oop heal
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I have checked forum but did not find or sorry, but it would be nice if someone can make script for Iss oop heal for wynn servitors, is it possible? it would be awesome Smile
(04-24-2012 09:39 AM)skip Wrote: [ -> ]I have checked forum but did not find or sorry, but it would be nice if someone can make script for Iss oop heal for wynn servitors, is it possible? it would be awesome Smile


dude, sorry but.... it is the last topic commented on script section
-.-''

anyway let me guess mos/gc farming eh? anyway:

http://forum.l2tower.eu/showthread.php?t...8#pid15098

that is heal+ress for iss (there is same script for healer too)


and about wynn pet heal use this (i don't know if it works without premium account):

    LUA Programming
-- At how much hp % should we heal pets?
minHealthPercent = 70
-- max distance at which we will search for targets.
maxDistance = 800
-- Switch back to previous target after healing or not?
switchBack = true
 
function GetSkillIdByName(name)
	skills = GetSkills()
	for s in skills.list do
		if s.name == name then
			return s.skillId
		end
	end
	return nil
end
-- Skill Id of healing spell, it should find it by name, if not it will be the last number:
healId = GetSkillIdByName("Servitor Major Heal") or GetSkillIdByName("Servitor Heal") or 11302 -- Servitor Major Heal
 
function CastHeal(id,tar,dist)
	if id and tar then
		skill = GetSkills():FindById(id)
		if skill and skill:CanBeUsed() then
			for d=dist-50,50,-100 do
				if not tar or tar:GetHpPercent() == 0 then
					return false
				end
				if tar:GetDistance() > dist or not tar:CanSeeMe() then
					loc = tar:GetLocation()
					MoveTo(loc.X, loc.Y, loc.Z, d)
					tar = GetUserById(tar:GetId())
				end
			end
			if switchBack then
				old = GetTarget()
			end
			Target(tar)
			UseSkillRaw(id,false,false)
			if old then
				Sleep(300)
				Target(old)
			end
			return true
		end
	end
	return false
end
 
function PetBelongsToMe( pet )
	me = GetMe()
	if pet and me then
		if me:GetName() == pet:GetMasterName() then
			return true
		end
	end
	return false
end
 
repeat
	pets = GetPetList()
	for pet in pets.list do
		if 	pet:GetDistance() < maxDistance and 
			PetBelongsToMe(pet) and 
			pet:GetHpPercent() <= minHealthPercent then
			CastHeal(healId, pet, (healId == 11302 and 890) or 590)
		end
	end
until false;



ofc the first script must be runed on Iss, the second on wynn.


enjoy
i use transformations so i cant use second script Smile (and also with a lot of mobs i have problem with it) but anyway about first one it checks main charakter hp status not servitors :/
p.s bot in fairy setlement
Iss heal your wynn, your wynn heal summon xD anyway i don't know how you could do with transformation on...
(04-24-2012 16:47 PM)TheBl4ckPhoenix Wrote: [ -> ]Iss heal your wynn, your wynn heal summon xD anyway i don't know how you could do with transformation on...
but u know if i have full hp it does not mean that my servitor is full too Big Grin Idea
Yeah i know, i was saying that Iss keep alive your winn and your winn keep alive summons....
But you told that you are using transformation, so i don't know hot to help you sry..
Reference URL's