Dogz
Unregistered
|
Debuffs
Hi.
Im trying to set debuffs like Hex, Stigma, Violent Temper to activate only 1 time per target. When you set the Option " Use Once ", the skill just spamm everytime the reuse is done, like it was set to "Repeat". Some cases the skill doens´t work at all.
I´have tried to at Delay to the skills, but if you set anything besides "0", the skill wont work.
Any ideas here? Maybe Script?
|
|
08-17-2011 05:36 AM |
|
snacks
Expired VIP Member
![*](images/star.gif) ![*](images/star.gif)
Posts: 8
Joined: Aug 2011
Reputation: 1
Version:
1.4.2.137
|
RE: Debuffs
LUA Programming
ID = XXXXX -- DEBUFF
ID1 = XXXX -- NUKE SKILL
repeat
Sleep(500);
ShowToClient("Cookie", "New target");
enemy = GetTarget();
if(enemy ~= nil) then
UseSkill(ID, false, false); -- DEBUFF
name = enemy:GetId();
repeat
UseSkill(ID1, false, false); -- NUKE
until enemy:GetHp() <= 0;
end;
ShowToClient("Cookie", "Done");
Sleep(500);
until ID == nil;
ShowToClient("Cookie", "Something wrong");
i think that can work, just change the ids.
|
|
08-17-2011 06:38 AM |
|
blabla
Amber Basilisk
![*](images/star.gif)
Posts: 31
Joined: Jul 2011
Reputation: 0
Version:
1.4.1.88
|
RE: Debuffs
(08-17-2011 06:38 AM)snacks Wrote: LUA Programming
ID = XXXXX -- DEBUFF
ID1 = XXXX -- NUKE SKILL
repeat
Sleep(500);
ShowToClient("Cookie", "New target");
enemy = GetTarget();
if(enemy ~= nil) then
UseSkill(ID, false, false); -- DEBUFF
name = enemy:GetId();
repeat
UseSkill(ID1, false, false); -- NUKE
until enemy:GetHp() <= 0;
end;
ShowToClient("Cookie", "Done");
Sleep(500);
until ID == nil;
ShowToClient("Cookie", "Something wrong");
i think that can work, just change the ids.
change how? and where? and where to get skill ID?
|
|
09-11-2011 10:53 AM |
|