Jump to content
  • 0
Sign in to follow this  
enfokan2rd

(Request) Costum Commands @Mall @quest @Dona etc...

Question

Posted (edited)

Blessings to all rAthena members ...👏

I would like to know how to add these types of commands, if it is not too much trouble someone could help me.

Thank you so much!😊

Edited by enfokan2rd

Share this post


Link to post
Share on other sites

5 answers to this question

Recommended Posts

  • 0

Can elaborate more what you want with these commands so people can help you

Share this post


Link to post
Share on other sites
  • 0
55 minutes ago, Patskie said:

Puede elaborar más lo que quiere con estos comandos para que las personas puedan ayudarlo

Sorry I did not know how to explain well ... I would like to have a... 
@mall command (that will take you to the Market)
@quest (to show you a Menu of quest)
@dona (that you can buy Donations)

I show you an example...

Screenshot_21.png

Screenshot_20.png

Share this post


Link to post
Share on other sites
  • 0
*bindatcmd "<command>","<NPC object name>::<event label>"{,<atcommand level>,<charcommand level>};

This command will bind a NPC event label to an atcommand. Upon execution of the
atcommand, the user will invoke the NPC event label. Each atcommand is only allowed
one binding. If you rebind, it will override the original binding.
Note: The default level for atcommand is 0 while the default level for charcommand is 100.

The following variables are set upon execution:
	[email protected]_command$       =  The name of the @command used.
	[email protected]_parameters$[]  =  Array containing the given parameters, starting from an index of 0.
	[email protected]_numparameters  =  The number of parameters defined.
-	script	atcmd_example	-1,{
OnInit:
	bindatcmd "mall",strnpcinfo(3) + "::OnAtcommand1";
	bindatcmd "quest",strnpcinfo(3) + "::OnAtcommand2";
	bindatcmd "dona",strnpcinfo(3) + "::OnAtcommand3";
	end;
	
OnAtcommand1:
	mes "You used "[email protected]_command$;
	close;

OnAtcommand2:
	mes "You used "[email protected]_command$;
	close;

OnAtcommand3:
	mes "You used "[email protected]_command$;
	close;
}

 

Share this post


Link to post
Share on other sites
  • 0

 

thank you very much I put it but it does not work I am new to these things I could prepare myself in a txt file, If you do not mind

 

Share this post


Link to post
Share on other sites
  • 0
13 hours ago, enfokan2rd said:

 

thank you very much I put it but it does not work I am new to these things I could prepare myself in a txt file, If you do not mind

 

you have to test what @Emistry provided. just add your likings. here is an example. 

 

type commands @mall,@market,@turbo_room then it will warp you to turbo_room with the x and y coordinates 99,111

 

-	script	go_mall	-1,{
OnInit:
	bindatcmd "mall",strnpcinfo(3)+"::Ongomallcom";
	bindatcmd "market",strnpcinfo(3)+"::Ongomallcom";
	bindatcmd "turbo_room",strnpcinfo(3)+"::Ongomallcom";
	end;
Ongomallcom:
	warp "turbo_room",99,111;
	end;
}

 

Share this post


Link to post
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.

Sign in to follow this  

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use and Privacy Policy.