ShurinXD 0 Posted April 4, 2020 Share Posted April 4, 2020 I would like to know if there is a function to identify items Equipped by the character? Example: What weapon equipped! Link to comment Share on other sites More sharing options...
HITRON 695 Posted April 4, 2020 Share Posted April 4, 2020 (edited) You can use these quest functions (pc.get_weapon(), pc.get_armor()). Edited April 4, 2020 by HITRON Link to comment Share on other sites More sharing options...
ShurinXD 0 Posted April 4, 2020 Author Share Posted April 4, 2020 Just now, HITRON said: Se você pode usar essas funções de missão, pode usar (pc.get_weapon (), pc.get_armor ()). Thanks! One more question, Are there only these functions for Weapons and Armors or do you have them for accessories and costumes too? Link to comment Share on other sites More sharing options...
HITRON 695 Posted April 4, 2020 Share Posted April 4, 2020 (edited) 6 minutes ago, ShurinXD said: Thanks! One more question, Are there only these functions for Weapons and Armors or do you have them for accessories and costumes too? You can use pc.get_wear(20) example for Costume Hair (20) is the equip cell for the specific item etc. Edited April 4, 2020 by HITRON Link to comment Share on other sites More sharing options...
Nirray 192 Posted April 4, 2020 Share Posted April 4, 2020 3 hours ago, HITRON said: You can use pc.get_wear(20) example for Costume Hair (20) is the equip cell for the specific item etc. local c_Equipment_Body = 0; local c_Equipment_Head = 1; local c_Equipment_Shoes = 2; local c_Equipment_Wrist = 3; local c_Equipment_Weapon = 4; local c_Equipment_Neck = 5; local c_Equipment_Ear = 6; local c_Equipment_Unique1 = 7; local c_Equipment_Unique2 = 8; local c_Equipment_Arrow = 9; local c_Equipment_Shield = 10; example: if (pc.get_wear(c_Equipment_Wrist) == 14009) then -- Wooden Bracelet +9 I completely abandoned working on the files for this game. I do not respond to private messages. Link to comment Share on other sites More sharing options...
Forum Moderator VegaS™ 10277 Posted April 4, 2020 Forum Moderator Share Posted April 4, 2020 (edited) Go in /share/locale/germany/questlib.lua and add at the end of file: -- common/length.h -- enum EWearPositions local wearPositionsTable = { 'WEAR_BODY', 'WEAR_HEAD', 'WEAR_FOOTS', 'WEAR_WRIST', 'WEAR_WEAPON', 'WEAR_NECK', 'WEAR_EAR', 'WEAR_UNIQUE1', 'WEAR_UNIQUE2', 'WEAR_ARROW', 'WEAR_SHIELD', 'WEAR_ABILITY1', 'WEAR_ABILITY2', 'WEAR_ABILITY3', 'WEAR_ABILITY4', 'WEAR_ABILITY5', 'WEAR_ABILITY6', 'WEAR_ABILITY7', 'WEAR_ABILITY8', 'WEAR_COSTUME_BODY', 'WEAR_COSTUME_HAIR', 'WEAR_COSTUME_MOUNT', 'WEAR_COSTUME_SASH', 'WEAR_COSTUME_WEAPON', 'WEAR_RING1', 'WEAR_RING2', 'WEAR_BELT', 'WEAR_PENDANT', } for wearPos, wearName in ipairs(wearPositionsTable) do if type(wearName) == 'string' and string.find(wearName, "^WEAR_") then _G[wearName] = wearPos - 1 end end So, now you can use in all quests: This is the hidden content, please Sign In or Sign Up Edited August 22, 2020 by VegaS™ 14 1 5 4 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...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now