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
Help to Summon Reanimated Man (Feoh Soultaker)
Author Message
versutia4 Offline
Goblin Grave Robber
*

Posts: 12
Joined: Oct 2013
Reputation: 0
Version: 1.4.2.142
Post: #1
Help to Summon Reanimated Man (Feoh Soultaker)

Greetings friends

I will be annoying again in order to enlist their help to complete a script.

Is a feoh soultaker's skill called "summon reanimated man", and I want to use when is not invoked, or, when the feoh use another skill called "sacrificial soul", which I want to use when the summon has HP below 40%

The point is that I created the script, but remains in a kind of constant loop, and the system sends me a message saying: "You can not use summon man reanimated due to Insufficient summon skill points"

I would like to invoke my own summon when the script is activated, or, during a hunt, I want use the skill "sacrificial soul" when my summon has less 40% HP to unsummon, and after, summon again.

I put the script here.........by the way, as I allways I say, I am not a programmer, I only try to make my own script using commands from others scripts/plugings. So please be patience with me, I am a noob Smile

Thanks


Attached File(s)
.lua  FeohSTSummon.lua (Size: 528 bytes / Downloads: 30)
08-15-2015 21:47 PM
Find all posts by this user Quote this message in a reply
schubbel2208 Offline
Expired VIP Member
**

Posts: 154
Joined: Jun 2012
Reputation: 35
Version: 1.4.3.143
Post: #2
RE: Help to Summon Reanimated Man (Feoh Soultaker)

(08-15-2015 21:47 PM)versutia4 Wrote:  Greetings friends

I will be annoying again in order to enlist their help to complete a script.

Is a feoh soultaker's skill called "summon reanimated man", and I want to use when is not invoked, or, when the feoh use another skill called "sacrificial soul", which I want to use when the summon has HP below 40%

The point is that I created the script, but remains in a kind of constant loop, and the system sends me a message saying: "You can not use summon man reanimated due to Insufficient summon skill points"

I would like to invoke my own summon when the script is activated, or, during a hunt, I want use the skill "sacrificial soul" when my summon has less 40% HP to unsummon, and after, summon again.

I put the script here.........by the way, as I allways I say, I am not a programmer, I only try to make my own script using commands from others scripts/plugings. So please be patience with me, I am a noob Smile

Thanks

i think too avoid those systemmassage u can use

    LUA Programming
function GetSummonCount()
 local pets = GetPetList();
 local count = 0;
 for pet in pets.list do
 if (pet:GetNickName() == me:GetName()) then
 count = count +1;
 end;
 end;
 return count;
end;

08-15-2015 22:17 PM
Find all posts by this user Quote this message in a reply
versutia4 Offline
Goblin Grave Robber
*

Posts: 12
Joined: Oct 2013
Reputation: 0
Version: 1.4.2.142
Post: #3
RE: Help to Summon Reanimated Man (Feoh Soultaker)

(08-15-2015 22:17 PM)schubbel2208 Wrote:  
(08-15-2015 21:47 PM)versutia4 Wrote:  Greetings friends

I will be annoying again in order to enlist their help to complete a script.

Is a feoh soultaker's skill called "summon reanimated man", and I want to use when is not invoked, or, when the feoh use another skill called "sacrificial soul", which I want to use when the summon has HP below 40%

The point is that I created the script, but remains in a kind of constant loop, and the system sends me a message saying: "You can not use summon man reanimated due to Insufficient summon skill points"

I would like to invoke my own summon when the script is activated, or, during a hunt, I want use the skill "sacrificial soul" when my summon has less 40% HP to unsummon, and after, summon again.

I put the script here.........by the way, as I allways I say, I am not a programmer, I only try to make my own script using commands from others scripts/plugings. So please be patience with me, I am a noob Smile

Thanks

i think too avoid those systemmassage u can use

    LUA Programming
function GetSummonCount()
 local pets = GetPetList();
 local count = 0;
 for pet in pets.list do
 if (pet:GetNickName() == me:GetName()) then
 count = count +1;
 end;
 end;
 return count;
end;


Hi schubbel2208

I try to use your script but I still got that system message......

