[creaturevent] Looktype dla danej profesji
Strona 1 z 1
[creaturevent] Looktype dla danej profesji
Skrypt polega na tym że do każdej profesji możemy przypisać sobie osobny outfit.
config.lua
- Kod:
allowChangeOutfit = false
- Kod:
<event type="login" name="Outfitek" event="script" value="outfitek.lua"/>
- Kod:
registerCreatureEvent(cid, "Outfitek")
v1
- Kod:
function onLogin(cid)
local outfity = {
[1] = {121},
[2] = {122},
[3] = {123}
}
local i = 1, #outfity
if getPlayerVocation(cid) == outfity[i] then
doSetCreatureOutfit(cid, outfity[i][1], -1)
end
return true
end
121, 122, 123 outfit dla danej profesji
v2
- Kod:
function onLogin(cid)
local outfity = {
[1] = {121, 141},
[2] = {122, 142},
[3] = {123, 143}
}
local i = 1, #outfity
if getPlayerVocation(cid) == outfity[i] then
if getPlayerSex(cid) == 1
doSetCreatureOutfit(cid, outfity[i][1], -1)
else
doSetCreatureOutfit(cid, outfity[i][2], -1)
end
return true
end
121, 122, 123 outfit dla mężczyzn
141, 142, 143 outfit dla kobiet
darkes- Uploader
- Liczba postów : 27
Join date : 13/11/2012
Strona 1 z 1
Permissions in this forum:
Nie możesz odpowiadać w tematach