Jump to content

Extended Vending System [1.9] cleanup & fix


Napster

Recommended Posts


  • Group:  Members
  • Topic Count:  11
  • Topics Per Day:  0.00
  • Content Count:  196
  • Reputation:   72
  • Joined:  12/12/11
  • Last Seen:  

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
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  114
  • Topics Per Day:  0.03
  • Content Count:  298
  • Reputation:   4
  • Joined:  03/13/12
  • Last Seen:  

 

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_

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  9
  • Topics Per Day:  0.00
  • Content Count:  187
  • Reputation:   7
  • Joined:  09/04/12
  • Last Seen:  

 

 

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
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  114
  • Topics Per Day:  0.03
  • Content Count:  298
  • Reputation:   4
  • Joined:  03/13/12
  • Last Seen:  

2 days ago i installed that rathena usin git clone.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  9
  • Topics Per Day:  0.00
  • Content Count:  187
  • Reputation:   7
  • Joined:  09/04/12
  • Last Seen:  

2 days ago i installed that rathena usin git clone.

 

I make sure your one isn't the last Git of Rathena.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  162
  • Topics Per Day:  0.05
  • Content Count:  1546
  • Reputation:   192
  • Joined:  07/23/14
  • Last Seen:  

Make sure you guys are using rAthena.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  9
  • Topics Per Day:  0.00
  • Content Count:  187
  • Reputation:   7
  • Joined:  09/04/12
  • Last Seen:  

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
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  9
  • Topics Per Day:  0.00
  • Content Count:  187
  • Reputation:   7
  • Joined:  09/04/12
  • Last Seen:  

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

 

attachicon.gifQQ图片20150207063136.png

 

 

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

 

 

No one has this problem / bug ? This would be the serious bug.

Edited by Darkpurple
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  11
  • Topics Per Day:  0.00
  • Content Count:  196
  • Reputation:   72
  • Joined:  12/12/11
  • Last Seen:  

@Darkpurple

when disable Ex vending found problem ?
and Enable you can post GDB dump when map server crashing ?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  43
  • Topics Per Day:  0.01
  • Content Count:  400
  • Reputation:   5
  • Joined:  12/05/11
  • Last Seen:  

I really need this for eAthena..  /sob

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  9
  • Topics Per Day:  0.00
  • Content Count:  187
  • Reputation:   7
  • Joined:  09/04/12
  • Last Seen:  

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

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  9
  • Topics Per Day:  0.00
  • Content Count:  187
  • Reputation:   7
  • Joined:  09/04/12
  • Last Seen:  

oohh ~ it's working on me :3 ty for the fixed version. /heh/no1

Do you using last git and try to used autotrade?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  9
  • Topics Per Day:  0.00
  • Content Count:  187
  • Reputation:   7
  • Joined:  09/04/12
  • Last Seen:  

no I didn't, lol but its seems, not working right ?

 

If you try , you will got the bug same as mine. 

Link to comment
Share on other sites

  • 3 weeks later...

  • Group:  Members
  • Topic Count:  9
  • Topics Per Day:  0.00
  • Content Count:  187
  • Reputation:   7
  • Joined:  09/04/12
  • Last Seen:  

Not supported for the Last Git... /sob  /sob

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  162
  • Topics Per Day:  0.05
  • Content Count:  1546
  • Reputation:   192
  • Joined:  07/23/14
  • Last Seen:  

 

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

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  9
  • Topics Per Day:  0.00
  • Content Count:  187
  • Reputation:   7
  • Joined:  09/04/12
  • Last Seen:  

 

 

@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 ?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  162
  • Topics Per Day:  0.05
  • Content Count:  1546
  • Reputation:   192
  • Joined:  07/23/14
  • Last Seen:  

 

 

 

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

Link to comment
Share on other sites

  • 2 weeks later...

  • Group:  Members
  • Topic Count:  9
  • Topics Per Day:  0.00
  • Content Count:  187
  • Reputation:   7
  • Joined:  09/04/12
  • Last Seen:  

I am looking for someone can help me fixed the last rathena bug for this patch.
I am willing to pay for fixing. Please PM me.

Edited by Darkpurple
Link to comment
Share on other sites

  • 2 weeks later...

  • Group:  Members
  • Topic Count:  48
  • Topics Per Day:  0.01
  • Content Count:  173
  • Reputation:   6
  • Joined:  12/20/11
  • Last Seen:  

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.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  141
  • Topics Per Day:  0.03
  • Content Count:  444
  • Reputation:   22
  • Joined:  06/18/12
  • Last Seen:  

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

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  9
  • Topics Per Day:  0.00
  • Content Count:  187
  • Reputation:   7
  • Joined:  09/04/12
  • Last Seen:  

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

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  141
  • Topics Per Day:  0.03
  • Content Count:  444
  • Reputation:   22
  • Joined:  06/18/12
  • Last Seen:  

 

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

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  9
  • Topics Per Day:  0.00
  • Content Count:  187
  • Reputation:   7
  • Joined:  09/04/12
  • Last Seen:  

 

 

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

Link to comment
Share on other sites

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.

×
×
  • Create New...