1
[NPC] ayuda cambio de outfit el Dom Ago 27, 2017 5:46 pm
jesusaron

Miembro

de interval se cambie su looktype a uno de item gracias tfs 1.0
Tibiaface | Una comunidad Open Tibia donde encontras : mapas, scripts, Otserver, npc y amigos etc ...
function changeOutfit(cid)
local npc = Creature(cid)
if npc then
local outfit = npc:getOutfit()
outfit.lookHead = math.random(0, 132)
outfit.lookBody = math.random(0, 132)
outfit.lookLegs = math.random(0, 132)
outfit.lookFeet = math.random(0, 132)
npc:setOutfit(outfit)
end
end
local interval = 100
function onThink()
local cid = getNpcCid()
for i = 1, 1000/interval do
addEvent(changeOutfit, (i-1)*interval, cid)
end
npcHandler:onThink()
end
Permisos de este foro:
No puedes responder a temas en este foro.
|
|