Jump to content

Recommended Posts

Posted (edited)

It had bug with newest rathena with this feature:

 

// Autotrade persistency (Note 1)

// Should vendors that used @autotrade be restored after a restart?

feature.autotrade: on

 

Need to fix

SQL

CREATE TABLE IF NOT EXISTS `vending_items` (
  `vending_id` int(10) unsigned NOT NULL,
  `index` smallint(5) unsigned NOT NULL,
  `cartinventory_id` int(10) unsigned NOT NULL,
  `amount` smallint(5) unsigned NOT NULL,
  `price` int(10) unsigned NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
need add `type` int(10) unsigned NOT NULL for item you vend.

Vending.c

if( Sql_Query( mmysql_handle, "INSERT INTO `%s`(`vending_id`,`index`,`cartinventory_id`,`amount`,`price`) VALUES( %d, %d, %d, %d, %d );", vending_items_db, sd->vender_id, i, sd->status.cart[sd->vending[i].index].id, sd->vending[i].amount, sd->vending[i].value ) != SQL_SUCCESS ){
need to get item type that you vend to insert to the database.

void vending_reopen( struct map_session_data* sd ){
need add variable item type that you vend.

if you want to fix this faster, help each other.

Edited by solid2005
Posted

 

It had bug with newest rathena with this feature:

 

// Autotrade persistency (Note 1)

// Should vendors that used @autotrade be restored after a restart?

feature.autotrade: on

 

Need to fix

SQL

CREATE TABLE IF NOT EXISTS `vending_items` (
  `vending_id` int(10) unsigned NOT NULL,
  `index` smallint(5) unsigned NOT NULL,
  `cartinventory_id` int(10) unsigned NOT NULL,
  `amount` smallint(5) unsigned NOT NULL,
  `price` int(10) unsigned NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
need add `type` int(10) unsigned NOT NULL for item you vend.

Vending.c

if( Sql_Query( mmysql_handle, "INSERT INTO `%s`(`vending_id`,`index`,`cartinventory_id`,`amount`,`price`) VALUES( %d, %d, %d, %d, %d );", vending_items_db, sd->vender_id, i, sd->status.cart[sd->vending[i].index].id, sd->vending[i].amount, sd->vending[i].value ) != SQL_SUCCESS ){
need to get item type that you vend to insert to the database.

void vending_reopen( struct map_session_data* sd ){
need add variable item type that you vend.

if you want to fix this faster, help each other.

 

im somehow confused with these XD

  • 2 weeks later...
Posted (edited)

Hi guys ,

 

i manage to make zeny and cash work,

 

but my problem is :

 

I manually add item_vending.txt in my db folder because it doesnt exist in revision " 12094 "

svn i'm using is https://github.com/rathena/rathena.git

 

is this the reason why the

 

Item(your desired item) - purchase item using your desired items..(Example: TCG-7227)

 

is not showing on my list ???

 

Please help ....

 

post-20583-0-75991600-1397615164_thumb.png

Edited by rmon008
Posted

Hi guys im using rAmod Emulator.

but i got some errors/problem with Extended Vending system



1st   ) I'll use vending skill
2nd  ) i Choose Credit
3rd  ) im sample vend my cards for 20credits each
4th : ) then vending is Ok. vending name [Credit]Selling Cards

5th ) my dual character has 30credits to buy my vending cards

Here is my problem
6: )) Once i buy my Vending card for 20credits my credits on inventory not lost
and for my vending character said "Sold out Turtle general you gained 20zeny"

Please i need help /hmm

i dont know what is the problem . :(

Sorry for my bad english :(
im not professional :(


PLEASE PELASE !


help!

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...