Hercules Posted August 25, 2012 Posted August 25, 2012 How can i disable specific commands in a map?? Quote
-1 Emistry Posted August 29, 2012 Posted August 29, 2012 like this...you have to add a map check ~ OnAtcommand: if( strcharinfo(3) == "Mapname" ) end; atcommand "@autoloot"; end; 1 Quote
Arcenciel Posted August 27, 2012 Posted August 27, 2012 *bindatcmd "command","<NPC object name>::<event label>"{,<atcommand level>,<charcommand level>}; *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. Example: When a user types the command "@test", an angel effect will be shown. - script atcmd_example -1,{ OnInit: bindatcmd("test","atcmd_example::OnAtcommand"); end; OnAtcommand: specialeffect2 338; end; } Use this script command. Quote
Arcenciel Posted August 27, 2012 Posted August 27, 2012 http://rathena.org/w...pflag#nocommand Keyword: How can i disable specific commands in a map?? 1 Quote
Euphy Posted August 27, 2012 Posted August 27, 2012 Ah, kay. How would you use bindatcmd though? o.o Edit: oh, I suppose you could bind all available commands and do a map check that way. Quote
Arcenciel Posted August 27, 2012 Posted August 27, 2012 Ah, kay. How would you use bindatcmd though? o.o Edit: oh, I suppose you could bind all available commands and do a map check that way. Yea, mapchecks on whatever commands he needs. =P Quote
Hercules Posted August 29, 2012 Author Posted August 29, 2012 (edited) *bindatcmd "command","<NPC object name>::<event label>"{,<atcommand level>,<charcommand level>}; *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. Example: When a user types the command "@test", an angel effect will be shown. - script atcmd_example -1,{ OnInit: bindatcmd("test","atcmd_example::OnAtcommand"); end; OnAtcommand: specialeffect2 338; end; } Use this script command. is this right - script atcmd_example -1,{ OnInit: bindatcmd("autoloot","atcmd_example::OnAtcommand"); end; OnAtcommand: specialeffect2 338; end; Edited August 29, 2012 by SkyPirate Quote
Question
Hercules
How can i disable specific commands in a map??
9 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.