1
vocation por oufits el Jue Ago 10, 2017 6:16 pm
Funay

Miembro

Tibiaface | Una comunidad Open Tibia donde encontras : mapas, scripts, Otserver, npc y amigos etc ...
local config =
{
[1] = {130,145}, --------- vocation, oufhit 130 male y 145 female
[2] = {144,133},
[3] = {129,152},
[4] = {131,134},
[5] = {25,29}
}
function onLogin(cid)
local outfit = getCreatureOutfit(cid)
if getPlayerSex(cid) == 0 then
outfit.lookType = config[getPlayerVocation(cid)][1]
else
outfit.lookType = config[getPlayerVocation(cid)][2]
end
doCreatureChangeOutfit(cid, outfit)
end
registerCreatureEvent(cid, "voc")
<event type="login" name="voc" script="voc.lua"/>
local ropa = {
[1] = {storage = 1234}, ----vocation, storange del oufhit
[2] = {storage = 2345},
[3] = {storage = 3456},
[4] = {storage = 4578}
}
function onLogin(cid)
local vocacion = getPlayerVocation(cid)
local config = ropa[vocacion]
if vocacion == config then
setPlayerStorageValue(cid, config.storage, 1)
end
return true
end
local ropa = {
[1] = {1234},
[2] = {2345},
[3] = {3456},
[4] = {4578}
}
function onLogin(cid)
local vocacion = getPlayerVocation(cid)
for voc, storage in ipairs(ropa) do
if vocacion == voc then
setPlayerStorageValue(cid, storage[1], 1)
end
return true
end
setPlayerStorageValue(cid, 79500, 1)
Permisos de este foro:
No puedes responder a temas en este foro.
|
|