Jump to content
  • 0

Question

Posted

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!

9 answers to this question

Recommended Posts

Posted

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++;
}
Posted

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!

Posted

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!

Posted

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

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.

  • Recently Browsing   0 members

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