Jump to content
  • We need you!

    You must register to discover all the features of our community!

  • 0

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 (see edit history)
Link to post

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


×
×
  • Create New...

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.