Dragonik
Goblin Grave Robber
Posts: 13
Joined: Dec 2011
Reputation: -1
Version:
1.4.3.143
|
need some help
Hi
first of all dont blame me for asking this questiun i have searcehd and didnt found anything about it
what i want to know it, what is the diffrence between plugins and sripts cuz i want to make something something liek this:
I have a Full PT logged but i dont want to go to every client starting everything for example doing tezza and logging 21 chars this is just retarded when i have to setup everythign on every client XD
So i want to make something like this which detects the class and useing the skils of this class
controlling bots with ingame chat liek follow and assist
so how should i start this?
should i make a script or plugin for every class and than the script get enabled depends on the class whcih is detected or just 1 file which has everything iside.
ps: iam a noob in this things and want to learn about this so i would appreaciate it that u dont write here if u dont have anything else to say than use search or flame
|
|
02-21-2014 11:52 AM |
|
Dragonik
Goblin Grave Robber
Posts: 13
Joined: Dec 2011
Reputation: -1
Version:
1.4.3.143
|
RE: need some help
well i got now whats the diffrence between scripts/plugins also found out something else i was looking for.
but i just cant fucking figure out how i can make Auto follow by Chat command
unti now i just found out how to make ppl follow pt leader
but i want it by command
for example commandchannel i write follow and everyone starts to follow me
i was thinking about if i write follow in command channel that the script will set on all Clients to follow the char in the GUI.
is this possible ?
could it maybe be like this ?
LUA Programming
function OnChatUserMessage(chatType, nick, msg)
if (chatType.CHAT_COMMANDER) and (msg == "follow") then
Command("/target "..nick)
Command("addFollow")
end;
end;
(This post was last modified: 02-21-2014 18:47 PM by Dragonik.)
|
|
02-21-2014 17:43 PM |
|
Dragonik
Goblin Grave Robber
Posts: 13
Joined: Dec 2011
Reputation: -1
Version:
1.4.3.143
|
RE: need some help
yes i know but i still can write this and a friend use it XD i will get premium soon
(This post was last modified: 02-21-2014 21:49 PM by Dragonik.)
|
|
02-21-2014 21:48 PM |
|
Dragonik
Goblin Grave Robber
Posts: 13
Joined: Dec 2011
Reputation: -1
Version:
1.4.3.143
|
RE: need some help
i know about this plugin but i dont want to use it
my plan is still to make 1 script which includes everything
detecting class
follow by chat command
assist by chat command
u know iam lazy and just writing a command in chat and every client start to do it is better in my opinion^^
|
|
02-21-2014 23:12 PM |
|
grimmm86
Expired VIP Member
Posts: 6
Joined: Aug 2013
Reputation: 2
Version:
1.4.3.143
|
RE: need some help
Code:
function OnCreate()
PplList = {"xxx","xxx","xxx","xxx","xxx","xxx","xxx"}; --DEFINE NAMES TO AUTO-ORDERS
MessageToExit = "exitall"; -- Note: lowercase letters
MessageToStart = "start"; -- Note: lowercase letters
MessageToStop = "stop"; -- Note: lowercase letters
MessageToLogOut = "logout"; -- Note: lowercase letters
MessageToFollowMe = "seguirme"; -- Note: lowercase letters
CommandToAutoLeaveAll = "salir"; -- Note: lowercase letters
CommandToAutoLeave = "sal"; -- Note: lowercase letters
FollowStatus = false;
end;
function OnChatUserMessage(chatType, nick, msg)
Message = string.gsub(string.lower(msg)," ","");
-- one message, exit game
if (Message == MessageToExit) then
if (Search(nick)) then
os.execute("taskkill /PID " .. tostring(GetCurrentProcessId()));
end;
end;
if (Message == MessageToLogOut) then
if (Search(nick)) then
LogOut();
end;
end;
if (Message == MessageToStart) then
if (Search(nick)) then
SetPause(false);
end;
end;
-- stop functions
if (Message == MessageToStop) then
if (Search(nick)) then
SetPause(true);
end;
end;
if (chatType.CHAT_COMMANDER) and (Message == MessageToFollowMe) then
if (Search(nick)) then
if (FollowStatus == false) then
FollowStatus = true;
Command("/target "..nick)
Command("addFollow")
ShowToClient("Follow target has been aprobed");
else
FollowStatus = false;
ShowToClient("Follow target has been removed");
Command("unFollow")
end;
end;
end;
if (chatType == 2) and (Message == CommandToAutoLeave) then
if (Search(nick)) then
Command("/leave");
end;
end;
if (chatType.CHAT_COMMANDER) and (Message == CommandToAutoLeaveAll) then
if (Search(nick)) then
Command("/leave");
end;
end;
end;
function Search(a)
for x,b in pairs(PplList) do
if (a == b) then
return true;
end;
end;
end;
|
|
02-28-2014 13:01 PM |
|