02-18-2013, 11:56 AM
02-18-2013, 12:20 PM
(02-18-2013 11:00 AM)nadmaster101 Wrote: [ -> ]okay well the plugin doesn't work at all, my client crash imediatly when i type /killpkmaybe you copied it wrong
works like a charm for me
(02-18-2013 10:35 AM)TheBl4ckPhoenix Wrote: [ -> ]Nice1, but i disagree about Range Distance... It should be less then 1000 i think..
i think 1600 its ok cus yuls have 1100 range with skills and can have 1200 with sniper stance ... then 1000 range sucks xD, and my plugin just kill pk when they target me or target someone of my pt, don't kill anyone going passing
02-18-2013, 15:50 PM
I was talking about GC... More then 600 isn't good
02-18-2013, 16:04 PM
Actally in GC more than 600 is good if my pets go after him, some pkers stand in the hallways and send in cougars/reapers after me so i have to target them in the hall.
I will try the plugin again but i don't know how i could copy it wrong. Select all, copy, paste. Easy peasy.
Okay so what I did was copied the plugin correctly but after i pasted it in notepad I changed the Spanish? (Guessing language) and accidentally deleted something I wasn't supposed to. Checking to see if it works now.
I will try the plugin again but i don't know how i could copy it wrong. Select all, copy, paste. Easy peasy.
Okay so what I did was copied the plugin correctly but after i pasted it in notepad I changed the Spanish? (Guessing language) and accidentally deleted something I wasn't supposed to. Checking to see if it works now.
02-23-2013, 04:41 AM
LUA Programming
KillPKStatus = false;
function OnCreate()
this:RegisterCommand("killpk",
CommandChatType.CHAT_ALLY, CommandAccessLevel.ACCESS_ME);
end;
function OnCommand_killpk(vCommandChatType, vNick,
vCommandParam)
if (KillPKStatus == false) then
KillPKStatus = true;
ShowToClient("Kill PK","Matar Cualquier PK Cerca Activado.");
else
KillPKStatus = false;
ShowToClient("Kill PK","Matar Cualquier PK Cerca Desactivado.");
end;
end;
--------------------
function WhatClassAmI()
if(GetMe() ~= nil)then
if(GetMe():GetClass() == 145) then
return 22;
end;
end;
return 2;
end;
--------------------
function OnLTick1s()
if (KillPKStatus == true) then
local playerlist = GetPlayerList();
local playerid = nil;
for player in playerlist.list do
if (player:IsMyPartyMember() == false) and (player:IsEnemy()) and (player:GetReputation() < 0) and (player:GetDistance() < 1600) and (player:IsFriend() == false) then
playertarget = GetUserById(player:GetTarget());
if (playertarget ~= nil) then
if (playertarget:IsMyPartyMember()) or (playertarget:IsMe()) then
playerid = player:GetId();
end;
end;
end;
end;
if (playerid ~= nil) then
ClearTargets();
TargetRaw(playerid);
Action(2,false,true);
if (GetMe():GetClass() == 145) then
Action(WhatClassAmI(), false, true);
end;
end;
end;
end;
this plugin work ?
02-23-2013, 07:00 AM
edit was not necesary, the plugin was working good... i use it every day
02-23-2013, 14:25 PM
(02-23-2013 07:00 AM)Mobius Wrote: [ -> ]edit was not necesary, the plugin was working good... i use it every day
I do , i have test your plugin and she have one good work , but i think to start this plugin on my wynn and attack pk's char only with summon , just for don't go out of spawn
02-23-2013, 14:37 PM
for that already had
you just added a lot of trash code to do the same function
you just added a lot of trash code to do the same function
03-04-2013, 07:36 AM
(02-18-2013 10:15 AM)Mobius Wrote: [ -> ]LUA Programming
KillPKStatus = false; function OnCreate() this:RegisterCommand("killpk", CommandChatType.CHAT_ALLY, CommandAccessLevel.ACCESS_ME); end; function OnCommand_killpk(vCommandChatType, vNick, vCommandParam) if (KillPKStatus == false) then KillPKStatus = true; ShowToClient("Kill PK","Matar Cualquier PK Cerca Activado."); else KillPKStatus = false; ShowToClient("Kill PK","Matar Cualquier PK Cerca Desactivado."); end; end; function OnLTick1s() if (KillPKStatus == true) then local playerlist = GetPlayerList(); local playerid = nil; for player in playerlist.list do if (player:IsMyPartyMember() == false) and (player:IsEnemy()) and (player:GetReputation() < 0) and (player:GetDistance() < 1600) and (player:IsFriend() == false) then playertarget = GetUserById(player:GetTarget()); if (playertarget ~= nil) then if (playertarget:IsMyPartyMember()) or (playertarget:IsMe()) then playerid = player:GetId(); end; end; end; end; if (playerid ~= nil) then ClearTargets(); TargetRaw(playerid); Action(2,false,true); if (GetMe():GetClass() == 145) then Action(22,false,true); end; end; end; end;
ok this script killing pk wery vel, + fot that creater , but need add some fuction, too check after pk char is dead, he hit the ground, and stay there my bots all time target him and dont target any of mobs, need to make fuction or somthing that to check it death
function blabla
if my target pk is dead then
clertargets
end;
plizzz plizzz help, other will be usefull too