Jump to content
  • 0

How to know when #cash is added successfully to the player


Meister

Question


  • Group:  Members
  • Topic Count:  280
  • Topics Per Day:  0.06
  • Content Count:  841
  • Reputation:   17
  • Joined:  04/16/12
  • Last Seen:  

Since there is no notification that the player has received.. If possible any snippets wherein GM can know if #cash command was successfully used to player..

Link to comment
Share on other sites

19 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  81
  • Topics Per Day:  0.02
  • Content Count:  1654
  • Reputation:   583
  • Joined:  08/09/12
  • Last Seen:  

We need to know first, how does your server add cashpoints to your players.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  60
  • Topics Per Day:  0.01
  • Content Count:  562
  • Reputation:   219
  • Joined:  11/22/11
  • Last Seen:  

We need to know first, how does your server add cashpoints to your players.

 

he said he use ''#cash <player name> <amount>''

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  280
  • Topics Per Day:  0.06
  • Content Count:  841
  • Reputation:   17
  • Joined:  04/16/12
  • Last Seen:  

We need to know first, how does your server add cashpoints to your players.

by..

 

 

We need to know first, how does your server add cashpoints to your players.

 

he said he use ''#cash <player name> <amount>''

Just this command set by rathena.. How can I know if it is successfully done? Cause only the player who will be receiving the cash points receive such message such as.. 10 Cash points has added to you..

E.G. If I want to give someone cash points.. like #cash Player 10 .. GM will also have "cash successfully added to Player.. His balance is now "new" from old"" like this..

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  280
  • Topics Per Day:  0.06
  • Content Count:  841
  • Reputation:   17
  • Joined:  04/16/12
  • Last Seen:  

Bumpy bumpy.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  16
  • Topics Per Day:  0.00
  • Content Count:  326
  • Reputation:   47
  • Joined:  04/01/12
  • Last Seen:  

move this on  Suggestion Section

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  280
  • Topics Per Day:  0.06
  • Content Count:  841
  • Reputation:   17
  • Joined:  04/16/12
  • Last Seen:  

How can I move it there?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  41
  • Topics Per Day:  0.01
  • Content Count:  137
  • Reputation:   1
  • Joined:  02/02/13
  • Last Seen:  

conf/battle/misc.conf
 

// Whether or not gaining and loosing of cash points is displayed (Note 1).
// Default: no
cashshop_show_points: yes

Edited by leertaste
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  280
  • Topics Per Day:  0.06
  • Content Count:  841
  • Reputation:   17
  • Joined:  04/16/12
  • Last Seen:  

conf/battle/misc.conf

 

// Whether or not gaining and loosing of cash points is displayed (Note 1).

// Default: no

cashshop_show_points: yes

 

I know this. But this isn't what I need. Like what I said. E.G. If admin/GM gives cash to player. He/She will receive a notification that. Player has successfully received cash. And it'll show the players new cash amount as well as the old.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  41
  • Topics Per Day:  0.01
  • Content Count:  137
  • Reputation:   1
  • Joined:  02/02/13
  • Last Seen:  

Maybe want to try this?

cashconf.txt

 

Look at the Header of Script (not by me)

 

or you can try this:

 

transfer.txt

 

Transfer will let you Transfer cash/zeny to another player buy typing his name (with display)

Edited by leertaste
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  280
  • Topics Per Day:  0.06
  • Content Count:  841
  • Reputation:   17
  • Joined:  04/16/12
  • Last Seen:  

Thanks for the script. But hoping it was like activated automatically after using the commad

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  41
  • Topics Per Day:  0.01
  • Content Count:  137
  • Reputation:   1
  • Joined:  02/02/13
  • Last Seen:  

With source edits I really can't help you..

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  16
  • Topics Per Day:  0.00
  • Content Count:  737
  • Reputation:   216
  • Joined:  11/29/11
  • Last Seen:  

For a wide solution for all #command that quite an issue since we don't usually return different values as result of function but just ask clif. But maybe we could do it via fd.

Anyway more more hacky/function specific you could change :
clif_disp_onlyself(sd, output, strlen(output));
to something like
clif_GlobalMessage(sd->bl,output);
wich will then display the result on player as a globalchat message so if you in range you could see it. (and all nearby client)

 

