L* R*
HOME FORUM DOWNLOADS
Content
  Links
     Browse SVN
     SVN Commit log
     Documentation (Wiki)
  Developers
     Taskmanager
User
Welcome, Guest. Please login or register.
Did you miss your activation email?
November 21, 2008, 11:03:14 PM

Login with username, password and session length
Search



Advanced search
Support GoPHP5.org
BeBot - An Anarchy Online/Age Of Conan chat automaton > Forum > Modules > Modules for older versions > 0.2.x Custom/Unofficial Modules > Topic: Guild Depot
Pages: 1 2 [3] 4   Go Down
« previous next »
Print
Author Topic: Guild Depot  (Read 4525 times)
0 Members and 1 Guest are viewing this topic.
Malosar
Expert
*****
Offline Offline

Posts: 259


WWW
Re: Guild Depot
« Reply #30 on: February 06, 2007, 10:43:19 AM »

Quick minor chage, limited output on depot list to 50 items in guild chat and no limit in a tell. Reposted depot.php in previous post.
Logged

Eternalist
General of The Syndicate
Malosar
Expert
*****
Offline Offline

Posts: 259


WWW
Re: Guild Depot
« Reply #31 on: February 09, 2007, 10:43:34 AM »

Last change for this hopefully, at least for my usability requirements. I've added a quantity add function so if I'm adding items identical to ones already in the depot, I just need to raise the amount instead of adding as a separate item. Links in list and search now have [+] [-] instead of [remove] to allow quick control of inventory quantities.

Another minor change, it won't spam the depot list if you get a command wrong anymore. The list will only be displayed on !depot list instead of just !depot as org members would get a command wrong in a tell and wait for 16 pages of items.

EDIT: Removed these versions for download as they are outdated. See newer post further on in thread.
« Last Edit: March 12, 2007, 08:04:19 AM by Malosar » Logged

Eternalist
General of The Syndicate
Malosar
Expert
*****
Offline Offline

Posts: 259


WWW
Re: Guild Depot
« Reply #32 on: February 09, 2007, 01:13:37 PM »

And lastly here is my depot uploading script I wrote which creates a very basic html table of your depot items, including auno links, and uploads it to a webserver via FTP. So useful for those whom run a website and want the depot on there as well. You can incorporate it into your site, or spruce it up however you like. I run the script via a cron once a day.

EDIT: Removed file for download as older version, see post further on in thread.
« Last Edit: March 12, 2007, 08:04:44 AM by Malosar » Logged

Eternalist
General of The Syndicate
pusikas
Experienced
****
Offline Offline

Posts: 161


Re: Guild Depot
« Reply #33 on: February 10, 2007, 07:57:45 AM »

For some reason, the
Code:
if (is_writable($filename)) {
is always false for me, so the script always complains about not being able to write the file. If I comment this out, the HTML file gets created and uploaded as it should. *shrug* So it kinda works for me, except for that strange glitch. Thanks for a nice addition to he depot. Smiley
Logged

Luuv  Bot-Keeper of Vengeance ^^*
Dabaron
Apprentice
***
Offline Offline

Gender: Male
Posts: 145


Re: Guild Depot
« Reply #34 on: February 12, 2007, 05:39:23 AM »

Quote from: Malosar on February 09, 2007, 10:43:34 AM
Last change for this hopefully, at least for my usability requirements. I've added a quantity add function so if I'm adding items identical to ones already in the depot, I just need to raise the amount instead of adding as a separate item. Links in list and search now have
  • [-] instead of [remove] to allow quick control of inventory quantities.

Another minor change, it won't spam the depot list if you get a command wrong anymore. The list will only be displayed on !depot list instead of just !depot as org members would get a command wrong in a tell and wait for 16 pages of items.

There is an error with your syntax for the - in the blob.... still trying to figure out exactly what it is but it keeps killing bot with what it says is an error on line 160.
Logged
redmagician
Freshman
*
Offline Offline

Posts: 7


Re: Guild Depot
« Reply #35 on: February 12, 2007, 11:49:00 PM »

Very nice module.

One of my org-mates is a help-a-holic so she went crazy when I dropped this into the bot. *looks at over 3000 entries just from her in the past day or so*

I've run into a few 'problems' though

1) On the uploading script is_writable checks to see if the file is writable *and* if it exists so it pretty much always errors if the module is run for the first time

