Anope IRC Services

Please login or register.

Login with username, password and session length
Advanced search  

News:

Pages: [1]   Go Down

Author Topic: fantasy module  (Read 10142 times)

0 Members and 1 Guest are viewing this topic.

steven_elvisda

  • Guest
fantasy module
« 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.
Logged

lonewolf

  • Guest
(No subject)
« Reply #1 on: April 07, 2006, 09:47:34 AM »

Take a look at http://wiki.anope.org/index.php/Modules:Tutorials:Basics

I myself use an eggdrop for fantasy...
Logged

steven_elvisda

  • Guest
(No subject)
« Reply #2 on: April 10, 2006, 02:29:30 PM »

eggdrop sometime slow. i need use in botservices please help me ...
Logged

Pieter Bootsma

  • Team
  • *
  • Offline Offline
  • Posts: 189
    • http://geniusdex.net/
(No subject)
« Reply #3 on: April 11, 2006, 02:21:58 PM »

Logged

Tom65789

  • Anope User
  • Offline Offline
  • Posts: 343
    • www.t65789.co.uk
(No subject)
« Reply #4 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]

steven_elvisda

  • Guest
(No subject)
« Reply #5 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...
Logged

Jan Milants

  • Team
  • *
  • Offline Offline
  • Gender: Male
  • Posts: 1372
(No subject)
« Reply #6 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
Logged
If you like me donate coins to 1FBmZVT4J8WAUMHKqpWhgNVj3XXnRN1cCk :)

Tom65789

  • Anope User
  • Offline Offline
  • Posts: 343
    • www.t65789.co.uk
(No subject)
« Reply #7 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]

steven_elvisda

  • Guest
(No subject)
« Reply #8 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
Logged

Tom65789

  • Anope User
  • Offline Offline
  • Posts: 343
    • www.t65789.co.uk
(No subject)
« Reply #9 on: April 14, 2006, 05:19:42 PM »

what? im not sure what your asking there but i can add the hug command

Jan Milants

  • Team
  • *
  • Offline Offline
  • Gender: Male
  • Posts: 1372
(No subject)
« Reply #10 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
Logged
If you like me donate coins to 1FBmZVT4J8WAUMHKqpWhgNVj3XXnRN1cCk :)

steven_elvisda

  • Guest
(No subject)
« Reply #11 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?
Logged

Tom65789

  • Anope User
  • Offline Offline
  • Posts: 343
    • www.t65789.co.uk
(No subject)
« Reply #12 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?

steven_elvisda

  • Guest
(No subject)
« Reply #13 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.
Logged

n00bie

  • Anope User
  • Offline Offline
  • Gender: Male
  • Posts: 411
(No subject)
« Reply #14 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
Logged
I am always doing things that which I cannot do, in order that I may learn how to do it.

Tom65789

  • Anope User
  • Offline Offline
  • Posts: 343
    • www.t65789.co.uk
(No subject)
« Reply #15 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]

steven_elvisda

  • Guest
(No subject)
« Reply #16 on: May 17, 2006, 08:18:53 AM »

bro tTom65789 English deid link.
Logged

Tom65789

  • Anope User
  • Offline Offline
  • Posts: 343
    • www.t65789.co.uk
(No subject)
« Reply #17 on: May 17, 2006, 08:19:51 AM »

meh i'll have to fix it later
Pages: [1]   Go Up