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

Thread Closed 
 
Thread Rating:
  • 18 Vote(s) - 2.39 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Request]Script for ISS oop heal
Author Message
skip Offline
Gremlin
*

Posts: 6
Joined: Mar 2012
Reputation: 0
Version: 1.4.3.143
Post: #1
[Request]Script for ISS oop heal

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
Find all posts by this user
TheBl4ckPhoenix Offline
(^.^)
****

Posts: 1,871
Joined: Mar 2012
Reputation: 601
Version: 1.4.3.143
Post: #2
RE: [Request]Script for ISS oop heal

(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
04-24-2012 11:20 AM
Find all posts by this user
skip Offline
Gremlin
*

Posts: 6
Joined: Mar 2012
Reputation: 0
Version: 1.4.3.143
Post: #3
RE: [Request]Script for ISS oop heal

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
(This post was last modified: 04-24-2012 15:39 PM by skip.)
04-24-2012 15:35 PM
Find all posts by this user
TheBl4ckPhoenix Offline
(^.^)
****

Posts: 1,871
Joined: Mar 2012
Reputation: 601
Version: 1.4.3.143
Post: #4
RE: [Request]Script for ISS oop heal

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
Find all posts by this user
skip Offline
Gremlin
*

Posts: 6
Joined: Mar 2012
Reputation: 0
Version: 1.4.3.143
Post: #5
RE: [Request]Script for ISS oop heal

(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
04-24-2012 22:32 PM
Find all posts by this user
TheBl4ckPhoenix Offline
(^.^)
****

Posts: 1,871
Joined: Mar 2012
Reputation: 601
Version: 1.4.3.143
Post: #6
RE: [Request]Script for ISS oop heal

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..
04-26-2012 00:47 AM
Find all posts by this user
Thread Closed 


Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  Heal mackiemsau 1 1,543 05-27-2022 10:40 AM
Last Post: JennaDeh
  [Request] L2 Toxic Anti-Bot Script snocrew 18 16,089 02-11-2017 19:19 PM
Last Post: Paralyzer
  Heal script ekin 2 5,250 11-01-2015 22:26 PM
Last Post: snapit
  How i do to prophet heal the party player ? sectorzueira 2 3,054 09-11-2015 13:40 PM
Last Post: sectorzueira
  Help Auto Buff Or Heal For Not In Party Verheiden 3 4,495 04-27-2015 16:58 PM
Last Post: Hebdzik
  The request xxmanxx 4 3,325 04-10-2015 18:46 PM
Last Post: xxmanxx
Information Dark items CP lf HEAL / ISS !! FreeXi 6 4,713 03-20-2015 21:37 PM
Last Post: FreeXi
  how to heal Cttdav 3 4,668 12-31-2014 18:46 PM
Last Post: tophersoccer
Heart Request for upgrades to Premium services. Manboi_74 0 1,788 09-12-2014 05:33 AM
Last Post: Manboi_74
  OOP Cleanse Script Modification Request nais 2 2,863 08-16-2014 22:12 PM
Last Post: nais



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