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

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

Author Topic: Change text in remember "!setcraft" module  (Read 2701 times)

0 Members and 1 Guest are viewing this topic.

Offline Getrix

  • Contributor
  • *******
  • Posts: 509
  • Karma: +0/-0
Change text in remember "!setcraft" module
« on: November 21, 2008, 02:12:45 pm »
Can you change the text bot send when someone has not set craft in bot.

From todays
Quote
You have no crafting information set and you are above level 40. Please use '!setcraft [class1] [class2]'. Classes can be Alchemist, Architect, Armorsmith, Gemcutter and Weaponsmith. If you havn't picked crafting classes yet this may be the time to do it.

To contain /tell BOTNAME
Quote
You have no crafting information set and you are above level 40. Please use '/tell BOTNAME !setcraft [class1] [class2]'. Classes can be Alchemist, Architect, Armorsmith, Gemcutter and Weaponsmith. If you havn't picked crafting classes yet this may be the time to do it.

This because i cant see any reason ppl should use GC for this command. I also suggest !setcraft and !alts is disabled by default in GC, and let tell be untouched.
Success is not final, failure is not fatal: it is the courage to continue that counts.
- Sorry, i dont have time to reply question on PM. Make a topic.

Offline Alreadythere

  • BeBot Maintainer
  • BeBot Hero
  • ******
  • Posts: 1288
  • Karma: +0/-0
Re: Change text in remember "!setcraft" module
« Reply #1 on: November 21, 2008, 04:22:38 pm »
!commands is your friend.

If you don't want a command in a specific channel simply disable it. Most people seems to like !alts in gc at least, can't really talk about !setcraft as I never played AoC.

Offline Getrix

  • Contributor
  • *******
  • Posts: 509
  • Karma: +0/-0
Re: Change text in remember "!setcraft" module
« Reply #2 on: November 21, 2008, 11:14:57 pm »
Change line 110 in modues\aoc\craftclasses.php

Quote
$msg = "You have no crafting information set and you are above level 40. Please use '!setcraft [class1] [class2]'. Classes can be Alchemist, Architect, Armorsmith, Gemcutter and Weaponsmith. If you havn't picked crafting classes yet this may be the time to do it.";

To contain:
Quote
$msg = "You have no crafting information set and you are above level 40. Please use '/tell <botname> !setcraft [class1] [class2]'. Classes can be Alchemist, Architect, Armorsmith, Gemcutter and Weaponsmith. If you havn't picked crafting classes yet this may be the time to do it.";

This is just suggestion as i see no point they do it in GC and spam there.

And i have allready disabled the command in GC.
Success is not final, failure is not fatal: it is the courage to continue that counts.
- Sorry, i dont have time to reply question on PM. Make a topic.

Offline Temar

  • Contributor
  • *******
  • Posts: 1140
  • Karma: +0/-0
    • AoFiles
Re: Change text in remember "!setcraft" module
« Reply #3 on: November 22, 2008, 11:44:05 pm »
/tell botname has been added to the output msg in SVN now

Offline Getrix

  • Contributor
  • *******
  • Posts: 509
  • Karma: +0/-0
Re: Change text in remember "!setcraft" module
« Reply #4 on: November 23, 2008, 03:20:26 am »
Thanks =)

Btw, Already did another change in the setcraft file. This is now causing:

Quote
[ERROR]        [AOChatWrapper_Core]    No user specified
[ERROR]        [AOChatWrapper_Core]    No user specified

This is mostlikely because on line 98 modues\aoc\craftclasses.php

Quote
function notify($user, $startup = false)

Should be:

Quote
function notify($name, $startup = false)


EDIT:
This linefix solved the problem.



« Last Edit: November 23, 2008, 03:25:57 am by gerborg »
Success is not final, failure is not fatal: it is the courage to continue that counts.
- Sorry, i dont have time to reply question on PM. Make a topic.

Offline Temar

  • Contributor
  • *******
  • Posts: 1140
  • Karma: +0/-0
    • AoFiles
Re: Change text in remember "!setcraft" module
« Reply #5 on: November 23, 2008, 04:57:53 am »
Fixed thank you

 

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


0.8.x updates for AoC by bitnykk
[January 30, 2024, 11:16:08 pm]


0.8.x updates for AO by bitnykk
[January 30, 2024, 11:15:37 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: 774
  • 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