I think that method is from something other code i wrote, i explained i wasn't 100% certain that that movements script was the correct one. I think I might have to re-write the entire library. Or atleast look for the correct files...@bayview
any thoughts why those errors are appearing? returning nil value
any help will be appreciated
/Nixez
Yea its from my tiered source code lol
I'll fix everything tonight or tomorrow & make a new thread since this one will be a little confusing for people looking to use this system.
Try this code as the movement script
Lua:
function onEquip(player, item, slot)
local slots = player:getSlotItem(slot)
if slots then
if slots.itemid ~= item.itemid then
return true
else
local name = item:getName()
player:transformMagicItemTo(item, slot, name)
player:setMagicItemCondition(item, slot, name)
player:setMagicItemSpells(item, slot, name)
end
end
return true
end
function onDeEquip(player, item, slot)
local name = item:getName()
player:unsetMagicItemCondtion(item, slot, name, true)
player:unsetMagicItemSpells(item, slot, name)
player:transformMagicItemFrom(item, slot, name)
return true
end
Last edited by a moderator: