Postado Agosto 16, 2014 12 anos Ola tks hoje vou compartilhar 1 sistema de addon para pokemon Va em Actions criei 1 script renomeia para addon e cole isso dentro addonItems = { [14193] = {name = "Magmar", outfit = 1615, id = 1}, [14194] = {name = "Shiny Hypno", outfit = 1635, id = 1}, [14195] = {name = "Electabuzz", outfit = 1632, id = 1}, [14196] = {name = "Shiny Arcanine", outfit = 1626, id = 1}, [14198] = {name = "Slowking", outfit = 1630, id = 1}, [14199] = {name = "Shiny Jynx", outfit = 1619, id = 1}, [14200] = {name = "Ditto", outfit = 1613, id = 1}, [14201] = {name = "Shiny Fearow", outfit = 1642, id = 1}, [14197] = {name = "Shiny Nidoking", outfit = 1641, id = 1}, } random = { [1] = 14193, [2] = 14194, [3] = 14195, [4] = 14196, [5] = 14198, [6] = 14199, [7] = 14200, [8] = 14201, [9] = 14197, } function onUse(cid, item, frompos, item2, topos) if item.itemid == 12460 then doPlayerAddItem(cid, random[math.random(1,69)], 1) doPlayerSendTextMessage(cid, 27, "You open a addon box.") doRemoveItem(item.uid, 1) doSendMagicEffect(getThingPos(cid), 29) return true end if not isPokeball(item2.itemid) then return doPlayerSendCancel(cid, "Use addon only in pokeballs") end if #getCreatureSummons(cid) > 0 then return doPlayerSendCancel(cid, "Back your pokemon") end addonID = addonItems[item.itemid] if not addonID then return true end if addonID.name ~= getItemAttribute(item2.uid, "poke") then return doPlayerSendCancel(cid, "This addon is only for "..addonID.name.."") end if addonID.id == 1 then addon = getFirstAddonId(item2.uid) elseif addonID.id == 2 then addon = getSecondAddonId(item2.uid) elseif addonID.id == 3 then addon = getThirdAddonId(item2.uid) elseif addonID.id == 4 then addon = getFourthAddonId(item2.uid) elseif addonID.id == 5 then addon = getFifthAddonId(item2.uid) elseif addonID.id == 6 then addon = getSixthAddonId(item2.uid) end if addon == addonID.outfit then return doPlayerSendCancel(cid, "This pokemon have this addon") end if getCountAddon(item2.uid) > 6 then return doPlayerSendCancel(cid, "This pokemon has the maximum of addons") end doAddAddon(cid, item2.uid, addonID.id, addonID.outfit) doRemoveItem(item.uid, 1) return true end Em name = o nome do pokemon Nas Barras [] O id do item do addon Oufit = o id da sprite no seu client do pokemon com seu addon ID addon 1 2 3 etc.. Random Todos os numeros dos addons Numerados Depois em Actions.xml coloque a tag <action itemid="ID DOS ITEM(S)" event="script" value="addon.lua" allowfaruse="1" blockwalls="1"/ Creditos Meus por postar se estiver faltando alguem comente no chat Testado apenas em Pda Obs pókexcyan nao funcionou Comigo Editado Agosto 16, 2014 12 anos por eduardosky (veja o histórico de edições)
Postado Agosto 16, 2014 12 anos não explico nada , falta coisa nesse seu sistema , não foi você quem fez.
Postado Agosto 16, 2014 12 anos Autor não explico nada , falta coisa nesse seu sistema , não foi você quem fez. Disculpe eu coloquei errado ja arrumei
Participe da conversa
Você pode postar agora e se cadastrar mais tarde. Se você tem uma conta, faça o login para postar com sua conta.