Ir para conteúdo
  • Cadastre-se

ikaroangelo21

Membro
  • Total de itens

    59
  • Registro em

  • Última visita

  • Dias Ganhos

    1

Tudo que ikaroangelo21 postou

  1. Funções: doCreatureSetStorage setPlayerStorageValue
  2. exhaustion = { check = function (cid, storage) if(getPlayerFlagValue(cid, PLAYERFLAG_HASNOEXHAUSTION)) then return false end return getPlayerStorageValue(cid, storage) >= os.time() end, get = function (cid, storage) if(getPlayerFlagValue(cid, PLAYERFLAG_HASNOEXHAUSTION)) then return false end local exhaust = getPlayerStorageValue(cid, storage) if(exhaust > 0) then local left = exhaust - os.time() if(left >= 0) then return left end end return false end, set = function (cid, storage, time) setPlayerStorageValue(cid, storage, os.time() + t
  3. Tenta assim: function onSay(cid, words, param) if(not checkExhausted(cid, 666, 20)) then return true end if (getPlayerBlessing(cid,1)) then return doPlayerSendTextMessage(cid,25,"Você já possui bless.") end local position = getCreaturePosition(cid) if getPlayerLevel(cid) <= 79 then if getPlayerMoney(cid) >= 50000 then if doPlayerRemoveMoney(cid, 50000) then for b=1, 5 do doPlayerAddBlessing(cid, b) end doPlayerSendTextMessage(cid, 27, "Você comprou 'All Blessings'.") doCreatureSay(cid, "Blessed!", TALKTYPE_ORANGE_1) doSendMagicEffect(
  4. Usa esse MOD, melhor. <?xml version="1.0" encoding="ISO-8859-1"?> <mod name="Exp Potion" version="1.0" author="Vodkart" contact="DISCORD: vodkart#6090" enabled="yes"> <config name="exppotion"><![CDATA[ exp_info = {rate = 0.2, storage = {354870,354871,354872}, minutes = 30} -- rate 0.2 = 20% function convertTime(a) if(type(tonumber(a)) == "number" and a > 0) then if (a <= 3599) then local minute = math.floor(a/60) local second = a - (60 * minute) if(second == 0) then return ((minute)..((minute > 1) and " minutos" or " minuto"))
  5. eventsId = {} local function rechargeStamina(cid) if not isPlayer(cid) then eventsId[cid] = nil return end doPlayerAddStamina(cid, 1) eventsId[cid] = addEvent(rechargeStamina, 3 * 60 * 1000, cid) end function onStepIn(cid, item, position, lastPosition, fromPosition, toPosition, actor) if isPlayer(cid) then eventsId[cid] = addEvent(rechargeStamina, 3 * 60 * 1000, cid) doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Bem vindo aos trainers VIP's " .. getCreatureName(cid) .."! Você receberá 1 minuto de stamina a cada 3 minutos nos trainers VIP's.") end
  6. @MattOt no itens.xml procura: <item id="100" article="a" name="fainted shiny houndoom"> <attribute key="containerSize" value="10" /> <attribute key="decayTo" value="0" /> <attribute key="duration" value="300" /> </item> <item id="100" article="a" name="fainted bronzong"> <attribute key="containerSize" value="10" /> <attribute key="decayTo" value="0" /> <attribute key="duration" value="300" /> </item> <item id="100" article="a" n
  7. entendo, abre o yourots e me manda uma linha dos bichos que estao bugados
  8. esqueci isso de inicio, atualizei o código, com a função, faça o teste @Kitsune Shiro local items = { {itemId = 12377, count = 1, chance = 30}, {itemId = 11987, count = 1, chance = 20}, {itemId = 12338, count = 1, chance = 20}, {itemId = 12032, count = 1, chance = 20}, {itemId = 12031, count = 1, chance = 20}, {itemId = 12030, count = 1, chance = 20}, {itemId = 12547, count = 1, chance = 10}, {itemId = 15685, count = 1, chance = 1}, } function onUse(cid, item, frompos, item2, topos) local config = { pos = getCreaturePosition(cid), exhaustionSeconds = 3600, storageUse = 44231,
  9. local items = { {itemId = 12377, count = 1, chance = 30}, {itemId = 11987, count = 1, chance = 20}, {itemId = 12338, count = 1, chance = 20}, {itemId = 12032, count = 1, chance = 20}, {itemId = 12031, count = 1, chance = 20}, {itemId = 12030, count = 1, chance = 20}, {itemId = 12547, count = 1, chance = 10}, {itemId = 15685, count = 1, chance = 1}, } function onUse(cid, item, frompos, item2, topos) local config = { pos = getCreaturePosition(cid), exhaustionSeconds = 3600, storageUse = 44231, } if(exhaustion.check(cid, config.storageUse)) then if (exhaustion.get(cid, config.storageUse) &
  10. @jeffersson s2 guildHalls = false para guildHalls = true, resto e no rme editor.
  11. seu servidor -> data -> world. Baiak Barao-spawn (algo parecido). @victor8082
  12. local items = { {itemId = 12337, count = 1, chance = 30}, -- naruto and gamabunta {itemId = 11987, count = 1, chance = 20}, -- naruto road to ninja {itemId = 12338, count = 1, chance = 20}, {itemId = 12032, count = 1, chance = 20}, {itemId = 12031, count = 1, chance = 20}, {itemId = 12030, count = 1, chance = 20}, {itemId = 12547, count = 1, chance = 10}, {itemId = 15685, count = 1, chance = 1}, } local broadcastitems = {12337, 11987, 12338, 12032, 12031, 12030, 12547, 15685} function onUse(cid, item, frompos, item2, topos) local totalChance, randomTable, randomNumb
  13. </item> <item id="2197" article="a" name="stone skin amulet"> <attribute key="weight" value="760" /> <attribute key="slotType" value="necklace" /> <attribute key="charges" value="5" /> <attribute key="showcharges" value="5" /> <attribute key="absorbPercentPhysical" value="80" /> <attribute key="absorbPercentDeath" value="80" /> <attribute key="showattributes" value="1" /> </item> </item> <item id="2164" article="a" name="might ring"> <attri
  14. @OfWar https://tibiaking.com/forums/topic/26430-pedido-npc-de-troca/
  15. <movevent event="Equip" itemid="36759" slot="feet" level="500" function="onEquipItem"> <vocation id="1" /> <vocation id="5" showInDescription="0" /> <vocation id="2" /> <vocation id="6" showInDescription="0" /> </movevent> <movevent type="DeEquip" itemid="36759" slot="feet" level="500" function="onDeEquipItem" />
  16. <movevent event="Equip" itemid="36759" level="500" slot="feet" event="function" value="onEquipItem"> <vocation name="Druid" /> <vocation name="Elder Druid" showInDescription="0" /> <vocation name="Sorcerer" /> <vocation name="Master Sorcerer" showInDescription="0" /> </movevent> <movevent type="DeEquip" itemid="36759" level="500" slot="feet" event="function" value="onDeEquipItem" />
  17. @maleskinho poste o script do npc !
  18. @Diego767 tente <movevent event="Equip" itemid="36759" level="500" slot="feet" event="function" value="onEquipItem"> <!-- Frozen Boots --> <vocation id="1"/> <vocation id="5" showInDescription="0"/> <vocation id="2"/> <vocation id="6" showInDescription="0"/> </movevent> <movevent type="DeEquip" itemid="36759" level="500" slot="feet" event="function" value="onDeEquipItem"/>
×
×
  • Criar Novo...

Informação Importante

Confirmação de Termo