Jump to content
  • 0

@whobuy command?


johnbond

Question


  • Group:  Members
  • Topic Count:  113
  • Topics Per Day:  0.03
  • Content Count:  457
  • Reputation:   11
  • Joined:  02/17/13
  • Last Seen:  

Hi guys!

 

Does anybody know where to get the codes for the @whobuy command? One player of mine stated that this command is already present in other servers. Its almost similar to @shopsearch but instead of displaying who sells the item, it displays who buys them (players using buying store).

 

Anyone has this? or maybe I can request on to be coded for me? I can pay for the service.

 

Please let me know.

 

Any help is greatly appreciated.

 

Thank you!

Link to comment
Share on other sites

9 answers to this question

Recommended Posts


  • Group:  Developer
  • Topic Count:  153
  • Topics Per Day:  0.04
  • Content Count:  2285
  • Reputation:   745
  • Joined:  06/16/12
  • Last Seen:  

try change the

if( pl_sd->buyer_id ) //check if player is autobuying

becomes

if( pl_sd->state.buyingstore ) //check if player is autobuying

 

it because buyer_id problem, on buyingstore.c, this function return 0 for the first buyer.

static unsigned int buyingstore_nextid = 0;
 
static unsigned int buyingstore_getuid(void)
{
    return buyingstore_nextid++;
}
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  113
  • Topics Per Day:  0.03
  • Content Count:  457
  • Reputation:   11
  • Joined:  02/17/13
  • Last Seen:  

Try this.

Oh thanks!

 

Was this tested and working?

 

Because I tried it but it doesnt work. There were no errors when recompiling though.  I opened a buying store for poison spore (7033) and I used a second account to type @whobuy 7033 but it just said "Nobody buying it now.".

 

Was this tested to fully work? Or perhaps I did something wrong.

 

Thanks my friend!

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  113
  • Topics Per Day:  0.03
  • Content Count:  457
  • Reputation:   11
  • Joined:  02/17/13
  • Last Seen:  

try change the

 

if( pl_sd->buyer_id ) //check if player is autobuying

becomes

 

if( pl_sd->state.buyingstore ) //check if player is autobuying

 

it because buyer_id problem, on buyingstore.c, this function return 0 for the first buyer.

 

static unsigned int buyingstore_nextid = 0;
 
static unsigned int buyingstore_getuid(void)
{
    return buyingstore_nextid++;
}

 

 

@

Cydh

 

Nice its working! You're good hehe.

 

Thanks!

Link to comment
Share on other sites


  • Group:  Developer
  • Topic Count:  153
  • Topics Per Day:  0.04
  • Content Count:  2285
  • Reputation:   745
  • Joined:  06/16/12
  • Last Seen:  

interesting, best answer for self post. /ho

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  48
  • Topics Per Day:  0.01
  • Content Count:  1125
  • Reputation:   236
  • Joined:  07/30/12
  • Last Seen:  

interesting, best answer for self post. /ho

 

Lmao :P

Link to comment
Share on other sites


  • Group:  Developer
  • Topic Count:  153
  • Topics Per Day:  0.04
  • Content Count:  2285
  • Reputation:   745
  • Joined:  06/16/12
  • Last Seen:  

Lmao :P

then talk with my hand  /bo

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  113
  • Topics Per Day:  0.03
  • Content Count:  457
  • Reputation:   11
  • Joined:  02/17/13
  • Last Seen:  

interesting, best answer for self post. /ho

Oh sorry wrong click hehe.

 

Thank you for the fix. Working!

 

 

EDIT: Thank you for Anakid also for giving the @whobuy codes!!!

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  65
  • Topics Per Day:  0.02
  • Content Count:  235
  • Reputation:   0
  • Joined:  05/03/13
  • Last Seen:  

Try this.

is there manually patch ?

so i can copy and paste it in atcommand.c 

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