Jump to content
  • 0

(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

10 answers to this question

Recommended Posts

  • 0
Posted
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

  • 0
Posted
*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;
}

 

  • 0
Posted
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;
}

 

  • 0
Posted

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?

 

  • 0
Posted
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;

  • 0
Posted
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?

  • 0
Posted
-	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;
}
  • 0
Posted

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

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