collapse collapse
* User Info
 
 
Welcome, Guest. Please login or register.
* Search

* Board Stats
  • stats Total Members: 989
  • stats Total Posts: 18365
  • stats Total Topics: 2500
  • stats Total Categories: 7
  • stats Total Boards: 35
  • stats Most Online: 1144

Author Topic: Scripts to Module?  (Read 15517 times)

0 Members and 2 Guests are viewing this topic.

Offline squattinbull

  • BeBot User
  • **
  • Posts: 29
  • Karma: +0/-0
Scripts to Module?
« on: February 20, 2010, 08:19:36 pm »
Hello everyone,

I was wondering if any of you would know how or could do a simple explain on how to make a script into a module?


An example script for AOC would be:



[edit by Khalem]
Code moved to attachment
« Last Edit: March 06, 2010, 12:10:59 pm by Khalem »

Offline Drizzurdeen

  • BeBot Apprentice
  • ***
  • Posts: 193
  • Karma: +0/-0
    • Obsidian-Cult
Re: Scripts to Module?
« Reply #1 on: February 20, 2010, 10:18:58 pm »
hehe this is the script wich was written by a member of our gild ;)

just install the scripts mod of the bot and copy the script as .txt in the scripts folder of the bot ... than just type !scripts gems

works perfekt by our guildbot

greez drizz

Offline Lucalus

  • BeBot Rookie
  • *
  • Posts: 5
  • Karma: +0/-0
Re: Scripts to Module?
« Reply #2 on: February 22, 2010, 03:38:34 pm »
Ummm... sounds nice!
But where can i find "the scripts mod"?  ;)

greets

Offline Drizzurdeen

  • BeBot Apprentice
  • ***
  • Posts: 193
  • Karma: +0/-0
    • Obsidian-Cult
Re: Scripts to Module?
« Reply #3 on: February 22, 2010, 09:34:40 pm »
here the file ... just unpack in ur botfolder ... edit the script.lst with ur botname ... restart the bot

commands:
!scripts

the scripts we use are in the folder ... like gems and recs 

have fun

Offline Drizzurdeen

  • BeBot Apprentice
  • ***
  • Posts: 193
  • Karma: +0/-0
    • Obsidian-Cult
Re: Scripts to Module?
« Reply #4 on: February 22, 2010, 09:36:47 pm »
sry forgot the script.php ;) ... here it is

Offline Yite

  • BeBot Apprentice
  • ***
  • Posts: 152
  • Karma: +0/-0
    • Niflheim - Crom
Re: Scripts to Module?
« Reply #5 on: February 23, 2010, 12:21:13 pm »
Nice stuff, should really have it's own topic in the custom modules as I'm sure some bot admins will use it (I will  :D)
-Yite [Crom]

Offline Kyr

  • BeBot Apprentice
  • ***
  • Posts: 177
  • Karma: +0/-0
Re: Scripts to Module?
« Reply #6 on: March 04, 2010, 08:00:00 am »
Hey!

I downloaded your rar file of scripts and found that the recs.txt script needed a little fixin to make it work better with the scripts module.

I think it looks more like the original creator intended it to look this way.

I hope you like it!

~Kyr

Offline Drizzurdeen

  • BeBot Apprentice
  • ***
  • Posts: 193
  • Karma: +0/-0
    • Obsidian-Cult
Re: Scripts to Module?
« Reply #7 on: March 04, 2010, 07:08:52 pm »
hey ... nice work ... works perfekt ;) and yes this is exactly what the writer was ment with this script ;)

btw. would be nice if u could rerwrite another script ;) ... it's a gem-script by the same author

[edit by Khalem]
Code moved to attachment
« Last Edit: March 06, 2010, 12:11:57 pm by Khalem »

Offline Kyr

  • BeBot Apprentice
  • ***
  • Posts: 177
  • Karma: +0/-0
Re: Scripts to Module?
« Reply #8 on: March 08, 2010, 01:24:37 am »
I did the conversion but haven't had time to finish testing it yet.  Should post soon.

~Kyr

