Jump to content
  • 0

@v4point (like @cash command)


Question

Posted

Heya!

I want to request a new command like @cash.

I am using @cash for donors.

is someone can help me?

The new command will work exactly like cash does...

At command:

#v4point shadow.sk 10

In npc:

prontera,69,69,4	v4point	Kafra Hat 4 Points	123,{

Thank you in advance and any help will be appreciated

4 answers to this question

Recommended Posts

Posted

Well I don't exactly know how to add an exact system but...I could provide some info that may help you if you know how to put it together, I could but honestly I'm don't have RO to test in this computer, but here it is:

you could simply add a command that triggers a script label, so it would be something like this:

in atcommand.c

find:

AtCommandInfo atcommand_info[] = {

Add BEFORE / Above:

/*==========================================
* v4points (Trigger a script)
*------------------------------------------*/
int atcommand_vpoint(const int fd, struct map_session_data* sd, const char* command, const char* message)
{	
	npc_event(sd,"v4points_npc::OnGivePoints",0);
	return 0;
}

npc_event(sd,"NPC_NAME::NPC_LABEL",0);

find this again:

AtCommandInfo atcommand_info[] = {

add below:

 { "v4point",			  99,99,	 atcommand_vpoint },

----------------------------------------------------------------------------------------------

then you'd just have to add a script / NPC.

 -	script	v4points_npc	-1,{
end;

OnGivePoints:

/*
<-- SCRIPT GOES HERE -->
*/

} 

And to make up the script you could just base up of THIS...

I think that's pretty much all you need ^^;

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