va em action/scripts cri uma aquivo .lua chamado rmaddons
function onUse(cid, item, itemEx, toPosition, fromPosition) doPlayerRemoveOutfit(cid,looktype,addons) doRemoveItem(item.uid,1) return true end
Va em actions.xml
<action itemid="1968" event="script" value="rmaddons.lua"/>
Não testei mano testeo ai !!!
Nã fis uma talkaction ou seja comando eu fis uma actions ao clica no iten ele perde a outfit !!!









info
Grupo: Infante
Registrado: 27/08/11
Posts: 1.9k
Reputação: +85
Gênero: Masculino
Char no Tibia: Bruno Maciel
Estou aqui pra pedir um comando porem nao sei se e simples ou nao =/
eu tenho adicionado no meu server o systema de addons so que eu queria o comando de o player falasse e removese o addons !!
OBS: eu nao postei nenhuma script porque eu nao sei qual vai usa ou precisa pro comando entao vcs pode pedir aqui que eu postarei sem problemas aqui !!
SCRIPT
function onUse(cid, item, fromPosition, itemEx, toPosition)
local addons = {
[12832] = {pokemon= "Butterfree" , looktype = 1661, count = 1},
[12833] = {pokemon= "Raichu" , looktype = 1683, count = 1},
[12834] = {pokemon= "Sandslash" , looktype = 1682, count = 1},
[12835] = {pokemon= "Nidoqueen" , looktype = 1686, count = 1},
[12836] = {pokemon= "Nidoking" , looktype = 1685, count = 1},
[12837] = {pokemon= "Dugtrio" , looktype = 1684, count = 1},
[12838] = {pokemon= "Alakazam" , looktype = 1681, count = 1},
[12839] = {pokemon= "Machamp" , looktype = 1678, count = 1},
[12840] = {pokemon= "Victreebel" , looktype = 1672, count = 1},
[12841] = {pokemon= "Tentacruel" , looktype = 1671, count = 1},
[12842] = {pokemon= "Farfetch'd" , looktype = 1676, count = 1},
[12843] = {pokemon= "Muk" , looktype = 1677, count = 1},
[12844] = {pokemon= "Tangela" , looktype = 1663, count = 1},
[12845] = {pokemon= "Gengar" , looktype = 1675, count = 1},
[12846] = {pokemon= "Hypno" , looktype = 1674, count = 1},
[12847] = {pokemon= "Exeggutor" , looktype = 1669, count = 1},
[12848] = {pokemon= "Marowak" , looktype = 1673, count = 1},
[12849] = {pokemon= "Marowak" , looktype = 1679, count = 1},
[12850] = {pokemon= "Lickitung" , looktype = 1665, count = 1},
[12851] = {pokemon= "Weezing" , looktype = 1670, count = 1},
[12852] = {pokemon= "Weezing" , looktype = 1668, count = 1},
[12853] = {pokemon= "Tangela" , looktype = 1664, count = 1},
[12854] = {pokemon= "Kangaskhan" , looktype = 1662, count = 1},
[12855] = {pokemon= "Mr. Mime" , looktype = 1680, count = 1},
[12856] = {pokemon= "Jynx" , looktype = 1666, count = 1},
[12857] = {pokemon= "Jynx" , looktype = 1667, count = 1},
}
if #getCreatureSummons(cid) > 0 then
doPlayerSendCancel(cid, "Please back your pokemon.")
return false
end
local numero = addons[item.itemid].looktype
local count = addons[item.itemid].count
local pb = getPlayerSlotItem(cid, 8).uid
local pk = addons[item.itemid].pokemon
if pb <= 0 then
doPlayerSendCancel(cid, "Sorry, you don't have a "..pk.." in the slot")
return false
end
if getItemAttribute(pb,"poke") ~= pk then
doPlayerSendCancel(cid, "Sorry, you can't use this addon on this poke.")
return false
end
if getItemAttribute(pb,"addon") < 1 then
if(doRemoveItem(item.uid, count)) then
doPlayerSendTextMessage(cid, 27, "Congratulations! You have performed successfully. To remove the addon use Remove Addon of Tools")
doSetItemAttribute(pb,"addon", numero)
else
doPlayerSendCancel(cid, "You dont have cont this item for addon of your "..pk..".")
end
return true
end
return true
end
Curti++++++
Editado Julho 28 por Brunnoo