I see two solutions to this, either mention it somewhere so the person running the bot can create an empty file with the filename

OR write the file anyway if it doesn't exist (maybe by using file_exists somewhere in there?)

2) Theres also a problem with the way the ql is extracted. Its assumed the ql starts at character 24 but this isn't always true, theres a few that start at 22 (nanos and belts from what she's told me, she's literally crazy about the module...)

I'm not quite sure what I'll do to fix this on my end, I'll probably check the previous few characters for a '/' and start on the character right after.
Logged
Malosar
Expert
*****
Offline Offline

Posts: 259


WWW
Re: Guild Depot
« Reply #36 on: February 13, 2007, 09:28:02 AM »

Fixed parsing of ql to use an exploded array of the itemref instead of counting characters. Also fixed an incorrect response for gc on adding item with quantity. Removed is_writable check on depotftp.php and added more feedback on processes in case of errors.

Previous post files updated.
Logged

Eternalist
General of The Syndicate
Malosar
Expert
*****
Offline Offline

Posts: 259


WWW
Re: Guild Depot
« Reply #37 on: March 08, 2007, 11:02:54 AM »

Updated Depot again. Added private bank functions to allow personal banks that cannot be searched or accessed by anyone but you and your alts. The module will search any items on any of your alts listed in the db and allow control from any character on your alts list as well. Also updated control on your own items in the public org bank to allow from any of your listed alts.

Commands are now split (mostly) between !depot (public org bank) and !bank (private bank only).

Also added a request function, with link in the blob for easy request access. Clicking the link has the bot send a tell to the item holder advising the name, itemname and id.

Updated depotftp.php to retrieve public only items for ftp'ing.

Existing depot users will need to update their sql table:
Code:
update depot add column private boolean;

Update: Fixed a couple of issues as stated further on in thread
« Last Edit: March 12, 2007, 04:52:58 PM by Malosar » Logged

Eternalist
General of The Syndicate
Ozball
Freshman
*
Offline Offline

Gender: Male
Posts: 15


Re: Guild Depot
« Reply #38 on: March 10, 2007, 12:51:38 AM »

Not sure if its somthing I'm doing wrong or what, but having a couple issues with the module.

1. After doing !depot list it displays the output fine, but then displays a second line saying "/tell Tvbot !help !depot/bank"
eg.
To [Tvbot]: !depot list
[Tvbot]: Item List
[Tvbot]: /tell Tvbot !help !depot/bank

2. When doing !depot add <item> without a number after it I get the following in the console.

