Jump to content
  • 0

Increasing Vending Item Limit


rootKid

Question


  • Group:  Members
  • Topic Count:  24
  • Topics Per Day:  0.01
  • Content Count:  83
  • Reputation:   11
  • Joined:  11/28/11
  • Last Seen:  

The official maximum of only 12 items able to be vended is very restricting.

Is it possible to increase the maximum number of items that can be vended?

Has anyone ever done it? If so, how can it be done? Is client hexing really involved? 

 


It offers no clear solution.

 

Merely editting the MAX_VENDING in map.h does not seem to be the solution.

 

Has no one figured it out even after all these years? I'd really appreciate the support in figuring this out. It'd be a great accomplishment.

Edited by kou
Link to comment
Share on other sites

6 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  27
  • Topics Per Day:  0.01
  • Content Count:  135
  • Reputation:   13
  • Joined:  06/20/12
  • Last Seen:  

This is probably defined by the client, therefore you would have to edit the client source code, something nobody but Gravity possess.

That's why nobody did it.

Of course you can try to decompile and edit it, but this require specific knowledge that few possess.

@Edit

I'm not 100% sure that there is a client condition about this. Thinking deeper, maybe it's possible for you to use a common npc shop, as the player vending?

Edited by Moriarty
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  24
  • Topics Per Day:  0.01
  • Content Count:  83
  • Reputation:   11
  • Joined:  11/28/11
  • Last Seen:  

Utilizing npc shops for player vending is truly a brilliant concept.

How would one go about accomplishing this? More input would greatly be appreciated.

Edited by kou
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  27
  • Topics Per Day:  0.01
  • Content Count:  135
  • Reputation:   13
  • Joined:  06/20/12
  • Last Seen:  

Oh, it would require a lot of dedication and understanding of the emulator source, I'm not the most recomended person to tell you how.

I would search the packets each one use, the function each one use, try to copy the shop function for the vending one, using the list of itens that was on the vending function.

Something like that, you'll need to go deep on the code haha

Good Luck

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  24
  • Topics Per Day:  0.01
  • Content Count:  83
  • Reputation:   11
  • Joined:  11/28/11
  • Last Seen:  

Well I've learned about a solution after contacting goddameit, who apparently knows how to do it:

 

I haven't find limit on client side, but yes, it can be over 12

 

http://i.imgur.com/aYLfEyx.gif

 

Increase MAX_VENDING and add a skip from client menu

 

You just need to create some new functions to set vending list and also a bool for doing detour.

 

So client-side edits are unnecessary according to him. Unfortunately, goddameit refused to provide me with the exact edits that must be made, so is there another expert that can be help me achieve what he has suggested?

Edited by kou
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  24
  • Topics Per Day:  0.01
  • Content Count:  83
  • Reputation:   11
  • Joined:  11/28/11
  • Last Seen:  

BUMP

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  25
  • Topics Per Day:  0.01
  • Content Count:  509
  • Reputation:   80
  • Joined:  11/20/11
  • Last Seen:  

map.h
 

#define MAX_VENDING 12

------------------------------------------------------

take a look at the blacksmith head, his facing to a npc.
i thought goddam use script_command to open vending

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
Answer this question...

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