yanloco70 2 Posted September 16, 2017 Share Posted September 16, 2017 (edited) Salve... salve povo do Xtibia entao to aqui para fazer pedido que não deve ser muito difícil vamos la Eu uso esse Script De Addon apos Clikar no item ele ganha outifit dependendo da sua vocation se clikar denovo ele volta ao normal Addon.lua Spoiler local config = { --[vocationId] = outfitId, --Ex.: [273] = 824, [297] = 212, [88] = 808, [118] = 805, } function onUse(cid) local outfit, playerOutfit = config[getPlayerVocation(cid)], getCreatureOutfit(cid) if outfit then if getCreatureCondition(cid, CONDITION_OUTFIT) and playerOutfit.lookType == outfit then doRemoveCondition(cid, CONDITION_OUTFIT) doPlayerSendTextMessage(cid, 27, "Voce Removeu A Addon.") else playerOutfit.lookType = outfit doSetCreatureOutfit(cid, playerOutfit, -1) doPlayerSendTextMessage(cid, 27, "Voce Colocou A Addon.") end end return true end Nessa parte >: --[vocationId] = outfitId, --Ex.: [273] = 824, Que Gostaria de Modificar ela para ficar assim Queria quando ele ele fosse usar o item com a vocation 273 ele gangasse uma outifit aleatoria dentro dessas --[vocationId] = outfitId, --Ex.: [273] = 824,90,93,600 -- Exemplo < ele vira uma dessas 4 aleatoria mente Quem Poder Ajudar Vlw +Reppppppp Edited September 16, 2017 by yanloco70 Link to comment Share on other sites More sharing options...
Raskgames 3 Posted September 16, 2017 Share Posted September 16, 2017 como que add esse system? Link to comment Share on other sites More sharing options...
yanloco70 2 Posted September 16, 2017 Author Share Posted September 16, 2017 Addon.lua Action xml Obs nao e para pokemon Link to comment Share on other sites More sharing options...
Recommended Posts