Ir para conteúdo

darkmu

Membro
  • Registro em

  • Última visita

Tudo que darkmu postou

  1. Acredito que seria mais fácil fazer por modalwindow no teu caso pela praticidade...
  2. chama-se backpack, hahaha. <movevent type="Equip" itemid="" slot="backpack" level="" event="function" value="onEquipItem"/>
  3. Como fazer com que o ícone (existente no client) aparecer na health bar? (TFS 1.3 padrão, atualizada) Ou seja, deveria aparecer assim: Alguém sabe corrigir? Acho que isso é interessante pois corrigirá um bug do OTClient.
  4. Alguém pode salvar essa pobre pessoa? rs
  5. Vou além... no meu não pega nenhum dosi 3, rs Só aparece o status da arma com life leech / critical e mana leech (texto)... mas não faz efeito algum, não enche hp, mana.. nem afins, rs
  6. Como faço para que o local chance = 1 seja alterado para uma array do tipo local rare_items = {2152, 2555, 3252}? Desde já agradeço pela ajuda. (Sou iniciante). Código: local effect = CONST_ME_TUTORIALARROW -- magic effect local chance = 1 -- magic effect for item that drops less than 5% of the time function onLogin(player) player:registerEvent('rarelootkill') return true end function onKill(player, target) if target:isMonster() then target:registerEvent('rarelootdeath') end return true end function getContainerItemIds(container) t = {} if not container then return t end if not container:getSize() then return t end for i = container:getSize()-1, 1, -1 do table.insert(t,container:getItem(i):getId()) end return t end function hasItemById(container,itemid) if not itemid or not container then return false end if isInArray(getContainerItemIds(container),itemid) then return true end return false end function onDeath(creature, corpse, killer, mostDamageKiller, unjustified, mostDamageUnjustified) if not creature then return true end local loot = creature:getType():getLoot() if not loot then return true end local totalchance = 0 for i, k in pairs(loot) do totalchance = totalchance + k.chance end addEvent(function() for i, k in pairs(loot) do if not corpse or not killer then return end if hasItemById(corpse,k.itemId) and k.chance/totalchance < chance/100 then corpse:getPosition():sendMagicEffect(effect) killer:sendTextMessage(MESSAGE_STATUS_DEFAULT, "You looted a "..ItemType(k.itemId):getName().."!") end end end,1) return true end

Informação Importante

Confirmação de Termo