02-13-2013, 03:54 AM
I try to write one script for Target and hit only PK's Char , finaly i have this script
In line 12 equip one BOW for hit PK , and in line 17 equip one sword ( when pk is death ) for continue to farm .
Only One problem , in GC don't work this script because my char ( she is in second floor) target char in first and 3 floor..
Any good solution ?
LUA Programming
ReputationPoint=0;
RangeLimit=800;
repeat
Sleep(10000);
me=GetMe();
local playerlist = GetPlayerList();
for player in playerlist.list do
if (player:GetReputation()<ReputationPoint)and(GetMe():GetRangeTo(me)<RangeLimit) then
Target(player);
Command("/useshortcut 2 3");
Command("/attack");
Sleep(10000);
end;
if (player:IsAlikeDeath())then
Command("/useshortcut 2 2");
end;end;
until false;
In line 12 equip one BOW for hit PK , and in line 17 equip one sword ( when pk is death ) for continue to farm .
Only One problem , in GC don't work this script because my char ( she is in second floor) target char in first and 3 floor..
Any good solution ?