Suxex
Member
Hey, can someone help me with this..
After I changed my outfit to an item and then want my outfit to be changed back to normal(when I step on the tile with aid 11258) i get invisible and when Im trying to change outfit my client gets debug.
Please help me, I will rep++ you if you help me =)
After I changed my outfit to an item and then want my outfit to be changed back to normal(when I step on the tile with aid 11258) i get invisible and when Im trying to change outfit my client gets debug.
Code:
function onStepIn(cid, item, pos)
local outfit = {lookType = getPlayerStorageValue(cid, 45481), lookHead = getPlayerStorageValue(cid, 45482), lookAddons = getPlayerStorageValue(cid, 45483), lookLegs = getPlayerStorageValue(cid, 45484), lookBody = getPlayerStorageValue(cid, 45485), lookFeet = getPlayerStorageValue(cid, 45486)}
local storage = 17812
if item.actionid == 11258 and getPlayerStorageValue(cid,storage) == 1 then
doCreatureChangeOutfit(cid, outfit)
setPlayerStorageValue(cid, storage, 0)
end
end
Please help me, I will rep++ you if you help me =)