Jump to content

Ymir potions affect fix


WLN
 Share

Recommended Posts

Ymir potions affect fix

Visulizar Arquivo

sistema para não usar poções 2x ou mais

fix que em conjunto com o download abaixo deixa 99% protegido contra o bug de poções zodiaco, ataque deus dragão etc.

descompacte o root e abra todos arquivos e dê um ctrl f e procure por essa linha


return ACCESSORY_MATERIAL_LIST

adicione abaixo

##Valeria2fix
	def IS_BLOCKED_TASK_ITEM(itemVnum):
		return TASK_BLOCK_LIST(itemVnum)

	def TASK_BLOCK_LIST(itemVnum):
		if itemVnum == 71027:
		return 1
	elif itemVnum == 71028:
		return 1
	elif itemVnum == 71029:
		return 1
	elif itemVnum == 71030:
		return 1
	elif itemVnum == 71031:
		return 1
	elif itemVnum == 71044:
		return 1
	elif itemVnum == 71045:
		return 1

	return 0
##Valeria2fix

devemos, claro, atribuir a função para TASK_BLOCK_LIST. 
procure por:

def canAddQuickSlot (self, Type, slotNumber):

e substitua por:

def canAddQuickSlot(self, Type, slotNumber):
	if player.SLOT_TYPE_INVENTORY == Type:
		itemIndex = player.GetItemIndex(slotNumber)
		if constInfo.IS_BLOCKED_TASK_ITEM(itemIndex):
		return FALSE
		return item.CanAddToQuickSlotItem(itemIndex)
	return TRUE

 


 

  • Like 3
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
 Share

×
×
  • Create New...