Jump to content
  • 0

Mata X monstro e aparece um baú


rorohrodrigues

Question

7 answers to this question

Recommended Posts

  • 0

Bom, isso seria o creaturescript :

function onKill (cid, target, lastHit)

 if getCreatureName(target) == 'Nome do Monster'  then
   doCreateItem(ID do baú, 1, getCreaturePosition(target))
    end
    return true
    end

Disse que já possui o script do baú, adicione:

addEvent(doRemoveItem, (30*1000), item.uid)
Link to comment
Share on other sites

  • 0

engraçado, nunca usei a função do doPlayerAddAddon, tenta aí:

function onKill (cid, target, lastHit)

   if isCreature(target) and getCreatureName(target) ==  'Demon' then
      doPlayerAddAddons(cid, 3)
       doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, 'You received all addons of DemonhunterOutfit!')
         end
           return true
             end
      

Sabe adicionar a tag, e registrar o evento?

Link to comment
Share on other sites

×
×
  • Create New...