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
How do my necr resummon skeleton when dead?
Author Message
kagekonen Offline
Expired VIP Member
**

Posts: 3
Joined: Sep 2014
Reputation: 0
Version: 1.4.2.131
Post: #1
How do my necr resummon skeleton when dead?

I can't figure out how to get the skeleton re summoned when its dead.
Can anyone help?
the summon ID is 1129 Summon Reanimated Man.

I imagine its just a short scripts in a few lines but im not so good in the programming.
10-20-2014 12:56 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: #2
RE: How do my necr resummon skeleton when dead?

    LUA Programming
SummonSkelet = idofsummoningskill; -- get summoning skill id, not pet, but skill
 
function GetSummonCount()
local petlistaround = GetPetList();
local count = 0;
 
	for Apet in petlistaround.list do
 if (Apet:GetNickName() == me:GetName()) then
 count = count +1;
 end;
	end;
	return count;
end;
 
 
 
repeat
 
if (GetSummonCount() < 1) then
 UseSkillRaw(SummonSkelet,false,false); 
 
 end;
 
 
 Sleep(1000);
 
until false


mby smth like this

btw u can do it by own hands, just editing wynn script Wink

.recstart skelet
summon pet
.recstop
open scripts folder
there will be skelet.lua,open and u will got skill id

PUSH [Image: knUu53] IF HELPED
(This post was last modified: 10-20-2014 14:24 PM by TheQQmaster.)
10-20-2014 14:16 PM
Visit this user's website Find all posts by this user Quote this message in a reply
tuxevil Offline
VIP Member
***

Posts: 161
Joined: Mar 2012
Reputation: 24
Version: 1.4.3.143
Post: #3
RE: How do my necr resummon skeleton when dead?

This lines will erase your summon when less than 50% hp and resummon it

for script
    LUA Programming
repeat
	pet = GetPet();
	if pet == nil then
		UseSkillRaw(1129,false,false);
	elseif (pet:GetHpPercent() <= 50) and not pet:IsAlikeDeath() then
		UseSkillRaw(11152,false,false);
	end;
until false;



for plugin
    LUA Programming
function OnLTick500ms()
	pet = GetPet();
	if pet == nil then
		UseSkillRaw(1129,false,false);
	elseif (pet:GetHpPercent() <= 50) and not pet:IsAlikeDeath() then
		UseSkillRaw(11152,false,false);
	end;
end;

(This post was last modified: 10-20-2014 17:22 PM by tuxevil.)
10-20-2014 17:21 PM
Find all posts by this user Quote this message in a reply
kagekonen Offline
Expired VIP Member
**

Posts: 3
Joined: Sep 2014
Reputation: 0
Version: 1.4.2.131
Post: #4
RE: How do my necr resummon skeleton when dead?

(10-20-2014 14:16 PM)TheQQmaster Wrote:  
    LUA Programming
SummonSkelet = idofsummoningskill; -- get summoning skill id, not pet, but skill
 
function GetSummonCount()
local petlistaround = GetPetList();
local count = 0;
 
	for Apet in petlistaround.list do
 if (Apet:GetNickName() == me:GetName()) then
 count = count +1;
 end;
	end;
	return count;
end;
 
 
 
repeat
 
if (GetSummonCount() < 1) then
 UseSkillRaw(SummonSkelet,false,false); 
 
 end;
 
 
 Sleep(1000);
 
until false


mby smth like this

btw u can do it by own hands, just editing wynn script Wink

.recstart skelet
summon pet
.recstop
open scripts folder
there will be skelet.lua,open and u will got skill id

cant get it to work, now my char is just standing trying to summon even if the pet is out, and dont attack anymore.

(10-20-2014 17:21 PM)Tuxevil Wrote:  This lines will erase your summon when less than 50% hp and resummon it

for script
    LUA Programming
repeat
	pet = GetPet();
	if pet == nil then
 UseSkillRaw(1129,false,false);
	elseif (pet:GetHpPercent() <= 50) and not pet:IsAlikeDeath() then
 UseSkillRaw(11152,false,false);
	end;
