Lineage 2 Tower Forum

Full Version: script or plugin for speak
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi all, I was looking for some script or plugin, to answer for all , when they want to know if you are on or you´re bot. I was searching in this forum but don´t find anything... anyone know how? regards
(04-02-2015 14:58 PM)lord_knox Wrote: [ -> ]Hi all, I was looking for some script or plugin, to answer for all , when they want to know if you are on or you´re bot. I was searching in this forum but don´t find anything... anyone know how? regards

AMIROOO made the following plugin lnog time ago... Look at it and modify it to your needs... All benefits to Amirooo...!

+2 rep me if it helped you...!

http://forum.l2tower.eu/thread-automatic-answer-on-pms
Hello , I was looking for that but not whisp , to answer in all channel (i dont know how to do it). Wink
(04-02-2015 21:10 PM)lord_knox Wrote: [ -> ]Hello , I was looking for that but not whisp , to answer in all channel (i dont know how to do it). Wink

Replace
PHP Code:
function OnChatUserMessage(chatTypenickmsg)
 
 if (
chatType == 2) and (ShouldAnswerPM == falsethen
 Message 
string.gsub(string.lower(msg)," ","");
 if (
string.lower(nick) ~= string.lower(GetMe():GetName())) and (AFKmode == truethen 
 
if (oldnick ~= nickthen
 oldnick 
nick;
 
ChatCounter 0;
 
end;
 
 
ChatCounter ChatCounter+1;
 if (
ChatCounter <= MaxAutoAnswersForSameGuythen
 ShouldAnswerPM 
true;
 
PlayerToAnswerName nick;
 
MessageCurrentTime os.time(); 
 if (
CheckIfInsideList(Message,HelloRList)) then
 AnswerList 
HelloSList;
 
DelayinAnswer SaluteDelay; -- Delay in seconds
 
elseif CheckIfInsideList(Message,MockListthen 
 AnswerList 
MockSList;
 
DelayinAnswer OthersDelay; -- Delay in seconds
 
elseif CheckIfInsideList(Message,List2Rthen 
 AnswerList 
List2S;
 
DelayinAnswer OthersDelay; -- Delay in seconds
 
elseif CheckIfInsideList(Message,List3Rthen 
 AnswerList 
List3S;
 
DelayinAnswer OthersDelay; -- Delay in seconds 
 
else
 
AnswerList OthersSList;
 
DelayinAnswer OthersDelay; -- Delay in seconds
 end
;
 
Answer AnswerList[math.ceil(math.random(1,HowManyPossibleAnswersInTheList()))];    -- Choose Random Answer from the list. 
 
end;
 else 
 if (
Message == GoAFKCommand) and (AFKmode == falsethen
 AFKmode 
true;    
 
ShowToClient("Auto Chat Script","Im on AFK mode now, Auto chat is now Activated.");
 elseif (
Message == ImBackCommand) and (AFKmode == truethen 
 AFKmode 
false;
 
ShowToClient("Auto Chat Script","You Are Back, Auto chat is now Deactivated.");
 
end;
 
end;
 
end
end
to
PHP Code:
function OnChatUserMessage(chatTypenickmsg)
 
 if (
chatType == 0) and (ShouldAnswerPM == false) and (GetUserByName(nick) ~= nil) and (GetMe():GetRangeTo(GetUserByName(nick)) < 1000then
 Message 
string.gsub(string.lower(msg)," ","");
 if (
string.lower(nick) ~= string.lower(GetMe():GetName())) and (AFKmode == truethen 
 
if (oldnick ~= nickthen
 oldnick 
nick;
 
ChatCounter 0;
 
end;
 
 
ChatCounter ChatCounter+1;
 if (
ChatCounter <= MaxAutoAnswersForSameGuythen
 ShouldAnswerPM 
true;
 
PlayerToAnswerName nick;
 
MessageCurrentTime os.time(); 
 if (
CheckIfInsideList(Message,HelloRList)) then
 AnswerList 
HelloSList;
 
DelayinAnswer SaluteDelay; -- Delay in seconds
 
elseif CheckIfInsideList(Message,MockListthen 
 AnswerList 
MockSList;
 
DelayinAnswer OthersDelay; -- Delay in seconds
 
elseif CheckIfInsideList(Message,List2Rthen 
 AnswerList 
List2S;
 
DelayinAnswer OthersDelay; -- Delay in seconds
 
elseif CheckIfInsideList(Message,List3Rthen 
 AnswerList 
List3S;
 
DelayinAnswer OthersDelay; -- Delay in seconds 
 
else
 
AnswerList OthersSList;
 
DelayinAnswer OthersDelay; -- Delay in seconds
 end
;
 
Answer AnswerList[math.ceil(math.random(1,HowManyPossibleAnswersInTheList()))];    -- Choose Random Answer from the list. 
 
end;
 else 
 if (
Message == GoAFKCommand) and (AFKmode == falsethen
 AFKmode 
true;    
 
ShowToClient("Auto Chat Script","Im on AFK mode now, Auto chat is now Activated.");
 elseif (
Message == ImBackCommand) and (AFKmode == truethen 
 AFKmode 
false;
 
ShowToClient("Auto Chat Script","You Are Back, Auto chat is now Deactivated.");
 
end;
 
end;
 
end
end

and

PHP Code:
function OnLTick1s()
 
    if (
GetMe():GetCpPercent()>30then
 AmISafe 
true;
    
end;
 
    if (
LastTalkBulshitTime 15 os.time()) and (BSAnswer 0then
 Command
(AnswerList[BSAnswer]);
 
BSAnswer ;
    
end;
 
    if (
AFKmode == truethen
 
if (ShouldAnswerPM == truethen 
 
if (MessageCurrentTime+DelayinAnswer os.time() ) then 
 ShouldAnswerPM 
false;
 
SendPM(PlayerToAnswerNameAnswer); 
 
end;
 
end
    
end
 
end
to
PHP Code:
function OnLTick1s()
 
    if (
GetMe():GetCpPercent()>30then
 AmISafe 
true;
    
end;
 
    if (
LastTalkBulshitTime 15 os.time()) and (BSAnswer 0then
 Command
(AnswerList[BSAnswer]);
 
BSAnswer ;
    
end;
 
    if (
AFKmode == truethen
 
if (ShouldAnswerPM == truethen 
 
if (MessageCurrentTime+DelayinAnswer os.time() ) then 
 ShouldAnswerPM 
false;
 
Command(Answer); 
 
end;
 
end
    
end
 
end
[/code]
Reference URL's