Where do I put that lines?.....I mean, where in the script that I made

Thanks a lot
08-16-2015 00:26 AM
Find all posts by this user Quote this message in a reply
schubbel2208 Offline
Expired VIP Member
**

Posts: 154
Joined: Jun 2012
Reputation: 35
Version: 1.4.3.143
Post: #4
RE: Help to Summon Reanimated Man (Feoh Soultaker)

    LUA Programming
SummonReanimatedManId = 1129
SacrificialSoulID = 11152
minHealthPercent = 40
 
function GetSummonCount()
 local pets = GetPetList();
 local count = 0;
 for pet in pets.list do
 if (pet:GetNickName() == me:GetName()) then
 count = count +1;
 end;
 end;
 return count;
end;
 
 
repeat
	me = GetMe();
	if (me ~= nil) and not (me:IsAlikeDeath()) then
 if (SummonReanimatedManId ~= nil) then
 if (GetSummonCount() < 1) then
 UseSkillRaw(SummonReanimatedManId,false,false); 
 Sleep(1000);
 end;
 end;
 end;
 
 
if (SacrificialSoul ~= nil) then
 summon = SummonReanimatedManId()
 if (summon:GetHpPercent() < minHealthPercent) and not summon:IsAlikeDeath() then
 UseSkillRaw(SacrificialSoulId,false,false);
 end;
 end;
 
until false

08-16-2015 02:39 AM
Find all posts by this user Quote this message in a reply
versutia4 Offline
Goblin Grave Robber
*

Posts: 12
Joined: Oct 2013
Reputation: 0
Version: 1.4.2.142
Post: #5
RE: Help to Summon Reanimated Man (Feoh Soultaker)

Hi man

Thanks for your reply. I used, but I got this:

1.- Skill works fine, but I still got a system message, specially when I start run, I don't know why, but every some seconds, I get a message "You can not use summon man reanimated due to Insufficient summon skill points"...maybe, I don't care about that, but the point is, when I run and get this message, my char stops his run and I need to do it again.

2.- Skill Sacrificial Soul doesn't work........my char wait until his summon is death, and after, summon again.

By the way, is a great help, and hopefully you can help me with this
08-16-2015 05:03 AM
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: #6
RE: Help to Summon Reanimated Man (Feoh Soultaker)

if 1 pet it can do easy way...

    LUA Programming
repeat
me = GetMe();
MySkills = GetSkills();
pet = GetPet();
	if (me:GetClass() == 167) then
		if pet == nil then
			UseSkillRaw(1129,false,false); 
			Sleep(1000);
		end;
	end;
Sleep(10*1000);
until false;


PUSH [Image: knUu53] IF HELPED
08-16-2015 09:21 AM
Visit this user's website Find all posts by this user Quote this message in a reply
 Reputed by : versutia4(+1)
versutia4 Offline
Goblin Grave Robber
*

Posts: 12
Joined: Oct 2013
Reputation: 0
Version: 1.4.2.142
Post: #7
RE: Help to Summon Reanimated Man (Feoh Soultaker)

Hi TheQQmaster

THank you very much, now this script runs fine talking about summon pet and I donn't get a system message error (finally stop Smile )

Now I will try to use the other skill, "sacrificial soul".....If I can't do, I'll run here again to get help Smile

Thanks again, regards.
08-16-2015 15:00 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: #8
RE: Help to Summon Reanimated Man (Feoh Soultaker)

this should work:

    LUA Programming
-- config
SummonReanimatedManId = 1129;
SacrificialSoulID = 11152;
minHealthPercent = 40;
 
function SkillUse(skillID)	-- skill use checker
	local Skill = GetSkills():FindById(skillID);
	if (Skill ~= nil) and (Skill:CanBeUsed()) then		
		UseSkillRaw(skillID, false, false);
		Sleep(1000);
	end;	
