Archive > BeBot Hyborian modules

Script module

(1/6) > >>

kelmino:
This is a module to display scripts in guild chat or via tells.

This mod is just a modified copy of the guides script located here
http://bebot.link/aoc-modules/ported-modules/

from the readme included with the files


--- Quote ---Extract both folders to your BeBot Hyborian folder.

The script folder is where you place your scripts at.

Each script must be in .txt format.

I included 2 example scripts as well as an example script list in a
folder called "Example scripts" in the script folder so you can see the
format that it needs to be in.  This also gives a few examples as to what it can be used for.

***tips***

1 - In order to keep your scripts looking nice I suggest opening them up in wordpad if you use windows.
Opening them up in wordpad will keep the formatting.  If you open them in the default notepad the
formatting does not stay, and it will look like a jumbled mess once you close them out.  You can set
it so wordpad opens .txt files by default so you don't forget when editing scripts. 
To do this right click on any .txt file. 
Go to open with. 
go to Choose Program. 
Choose Wordpad. 
check the box that says to "Always use this program to open this kind of file". 
That way wordpad will always open when you edit your scripts.

2 - Setting up Comalias
I have comalias set up for my scripts, an example of one I have is so people can now type !kos instead
of !script kos to get a list of our guild's diplomacy list.  !crafters would replace !script crafters.

To set these up you would type !comalias add <alias> <command>
from the examples I used above..
!comalias add kos script kos
!xomalias add crafters script crafters
remember if you forget a command type !help comalias for all the comalias commands
--- End quote ---

If you have any questions feel free to ask away, But don't count on me adding features since I know nothing about writing modules, and just edited the original guides.php for my liking.


Veloraptor:
this works great, thx for the hard work both of u  :o ;)

iam sure people will see this as a major improvement ontop of the bot, being able to use scripts from aoc, so people like me who dont got a clue about php is ackly still able to create custom scripts for the bot.

u should consider uploading this addition on http://aoc.curse.com/
or atleast bebot should make some kind of "news" at cursed for the bot, it works great ;) (got v5.2 working after some problems with php... "got the php from php.net insted of the php packet which turned out to be a bunch of errors")

oh well keep up the great work guys :)

jimango:
Is this mod possible to use in 6.x version?
If so, how do i install it?



jim

xdave78:
Yes it works.
Just pit the SCripts Folder in your BeBot root an the scripts.php into /custom/modues
Then take a script in .txt fileform an put it into the Scripts folder - eg one of the examples.
Restart bot and call a script with !scripts scriptname.
If you dont want to always have to write the whole thing use comalias as described above.


jimango:
This i have done, but still it doesnt find the scripts i put in, not even the examples scripts that i moved from the example folder to the script folder (thats now in root)

is there any thing i need to do to activate the scripts other then !restart?


jim

Navigation

[0] Message Index

[#] Next page

Go to full version