Ir para conteúdo

Ricardo Bregantini

Membro
  • Registro em

  • Última visita

Histórico de Curtidas

  1. Curtir
    Ricardo Bregantini deu reputação a Mor3nao em Ajuda em Script   
    o item é agrupavel?
    vê assim:
     
    local im = {     [1] = {6570, 5, "guarda costas do god"},     [2] = {6571, 5, "dragon"}         -- ITEMID, COUNT, MONSTERNAME } function onKill(cid, target, lastHit)     if isPlayer(cid) and not isPlayer(target) then         for i = 1, #im do         local bb = im[i]             if getCreatureName(target):lower() == bb[3] then                 for b = 1, bb[2] do                     doPlayerAddItem(cid, bb[1], 1)                 end             end         end     end return true end
  2. Curtir
    Ricardo Bregantini deu reputação a MatteusDeli em Script por Talkaction   
    É isso que tu quer? Eu configurei só 3 armas 1 Axe, 1 Sword e 1 Club com os 4 elementos
     
    Para transformar só falar !axe fire.. ou !sword fire ... ou !club fire ...
     
    Crie um arquivo chamado EnchantedWeapon.lua
    function onSay(cid, words, param) local normal_weapons = { axe = 7380, -- ID do AXE NORMAL sword = 7406, -- ID do SWORD NORMAL club = 7415, -- ID do CLUB NORMAL } local enchanted_weapons = { axe = { ["fire"] = 7752, -- ID dos AXES ENCANTADOS ["ice"] = 7771, ["earth"] = 7862, ["energy"] = 7877, }, sword = { ["fire"] = 7747, -- ID dos SWORDS ENCANTADOS ["ice"] = 7766, ["earth"] = 7857, ["energy"] = 7872, }, club = { ["fire"] = 7756, -- ID dos CLUBS ENCANTADOS ["ice"] = 7775, ["earth"] = 7866, ["energy"] = 7881, }, } if (words == "!axe") then if (param == "fire") then TransformWeapon(cid, normal_weapons.axe, enchanted_weapons.axe[param]) return true end if (param == "ice") then TransformWeapon(cid, normal_weapons.axe, enchanted_weapons.axe[param]) return true end if (param == "earth") then TransformWeapon(cid, normal_weapons.axe, enchanted_weapons.axe[param]) return true end if (param == "energy") then TransformWeapon(cid, normal_weapons.axe, enchanted_weapons.axe[param]) return true end end if (words == "!sword") then if (param == "fire") then TransformWeapon(cid, normal_weapons.sword, enchanted_weapons.sword[param]) return true end if (param == "ice") then TransformWeapon(cid, normal_weapons.sword, enchanted_weapons.sword[param]) return true end if (param == "earth") then TransformWeapon(cid, normal_weapons.sword, enchanted_weapons.sword[param]) return true end if (param == "energy") then TransformWeapon(cid, normal_weapons.sword, enchanted_weapons.sword[param]) return true end end if (words == "!club") then if (param == "fire") then TransformWeapon(cid, normal_weapons.club, enchanted_weapons.club[param]) return true end if (param == "ice") then TransformWeapon(cid, normal_weapons.club, enchanted_weapons.club[param]) return true end if (param == "earth") then TransformWeapon(cid, normal_weapons.club, enchanted_weapons.club[param]) return true end if (param == "energy") then TransformWeapon(cid, normal_weapons.club, enchanted_weapons.club[param]) return true end end end function TransformWeapon(cid, normal_weapons, enchanted_weapons) if not (getPlayerVocation(cid) == 4) then doPlayerSendCancel(cid, "You dont is a Elite Knight.") return false end if (getPlayerItemCount(cid, normal_weapons) >= 1) then doPlayerRemoveItem(cid, normal_weapons, 1) doPlayerAddItem(cid, enchanted_weapons, 1) doPlayerSendCancel(cid, "You item been enchanted.") else doPlayerSendCancel(cid, "You dont have item.") return false end end  
    XML no Talkactions: 
     
    <talkaction words="!axe" event="script" value="EnchantedWeapon.lua"/> <talkaction words="!club" event="script" value="EnchantedWeapon.lua"/> <talkaction words="!sword" event="script" value="EnchantedWeapon.lua"/>  
  3. Curtir
    Ricardo Bregantini deu reputação a bpm91 em Preciso Urgente de Ajuda   
    @Ricardo Bregantini  se vc adicionou atributos ao item talvez seja isso, experimente voltar como estava antes e veja se n da debug
  4. Curtir
    Ricardo Bregantini deu reputação a ITALOx em Ajuda em Xml   
    <item id="5785" article="a" name="New Rox Necklace"> <attribute key="weight" value="420" /> <attribute key="slotType" value="necklace" /> <attribute key="absorbPercentAll" value="5" /> <attribute key="speed" value="100" /> <attribute key="extradef" value="5" /> <attribute key="magiclevelpoints" value="5" /> <attribute key="showattributes" value="1" /> <attribute key="showcharges" value="1" /> </item>  
    Tente assim.
     
  5. Curtir
    Ricardo Bregantini deu reputação a bpm91 em Preciso Urgente de Ajuda   
    @Ricardo Bregantini  isso acontece porq vc nao tem a sprite dele ou modificou a sprite.
  6. Gostei
    Ricardo Bregantini deu reputação a Celulose em Item que altere a type   
    @Ricardo Bregantini 
    function onUse(cid, item, fromPosition, itemEx, toPosition) local outfits = {"Orc Warrior", "Pirate Cutthroat", "Dworc Voodoomaster", "Dwarf Guard", "Minotaur Mage"} doSetMonsterOutfit(cid, outfits[math.random(#outfits)], 18000000) doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "MENSAGEM.") return true end <action itemid="14292" event="script" value="outfit.lua"/>
     
  7. Gostei
    Ricardo Bregantini deu reputação a thelifeofpbion em Item que altere a type   
    @Ricardo Bregantini 

    só precisa adicionar a tag ...... tibia 8.60
    function onUse(cid, item) local outfits = {"Orc Warrior", "Pirate Cutthroat", "Dworc Voodoomaster", "Dwarf Guard", "Minotaur Mage"} if doRemoveItem(item.uid,1) then doSetMonsterOutfit(cid, outfits[math.random(#outfits)], 18000000) doSendMagicEffect(getCreaturePosition(cid), 21) end return TRUE end  
  8. Gostei
    Ricardo Bregantini deu reputação a thelifeofpbion em Item que altere a type   
    @Ricardo Bregantini 

    Então, você colocar a tag la no xml das actions... com o id do item. 

    mal a demora, se precisar de ajuda me diga, estou em semana de provas
  9. Gostei
    Ricardo Bregantini deu reputação a LeoTK em Transferencia de arquivos   
    @Ricardo Bregantini para complementar o que o daniel disse você vai ter que importar o creaturescript que faz o lance de matar o monstro e ganhar a outfit e adicionar no monstro esse script ... e fazer isso com todos os outros scripts
  10. Gostei
    Ricardo Bregantini deu reputação a Cat em Transferencia de arquivos   
    O problema de importar um mapa em outro é que dependendo como for configurado no processo, o mapa pode receber novas posições e alguns scripts podem requerer reparo. Mas na prática, copie o mapa mantendo actions/uniqueids/spawns e passe os arquivos para o data do seu servidor.
     
    Na hora de importar tem uma manha para escolher a posição que o mapa ficará, também há a opção ctrl + p que permite modificar o tamanho e coordenadas do mapa.
    Veja mais sobre o import nesse link:
     
    Spoiler


Informação Importante

Confirmação de Termo