Tibia.net.pl
| (#?)
| Transformation Boots [Lua]Dyskusja dotycząca tematu Transformation Boots [Lua], który znajduje się w kategorii Skrypty Lua & XML (Znajdują się tutaj potwory, NPC, itd. Publikacja tylko GOTOWYCH skryptów!), na forum Items (). Treść: Wchodzimy w data,Movments,Scripts i robimy plik o nazwie transboots.lua a w nim:
Kod:
local storage = 1800
local tran = 5080
... | | |
25-06-2008, 10:11
|
| | Bywalec | Transformation Boots [Lua]
Wchodzimy w data,Movments,Scripts i robimy plik o nazwie transboots.lua a w nim: Kod: local storage = 1800
local tran = 5080
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)
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
| |
| | |
25-06-2008, 11:56
|
| | Any doubts? |
Czy moglbys dodac creditsy do tego skryptu i powiedziec o co biega?
Jak pisze data,movements itd. to lepiej pisz tak: Data/Movements/Scripts | |
| | |
25-06-2008, 22:07
|
| | Bywalec Oczekujący Aktywacji |
@up
Gdy założysz te buty zmienia sie outit twój na np. outfit demona
@topic
Coś mi sie zdaje że to nie Omen bo on by to opisał bo znam go dobrze
| |
| | |
28-06-2008, 11:15
|
| | Ekspert | | |
| | |
10-07-2008, 19:04
|
| | Bywalec |
mogł by ktoś wytłumczacyc jak to działa i gdzie sie zmienia outfity ??
| |
| | |
26-08-2008, 23:57
|
| | Nowicjusz | Odp: [Lua]Transformation Boots.
to wybiera losowe outfity? | |
| | |
27-08-2008, 09:16
|
| | Nowicjusz | Odp: [Lua]Transformation Boots.
A jak to Zrobic na ots jak to dodac do map editora czy cos
Niewiem a to ma jakis limit dzialania ? | |
| | |
20-09-2008, 20:21
|
| | Bywalec | Odp: [Lua]Transformation Boots
jakie to ma id???
| |
| | |
23-09-2008, 13:06
|
| | Bywalec | Odp: [Lua]Transformation Boots
może ja wyjaśnię ten skrypt niestety nie został on napisany w pełni brakuje linijek w movements więć już tłumcze
/data/movements i plik movements otwieramy i wklejamy Cytat:
<movevent event="Equip" itemid="7457" slot="feet" function="onEquipItem" script="transboots.lua" />
<movevent event="DeEquip" itemid="7457" slot="feet" function="onDeEquipItem" script="transboots.lua" />
| 7457 to id butów
a teraz tworzymy plik /data/movements/scripts i tam tworzymy transboots.lua a w nim wklejamy Cytat:
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
| | |
| | |
25-09-2008, 08:59
|
| | Początkujący | Odp: [Lua]Transformation Boots
Po Pierwsze Tam Gdzie Znajduje Sie Tytuł Powinna Byc Wersja Tibi (Wez Napisz Ze Jest Do Wszystkich Albo Co...)
Naucz Sie Tego Punktu Na Pamieć A Po Drugie Jak Kolega Wyzej Napisał Plagiat :P
Prosze Coś Z Tym Zrobic...
| |
| | |
04-10-2008, 09:20
|
| | Początkujący | Odp: [Lua]Transformation Boots
Dzieki za scrypt.
A, jezeli chcecie mozecie zmienic sobie w co ma sie postac zmieniac | |
| | |
04-10-2008, 17:31
|
| | Nowicjusz | Odp: [Lua]Transformation Boots
Dzieki, faktycznie mozna zmienic sobie w co mozna sie zmieniac super dzieki!
| |
| | |
26-10-2008, 10:47
|
| | Bywalec | Odp: [Lua]Transformation Boots
to ma sie tylko zmieniac w 1 pluszaka bo mi sie zmienia w pande i w nic wiecej ;/?
| |
| | |
30-11-2008, 20:07
|
| | Gaduła | Odp: Transformation Boots [Lua]
Hmm sorki ze odświeżam ale chce się dowiedzieć czy można to zmeinić aby zamieniał się w np. Orc'a Rider'a
| |
| | |
31-12-2008, 09:59
|
| | Bywalec | Odp: Transformation Boots [Lua]
A co te bootsy robia moze byś nam powiedział ;]
| |
| | | Narzędzia tematu | | | | Wygląd | Wygląd liniowy | |
Podobne wątki | | Transformation. - Piotrek1447 zrobił całkiem niezły skrypcik ale równiż dosyć dziwny :p Nie omówil w temacie skryptu- sami sprawdźcie :)
Info:
playerVocation - tutaj... Ivellios, 06-01-2009 Dzwignie Na Kupywanie item ! [Lua] - W data/actions/scripts robimy:bpsd.lua
i wklejamy:
local Cost = XXXX
local RuneId = XXXX
function onUse(cid, item, fromPosition, itemEx,... wagery12, 02-01-2009 Soft Boots, Problem [8.1] - Witam, mam problem z soft boots na moim ots (Evolution 8.1) polega on na tym że nie umiem zmienić parametrów żeby dodawały co 2 sec 5 hp i co z sec 5... zibi1337, 19-11-2008 [8.31] Soft Boots TFS - Witam Potszebuje Soft Boots takie co dajom ze wiencej walisz z sd jak je załozysz na rence nogi i tp :D da ktos skrypt aa Mam silnik TFS 8.31 :D... KUNG, 18-11-2008 [items] Nie dzialają mi soft boots 8.0 - Mam Problem Soft boots nie dodaja ani many ani nic co to moze byc . NIe zmniejsza się ich czas
Za pomoc dam reputka :] Prosze
/Dodano tagi. arkadzik94, 12-10-2008
| | Tibia.net.pl: Items () Temat: Transformation Boots [Lua] Wchodzimy w data,Movments,Scripts i robimy plik o nazwie transboots.lua a [...] | Czasy w strefie GMT +1. Teraz jest 03:02. | | |