Jump to content

Extended Vending System [1.9] cleanup & fix


Recommended Posts

Posted

try check src/map/buyingstore.h

make sure add vend_loot Struct of autotrader

 	char title[MESSAGE_SIZE]; ///< Store name
+	unsigned short vend_loot;		// Extended Vending system [Lilith]
 	uint32 limit; ///< Maximum zeny to be spent (for buyingstore)
 	uint16 count; ///< Number of item in store
 	struct s_autotrade_entry **entries; ///< Store details
Posted

 

try check src/map/buyingstore.h

make sure add vend_loot Struct of autotrader

 	char title[MESSAGE_SIZE]; ///< Store name
+	unsigned short vend_loot;		// Extended Vending system [Lilith]
 	uint32 limit; ///< Maximum zeny to be spent (for buyingstore)
 	uint16 count; ///< Number of item in store
 	struct s_autotrade_entry **entries; ///< Store details

cant find it here check my buyingstore.h

// Copyright (c) Athena Dev Teams - Licensed under GNU GPL
// For more information, see LICENCE in the main folder

#ifndef _BUYINGSTORE_H_
#define _BUYINGSTORE_H_

struct s_search_store_search;

#define MAX_BUYINGSTORE_SLOTS 5

struct s_buyingstore_item
{
	int price;
	unsigned short amount;
	unsigned short nameid;
};

struct s_buyingstore
{
	struct s_buyingstore_item items[MAX_BUYINGSTORE_SLOTS];
	int zenylimit;
	unsigned char slots;
};

char buyingstore_setup(struct map_session_data* sd, unsigned char slots);
char buyingstore_create(struct map_session_data* sd, int zenylimit, unsigned char result, const char* storename, const uint8* itemlist, unsigned int count);
void buyingstore_close(struct map_session_data* sd);
void buyingstore_open(struct map_session_data* sd, uint32 account_id);
void buyingstore_trade(struct map_session_data* sd, uint32 account_id, unsigned int buyer_id, const uint8* itemlist, unsigned int count);
bool buyingstore_search(struct map_session_data* sd, unsigned short nameid);
bool buyingstore_searchall(struct map_session_data* sd, const struct s_search_store_search* s);
DBMap *buyingstore_getdb(void);
void do_final_buyingstore(void);
void do_init_buyingstore(void);

void do_init_buyingstore_autotrade( void );
void buyingstore_reopen( struct map_session_data* sd );

#endif  // _BUYINGSTORE_H_

Posted (edited)

 

 

try check src/map/buyingstore.h

make sure add vend_loot Struct of autotrader

 	char title[MESSAGE_SIZE]; ///< Store name
+	unsigned short vend_loot;		// Extended Vending system [Lilith]
 	uint32 limit; ///< Maximum zeny to be spent (for buyingstore)
 	uint16 count; ///< Number of item in store
 	struct s_autotrade_entry **entries; ///< Store details

cant find it here check my buyingstore.h

// Copyright (c) Athena Dev Teams - Licensed under GNU GPL
// For more information, see LICENCE in the main folder

#ifndef _BUYINGSTORE_H_
#define _BUYINGSTORE_H_

struct s_search_store_search;

#define MAX_BUYINGSTORE_SLOTS 5

struct s_buyingstore_item
{
	int price;
	unsigned short amount;
	unsigned short nameid;
};

struct s_buyingstore
{
	struct s_buyingstore_item items[MAX_BUYINGSTORE_SLOTS];
	int zenylimit;
	unsigned char slots;
};

char buyingstore_setup(struct map_session_data* sd, unsigned char slots);
char buyingstore_create(struct map_session_data* sd, int zenylimit, unsigned char result, const char* storename, const uint8* itemlist, unsigned int count);
void buyingstore_close(struct map_session_data* sd);
void buyingstore_open(struct map_session_data* sd, uint32 account_id);
void buyingstore_trade(struct map_session_data* sd, uint32 account_id, unsigned int buyer_id, const uint8* itemlist, unsigned int count);
bool buyingstore_search(struct map_session_data* sd, unsigned short nameid);
bool buyingstore_searchall(struct map_session_data* sd, const struct s_search_store_search* s);
DBMap *buyingstore_getdb(void);
void do_final_buyingstore(void);
void do_init_buyingstore(void);

void do_init_buyingstore_autotrade( void );
void buyingstore_reopen( struct map_session_data* sd );

#endif  // _BUYINGSTORE_H_

 

What is your SVN version of rathena, I think yours isn't the newest one.

Edited by Darkpurple
Posted (edited)

When player opened vending and restart server, showed this error on map-server:

 

post-7538-0-06270900-1423262016_thumb.png

 

 

And the vending people doesn't reopen their shop when server restarted.......

Edited by Darkpurple
Posted

@Darkpurple

when disable Ex vending found problem ?

and Enable you can post GDB dump when map server crashing ?

Map Server didn't crashed.

The problem is When player opened vending and restart server, the vending people doesn't reopen their shop when server restarted......

  • 3 weeks later...
Posted

 

@Darkpurple

when disable Ex vending found problem ?

and Enable you can post GDB dump when map server crashing ?

Map Server didn't crashed.

The problem is When player opened vending and restart server, the vending people doesn't reopen their shop when server restarted......

 

 

I encounter the same problem even though im not using the extended patch and it's default setup of rA. maybe the problem is not the extended.

Posted

 

 

@Darkpurple

when disable Ex vending found problem ?

and Enable you can post GDB dump when map server crashing ?

Map Server didn't crashed.

The problem is When player opened vending and restart server, the vending people doesn't reopen their shop when server restarted......

 

 

I encounter the same problem even though im not using the extended patch and it's default setup of rA. maybe the problem is not the extended.

 

 

So do you mean this is the bug for original rathena ?

Posted

 

 

 

@Darkpurple

when disable Ex vending found problem ?

and Enable you can post GDB dump when map server crashing ?

Map Server didn't crashed.

The problem is When player opened vending and restart server, the vending people doesn't reopen their shop when server restarted......

 

 

I encounter the same problem even though im not using the extended patch and it's default setup of rA. maybe the problem is not the extended.

 

 

So do you mean this is the bug for original rathena ?

 

 

For me I did encounter it.. ill do a test and see what is the result..

  • 2 weeks later...
  • 2 weeks later...
Posted

Is it possible that you can add the feature that the you can modify the max value of specific item in vend.

Example : 

ITEMID : 7227

MAXVENDPRICE:1000

 

So the player can't vend it Overprice.

Posted

After buying an item from a vending char I got this warning

[Warning]: itemdb_search: Item ID 0 does not exists in the item_db. Using dummy data.

Any ideas why?

 

Im using latest git

 

It is not compatible with the last Git Rathena, few important bugs need to fixed...

Posted

 

After buying an item from a vending char I got this warning

[Warning]: itemdb_search: Item ID 0 does not exists in the item_db. Using dummy data.

Any ideas why?

 

Im using latest git

 

It is not compatible with the last Git Rathena, few important bugs need to fixed...

 

Seems working fine for me. But I just want to get rid of the warning XD

Posted

 

 

After buying an item from a vending char I got this warning

[Warning]: itemdb_search: Item ID 0 does not exists in the item_db. Using dummy data.

Any ideas why?

 

Im using latest git

 

It is not compatible with the last Git Rathena, few important bugs need to fixed...

 

Seems working fine for me. But I just want to get rid of the warning XD

 

 

Did you turned on autotrade function ?

The problem is When player opened vending and restart server, the vending people doesn't reopen their shop when server restarted...... 

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...