or you could rewritte function to take a nickname as parameter like this:
if(!message || !*message || sscanf(message, "%d %s", &value, nickname) < 1)...
then map nickname to an session data, tsd=map_nick2sd(nickname);
change command to effectuate on tsd then you can now display result on sd and tsd. (usage is then @cash 100 lighta) will give 100 point to lighta), ofc if no nickname found do something like tsd=sd so it will be on self amd there you go.

or you could do some logs.
 

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  280
  • Topics Per Day:  0.06
  • Content Count:  841
  • Reputation:   17
  • Joined:  04/16/12
  • Last Seen:  

For a wide solution for all #command that quite an issue since we don't usually return different values as result of function but just ask clif. But maybe we could do it via fd.

Anyway more more hacky/function specific you could change :

clif_disp_onlyself(sd, output, strlen(output));

to something like

clif_GlobalMessage(sd->bl,output);

wich will then display the result on player as a globalchat message so if you in range you could see it. (and all nearby client)

 

or you could rewritte function to take a nickname as parameter like this:

if(!message || !*message || sscanf(message, "%d %s", &value, nickname) < 1)...

then map nickname to an session data, tsd=map_nick2sd(nickname);

change command to effectuate on tsd then you can now display result on sd and tsd. (usage is then @cash 100 lighta) will give 100 point to lighta), ofc if no nickname found do something like tsd=sd so it will be on self amd there you go.

or you could do some logs.

 

 

Seriously, didn't understand lol. Hahaha. Wonder if you can make a patch for it lighta? thanks!

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  16
  • Topics Per Day:  0.00
  • Content Count:  326
  • Reputation:   47
  • Joined:  04/01/12
  • Last Seen:  

@lightha can devs just update/modify #cash to show a messasge ("Name of invoked player": cash aquisition succesfull: given point "number", current cash "number") something like this on the user/GM who uses it

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  16
  • Topics Per Day:  0.00
  • Content Count:  737
  • Reputation:   216
  • Joined:  11/29/11
  • Last Seen:  

@frenzmu06, no since that is just for one command only but the issues might be repeated for other charcommand, so if dev focus on this we need to have a more generique approch. Still that kinda highlight the need of gm to have the result as well for charcommand.

 

@Gnome that was 3 different solution, choose one and I might do a tmp patch if I have time :

-1) do you mind having result widely show to nearby client ?

-2) do you want change atcommand to support nickname and being use as atcommand (so charcommand will be kinda useless then) ?

-3) do you want log and check the result in sql ?

I think sol3 doesn't give feedback fast enough and sol1 not that perfect for privacy but kinda the easiest.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  280
  • Topics Per Day:  0.06
  • Content Count:  841
  • Reputation:   17
  • Joined:  04/16/12
  • Last Seen:  

@frenzmu06, no since that is just for one command only but the issues might be repeated for other charcommand, so if dev focus on this we need to have a more generique approch. Still that kinda highlight the need of gm to have the result as well for charcommand.

 

@Gnome that was 3 different solution, choose one and I might do a tmp patch if I have time :

-1) do you mind having result widely show to nearby client ?

-2) do you want change atcommand to support nickname and being use as atcommand (so charcommand will be kinda useless then) ?

-3) do you want log and check the result in sql ?

I think sol3 doesn't give feedback fast enough and sol1 not that perfect for privacy but kinda the easiest.

 

I think I can go for solution no.3. But if there's more faster way to know it then any solution would do. Or.. for now 1, is it not possible not to announce to near client? Heheh. Thanks lighta!

Edited by Gnome
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  15
  • Topics Per Day:  0.00
  • Content Count:  139
  • Reputation:   2
  • Joined:  07/05/12
  • Last Seen:  

i wonder if number 3 can be seen from flux CP GM account too. .for each cash point given have the log :o (more better if giving cash from flux CP admin panel too)

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  280
  • Topics Per Day:  0.06
  • Content Count:  841
  • Reputation:   17
  • Joined:  04/16/12
  • Last Seen:  

i wonder if number 3 can be seen from flux CP GM account too. .for each cash point given have the log :o (more better if giving cash from flux CP admin panel too)

 

to @lighta, this could be great. Just from flux CP account only higher GM or ADMINS. Lol.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  16
  • Topics Per Day:  0.00
  • Content Count:  737
  • Reputation:   216
  • Joined:  11/29/11
  • Last Seen:  

sorry  been a while but that log function was introduce by Lemon in r17142, so here you go you can now see if he receive the cash and or points correctly in cash_log table.

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