Jump to content
  • 0

#cashpoints command


Gouki

Question


  • Group:  Members
  • Topic Count:  82
  • Topics Per Day:  0.06
  • Content Count:  241
  • Reputation:   11
  • Joined:  08/12/20
  • Last Seen:  

Hi!

Does anyone know how to show #cashpoint of a player?

on a GM Standpoint, #command.

something like #Showcash PLAYERNAME

Link to comment
Share on other sites

3 answers to this question

Recommended Posts

  • 1

  • Group:  Members
  • Topic Count:  18
  • Topics Per Day:  0.00
  • Content Count:  2044
  • Reputation:   682
  • Joined:  10/09/12
  • Last Seen:  

-	script	command_controller	-1,{
OnInit:
	bindatcmd("roks", strnpcinfo(0) +"::OnRoks", 99, 99);
	end;
OnRoks:
	if (!getstrlen(.@atcmd_parameters$)) {
		message strcharinfo(0), "Please input a player name.";
		end;
	}
	.@aid = getcharid(3, .@atcmd_parameters$);
	if (!.@aid) {
		message strcharinfo(0), "Player not online or not found.";
		end;
	}
	.@origin$ = strcharinfo(0);
	attachrid .@aid;
	message .@origin$, "This player has "+ #CASHPOINTS +" RoK Points";
	end;
}

com'on don't have to write everything out ... right ?

  • Upvote 1
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  18
  • Topics Per Day:  0.00
  • Content Count:  2044
  • Reputation:   682
  • Joined:  10/09/12
  • Last Seen:  

make a custom GM command via bindatcmd

Onaaa:
message strcharinfo(0), "This player has "+ getvar(#CASHPOINTS, getcharid(0, .@atcmd_parameters$)) +" cashpoints";

something like that

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  82
  • Topics Per Day:  0.06
  • Content Count:  241
  • Reputation:   11
  • Joined:  08/12/20
  • Last Seen:  

Hi @AnnieRuru

I actually have similar to what you have, but whenever I use the #command <Player Name> (not @command), nothing shows on my chat box..

-    script    command_controller    -1,{
OnInit:
    bindatcmd("roks", strnpcinfo(0) +"::OnRoks", 99, 99);
end;

OnRoks:
    message strcharinfo(0), "This player has "+ getvar(#CASHPOINTS, getcharid(0, .@atcmd_parameters$)) +" RoK Points";
end;
}

 

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