Jump to content

Search the Community

Showing results for tags 'drop'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • xTibia - Notícias e Suporte
    • Regras
    • Noticias
    • Soluções
    • Projetos Patrocinados
    • Tutoriais para Iniciantes
    • Imprensa
  • OTServ
    • Notícias e Debates
    • OTServlist
    • Downloads
    • Recursos
    • Suporte
    • Pedidos
    • Show-Off
    • Tutoriais
  • OFF-Topic
    • Barzinho do Éks
    • Design
    • Informática

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Sou

Found 5 results

  1. Olá, preciso de ajuda para criar um monstro. Ele seria um monstro que dropa gold no chão toda vez que toma um hit ao invés de sangrar. 99% de dropar 0-10 gold coin 01% de dropar 0-5 platinum coin Por exemplo um goblin, toda vez que ele apanhar, vai "sangrar" gold no chão e além disso ele droparia outros loots se morrer. Muito obrigado ------------------------ English ------------------------------------- Hello, I need help creating a monster. He would be a monster that drops gold on the ground every time he takes a hit instead of bleeding. 99% chance to drop 0-10 gold coin 01% chance to drop 0-5 platinum coin For example a goblin, every time he gets hit, he will "bleed" gold on the ground and in addition he would drop other loots if he dies. Thanks.
  2. galera tenho um nto e queria tirar o drop item de quando um player morre por favor me ajudeem !!!
  3. Opa tudo beleza? Então achei esse sistema no P.C Quando você dropa uma stone,aparece uma setinha encima do corpse do pokemon. SISTEMA em data/creaturescripts/scripts/dropstone.lua apague tudo lá e cole esse.
  4. Boa noite, preciso de uma ajuda com essa função doCreatureSetDropLoot, eu já tentei arrumar sozinho, mas não sou bom o suficiente. só o que eu quero é colocar um 3º parâmetro, que dê a possibilidade de colocar um slot especifico. doCreatureSetDropLoot(cid, doDropt[, slot]) Exemplo: doCreatureSetDropLoot(cid, false, CONST_SLOT_ARMOR) -- no caso coloco isso no preparedeath e o player cid não vai perder somente oq estiver no slot armor. sendo um parâmetro opcional. segue função: int32_t LuaScriptInterfaceluaDoCreatureSetDropLoot(lua_State* L){ //doCreatureSetDropLoot(cid, doDrop) bool doDrop = popNumber(L); ScriptEnviroment* env = getEnv(); if(Creature* creature = env->getCreatureByUID(popNumber(L))) { creature->setDropLoot(doDrop ? LOOT_DROP_FULL : LOOT_DROP_NONE); lua_pushboolean(L, true); } else { errorEx(getError(LUA_ERROR_CREATURE_NOT_FOUND)); lua_pushboolean(L, false); } return 1;}
  5. Criei um script que da proteção de drop até determinado nível. Esta proteção é válida somente para monstros, se você morrer para algum outro personagem, irá dropar loot normalmente. Em creaturescripts crie um arquivo chamado drop.lua e ponha isto: function onDeath(cid, corpse, deathList) local drop, nDrop = function() doCreatureSetDropLoot(cid, true) end, function() doCreatureSetDropLoot(cid, false) end if getPlayerLevel(cid) <= 50 then for _, list in pairs (deathList) do if isMonster(list) then nDrop() else drop() end end else local aol, slot = 2173, getPlayerSlotItem(cid, CONST_SLOT_NECKLACE) if slot.itemid == aol then doPlayerRemoveItem(cid, slot.itemid, 1) nDrop() else drop() end end return trueend Em login.lua adicione isto: registerCreatureEvent(cid, "DROP") E no arquivo creaturescripts.xml adicione esta linha: <event type="death" name="DROP" event="script" value="drop.lua"/>
×
×
  • Create New...