Por iRyu, 23 de set. de 2011 em Actions e Talkactions
info
Grupo: Campones
Registrado: 24/08/11
Posts: 51
Reputação: +27
Gênero: Masculino
Teleport/Change Outfit Tile
Crie um arquivo .lua na pasta "data\movements" e adicione isso nele:
local config = { position = {x = 1023, y = 1020, z = 7}, outfit = { [0] = {lookType = 159, lookHead = 0, lookBody = 105, lookLegs = 0, lookFeet = 0}, [1] = {lookType = 160, lookHead = 0, lookBody = 105, lookLegs = 0, lookFeet = 0} } } function onStepIn(cid, item, pos) if isPlayer(cid) and not(getCreatureCondition(cid, CONDITION_OUTFIT) then doSetCreatureOutfit(cid, config.outfit[getPlayerSex(cid)]) doTeleportThing(cid, config.position) end return true end
Em Movements.xml adicione essa linha nele:
<movevent type="StepIn" actionid="2011" event="script" value="Teleport Tile.lua"/>
Explicações:
info
Grupo: Campones
Registrado: 24/08/11
Posts: 51
Reputação: +27
Gênero: Masculino
Teleport/Change Outfit Tile
Script Desenvolvido por Behmen e Editado por Garou
Crie um arquivo .lua na pasta "data\movements" e adicione isso nele:
local config = { position = {x = 1023, y = 1020, z = 7}, outfit = { [0] = {lookType = 159, lookHead = 0, lookBody = 105, lookLegs = 0, lookFeet = 0}, [1] = {lookType = 160, lookHead = 0, lookBody = 105, lookLegs = 0, lookFeet = 0} } } function onStepIn(cid, item, pos) if isPlayer(cid) and not(getCreatureCondition(cid, CONDITION_OUTFIT) then doSetCreatureOutfit(cid, config.outfit[getPlayerSex(cid)]) doTeleportThing(cid, config.position) end return true endEm Movements.xml adicione essa linha nele:
Explicações: