Jump to content
  • 0

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


enfokan2rd

Question


  • Group:  Members
  • Topic Count:  6
  • Topics Per Day:  0.00
  • Content Count:  13
  • Reputation:   0
  • Joined:  08/13/18
  • Last Seen:  

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
Link to comment
Share on other sites

10 answers to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  50
  • Topics Per Day:  0.01
  • Content Count:  1702
  • Reputation:   238
  • Joined:  09/05/12
  • Last Seen:  

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

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  6
  • Topics Per Day:  0.00
  • Content Count:  13
  • Reputation:   0
  • Joined:  08/13/18
  • Last Seen:  

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

Link to comment
Share on other sites

  • 0

  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10013
  • Reputation:   2345
  • Joined:  10/28/11
  • Last Seen:  

*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:
	.@atcmd_command$       =  The name of the @command used.
	.@atcmd_parameters$[]  =  Array containing the given parameters, starting from an index of 0.
	.@atcmd_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 "+.@atcmd_command$;
	close;

OnAtcommand2:
	mes "You used "+.@atcmd_command$;
	close;

OnAtcommand3:
	mes "You used "+.@atcmd_command$;
	close;
}

 

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  6
  • Topics Per Day:  0.00
  • Content Count:  13
  • Reputation:   0
  • Joined:  08/13/18
  • Last Seen:  

 

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

 

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  318
  • Topics Per Day:  0.07
  • Content Count:  931
  • Reputation:   13
  • Joined:  12/20/11
  • Last Seen:  

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;
}

 

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  2
  • Topics Per Day:  0.00
  • Content Count:  9
  • Reputation:   0
  • Joined:  06/07/21
  • Last Seen:  

this script is cool, but how about if we could at least 5seconds loading bar above the player before transporting to the questroom or mall so they can't abuse it and bail out during pvp?

 

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  107
  • Topics Per Day:  0.02
  • Content Count:  770
  • Reputation:   69
  • Joined:  02/10/12
  • Last Seen:  

1 hour ago, Leon Wicked said:

this script is cool, but how about if we could at least 5seconds loading bar above the player before transporting to the questroom or mall so they can't abuse it and bail out during pvp?

 

just disable it that commadn on pvp/gvg map
if (getmapflag(strcharinfo(3),mf_pvp)||getmapflag(strcharinfo(3),mf_gvg)) end;

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  2
  • Topics Per Day:  0.00
  • Content Count:  9
  • Reputation:   0
  • Joined:  06/07/21
  • Last Seen:  

On 7/5/2021 at 11:43 PM, LearningRO said:

just disable it that commadn on pvp/gvg map
if (getmapflag(strcharinfo(3),mf_pvp)||getmapflag(strcharinfo(3),mf_gvg)) end;

Hey bro! Thank you for taking time replying on this question of mine, btw where should I add that again?

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  107
  • Topics Per Day:  0.02
  • Content Count:  770
  • Reputation:   69
  • Joined:  02/10/12
  • Last Seen:  

-	script	go_mall	-1,{
OnInit:
	bindatcmd "mall",strnpcinfo(3)+"::Ongomallcom";
	bindatcmd "market",strnpcinfo(3)+"::Ongomallcom";
	bindatcmd "turbo_room",strnpcinfo(3)+"::Ongomallcom";
	end;
Ongomallcom:
        if (getmapflag(strcharinfo(3),mf_pvp)||getmapflag(strcharinfo(3),mf_gvg)) end;
	warp "turbo_room",99,111;
	end;
}
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  9
  • Topics Per Day:  0.00
  • Content Count:  22
  • Reputation:   1
  • Joined:  02/20/18
  • Last Seen:  

TRY THIS:

-    script    mall_atcommand#1    -1,{
OnInit:
    bindatcmd "mall",strnpcinfo(3)+"::OnDo",0,99;
    end;

OnDo:

if (getmapflag(strcharinfo(3),mf_quest)) {
getmapxy (.@map$, .@x, .@y, BL_PC);
mes "[ ^d30e00Warp manager^000000 ]";
mes "You must be in town first for you to use this command.";
mes "You may type @mall";
dispbottom "[ Warp manager ]";
dispbottom "Please be in a town first!";
end;
}


warp "prontera",238,63;
dispbottom "[ Warp manager ]";
dispbottom "Welcome to the Mall Area!";
}
 

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