until false;



for plugin
    LUA Programming
function OnLTick500ms()
	pet = GetPet();
	if pet == nil then
 UseSkillRaw(1129,false,false);
	elseif (pet:GetHpPercent() <= 50) and not pet:IsAlikeDeath() then
 UseSkillRaw(11152,false,false);
	end;
end;


As soon i turn on this script, my client crash.
(This post was last modified: 10-20-2014 20:35 PM by kagekonen.)
10-20-2014 20:34 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: #5
RE: How do my necr resummon skeleton when dead?

my works now too, tested

    LUA Programming
SummonSkelet = 1129; -- Summon Reanimated Man
 
function GetSummonCount()
local petlistaround = GetPetList();
local count = 0;
 
	for Apet in petlistaround.list do
 if (Apet:GetNickName() == GetMe():GetName()) then
 count = count +1;
 end;
	end;
	return count;
end;
 
 
 
repeat
 
if (GetSummonCount() < 1) then
 UseSkillRaw(SummonSkelet,false,false); 
 
 end;
 
 
 Sleep(1000);
 
until false



2nd guy script neeed sleep or it will crash

    LUA Programming
elseif (pet:GetHpPercent() <= 50) and not pet:IsAlikeDeath() then



if skill cd pet will be nil and in this line it will crash, coz no nil check of pet...

PUSH [Image: knUu53] IF HELPED
(This post was last modified: 10-20-2014 21:08 PM by TheQQmaster.)
10-20-2014 20:51 PM
Visit this user's website Find all posts by this user Quote this message in a reply
kagekonen Offline
Expired VIP Member
**

Posts: 3
Joined: Sep 2014
Reputation: 0
Version: 1.4.2.131
Post: #6
RE: How do my necr resummon skeleton when dead?

(10-20-2014 20:51 PM)TheQQmaster Wrote:  my works now too, tested

    LUA Programming
SummonSkelet = 1129; -- Summon Reanimated Man
 
function GetSummonCount()
local petlistaround = GetPetList();
local count = 0;
 
	for Apet in petlistaround.list do
 if (Apet:GetNickName() == GetMe():GetName()) then
 count = count +1;
 end;
	end;
	return count;
end;
 
 
 
repeat
 
if (GetSummonCount() < 1) then
 UseSkillRaw(SummonSkelet,false,false); 
 
 end;
 
 
 Sleep(1000);
 
until false



2nd guy script neeed sleep or it will crash

    LUA Programming
elseif (pet:GetHpPercent() <= 50) and not pet:IsAlikeDeath() then



if skill cd pet will be nil and in this line it will crash, coz no nil check of pet...

How? Please show me, I cant see what you mean.
10-21-2014 01:00 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: #7
RE: How do my necr resummon skeleton when dead?

@kagekonen
    LUA Programming
elseif (pet ~= nil) and (pet:GetHpPercent() <= 50) and not pet:IsAlikeDeath() then
-- if pet not nil,he exists and pet get hp <=50% and not pet dead
-- and ofc u can add skill check and that owner of pet not dead to not spam skill : D
-- gl


PUSH [Image: knUu53] IF HELPED
(This post was last modified: 10-21-2014 02:11 AM by TheQQmaster.)
10-21-2014 02:09 AM
Visit this user's website Find all posts by this user Quote this message in a reply
Post Reply 


Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  Is lineage 2 RMT dead? kazurengan 0 2,391 08-06-2017 05:25 AM
Last Post: kazurengan
  Adena business is dead vito54 15 10,360 11-17-2014 01:58 AM
Last Post: Manboi_74
F.A.Q. Healer detaction if members dead and rez them ??? snake000 2 3,471 02-27-2014 07:46 AM
Last Post: snake000
Rainbow LF Simple Script-DC when dead teoftw7 1 2,099 01-25-2014 12:50 PM
Last Post: thawk
  cancel the target dead italope 1 2,709 02-02-2013 09:43 AM
Last Post: Fox
  Sitting/resting before target is dead. Bawths 7 5,806 12-29-2011 01:28 AM
Last Post: amiroooo



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