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

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

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

0 Members and 1 Guest are viewing this topic.

Offline squattinbull

  • BeBot User
  • **
  • Posts: 29
  • Karma: +0/-0
Re: Scripts to Module?
« Reply #15 on: March 30, 2010, 05:33:26 pm »
Thank you all.  :)  You've all helped out so greatly. 

I still wish I could learn how to just make the scripts directly into a stand alone module.

Offline Kyr

  • BeBot Apprentice
  • ***
  • Posts: 177
  • Karma: +0/-0
Re: Scripts to Module?
« Reply #16 on: March 30, 2010, 08:26:22 pm »
One of the nice things about the scripts is the bot doesn't have to be restarted when you add new or change scripts.  If each script was its own module you would need to restart every time.

If you want a script to look like it has its own command use !comalias

Code: [Select]
!comalias add gems script gems
then you can call as

Code: [Select]
!gems
~Kyr


Offline Drizzurdeen

  • BeBot Apprentice
  • ***
  • Posts: 193
  • Karma: +0/-0
    • Obsidian-Cult
Re: Scripts to Module?
« Reply #17 on: April 19, 2010, 12:47:36 pm »
if someone needs the german gems script ... here it is ;) ... just unzip it lokal ... then put the gemsd.txt into the script folder of the bot ... and put the gems-folder in the gems-folder of ur bot ... after that make the changes in ur scripts.lst an everything would be fine ...

have fun
greetz da drizz

Offline Kyr

  • BeBot Apprentice
  • ***
  • Posts: 177
  • Karma: +0/-0
Re: Scripts to Module?
« Reply #18 on: May 08, 2010, 09:40:16 pm »
I had some extraneous logging left on from my testing/debug  phase.  The only change to this new scripts.phps is that the logging was removed.

I threw in 2 new scripts.  One has info about the Rise of the Godslayer expansion and the other has the values of the rare resources in CE when making sacrifices to the alter.

Put the scripts (the 2 .txt files) in the scripts folder and rename the phps to php and put it in your custom/modules folder add this to your scripts.lst:
Code: [Select]
<a href='chatcmd:///tell <botname> <pre>script xPac'>Expansion pack info</a> - <a href='chatcmd:///gu <pre>script xPac'>show guild</a>
<a href='chatcmd:///tell <botname> <pre>script rarevalue'>Value of rares</a> - <a href='chatcmd:///gu <pre>script rarevalue'>show guild</a>

and/or say these commands to the bot:
Code: [Select]
!comalias add xPac script xPac
!comalias add rare script rarevalue

~Kyr

Offline Space

  • BeBot Rookie
  • *
  • Posts: 10
  • Karma: +0/-0
Re: Scripts to Module?
« Reply #19 on: June 01, 2010, 06:37:34 pm »
Good work you all...

... got all the files, put them into bebot folder as explained!!

ALL works FINE - THANX
« Last Edit: June 01, 2010, 07:23:21 pm by Space »

Offline Ricky1252

  • BeBot Rookie
  • *
  • Posts: 11
  • Karma: +0/-0
Re: Scripts to Module?
« Reply #20 on: August 23, 2010, 01:00:24 am »
Hey guys, I was wondering, I wanted to color the clickable link.... example
Code: [Select]
<a href='chatcmd:///tell <botname> <pre>script xPac'>Expansion pack info</a>I want to get the Expansion pack info to be maybe red and not underlined instead of the default orange underline like this
Expansion pack info
I tried everything I can think of but it just always stays the default orange underline is it hard coded perhaps?

Offline Kyr

  • BeBot Apprentice
  • ***
  • Posts: 177
  • Karma: +0/-0
Re: Scripts to Module?
« Reply #21 on: August 23, 2010, 05:50:12 pm »
you need this in the A tag: style='text-decoration:none'

Like this:
<a href=" ... " style='text-decoration:none'>

That will allow you to override the default orange underlined link text.

~Kyr

Offline Ricky1252

  • BeBot Rookie
  • *
  • Posts: 11
  • Karma: +0/-0
Re: Scripts to Module?
« Reply #22 on: August 25, 2010, 12:55:18 am »
awesome yeah i knew it had to be something like that im still a little knew to scripts so thanks alot kyr!
« Last Edit: August 28, 2010, 02:47:00 pm by Ricky1252 »

Offline dragonjr

  • BeBot Apprentice
  • ***
  • Posts: 131
  • Karma: +0/-0
Re: Scripts to Module?
« Reply #23 on: November 19, 2010, 02:17:07 am »
ok ive been told that you can make a script with out txt i tried saveing it as any file but i get nothing. right now my list has this
19.<a href='chatcmd:///tell dragonfire !script tos'>tempest of set armor</a><BR>
and in the file scripts its saved as tos.txt and when i click on it in game i get broken code on it what do i ahve to do to fix this please help me thanks

 

* Recent Posts
Com bot module by bitnykk
[November 25, 2024, 05:36:11 pm ]


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 ]

* Who's Online
  • Dot Guests: 167
  • 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