"Warning: Missing argument 4 for depot::depot_add(). called in <path>\Depot.php on line 57 and defined in <path>\Depot.php on line 126
MySQL error (# 0) on query: INSERT INTO depot (id, itemName, itemURL, ql, amount, contributorID, private) VALES ('1173505348', 'Flurry of Blows', 'itemref://85907/85908/27', '27', '1', 'Sidus',)
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')' at line 1"

and then the item doesnt add to the list (even though the bot out puts that it has been added, !depot list doesnt show it).

One final question ^^ with the depotftp are we ment to open the file and manually put in the dbname, dbpass etc?

Other than that, awesome module Cheesy
« Last Edit: March 10, 2007, 01:07:27 AM by Ozball » Logged

Slynthia - General and Botmaster of Terminal Velocity - RK1
Malosar
Expert
*****
Offline Offline

Posts: 259


WWW
Re: Guild Depot
« Reply #39 on: March 10, 2007, 09:27:03 AM »

hmm guess my testing wasn't as thorough as I thought, seemed to be working fine. I'll check it out over the weekend and see if I can track down the problems.

First thing though is "VALES" should be "VALUES", not sure how that could have changed. It's also not adding the private setting there.

Also, yes you are supposed to edit the depotftp.php and enter all the values for the db, ftp etc.
Logged

Eternalist
General of The Syndicate
Ozball
Freshman
*
Offline Offline

Gender: Male
Posts: 15


Re: Guild Depot
« Reply #40 on: March 10, 2007, 10:18:06 AM »

The VALES is my typo sorry. It is VALUES.
Logged

Slynthia - General and Botmaster of Terminal Velocity - RK1
Ozball
Freshman
*
Offline Offline

Gender: Male
Posts: 15


Re: Guild Depot
« Reply #41 on: March 11, 2007, 01:27:55 AM »

Been playing with trying to get depotftp working, and keep running into a problem with, I think, the way im putting in the ftp server.

At the moment what I have is:

$ftpserver="ftp://ftp.terminalvelocity-ao.com/";

and I get:

[11-Mar-2007 16:52:58] PHP Warning:  ftp_connect(): php_network_getaddresses: getaddrinfo failed: No such host is known.  in F:\Tvbot\BeBot_v0.2.11\modules\depotftp.php on line 60
[11-Mar-2007 16:52:58] PHP Warning:  ftp_login() expects parameter 1 to be resource, boolean given in F:\Tvbot\BeBot_v0.2.11\modules\depotftp.php on line 62

I'm assuming the second warning is due to the first one, but the first one I cant seem to avoid. I've tried numorus ways of putting the ftp server, without the ftp://, with http:// instead of the ftp:// even tried with the username and password in the path and nothing seems to work. Any idea what I'm doing wrong?  Undecided
Logged

Slynthia - General and Botmaster of Terminal Velocity - RK1
Vhab
BeBot Contributor
Experienced
*******
Offline Offline

Posts: 158


WWW
Re: Guild Depot
« Reply #42 on: March 11, 2007, 03:41:36 AM »

should be without ftp:// and / afaik.
double-checked the domain name?
Logged
Ozball
Freshman
*
Offline Offline

Gender: Male
Posts: 15


Re: Guild Depot
« Reply #43 on: March 11, 2007, 08:36:45 AM »

O.o I could have sworn I tried that.... maybe I had the / at the end before or somthing.... Works now though thanks Smiley
Logged

Slynthia - General and Botmaster of Terminal Velocity - RK1
Malosar
Expert
*****
Offline Offline

Posts: 259


WWW
Re: Guild Depot
« Reply #44 on: March 12, 2007, 08:01:33 AM »

Fixed errors on depot add, had missed a private setting on one of the depot add function calls. Fixed the selection for main/alts items and owner checks.

Updated previous post with newer Depot.php
Logged

Eternalist
General of The Syndicate
Pages: 1 2 [3] 4   Go Up
Print
BeBot - An Anarchy Online/Age Of Conan chat automaton > Forum > Modules > Modules for older versions > 0.2.x Custom/Unofficial Modules > Topic: Guild Depot
« previous next »
 
Jump to:  

Recent
Change text in remember "...
by gerborg
[Today at 05:14:57 PM]

Log playtime from buddys ...
by Temar
[November 20, 2008, 10:33:57 AM]

Vote Core module and Simp...
by Temar
[November 19, 2008, 09:26:52 AM]

Restrict access for one m...
by Organizer
[November 19, 2008, 03:21:19 AM]

Custom / Revised Modules ...
by Elesar1
[November 17, 2008, 03:51:46 PM]

TWC
by Temar
[November 16, 2008, 11:39:12 AM]

Are there any FUN modules...
by Elesar1
[November 15, 2008, 07:39:15 PM]

Call to a member function...
by exxie
[November 15, 2008, 09:29:31 AM]

Ported Modules
by Alreadythere
[November 14, 2008, 06:10:07 PM]

cURL and other non-defaul...
by Temar
[November 14, 2008, 04:11:44 PM]
Stats
Members
Total Members: 1235
Latest: DDDepressionnn
Stats
Total Posts: 11037
Total Topics: 1496
Online Today: 17
Online Ever: 168
(July 01, 2007, 09:30:02 PM)
Users Online
Users: 0
Guests: 23
Total: 23

Powered by SMF 1.1.7 | SMF © 2006-2008, Simple Machines LLC
TinyPortal v0.9.8 © Bloc | NewDef design by Bloc
Page created in 0.811 seconds with 30 queries. (Pretty URLs adds 0.036s, 4q)
Loading...