ConAn Edujawa
Member
- Joined
- Feb 23, 2015
- Messages
- 457
- Reaction score
- 17
hello guys i use 0.4
and i use slot system for mock
and work good but have one problem don't work with soft boots and boots of haste and all boots no have armor
don't work with rings no have armor and charges
i want edit this cod to work with boots and rings don't have armor and charges like ( gold ring , boots of haste, soft boots, etc)
and i use slot system for mock
and work good but have one problem don't work with soft boots and boots of haste and all boots no have armor
don't work with rings no have armor and charges
i want edit this cod to work with boots and rings don't have armor and charges like ( gold ring , boots of haste, soft boots, etc)
Lua:
local function isArmor(uid) -- Function by Mock the bear.
if (getItemInfo(uid.itemid).armor ~= 0) and (getItemWeaponType(uid.uid) == 0) then
return true
end
return false
end
Lua:
if isInArray(conf.ignoredIds, itemEx.itemid)
or (not getItemWeaponType(itemEx.uid) or getItemWeaponType(itemEx.uid) > 5)
or (getItemWeaponType(itemEx.uid) == 0 and not isArmor(itemEx))
or itemEx.itemid == 0 or itemEx.type > 1 or isItemStackable(itemEx.uid) then
doPlayerSendTextMessage(cid, 24,"You cant open a slot on this item.")
return TRUE
end
r
Last edited: