myieee Posted February 5, 2012 Group: Members Topic Count: 34 Topics Per Day: 0.01 Content Count: 83 Reputation: 0 Joined: 12/07/11 Last Seen: November 29, 2020 Share Posted February 5, 2012 how to disable @autotrade / @at in a certain map for example prontera ! Quote Link to comment Share on other sites More sharing options...
Aerie Posted February 5, 2012 Group: Members Topic Count: 11 Topics Per Day: 0.00 Content Count: 383 Reputation: 110 Joined: 11/11/11 Last Seen: August 2, 2017 Share Posted February 5, 2012 There is already a mapflag avaible for this. Got to conf/mapflag/novending.txt. Quote Link to comment Share on other sites More sharing options...
myieee Posted February 5, 2012 Group: Members Topic Count: 34 Topics Per Day: 0.01 Content Count: 83 Reputation: 0 Joined: 12/07/11 Last Seen: November 29, 2020 Author Share Posted February 5, 2012 What i mean is they can vend in a certain map but they wont allowed to use @autotrade . Quote Link to comment Share on other sites More sharing options...
Legato Posted February 5, 2012 Group: Members Topic Count: 19 Topics Per Day: 0.00 Content Count: 87 Reputation: 1 Joined: 11/20/11 Last Seen: September 10, 2013 Share Posted February 5, 2012 if( sd->bl.m == map_mapname2mapid("prontera") ) { clif_displaymessage(fd,"You can't @autotrade/@at on prontera!"); return -0; } Add it under ACMD_FUNC(autotrade) on atcommand.c Quote Link to comment Share on other sites More sharing options...
Erba Posted December 29, 2012 Group: Members Topic Count: 84 Topics Per Day: 0.02 Content Count: 550 Reputation: 9 Joined: 11/06/12 Last Seen: August 14, 2014 Share Posted December 29, 2012 if( sd->bl.m == map_mapname2mapid("prontera") ) { clif_displaymessage(fd,"You can't @autotrade/@at on prontera!"); return -0; } Add it under ACMD_FUNC(autotrade) on atcommand.c sir i have a question... whenever i uses @at or @autotrade it always says autotrade is not allowed in this map...i did try to use @at or @autotrade to all maps but still i cant use it.. the novending.txt have nothing inside it, which means i can vend to all places, but autotrade is my problem using revision 16797 using client 2012-04-10aRagexeRE Quote Link to comment Share on other sites More sharing options...
Capuche Posted December 29, 2012 Group: Developer Topic Count: 10 Topics Per Day: 0.00 Content Count: 2407 Reputation: 616 Joined: 07/05/12 Last Seen: March 20 Share Posted December 29, 2012 (edited) Why don't you used a NPC script ? - script atcmd_autotrade -1,{ OnInit: bindatcmd("autotrade","atcmd_autotrade::Onautotrade"); bindatcmd("at","atcmd_autotrade::Onautotrade"); end; Onautotrade: if( strcharinfo(3) == "prontera" ) { message strcharinfo(0),"Not allowed here."; end; } atcommand "@autotrade"; end; } Remove your source modification about autotrade. Edit: Forget it. See that. Edited December 30, 2012 by Capuche Quote Link to comment Share on other sites More sharing options...
Question
myieee
how to disable @autotrade / @at in a certain map for example prontera !
Link to comment
Share on other sites
5 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.