Jump to content

Recommended Posts

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 by HITRON
Link to comment
Share on other sites

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.

.png

Link to comment
Share on other sites

  • Forum Moderator

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

Edited by VegaS™
  • Metin2 Dev 13
  • Dislove 1
  • Good 5
  • Love 4
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.