Jump to content
  • 0

show cash points


maxmum

Question


  • Group:  Members
  • Topic Count:  1
  • Topics Per Day:  0.00
  • Content Count:  4
  • Reputation:   0
  • Joined:  01/18/13
  • Last Seen:  

Hello guys, I need show cash points in chat.
like in old version @cash
help me pls

Link to comment
Share on other sites

7 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  40
  • Topics Per Day:  0.01
  • Content Count:  587
  • Reputation:   104
  • Joined:  11/19/11
  • Last Seen:  


  • Group:  Members
  • Topic Count:  1
  • Topics Per Day:  0.00
  • Content Count:  4
  • Reputation:   0
  • Joined:  01/18/13
  • Last Seen:  

thxm I already make it.


and if I use #cashpoint or @cash (value) information add in sql table

information recorded only account_id, but I need char_id.

Maybe you know how changed to char_id?


maybe here?

    case 2: //Account reg
        if( !strcmp(reg,"#CASHPOINTS") && sd->cashPoints != val )
        {
            val = cap_value(val, 0, MAX_ZENY);
            sd->cashPoints = val;
        }
        else if( !strcmp(reg,"#KAFRAPOINTS") && sd->kafraPoints != val )
        {
            val = cap_value(val, 0, MAX_ZENY);
            sd->kafraPoints = val;
        }
        sd_reg = sd->save_reg.account;
        max = &sd->save_reg.account_num;
        regmax = ACCOUNT_REG_NUM;
    break;

it's pc.c

Edited by maxmum
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  1
  • Topics Per Day:  0.00
  • Content Count:  4
  • Reputation:   0
  • Joined:  01/18/13
  • Last Seen:  

because cashpoint save in account_id. I need save cash point in char_id .(for every char not for account)

Edited by maxmum
Link to comment
Share on other sites


  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10015
  • Reputation:   2348
  • Joined:  10/28/11
  • Last Seen:  

you mean change  the cashpoint to player based and not account based ??

 

then just use

CASHPOINTS     <-------- player based variable
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  1
  • Topics Per Day:  0.00
  • Content Count:  4
  • Reputation:   0
  • Joined:  01/18/13
  • Last Seen:  

yea, I want use cashpoint for players not for account.

 

I'm not understand yet.

What I need to do?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  50
  • Topics Per Day:  0.01
  • Content Count:  1702
  • Reputation:   238
  • Joined:  09/05/12
  • Last Seen:  

Use CASHPOINTS instead of #CASHPOINTS

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