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: Possible to use tradeskill module instead of craft module  (Read 2486 times)

0 Members and 1 Guest are viewing this topic.

Offline nhoople

  • BeBot Rookie
  • *
  • Posts: 6
  • Karma: +0/-0
    • The Older Gamers
Possible to use tradeskill module instead of craft module
« on: August 11, 2008, 01:12:50 am »
Was wondering if it would be possible to make changes so that the tradeskill module by saik0 could be used by default instead of the current craft module and to have the info from said tradeskill module displayed in the whois info for a guild member.

Offline Lightwave

  • BeBot Rookie
  • *
  • Posts: 7
  • Karma: +0/-0
Re: Possible to use tradeskill module instead of craft module
« Reply #1 on: August 19, 2008, 12:35:41 pm »
Something like this can be used to populate the whois table with the non-gathering tradeskills... it's not going to list their tier... but just a similar output to what the default has.

It's not perfect... but it might help...
Changes would go in places like Sources/Bot.php  core/Whois.php

Code: [Select]
               $lookup = $this -> db -> select('SELECT nickname,tradeskill FROM #___tradeskill WHERE nickname = "' . $user . '" AND (tradeskill = "Armorsmith" OR tradeskill = "Weaponsmith" OR tradeskill = "Gemcutter" or tradeskill = "Architect" OR tradeskill = "Alchemist")', MYSQL_ASSOC);
               if (!empty($lookup[0]))
                       $who["craft1"] = $lookup[0]['tradeskill'];
                if (!empty($lookup[1]))
                       $who["craft2"] = $lookup[1]['tradeskill'];
               $this -> core("Whois") -> update($who);

« Last Edit: August 19, 2008, 01:10:07 pm by Lightwave »

 

* 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: 227
  • 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