Offline Kyr

  • BeBot Apprentice
  • ***
  • Posts: 177
  • Karma: +0/-0
Re: Scripts to Module?
« Reply #9 on: March 08, 2010, 12:27:46 pm »
Here is a slight update to the recs one as well as the completed gems one.

~Kyr

Offline Drizzurdeen

  • BeBot Apprentice
  • ***
  • Posts: 193
  • Karma: +0/-0
    • Obsidian-Cult
Re: Scripts to Module?
« Reply #10 on: March 08, 2010, 05:57:01 pm »
perfekt work ... thanks at all

Offline Kyr

  • BeBot Apprentice
  • ***
  • Posts: 177
  • Karma: +0/-0
Re: Scripts to Module?
« Reply #11 on: March 09, 2010, 12:11:30 am »
Fixed a couple bugs and changed the name of recs to recipes.  I changed my scripts module to show the name of the script you are about to open and recs wasn't meaningful enough for my users (scripts.phps included here too).

Offline Kyr

  • BeBot Apprentice
  • ***
  • Posts: 177
  • Karma: +0/-0
Re: Scripts to Module?
« Reply #12 on: March 09, 2010, 03:06:03 am »
Here is another cool script for raiding guilds.  Only shows Tier 1 and Tier 2.

add this to your scripts.lst
Code: [Select]
<a href='chatcmd:///tell <botname> <pre>script epic_raid_drops'>Epic Raid Drops</a> - <a href='chatcmd:///gu <pre>script epic_raid_drops'>show guild</a><br /><br />

Offline Kyr

  • BeBot Apprentice
  • ***
  • Posts: 177
  • Karma: +0/-0
Re: Scripts to Module?
« Reply #13 on: March 18, 2010, 07:43:36 pm »
Here is a new version of the scripts module that allows for the use of special fonts and colors in links as well as text before and after the link.
Your old script files will continue working without any modification.

I have included a sample version 2 for you to review.

add this line to your scripts.lst file for easy clicking
Code: [Select]
<a href='chatcmd:///tell <botname> <pre>script epic_raid_drops'>Epic Raid Drops</a> - <a href='chatcmd:///gu <pre>script epic_raid_drops'>show guild</a><br>
Here is how to create version 2 script files. 
script must start exactly with the text:
//-- script ver 2 --//
If the script file doesn't start with that the module will read it as the old format and that won't work.
 
Lines can start with these tags (always 8 characters):
BEFOREH-
HLINK---
AFTERH--
SPECIAL-
BODY----

The special tag is for adding text to the a tag that isn't the href i.e. <a href='blah' SPECIAL->click here</a>

The only thing I need that for so far is:
style='text-decoration:none'  (this allows non-default color and font to be used on links)

There can only be one of each.  The order of the tags is not significant, but I suggest the body tag always come last.
« Last Edit: March 21, 2010, 12:59:25 am by Kyr »

Offline Drizzurdeen

  • BeBot Apprentice
  • ***
  • Posts: 193
  • Karma: +0/-0
    • Obsidian-Cult
Re: Scripts to Module?
« Reply #14 on: March 18, 2010, 09:04:37 pm »
nice nice .... works fine ;) ... nice work

 

* Recent Posts
0.8.x updates for AO by bitnykk
[June 23, 2024, 03:19:47 pm ]


0.8.x updates for AoC by bitnykk
[June 23, 2024, 03:19:44 pm ]


[AoC] special char for items module by bitnykk
[February 09, 2024, 09:41:18 pm ]


BeBot still alive & kicking ! by bitnykk
[December 17, 2023, 12:58:44 am ]


Bebot and Rasberry by bitnykk
[November 29, 2023, 11:04:14 pm ]

* Who's Online
  • Dot Guests: 352
  • Dot Hidden: 0
  • Dot Users: 0

There aren't any users online.
* Forum Staff
bitnykk admin bitnykk
Administrator
Khalem admin Khalem
Administrator
WeZoN gmod WeZoN
Global Moderator
SimplePortal 2.3.7 © 2008-2024, SimplePortal