L2Tower Discord Let's keep the community alive with discord. Discussions about plugins and scripts L2Tower Discord

Post Reply 
 
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
need some help
Author Message
Dragonik Offline
Goblin Grave Robber
*

Posts: 13
Joined: Dec 2011
Reputation: -1
Version: 1.4.3.143
Post: #1
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
Find all posts by this user Quote this message in a reply
TheQQmaster Offline
Trolling the Trolls
*****

Posts: 1,532
Joined: Jun 2012
Reputation: 642
Version: 1.4.2.133
Post: #2
RE: need some help

y u can make plugin for controling chars

but making plugin is another story

PUSH [Image: knUu53] IF HELPED
02-21-2014 13:10 PM
Visit this user's website Find all posts by this user Quote this message in a reply
Dragonik Offline
Goblin Grave Robber
*

Posts: 13
Joined: Dec 2011
Reputation: -1
Version: 1.4.3.143
Post: #3
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
Find all posts by this user Quote this message in a reply
TheQQmaster Offline
Trolling the Trolls
*****

Posts: 1,532
Joined: Jun 2012
Reputation: 642
Version: 1.4.2.133
Post: #4
RE: need some help

(02-21-2014 17:43 PM)Dragonik Wrote:  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;

need premium to do it Smile

PUSH [Image: knUu53] IF HELPED
02-21-2014 20:53 PM
Visit this user's website Find all posts by this user Quote this message in a reply
Dragonik Offline
Goblin Grave Robber
*

Posts: 13
Joined: Dec 2011
Reputation: -1
Version: 1.4.3.143
Post: #5
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
Find all posts by this user Quote this message in a reply
TheQQmaster Offline
Trolling the Trolls
*****

Posts: 1,532
Joined: Jun 2012
Reputation: 642
Version: 1.4.2.133
Post: #6
RE: need some help

(02-21-2014 21:48 PM)Dragonik Wrote:  yes i know but i still can write this and a friend use it XD i will get premium soon

http://forum.l2tower.eu/thread-free-asui...t=pvpsuite

PUSH [Image: knUu53] IF HELPED
02-21-2014 22:24 PM
Visit this user's website Find all posts by this user Quote this message in a reply
Dragonik Offline
Goblin Grave Robber
*

Posts: 13
Joined: Dec 2011
Reputation: -1
Version: 1.4.3.143
Post: #7
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
Find all posts by this user Quote this message in a reply
TheQQmaster Offline
Trolling the Trolls
*****

Posts: 1,532
Joined: Jun 2012
Reputation: 642
Version: 1.4.2.133
Post: #8
RE: need some help

(02-21-2014 23:12 PM)Dragonik Wrote:  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^^

gl

PUSH [Image: knUu53] IF HELPED
02-22-2014 00:01 AM
Visit this user's website Find all posts by this user Quote this message in a reply
grimmm86 Offline
Expired VIP Member
**

Posts: 6
Joined: Aug 2013
Reputation: 2
Version: 1.4.3.143
Post: #9
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
Find all posts by this user Quote this message in a reply
Post Reply 




User(s) browsing this thread: 1 Guest(s)