Jump to content
  • 0

#cash display message


Question

Posted

image.png.19dfe5d7159830a4b7257be52930f018.png

Hi all, 

Can someone help me add a display message on #cash? Unfortunately it doesn't show any message if you have successfully added cash using the # command.

maybe something like, "You have successfully added 1000 cash points to "player name". Total 1000 Points."

Is this possible?

7 answers to this question

Recommended Posts

  • 0
Posted
/* Add to your function collection */
function	script	F_GetCash	{
	#CASHPOINTS += getarg(0);
	dispbottom "You received "+getarg(0)+" Cash Points";
	end;
}

/* Item Script */
  - Id: 501
    AegisName: Red_Potion
    Name: Red Potion
    Type: Healing
    Buy: 50
    Weight: 70
    Script: |
      callfunc "F_GetCash",1000;  

 

  • 0
Posted
2 minutes ago, Almond Snicker said:

I'll give it a try later today, does it detect even if the character's name has spaces in between? I've made a basic bindatcommand before but when there's spaces, it can't be located. even if you add "" on it..

Yes it does read a character name between space no need to add "".

  • 0
Posted

I have the same problem, if I type #cash character(space)name(space)(ammount of cash) it says that I need to input the value, any clue on this?

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