enfokan2rd Posted May 9, 2020 Group: Members Topic Count: 6 Topics Per Day: 0.00 Content Count: 13 Reputation: 0 Joined: 08/13/18 Last Seen: January 8, 2024 Share Posted May 9, 2020 (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 May 9, 2020 by enfokan2rd Quote Link to comment Share on other sites More sharing options...
0 Patskie Posted May 9, 2020 Group: Members Topic Count: 50 Topics Per Day: 0.01 Content Count: 1702 Reputation: 241 Joined: 09/05/12 Last Seen: 8 hours ago Share Posted May 9, 2020 Can elaborate more what you want with these commands so people can help you Quote Link to comment Share on other sites More sharing options...
0 enfokan2rd Posted May 9, 2020 Group: Members Topic Count: 6 Topics Per Day: 0.00 Content Count: 13 Reputation: 0 Joined: 08/13/18 Last Seen: January 8, 2024 Author Share Posted May 9, 2020 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... Quote Link to comment Share on other sites More sharing options...
0 Emistry Posted May 10, 2020 Group: Forum Moderator Topic Count: 93 Topics Per Day: 0.02 Content Count: 10018 Reputation: 2369 Joined: 10/28/11 Last Seen: 22 hours ago Share Posted May 10, 2020 *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; } Quote Link to comment Share on other sites More sharing options...
0 enfokan2rd Posted May 12, 2020 Group: Members Topic Count: 6 Topics Per Day: 0.00 Content Count: 13 Reputation: 0 Joined: 08/13/18 Last Seen: January 8, 2024 Author Share Posted May 12, 2020 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 Quote Link to comment Share on other sites More sharing options...
0 darking123 Posted May 13, 2020 Group: Members Topic Count: 318 Topics Per Day: 0.07 Content Count: 931 Reputation: 13 Joined: 12/20/11 Last Seen: November 21, 2020 Share Posted May 13, 2020 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; } Quote Link to comment Share on other sites More sharing options...
0 Leon Wicked Posted July 5, 2021 Group: Members Topic Count: 2 Topics Per Day: 0.00 Content Count: 9 Reputation: 0 Joined: 06/07/21 Last Seen: July 10, 2021 Share Posted July 5, 2021 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? Quote Link to comment Share on other sites More sharing options...
0 LearningRO Posted July 5, 2021 Group: Members Topic Count: 107 Topics Per Day: 0.02 Content Count: 778 Reputation: 73 Joined: 02/10/12 Last Seen: 7 hours ago Share Posted July 5, 2021 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; Quote Link to comment Share on other sites More sharing options...
0 Leon Wicked Posted July 7, 2021 Group: Members Topic Count: 2 Topics Per Day: 0.00 Content Count: 9 Reputation: 0 Joined: 06/07/21 Last Seen: July 10, 2021 Share Posted July 7, 2021 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? Quote Link to comment Share on other sites More sharing options...
0 LearningRO Posted July 7, 2021 Group: Members Topic Count: 107 Topics Per Day: 0.02 Content Count: 778 Reputation: 73 Joined: 02/10/12 Last Seen: 7 hours ago Share Posted July 7, 2021 - 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; } Quote Link to comment Share on other sites More sharing options...
0 EmptyxXx Posted June 27, 2022 Group: Members Topic Count: 9 Topics Per Day: 0.00 Content Count: 22 Reputation: 1 Joined: 02/20/18 Last Seen: April 12 Share Posted June 27, 2022 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!"; } Quote Link to comment Share on other sites More sharing options...
Question
enfokan2rd
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 enfokan2rdLink to comment
Share on other sites
10 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.