Dran Ryszard
Active Member
Hi, im using that upgrade system - CreatureEvent - [TFS 1.3 / 1.4] Upgrade System (https://otland.net/threads/tfs-1-3-1-4-upgrade-system.264672/)
And i have added FIST weapons in my ot, but that system wont work with it.. Not possible to add slot to weapon fist.
Weapon FIST it added i think 100% good, couse when i check weapon type by script it was FIST..
I edited little that system, to have only 2 slots (start item is without any), then i have item what add a slot to any item
but when i tried add slot to fist weapon its not possible

I check by print for "isUpgradable"
and is not..
isUpgradable: false Profas Gloves 49251
tried add it to items type
but still nothing
And i have added FIST weapons in my ot, but that system wont work with it.. Not possible to add slot to weapon fist.
Weapon FIST it added i think 100% good, couse when i check weapon type by script it was FIST..
I edited little that system, to have only 2 slots (start item is without any), then i have item what add a slot to any item
Code:
elseif item.itemid == US_CONFIG[1][ITEM_SLOT_CRYSTAL] then
local rarityId = target:getRarityId()
if rarityId < EPIC then
local newRarity = rarityId + 1
target:setRarity(newRarity)
player:sendTextMessage(MESSAGE_INFO_DESCR, "Dodano SLOT do przedmiotu: " .. target:getName() .. ".")
player:getPosition():sendMagicEffect(CONST_ME_MAGIC_GREEN)
item:remove(1)
else
player:sendTextMessage(MESSAGE_STATUS_WARNING, "Przedmiot " .. target:getName() .. " posiada juz maksymalna ilosc slotow!")
player:sendCancelMessage(RETURNVALUE_NOTPOSSIBLE)
end
but when i tried add slot to fist weapon its not possible


I check by print for "isUpgradable"
and is not..
isUpgradable: false Profas Gloves 49251
tried add it to items type
Code:
US_ITEM_TYPES = {
ALL = 1,
WEAPON_MELEE = 2,
WEAPON_DISTANCE = 4,
WEAPON_WAND = 8,
SHIELD = 16,
HELMET = 32,
ARMOR = 64,
LEGS = 128,
BOOTS = 256,
RING = 512,
NECKLACE = 1024,
WEAPON_FIST = 2048,
WEAPON_ANY = 14 + 2048
}
but still nothing