Syriza 234 Posted November 3, 2019 Share Posted November 3, 2019 Hey developers im looking for a function in Python that checks if a item has 1-5 attributes. since getitemattribute in pythonplayer doesn’t work idk.. i hope I get some help @VegaS™@martysama0134 @Syriza Link to comment Share on other sites More sharing options...
Forum Moderator VegaS™ 10274 Posted November 3, 2019 Forum Moderator Share Posted November 3, 2019 (edited) 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 Sign In or Sign Up Edited December 3, 2020 by VegaS™ added c++ version 18 3 8 Check my GitHub Profile Click to find all the threads started by me [TOOL] Text file loader + JSON Link to comment Share on other sites More sharing options...
Syriza 234 Posted November 3, 2019 Author Share Posted November 3, 2019 vor 2 Minuten schrieb VegaS™: slotIndex = Your index position from inventory. import player attrCount = 0 for i in xrange(player.ATTRIBUTE_SLOT_NORM_NUM): if player.GetItemAttribute(slotIndex, i): attrCount += 1 if attrCount: print ("why you quote yourself, wtf") Link to comment Share on other sites More sharing options...
Syriza 234 Posted November 3, 2019 Author Share Posted November 3, 2019 @VegaS™ oh I see you added the c++ version thanks sensei but how can i use it ? Link to comment Share on other sites More sharing options...
Kori 170 Posted November 4, 2019 Share Posted November 4, 2019 7 hours ago, Syriza said: @VegaS™ oh I see you added the c++ version thanks sensei but how can i use it ? You will use the function like offical to show on the item : You can add more bonus like 6/7? Link to comment Share on other sites More sharing options...
Syriza 234 Posted November 4, 2019 Author Share Posted November 4, 2019 yes Link to comment Share on other sites More sharing options...
Kori 170 Posted November 4, 2019 Share Posted November 4, 2019 2 hours ago, Syriza said: yes Nice I want too Link to comment Share on other sites More sharing options...
Syriza 234 Posted November 4, 2019 Author Share Posted November 4, 2019 vor 1 Stunde schrieb Kori: Nice I want too Nice , Lets Waite until sensei has some time. Link to comment Share on other sites More sharing options...
Forum Moderator VegaS™ 10274 Posted November 4, 2019 Forum Moderator Share Posted November 4, 2019 (edited) This is the hidden content, please Sign In or Sign Up Edited August 21, 2022 by Metin2 Dev Core X - External 2 Internal 9 1 4 8 Check my GitHub Profile Click to find all the threads started by me [TOOL] Text file loader + JSON Link to comment Share on other sites More sharing options...
Syriza 234 Posted November 4, 2019 Author Share Posted November 4, 2019 @Kori there u Go, as i Said he will help us 1 Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now