Gratz

O Tibi i nie tylko...


  • Index
  •  » OTS
  •  » Transformation Boots

#1 23-12-2008 12:47:06

Dane323

http://i40.tinypic.com/dvm5ba.jpg

Skąd: Grudziądz
Zarejestrowany: 22-12-2008
Posty: 40
Punktów :   
Prawdziwe Imię: Daniuu
Nick: Daniuu
Server: najczesciej TFS...
Level: Byś się zdziwił..

Transformation Boots

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

Offline

 

#2 23-12-2008 12:48:43

Matt

http://i43.tinypic.com/15xle76.jpg

11631543
Call me!
Zarejestrowany: 22-12-2008
Posty: 28
Punktów :   
Skąd: Grudziądz
Nick: MaxiWojka
Server: Feniks
Level: 21

Re: Transformation Boots

no spoko leci +

Offline

 
  • Index
  •  » OTS
  •  » Transformation Boots
Tutaj możesz wpisać treść, która ma sie ukazać w stopce forum.

Stopka forum

RSS
Powered by PunBB
© Copyright 2002–2008 PunBB
Polityka cookies - Wersja Lo-Fi


Darmowe Forum | Ciekawe Fora | Darmowe Fora
www.arystokracja.pun.pl www.zgierz.pun.pl www.stowarzyszeniexxx.pun.pl www.wielkadroganinja.pun.pl www.wampiry.pun.pl