Web Vending Database (Standalone and FluxCP Addon)

Some fixes for both versions.

FluxCP my and Yommy src

Standalone my and Yommy src

0edeed15b07e9b0239db0673b97f.png


Thank RagnaOk for providing the veeery big data to detect bugs: http://ragnaok.net/vending_database/

 
This has an error on hercules latest patch..

to make it work change:

mmysql_handle

to

Code:
map->mysql_handle
 
 
This has an error on hercules latest patch..

to make it work change:

mmysql_handle

to

map->mysql_handle
I got this error

Code:
vending.c: In function âvending_closevendingâ:vending.c:41: warning: implicit declaration of function âSql_Queryâvending.c: In function âvending_openvendingâ:vending.c:405: warning: implicit declaration of function âitemdb_searchâvending.c:405: warning: initialization makes pointer from integer without a castvending.c: In function âvending_purchasereqâ:vending.c:260: warning: âitem_nameâ may be used uninitialized in this function
 
This has an error on hercules latest patch..

to make it work change:

mmysql_handle

to

map->mysql_handle
I got this error

vending.c: In function âvending_closevendingâ:vending.c:41: warning: implicit declaration of function âSql_Queryâvending.c: In function âvending_openvendingâ:vending.c:405: warning: implicit declaration of function âitemdb_searchâvending.c:405: warning: initialization makes pointer from integer without a castvending.c: In function âvending_purchasereqâ:vending.c:260: warning: âitem_nameâ may be used uninitialized in this function

 Vending.c  Line  41   change  Sql_Query  to SQL->Query

Vending.c Line 405    change itemdb_search to itemdb->search

 
Last edited by a moderator:
Hello, anyone knows how to fix this? Item name is Unkown, Refine is not shown, Card goes Unkown Item too. Btw, im using Hercules FluxCp
vending_error_zpse866e7b4.png


 
Last edited by a moderator:
Fixed:

If you're using renewal item_db, replace all item_db to item_db_re on modules/vending/index.php

and if you have refine til +20 in your server, add this
 

$refine = array(0=>"-", "+1", "+2", "+3", "+4", "+5", "+6", "+7","+8","+9","+10","+11","+12","+13","+14","+15","+16","+17","+18","+19","+20");
 
any chance to have it updated to use the new autotrade saving code instead of touching the source code that much? would be awesome!

 
if someone can reach him and see if he still got interest on this project, would be awesome! try:

rathena implemented their own src vending db(also web part they should do or already did dont know), my mod is not actual anymore
default_smile.png
we also implemented vending db for autotrade consistency, that is why we wanted you
default_tongue.png
also we like yours better xD
link to commit

 
he left us again xD hope he comes back soon, this is a great addon

 
Back
Top