Jump to content
  • 0

Item restriction on certain map


Nullifier

Question


  • Group:  Members
  • Topic Count:  45
  • Topics Per Day:  0.01
  • Content Count:  140
  • Reputation:   11
  • Joined:  09/28/14
  • Last Seen:  

I want to ask how can i add an item restriction on a certain map and i already did read some of the topics here regarding the mapflag restriction and its just i cant do that like disable mvp cards on woe maps because what i want to do is a separate woe sessions that will disable mvp and certain items on that woe schedule its like vanilla woe no mvp/no donation items.

 

Thank you in advance!

Link to comment
Share on other sites

3 answers to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  4
  • Topics Per Day:  0.00
  • Content Count:  58
  • Reputation:   4
  • Joined:  04/15/16
  • Last Seen:  

You can do this on npc script,  check item id's every load on the map and warp them out. I don't know if it's the ideal way to do this. Let us wait for the veterans in scripting :)

Edited by maxine02
Link to comment
Share on other sites

  • 0

  • Group:  Developer
  • Topic Count:  50
  • Topics Per Day:  0.02
  • Content Count:  763
  • Reputation:   227
  • Joined:  02/11/17
  • Last Seen:  

You can do OnLoadMapEvent: With countitem on it. something like this havent tested it though

-	script	test	-1,{
OnPCLoadMapEvent:
		if(countitem(12345) > 0 || countitem(12346) > 0 || countitem(12347) > 0) 
		warp "SavePoint"0,0;
		end;


//------Enable map OnPCLoadMapEvent-------------------
map_01	mapflag	loadevent
		
		


 

  • Upvote 1
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  162
  • Topics Per Day:  0.05
  • Content Count:  1546
  • Reputation:   192
  • Joined:  07/23/14
  • Last Seen:  

I use the item_noequip.txt and mapflag restricted.

for example in item_noequip.txt

// Tao gunka card will not work on main town which is ''wicked''

4302,4096 // 4096 is zone 8

in my restricted mapflag

// Main Town
wicked    mapflag    restricted    8

 

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