BeBot - An Anarchy Online and Age Of Conan chat automaton
Archive => Anarchy Online Archive => 0.4.x Custom/Unofficial Modules => Topic started by: Diablo on August 22, 2007, 10:16:13 am
-
Would anyone have a updated guides module for .4.1 bebot. I have old version but seems once you change access lvl it no longer shows txt files. Thanks
-
I had just thought about doing this last night, so since someone else wanted it, I did it today ;)
I changed the way it works a bit though:
1) Now, if you want to modify the main menu, you don't have to modify the .PHP file or restart the bot. The main menu is stored in the guides folder in a file called guide.lst.
2) All guides are now stored in a folder under the main BeBot folder called guides. (for example: C:\BeBot\guides)
3) Guides are called up by the filename, not a number. So, !guide blah would read in blah.txt from the guides folder and show it to the user. For security, only a-z and 0-9 are allowed in the filename (preventing people from directory hopping to grab other text files on your system).
4) The !guide view <blah> command is shortened to !guide <blah>.
As always, let me know if there are problems.
22-Aug-2007: Fixed security problem noted by guild-mates.
-
Thanks a bunch. One question is the guides.lst made by the php file or where does it come from ?
-
You can create it however you like (you can add your own links, etc to it). If you want just the default that was in there from before, copy and paste the menu lines from the old .php file that you have into that file and remove the $content .= " and "; portions of the lines. (If you want, you can PM me the old guides.php file you are using here, and I can send you back the guides.lst file that you will need)
-
Ok got the .lst file made and it works but when click on the links it says guide not found. The txt files i have are named guideagility.txt If i do guide guideagility it brings it up ok just wont find file if using the link in guides.
-
I found a bug in my code as well... line 37 sets default security, but since I forgot to modify the code that I copied, it sets default security for the online command ;)
If you want to modify it yourself, change the 3 lines to the following:
$this -> bot -> accesscontrol -> create("tell", "guides", "GUEST");
$this -> bot -> accesscontrol -> create("gc", "guides", "GUEST");
$this -> bot -> accesscontrol -> create("pgmsg", "guides", "GUEST");
$this -> bot -> accesscontrol -> create("tell", "guide", "GUEST");
$this -> bot -> accesscontrol -> create("gc", "guide", "GUEST");
$this -> bot -> accesscontrol -> create("pgmsg", "guide", "GUEST");
For your .lst file, have a line like the following and it will work:
<a href='chatcmd:///tell <botname> <pre>guide guideagility'>Agility Guide</a>
-
When i look at the console from clicking on link to guide it says cannot find <guides/view.txt> So it not pointing to the guides i dont think not sure what view.txt would come from?
-
Ah yes, I should have added that to my steps for you above. The previous module had a redundant "view" command attached. Modify your .lst file to remove 'view' from all the lines (such as "<pre>guide view guideagility" becomes "<pre>guide guideagility").
-
Ok yea found it also changed on the file directory to look for guide prefix for file name and everything started working. Thanks for help.
-
Now when a member tried to use this it shows the guides but doesnt show when you click on link all it says if /tell orderbot help in tell msg. Ive set access lvl to guest but seems its not allowing access to the guides links.
-
You have to ensure to set access level to guest on both the commands: guides and guide
-
They are both set to guest. It allows the owner to do it but no other admin or members can use the links.
-
Its working now had to set commands in tell to member also.
-
Can someone post what the guides.lst file should look like.
When u mention copy the old php file over I am lost since I never had it ;P
-
This is pretty much what is should look like just shows the menus:
General guides:
<a href='chatcmd:///tell <botname> <pre>guide 3'>LINK</a> Official Code Of Conduct
<a href='chatcmd:///tell <botname> <pre>guide 6'>LINK</a> Beginners Questions
<a href='chatcmd:///tell <botname> <pre>guide 9'>LINK</a> Guide to AO terminology
<a href='chatcmd:///tell <botname> <pre>guide 8'>LINK</a> Locations on Rubi KA
<a href='chatcmd:///tell <botname> <pre>guide 4'>LINK</a> Wrangles
<a href='chatcmd:///tell <botname> <pre>guide 5'>LINK</a> Farming Credits
<a href='chatcmd:///tell <botname> <pre>guide 7'>LINK</a> Blitzing
<a href='chatcmd:///tell <botname> <pre>guide 50'>LINK</a> RK Mission Settings
<a href='chatcmd:///tell <botname> <pre>guide 10'>LINK</a> The Grid
<a href='chatcmd:///tell <botname> <pre>guide 11'>LINK</a> IP Resets
<a href='chatcmd:///tell <botname> <pre>guide 15'>LINK</a> Buffs
<a href='chatcmd:///tell <botname> <pre>guide 17'>LINK</a> Armour
<a href='chatcmd:///tell <botname> <pre>guide 36'>LINK</a> Rubi-Ka's Little Instruction Book
<a href='chatcmd:///tell <botname> <pre>guide 37'>LINK</a> Implants
<a href='chatcmd:///tell <botname> <pre>guide 69'>LINK</a> Perennium Weapons
Location guides:
<a href='chatcmd:///tell <botname> <pre>guide 12'>LINK</a> Smuggler's Den
<a href='chatcmd:///tell <botname> <pre>guide 14'>LINK</a> Temple Of Three Winds
<a href='chatcmd:///tell <botname> <pre>guide 16'>LINK</a> Biomare Dungeon
<a href='chatcmd:///tell <botname> <pre>guide 38'>LINK</a> Hollow Island
<a href='chatcmd:///tell <botname> <pre>guide 40'>LINK</a> Steps Of Madness
<a href='chatcmd:///tell <botname> <pre>guide 41'>LINK</a> Inner Sanctum
<a href='chatcmd:///tell <botname> <pre>guide 42'>LINK</a> The Crypt Of Home
Profession guides:
<a href='chatcmd:///tell <botname> <pre>guide 18'>LINK</a> Adventurer
<a href='chatcmd:///tell <botname> <pre>guide 19'>LINK</a> Agent
<a href='chatcmd:///tell <botname> <pre>guide 20'>LINK</a> Doctor
<a href='chatcmd:///tell <botname> <pre>guide 21'>LINK</a> Bureaucrat
<a href='chatcmd:///tell <botname> <pre>guide 22'>LINK</a> Soldier
<a href='chatcmd:///tell <botname> <pre>guide 23'>LINK</a> Engineer
<a href='chatcmd:///tell <botname> <pre>guide 24'>LINK</a> Fixer
<a href='chatcmd:///tell <botname> <pre>guide 25'>LINK</a> Martial Artist
<a href='chatcmd:///tell <botname> <pre>guide 26'>LINK</a> Meta Physicist
<a href='chatcmd:///tell <botname> <pre>guide 27'>LINK</a> Trader
<a href='chatcmd:///tell <botname> <pre>guide 28'>LINK</a> Nano Technician
Shopping guides:
<a href='chatcmd:///tell <botname> <pre>guide 31'>LINK</a> Fixer Shop
<a href='chatcmd:///tell <botname> <pre>guide 32'>LINK</a> Thin Bertice
<a href='chatcmd:///tell <botname> <pre>guide 33'>LINK</a> Trader Shop
<a href='chatcmd:///tell <botname> <pre>guide 34'>LINK</a> Zoftig Blimp
<a href='chatcmd:///tell <botname> <pre>guide 35'>LINK</a> Tsunayoshi Smith
Quest Guides:
<a href='chatcmd:///tell <botname> <pre>guide 44'>LINK</a> Shoulderpad Quest Part 1
<a href='chatcmd:///tell <botname> <pre>guide 45'>LINK</a> Shoulderpad Quest Part 2
<a href='chatcmd:///tell <botname> <pre>guide 46'>LINK</a> Shoulderpad Quest Part 3
<a href='chatcmd:///tell <botname> <pre>guide 47'>LINK</a> OT Tailor Quest
<a href='chatcmd:///tell <botname> <pre>guide 48'>LINK</a> Fixer Grid Quest Part 1
<a href='chatcmd:///tell <botname> <pre>guide 49'>LINK</a> Fixer Grid Quest Part 2
<a href='chatcmd:///tell <botname> <pre>guide 52'>LINK</a> Compact Disc Quest
SL Nano Guides:
<a href='chatcmd:///tell <botname> <pre>guide 53'>LINK</a> Nansense Garden Nanos
<a href='chatcmd:///tell <botname> <pre>guide 54'>LINK</a> Elysium Garden Nanos
<a href='chatcmd:///tell <botname> <pre>guide 67'>LINK</a> Elysium Sanctuary Nanos
<a href='chatcmd:///tell <botname> <pre>guide 56'>LINK</a> Schoel Garden Nanos
<a href='chatcmd:///tell <botname> <pre>guide 57'>LINK</a> Schoel Sanctuary Nanos
<a href='chatcmd:///tell <botname> <pre>guide 58'>LINK</a> Adonis Garden Nanos
<a href='chatcmd:///tell <botname> <pre>guide 59'>LINK</a> Adonis Sanctuary Nanos
<a href='chatcmd:///tell <botname> <pre>guide 60'>LINK</a> Penumbra Garden Nanos
<a href='chatcmd:///tell <botname> <pre>guide 61'>LINK</a> Penumbra Sanctuary Nanos
<a href='chatcmd:///tell <botname> <pre>guide 62'>LINK</a> Inferno Garden Nanos
<a href='chatcmd:///tell <botname> <pre>guide 63'>LINK</a> Inferno Sanctuary Nanos
<a href='chatcmd:///tell <botname> <pre>guide 64'>LINK</a> Pandemonium Garden Nanos
SL Garden Key Guides:
<a href='chatcmd:///tell <botname> <pre>guide 65'>LINK</a> Nansense Garden Key - Omni
<a href='chatcmd:///tell <botname> <pre>guide 66'>LINK</a> Elysium Garden Key - Omni
<a href='chatcmd:///tell <botname> <pre>guide 29'>LINK</a> Elysium Sanctuary Key - Omni
<a href='chatcmd:///tell <botname> <pre>guide 68'>LINK</a> Schoel Garden Key - Omni
Jobe Armour Guides:
<a href='chatcmd:///tell <botname> <pre>guide 70'>LINK</a> Jobe Armour Guide
<a href='chatcmd:///tell <botname> <pre>guide 71'>LINK</a> Tier 1 Armour Guide
<a href='chatcmd:///tell <botname> <pre>guide 72'>LINK</a> Tier 2 Armour Guide
<a href='chatcmd:///tell <botname> <pre>guide 73'>LINK</a> Tier 3 Armour Guide
Placeholders:
<a href='chatcmd:///tell <botname> <pre>guide 1'>LINK</a> Shiz
<a href='chatcmd:///tell <botname> <pre>guide 2'>LINK</a> Shiz
<a href='chatcmd:///tell <botname> <pre>guide 13'>LINK</a> Shiz
<a href='chatcmd:///tell <botname> <pre>guide 30'>LINK</a> Shiz
<a href='chatcmd:///tell <botname> <pre>guide 39'>LINK</a> Shiz
-
Anyone have the rest of the files? the link from the old module no longer works.
-
Anyone have the rest of the files? the link from the old module no longer works.
Sabkor posted the php file as a zip on the first page that was working when I tried it just now. Also diablo posted a sample menu script you can follow for your own.
-
the php file...yes. The actual guides... no ;)
-
I think the idea was for people to be able to make the guides however they want. Here are some guides I made from various posts on the anarchy forums. None of the guides were written by me just copied from various forum posts. It's mostly just basic guides on professions and game play most of which, but not all, geared towards new players. There's not much special formatting. A few external links and centered text on all the guides. Anyway here they are if you want them.
-
the guides are great :)
i love them and it worked correctly XD
-
This is pretty much what is should look like just shows the menus:
General guides:
<a href='chatcmd:///tell <botname> <pre>guide 3'>LINK</a> Official Code Of Conduct
<a href='chatcmd:///tell <botname> <pre>guide 6'>LINK</a> Beginners Questions
<a href='chatcmd:///tell <botname> <pre>guide 9'>LINK</a> Guide to AO terminology
<a href='chatcmd:///tell <botname> <pre>guide 8'>LINK</a> Locations on Rubi KA
<a href='chatcmd:///tell <botname> <pre>guide 4'>LINK</a> Wrangles
<a href='chatcmd:///tell <botname> <pre>guide
~Edited the rest for post sizing~
I've just taken notice to this setup and in itself, it looks MIGHTY damn identical to what I created for budabot quite some time ago :-\
Guidebot for Budabot (http://"http://budabot.aodevs.com/index.php/topic,128.0.html")
Of course, I made this extremely easy for you to do since my Guidebot has text files along with their Php counterparts.
I don't mind the porting of it, but at least a shout out,"hey can I?......." or something would have been appreciated
Nonetheless
I am going into development stage of my Guidebot for Bebot, so stay tuned
-
I would urge poeple to give credit where it's due when copying and pasting the work of others. Also be sure to obtain permission to use the works of others if it's not spesifically stated that it has been released to the public domain.
In the end we're all working towards the same goal and that's to make playing AO a better experience. Don't reck it with carelessness.
-
I am going into development stage of my Guidebot for Bebot, so stay tuned
Will this include full aomainframe guides as well ? ;P