Jump to content
  • 0

How to set mapflag for autotrade


khalimandor

Question


  • Group:  Members
  • Topic Count:  2
  • Topics Per Day:  0.00
  • Content Count:  5
  • Reputation:   0
  • Joined:  12/09/15
  • Last Seen:  

guys,, how or where do you set mapflag for autotrade?

 

example im only want player to autotrade at payon city, and cant auto trade at other city,

thanks for helping and sorry for my bad english ...

Link to comment
Share on other sites

4 answers to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  7
  • Topics Per Day:  0.00
  • Content Count:  80
  • Reputation:   1
  • Joined:  10/08/13
  • Last Seen:  

Yes but don't include on. When you make the script it will automatcally allow autotrade on that map. So the script will look like this:

prontera(tab)	mapflag(tab)	autotrade

Make sure that you change this value in conf/battle/misc to yes

at_mapflag: no

Changing it to yes will allow autotrade on any map where it is enabled. That being said you only want to include maps where you want it to be enabled in the script. Then just make sure you include the path of the file in scripts_mapflag.conf.

npc: npc/mapflag/autotrade.txt

This is the line you want to add to scripts_mapflag.conf. After that just do @reloadscript in game.

Edited by Oceanid
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  7
  • Topics Per Day:  0.00
  • Content Count:  80
  • Reputation:   1
  • Joined:  10/08/13
  • Last Seen:  

You can do it in-game by using the command @mapflag on the map you want to apply the mapflag too. Or if you don't want to do that you can make a file in npc/mapflag in your rathena files.

 

Ex.

//===== rAthena Script =======================================
//= Mapflag: Disable Player versus Player mode.
//===== By: ==================================================
//= rAthena Dev Team
//===== Current Version: =====================================
//= 1.3
//===== Compatible With: =====================================
//= rAthena Project
//===== Description: ========================================= 
//= Prevents PvP mode on a map.
//===== Additional Comments: ================================= 
//= 1.0 Initial script.
//= 1.2 Updated. [L0ne_W0lf]
//= 1.3 Renewal split. [Euphy]
//============================================================

// Instances ===================
1@cata	mapflag	pvp	off
2@cata	mapflag	pvp	off
1@nyd	mapflag	pvp	off
2@nyd	mapflag	pvp	off
1@orcs	mapflag	pvp	off
2@orcs	mapflag	pvp	off

If you do it that way just remember to include the path of the file in scripts_mapflag.conf and reload scripts in game.

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  2
  • Topics Per Day:  0.00
  • Content Count:  5
  • Reputation:   0
  • Joined:  12/09/15
  • Last Seen:  

thank you for replying sir..  for in-game command @mapflag,, there are no option to restrict or allowed autotrade at the place..

 

honestly im still very new at scripting.. do you mean i should write scripting like this:

"Payon mapflag autotrade  on" .... ??

 

if yes where should i put this script , so i can run it ?

 

 

EDIT: for the in-game, i already typing "@mapflag autotrade 0" and @reloadscript at prontera city, the command got no error, but still nothing changes. and i still can autotrade at prontera. does i do it wrongly?

 

 

 

 

thanks and sorry for my bad english..

Edited by khalimandor
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  2
  • Topics Per Day:  0.00
  • Content Count:  5
  • Reputation:   0
  • Joined:  12/09/15
  • Last Seen:  

im so sorry, because im not trying it all yet,, and yes thank you for solving my problem

 

my step is 

change at_mapflag: no to ---> at_mapflag: yes at conf/battle/misc

then go to town that you want to setting it to
example me, i go to payon

then typing @mapflag autotrade 1.

edit: im forgot,, use @reloadbattleconf to make it works... thank you !!

 

thank you very much ..!!!

thank you very much ..!!!

Edited by khalimandor
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...