pradomonkey
Elpy
Posts: 3
Joined: May 2014
Reputation: 0
Version:
1.4.2.133
|
AIOX Script help
Good night, someone could help me?
I found a "plugin" buff schoolmaster, it works, but not buffa properly because not handle my target, how to solve?
Desculpe o inglês, google tradutor :/
Code:
buffs = {}
buffs_name = {}
target_party = {}
buffs_name['id264'] = 'Song of Earth';
buffs_name['id265'] = 'Song of Life';
buffs_name['id266'] = 'Song of Water';
buffs_name['id267'] = 'Song of Warding';
buffs_name['id268'] = 'Song of Wind';
buffs_name['id269'] = 'Song of Hunter';
buffs_name['id270'] = 'Song of Invocation';
buffs_name['id304'] = 'Song of Vitality';
buffs_name['id305'] = 'Song of Vengeance';
buffs_name['id306'] = 'Song of Flame Guard';
buffs_name['id308'] = 'Song of Storm Guard';
buffs_name['id349'] = 'Song of Renewal';
buffs_name['id363'] = 'Song of Meditation';
buffs_name['id364'] = 'Song of Champion';
buffs_name['id271'] = 'Dance of the Warrior';
buffs_name['id272'] = 'Dance of Inspiration';
buffs_name['id273'] = 'Dance of the Mystic';
buffs_name['id274'] = 'Dance of Fire';
buffs_name['id275'] = 'Dance of Fury';
buffs_name['id276'] = 'Dance of Concentration';
buffs_name['id277'] = 'Dance of Light';
buffs_name['id307'] = 'Dance of Aqua Guard';
buffs_name['id309'] = 'Dance of Earth Guard';
buffs_name['id310'] = 'Dance of the Vampire';
buffs_name['id311'] = 'Dance of Protection';
buffs_name['id365'] = 'Siren\'s Dance';
buffs_name['id366'] = 'Dance of Shadows';
buffs_name['id1032'] = 'Invigor';
buffs_name['id1035'] = 'Mental Shield';
buffs_name['id1036'] = 'Magic Barrier';
buffs_name['id1040'] = 'Shield';
buffs_name['id1043'] = 'Holy Weapon';
buffs_name['id1044'] = 'Regeneration';
buffs_name['id1045'] = 'Blessed Body';
buffs_name['id1048'] = 'Blessed Soul';
buffs_name['id1062'] = 'Berserker Spirit';
buffs_name['id1068'] = 'Might';
buffs_name['id1073'] = 'Kiss of Eva';
buffs_name['id1077'] = 'Focus';
buffs_name['id1078'] = 'Concentration';
buffs_name['id1085'] = 'Acumen';
buffs_name['id1086'] = 'Haste';
buffs_name['id1204'] = 'Wind Walk';
buffs_name['id1240'] = 'Guidance';
buffs_name['id1242'] = 'Death Whisper';
buffs_name['id1243'] = 'Bless Shield';
buffs_name['id1352'] = 'Elemental Protection';
buffs_name['id1356'] = 'Prophecy of Fire';
buffs_name['id1388'] = 'Greater might';
buffs_name['id1389'] = 'Greater shield';
buffs_name['id1393'] = 'Unholy Resistance';
buffs_name['id1392'] = 'Holy resistance';
buffs_name['id1002'] = 'Chant of Flame';
buffs_name['id1006'] = 'Chant of Fire';
buffs_name['id1007'] = 'Chant of Battle';
buffs_name['id1251'] = 'Chant of Fury';
buffs_name['id1252'] = 'Chant of Evasion';
buffs_name['id1253'] = 'Chant of Rage';
buffs_name['id1308'] = 'Chant of Predator';
buffs_name['id1309'] = 'Chant of Eagle';
buffs_name['id1310'] = 'Chant of Vampire';
buffs_name['id1362'] = 'Chant of Spirit';
buffs_name['id1363'] = 'Chant of Victory';
buffs_name['id1391'] = 'Earth chant';
buffs_name['id1059'] = 'Greater Empower';
buffs_name['id1268'] = 'Vampiric Rage';
buffs_name['id1303'] = 'Wild Magic';
buffs_name['id1354'] = 'Arcane Protection';
buffs_name['id1357'] = 'Prophecy of Wind';
buffs_name['id1087'] = 'Agility';
buffs_name['id1259'] = 'Resist Shock';
buffs_name['id1303'] = 'Wild Magic';
buffs_name['id1304'] = 'Advanced Block';
buffs_name['id1353'] = 'Divine Protection';
buffs_name['id1355'] = 'Prophecy of Water';
buffs_name['id4699'] = 'Blessing of Queen';
buffs_name['id4703'] = 'Gift of Seraphim';
buffs_name['id1323'] = 'Noblesse Blessing';
buffs_name['id1311'] = 'Body of Avatar';
buffs_name['id1390'] = 'War Chant';
buffs_name['id1191'] = 'Resist Fire';
buffs_name['id1182'] = 'Resist Aqua';
buffs_name['id1189'] = 'Resist Wind';
buffs_name['id1413'] = 'Magnus\' Chant';
buffs_name['id1416'] = 'Pa\'agrio\'s fist';
buffs_name['id4552'] = 'Hot Springs Cholera';
buffs_name['id4553'] = 'Hot Springs Rheumatism';
buffs_name['id4554'] = 'Hot Spring Malaria';
buffs_name['id4555'] = 'Hot Springs Flu';
function Execute ()
for key, value in pairs(buffs) do
if ( buffs_name['id' .. value] ~= nil ) then
Command('/useskill ' .. buffs_name['id' .. value]);
end;
Sleep(2000);
end
end;
function OnChatUserMessage(chatType, nick, msg)
if ( chatType == 3 ) then
for buff_id in string.gmatch(msg, "(%w+)") do
if ( buffs_name['id' .. buff_id] ~= nil ) then
table.insert(buffs, buff_id);
end;
end;
Execute();
buffs = {}
end;
end;
|
|
02-12-2015 03:12 AM |
|