end;
 
 
repeat
-- define variables
	me = GetMe();
	pet = GetPet();
	if (me:GetClass() == 167) and not (me:IsAlikeDeath()) then -- me soultaker and not dead
		if (pet == nil) then -- if i dont have oet
			SkillUse(SummonReanimatedManId);  -- summoning it
		elseif ((pet:GetHpPercent() < minHealthPercent) and (pet ~= nil)) and not (pet:IsAlikeDeath()) then -- if i got pet and not like dead and hp conditions, using skill
			SkillUse(SacrificialSoulId);
		end;
	end;
Sleep(1000);
until false;


PUSH [Image: knUu53] IF HELPED
08-16-2015 15:34 PM
Visit this user's website Find all posts by this user Quote this message in a reply
 Reputed by : versutia4(+1)
versutia4 Offline
Goblin Grave Robber
*

Posts: 12
Joined: Oct 2013
Reputation: 0
Version: 1.4.2.142
Post: #9
RE: Help to Summon Reanimated Man (Feoh Soultaker)

Hi man.....

Thanks for your answer......I try your new suggestion, and let me tell you what I get: My char summon, but didn't do the skill sacrificial soul when pet hp were less 40%


However, I gathered your suggestions in one script, and change some commands .......... I do not know if they are completely accurate, but at least you are running the action that I expected.

I share here, and if you have a minute please review it to see if at some point it will stop working Smile

Thanks again

    LUA Programming
-- config
SummonReanimatedManId = 1129;
SacrificialSoulID = 11152;
minHealthPercent = 40;
 
repeat
me = GetMe();
MySkills = GetSkills();
pet = GetPet();
	if (me:GetClass() == 167) then
 if pet == nil then
 UseSkillRaw(1129,false,false); 
 Sleep(1000);
 end;
	end;
Sleep(1*1000);
 
function SkillUse(SacrificialSoul)	-- skill use checker
	local Skill = GetSkills():FindById(SacrificialSoulID);
	if (Skill ~= nil) and (Skill:CanBeUsed()) then 
 UseSkillRaw(SacrificialSoulID, false, false);
 Sleep(1000);
	end;	
end;
 
-- define variables
	me = GetMe();
	pet = GetPet();
	if (me:GetClass() == 167) and not (me:IsAlikeDeath()) then -- me soultaker and not dead
 if (pet == nil) then -- if i dont have oet
 SkillUse(SummonReanimatedManId); -- summoning it
 elseif ((pet:GetHpPercent() < minHealthPercent) and (pet ~= nil)) and not (pet:IsAlikeDeath()) then -- if i got pet and not like dead and hp conditions, using skill
 SkillUse(SacrificialSoul);
 end;
	end;
Sleep(1000);
until false;

08-16-2015 16:57 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: #10
RE: Help to Summon Reanimated Man (Feoh Soultaker)

u messed up, this should work, idk

http://forum.l2tower.eu/thread-help-to-s...1#pid95331

PUSH [Image: knUu53] IF HELPED
08-16-2015 17:17 PM
Visit this user's website Find all posts by this user Quote this message in a reply
 Reputed by : versutia4(+1)
Post Reply 


Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  Feoh wiz. saraza 3 3,077 09-21-2015 09:12 AM
Last Post: Botter100
  Summon buff nolanriot193 0 2,572 07-22-2015 16:15 PM
Last Post: nolanriot193
Photo Feoh SS - Elemental Storm (water) Vympel777 4 3,393 05-31-2015 22:51 PM
Last Post: Habiby
Information Nuke Attack in Feoh Wizard godeus 2 3,659 04-14-2015 18:19 PM
Last Post: FML
  FEOH + HEALER LF DW PT FOR SP FARM tuxevil 1 2,836 02-18-2015 21:54 PM
Last Post: TheQQmaster
  select member of party to summon bistabil 6 4,500 12-10-2014 22:49 PM
Last Post: bistabil
  lf feoh script fikusas 1 2,681 10-27-2014 20:08 PM
Last Post: tophersoccer
Information Nuke atack in feoh wizard godeus 1 3,016 08-14-2014 20:52 PM
Last Post: towergreat
  Setting up for feoh mparkasv 12 11,093 05-25-2014 22:55 PM
Last Post: anderpr
  feoh assist wynn with normal hit sick4mind 1 2,246 03-12-2014 14:03 PM
Last Post: devil7



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