Jump to content

Need a function that checks if a item has 1-5 attributes


Recommended Posts

  • Forum Moderator
On 11/3/2019 at 11:13 PM, Syriza said:

i hope I get some help  @Syriza

slotIndex = Your index position from inventory.

Python

import player

attrCount = 0
for i in xrange(player.ATTRIBUTE_SLOT_MAX_NUM):
	if player.GetItemAttribute(player.INVENTORY, slotIndex, i):
		attrCount += 1

print(attrCount)

C++

This is the hidden content, please

 

Edited by VegaS™
added c++ version
  • Metin2 Dev 14
  • Good 2
  • Love 8
Link to comment
Share on other sites

  • Forum Moderator

5SKFcab.png qitNeab.png gq6ofab.png

This is the hidden content, please

Edited by Metin2 Dev
Core X - External 2 Internal
  • Metin2 Dev 9
  • Sad 1
  • Good 4
  • Love 8
Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

Announcements



×
×
  • 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.