Jump to content
  • 0

[question] @autotrade / @at


myieee

Question


  • Group:  Members
  • Topic Count:  34
  • Topics Per Day:  0.01
  • Content Count:  83
  • Reputation:   0
  • Joined:  12/07/11
  • Last Seen:  

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


  • Group:  Members
  • Topic Count:  11
  • Topics Per Day:  0.00
  • Content Count:  383
  • Reputation:   109
  • Joined:  11/11/11
  • Last Seen:  

There is already a mapflag avaible for this. Got to conf/mapflag/novending.txt.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  34
  • Topics Per Day:  0.01
  • Content Count:  83
  • Reputation:   0
  • Joined:  12/07/11
  • Last Seen:  

What i mean is they can vend in a certain map but they wont allowed to use @autotrade .

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  19
  • Topics Per Day:  0.00
  • Content Count:  87
  • Reputation:   1
  • Joined:  11/20/11
  • Last Seen:  

   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

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  84
  • Topics Per Day:  0.02
  • Content Count:  550
  • Reputation:   9
  • Joined:  11/06/12
  • Last Seen:  

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

Link to comment
Share on other sites


  • Group:  Developer
  • Topic Count:  10
  • Topics Per Day:  0.00
  • Content Count:  2407
  • Reputation:   613
  • Joined:  07/05/12
  • Last Seen:  

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
Link to comment
Share on other sites

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.

×
×
  • Create New...