08-22-2013, 16:11 PM
I decided to writing a guide to show how modify the script proposed by "ChochkoBG", AUTO BUFF + FARM
So, with this guide you can creat your own auto buff + farm !
You don't need more knowledge but you need one plugin and one script !
As matter of fact, it will alow yourself to leech HTML in specific NPC.
You can DL this plugin proposed by "Hebdzik" here -> Plugin to get HTML window code in to file,
and the script, "Tuto.LUA" at the attachment of this page.
When you have this plugin you can go to second etape !
First, we need to know all NPC ID that you want to be use with your bot.
To do that, we must go in front of their, target it and writting
Code:
/info
For my exemple, I need to know Teleport Device of Dark Elven Village, Bella (Gludio' GK), Proclaimer and Avdenturer Guildman.
Then a new windows appear with NPC ID,
Then, when you have get all NPC ID you must get several HTML code.
In my exemple, I get Teleport Device' HTML to teleport my self to Gludio.
To do that you must double-click on the NPC.
When the windows appear you must writting
Code:
/html
When you enter this command we must have this message,
So, now you must go to your L2TOWER' directory and open "html.txt"
For my exemple I obtain that,
So, if I want that my bot click on teleport' link I have to looking for Teleport' Code.
But you see that the organisation is muddled.
As matter of fact, the text is in the same line. So if you want to obtain a better organisation you must go has the line after all "
" or "
So in my exemple you obtain this,
And, the code that allow your bot to click on "Teleport" is,
Code:
teleport_request
Then, you must to get Gludio Teleportation' HTML code.
It's the same thing.
Target NPC, click on teleport and write
Code:
/html
In the game, I see that the Gludio Teleportation is in first position.
So I have to looking for in the first line code.
Code:
teleport_4723719984_0_57_1209025364_1
Thus, now that you have NPC ID and HTML CODE you can edit "Tuto.LUA"
Code:
TargetNpc("[b]Teleport Device[/b]", [b]30134[/b]);
Talk();
ShowToClient("System","Teleportation: Gludio...");
Click("[b]teleport_request[/b]", "Teleport");
Click("[b]teleport_4723719984_0_57_1209025364_1[/b]", "811;F;1010005");
Sleep(5000);
I hope that I was explicit