Jump to content
  • 0

[question] @autotrade / @at


Question

5 answers to this question

Recommended Posts

Posted

   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

Posted

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

Posted (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 by Capuche

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...