Anope IRC Services

Anope Development => Modules => Topic started by: steven_elvisda on April 07, 2006, 07:25:40 AM

Title: fantasy module
Post by: steven_elvisda on April 07, 2006, 07:25:40 AM
hello everyone can you help me to write sample code module for fatasy command something like !kiss Rebeca and bot will say

[22:56] * irobot Steven kiss Rebeca with a sweet lips.

Best Regard,

Thanks.
Title:
Post by: lonewolf on April 07, 2006, 09:47:34 AM
Take a look at http://wiki.anope.org/index.php/Modules:Tutorials:Basics (http://wiki.anope.org/index.php/Modules:Tutorials:Basics)

I myself use an eggdrop for fantasy...
Title:
Post by: steven_elvisda on April 10, 2006, 02:29:30 PM
eggdrop sometime slow. i need use in botservices please help me ...
Title:
Post by: Pieter Bootsma on April 11, 2006, 02:21:58 PM
Also take a look at http://wiki.anope.org/index.php/Modules:QuickList:InternalEvents and http://wiki.anope.org/index.php/Modules:Misc:InternalEventList#EVENT_BOT_FANTASY if you're going to make your own module
Title:
Post by: Tom65789 on April 12, 2006, 08:27:27 PM
Well i got bored and did a quick job on it

http://www.area51designz.com/c/anope/bs_fantasy_mini.c

!kiss (nick)

Bot (nick who did !kiss) kisses (target)

if there is any problems let me know. probably will be but it works

[Edited on 12-4-2006 by Tom65789]

[Edited on 16-5-2006 by Tom65789]
Title:
Post by: steven_elvisda on April 14, 2006, 05:47:00 AM
Hello Tom65789 you module is good, but after i load module command !kiss (nick) does not work even i /bs set #channel fantasy on already but still not work. Now can i request you more.

1. please check that logic error for me
2. If i want to add some more command like !hug nick, !love nick, ... can i bro ?

Best Regard,

Thanks Hero Tom65789 I hope bro can spend your gold time to correct for me. I wish bro good health and good every think that you wish...
Title:
Post by: Jan Milants on April 14, 2006, 10:35:49 AM
make sure you have access to the fantasy commands in that channel... will only work if you do

ya can always link it to EVENT_BOT_FANTASY_NO_ACCESS though .. will work in both cases then
Title:
Post by: Tom65789 on April 14, 2006, 11:31:58 AM
Quote
Originally posted by steven_elvisda
Hello Tom65789 you module is good, but after i load module command !kiss (nick) does not work even i /bs set #channel fantasy on already but still not work. Now can i request you more.

1. please check that logic error for me
2. If i want to add some more command like !hug nick, !love nick, ... can i bro ?

Best Regard,

Thanks Hero Tom65789 I hope bro can spend your gold time to correct for me. I wish bro good health and good every think that you wish...


well it worked when i tested it. probably the reason Viper said so i'll edit it a bit, and sure you can add your own. :)

edit. i have updated it.

download it from thr same place http://www.area51designz.com/c/anope/bs_fantasy_kiss.c

[Edited on 14-4-2006 by Tom65789]
Title:
Post by: steven_elvisda on April 14, 2006, 04:18:08 PM
one more question Ton65789. Can you write code to store command !kiss, !hug, ... in one database file (no mysql datase) and use that command ask ur code above?


Best Regard,

and thanks before hand to bro Tom65789
Title:
Post by: Tom65789 on April 14, 2006, 05:19:42 PM
what? im not sure what your asking there but i can add the hug command
Title:
Post by: Jan Milants on April 14, 2006, 07:35:28 PM
i think he wants a module that allows him to add commands and then stores those with their actions in a database
Title:
Post by: steven_elvisda on April 15, 2006, 03:14:29 PM
1. I have one datase anope file action.db this file store command !kiss , !hug, !love ...  in  file action.db
2. write code to use those command in file action.db ask above.


are you understand yet bro tom65789?
Title:
Post by: Tom65789 on April 15, 2006, 07:09:05 PM
so you mean a command to add a !trigger and it stores it in a database and you can put what it says?
Title:
Post by: steven_elvisda on April 16, 2006, 09:35:04 PM
yeah command !tiggrer store in database and we can use that command i mean all type of you (both user have access and user don have access in channel.)

Tom can you do this for me this is the last type.
Title:
Post by: n00bie on May 16, 2006, 10:15:00 PM
hello, Tom65789, please take a look at this thread http://forum.anope.org/viewthread.php?tid=120#pid711
i think it is similar to .. what seteven_elvisda is talking about  .. and by the way.. i cant' fixed the module on the links i've given above :o
Title:
Post by: Tom65789 on May 16, 2006, 10:25:38 PM
yer the link changed so take a look here if you want but im kinda busy at the moment so it might be a while before i get chance to look at it

http://www.area51designz.com/c/anope/bs_fantasy_mini.c

[Edited on 17-5-2006 by Tom65789]
Title:
Post by: steven_elvisda on May 17, 2006, 08:18:53 AM
bro tTom65789 English deid link.
Title:
Post by: Tom65789 on May 17, 2006, 08:19:51 AM
meh i'll have to fix it later