kagekonen
Expired VIP Member
Posts: 3
Joined: Sep 2014
Reputation: 0
Version:
1.4.2.131
|
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 |
|
TheQQmaster
Trolling the Trolls
Posts: 1,532
Joined: Jun 2012
Reputation: 642
Version:
1.4.2.133
|
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
.recstart skelet
summon pet
.recstop
open scripts folder
there will be skelet.lua,open and u will got skill id
PUSH IF HELPED
(This post was last modified: 10-20-2014 14:24 PM by TheQQmaster.)
|
|
10-20-2014 14:16 PM |
|
tuxevil
VIP Member
Posts: 161
Joined: Mar 2012
Reputation: 24
Version:
1.4.3.143
|
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 |
|
kagekonen
Expired VIP Member
Posts: 3
Joined: Sep 2014
Reputation: 0
Version:
1.4.2.131
|
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
.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 |
|
kagekonen
Expired VIP Member
Posts: 3
Joined: Sep 2014
Reputation: 0
Version:
1.4.2.131
|
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 |
|