myieee Posted February 5, 2012 Posted February 5, 2012 how to disable @autotrade / @at in a certain map for example prontera ! Quote
Aerie Posted February 5, 2012 Posted February 5, 2012 There is already a mapflag avaible for this. Got to conf/mapflag/novending.txt. Quote
myieee Posted February 5, 2012 Author Posted February 5, 2012 What i mean is they can vend in a certain map but they wont allowed to use @autotrade . Quote
Legato Posted February 5, 2012 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
Erba Posted December 29, 2012 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
Capuche Posted December 29, 2012 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
Question
myieee
how to disable @autotrade / @at in a certain map for example prontera !
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.