Lineage 2 Tower Forum

Full Version: Debuffs
You're currently viewing a stripped down version of our content. View the full version with proper formatting.

Dogz

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?
    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)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?
Reference URL's