Jump to content
×
×
  • Create New...
  • -1

Block item/function on map in python


Tallywa

Question

1 answer to this question

Recommended Posts

  • 0

Not tested, wrote from phone.

 

	def Block(self, slot, map, vnum):
		item_vnum = player.GetItemIndex(slot)
		item.SelectItem(item_vnum)

		if (background.GetCurrentMapName() == str(map_name)) and (item_vnum == int(vnum)):
			chat.AppendChat(chat.CHAT_TYPE_INFO, "#error 33121")
			return

	def __UseItem(self, slotIndex):
		self.Block(slotIndex, "metin2_map_c1", 19)

It might be extended to other functions, but thats basic

 

Edited by ridetpro
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.