Hercules Posted August 25, 2012 Group: Members Topic Count: 39 Topics Per Day: 0.01 Content Count: 104 Reputation: 1 Joined: 05/04/12 Last Seen: November 16, 2012 Share Posted August 25, 2012 How can i disable specific commands in a map?? Quote Link to comment Share on other sites More sharing options...
-1 Emistry Posted August 29, 2012 Group: Forum Moderator Topic Count: 93 Topics Per Day: 0.02 Content Count: 10017 Reputation: 2369 Joined: 10/28/11 Last Seen: 16 hours ago Share Posted August 29, 2012 like this...you have to add a map check ~ OnAtcommand: if( strcharinfo(3) == "Mapname" ) end; atcommand "@autoloot"; end; 1 Quote Link to comment Share on other sites More sharing options...
Arcenciel Posted August 27, 2012 Group: Members Topic Count: 69 Topics Per Day: 0.01 Content Count: 1315 Reputation: 372 Joined: 12/10/11 Last Seen: August 31, 2013 Share 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 Link to comment Share on other sites More sharing options...
Euphy Posted August 27, 2012 Group: Members Topic Count: 72 Topics Per Day: 0.02 Content Count: 2997 Reputation: 1132 Joined: 05/27/12 Last Seen: June 1, 2017 Share Posted August 27, 2012 http://rathena.org/wiki/Mapflag#nocommand Quote Link to comment Share on other sites More sharing options...
Arcenciel Posted August 27, 2012 Group: Members Topic Count: 69 Topics Per Day: 0.01 Content Count: 1315 Reputation: 372 Joined: 12/10/11 Last Seen: August 31, 2013 Share Posted August 27, 2012 http://rathena.org/w...pflag#nocommand Keyword: How can i disable specific commands in a map?? 1 Quote Link to comment Share on other sites More sharing options...
Euphy Posted August 27, 2012 Group: Members Topic Count: 72 Topics Per Day: 0.02 Content Count: 2997 Reputation: 1132 Joined: 05/27/12 Last Seen: June 1, 2017 Share 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 Link to comment Share on other sites More sharing options...
Arcenciel Posted August 27, 2012 Group: Members Topic Count: 69 Topics Per Day: 0.01 Content Count: 1315 Reputation: 372 Joined: 12/10/11 Last Seen: August 31, 2013 Share 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 Link to comment Share on other sites More sharing options...
Hercules Posted August 27, 2012 Group: Members Topic Count: 39 Topics Per Day: 0.01 Content Count: 104 Reputation: 1 Joined: 05/04/12 Last Seen: November 16, 2012 Author Share Posted August 27, 2012 Thanks!! Quote Link to comment Share on other sites More sharing options...
Hercules Posted August 29, 2012 Group: Members Topic Count: 39 Topics Per Day: 0.01 Content Count: 104 Reputation: 1 Joined: 05/04/12 Last Seen: November 16, 2012 Author Share 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 Link to comment Share on other sites More sharing options...
Hercules Posted August 29, 2012 Group: Members Topic Count: 39 Topics Per Day: 0.01 Content Count: 104 Reputation: 1 Joined: 05/04/12 Last Seen: November 16, 2012 Author Share Posted August 29, 2012 Thanks a lot!! Quote Link to comment Share on other sites More sharing options...
Question
Hercules
How can i disable specific commands in a map??
Link to comment
Share on other sites
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.