enfokan2rd Posted May 9, 2020 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
0 Patskie Posted May 9, 2020 Posted May 9, 2020 Can elaborate more what you want with these commands so people can help you Quote
0 enfokan2rd Posted May 9, 2020 Author 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
0 Emistry Posted May 10, 2020 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
0 enfokan2rd Posted May 12, 2020 Author 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
0 darking123 Posted May 13, 2020 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
0 Leon Wicked Posted July 5, 2021 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
0 LearningRO Posted July 5, 2021 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
0 Leon Wicked Posted July 7, 2021 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
0 LearningRO Posted July 7, 2021 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
0 EmptyxXx Posted June 27, 2022 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
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 enfokan2rd10 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.