Dane323 - 23-12-2008 12:47:06

Witam, a więc dodaje skrypt na Transformation Boots. Zmieniają one twój wygląd jak je nosisz.
A wię wchodzimy w Data/Movements/Scripts i robimy plik o nazwie transboots.lua a w nim:

local storage = 1800
local tran = 5080 ---- Item w który zamieni nasza postać.

function onEquip(cid, item, slot)
setPlayerStorageValue(cid, storage, getCreatureOutfit(cid).lookType)
setPlayerStorageValue(cid, storage+1, getCreatureOutfit(cid).lookHead)
setPlayerStorageValue(cid, storage+2, getCreatureOutfit(cid).lookBody)
setPlayerStorageValue(cid, storage+3, getCreatureOutfit(cid).lookLegs)
setPlayerStorageValue(cid, storage+4, getCreatureOutfit(cid).lookFeet)
setPlayerStorageValue(cid, storage+5, getCreatureOutfit(cid).lookAddons)
doSetItemOutfit(cid, tran, 300000) ----CZas na jaki zamieni nasz postac w item.
end
function onDeEquip(cid, item, slot)
standardoutfit = { lookType = getPlayerStorageValue(cid, storage), lookHead = getPlayerStorageValue(cid, storage+1), lookBody = getPlayerStorageValue(cid, storage+2), lookLegs = getPlayerStorageValue(cid, storage+3), lookFeet = getPlayerStorageValue(cid, storage+4), lookAddons = getPlayerStorageValue(cid, storage+5) }
doSetCreatureOutfit(cid, standardoutfit, 1)
end

Potem wpisujemy w Movements.xml

<movevent event="Equip" itemid="7457" slot="feet" function="onEquipItem" script="transboots.lua" />
<movevent event="DeEquip" itemid="7457" slot="feet" function="onDeEquipItem" script="transboots.lua" />

Skrypt nie mój

Matt - 23-12-2008 12:48:43

no spoko leci +

www.inzynieriasrodowiska.pun.pl www.badboys2.pun.pl www.korsarz.pun.pl www.zwierzaczkowo.pun.pl www.pokeland.pun.pl