andu
Sold 649 scripts, 25 maps and 9 events!
i think
will be better than
maxCap - freeCap...
In Diablo 2 you lose speed only form items you wearing, not from items you have in backpack.
Sorry for my eng and if my codes are wrong
Code:
[...]
local helmet = getPlayerSlotItem(cid, 1)
getItemWeight(helmet, 1)
[...]
usedCap = helmet + armor + legs...
[...]
doChangeSpeed(cid, getCreatureSpeed(cid) - usedCap)
[...]
maxCap - freeCap...
In Diablo 2 you lose speed only form items you wearing, not from items you have in backpack.
Sorry for my eng and if my codes are wrong
Last edited: