Ir para conteúdo

oliverarrow

Membro
  • Registro em

  • Última visita

  1. É aqui que faz a checagem se vai dar certo ou n local random, effect = math.random(1, 100000), CONST_ME_MAGIC_GREEN Mas n sei como modificar pra ficar metade do q é
  2. Queria diminuir a chance de vir itens qnd usa obsidian knife e wood n sei oq lá, pela metade, pq ta vindo mt script local SKINS = { [5908] = { -- Minotaurs [2830] = {25000, 5878}, [2871] = {25000, 5878}, [2866] = {25000, 5878}, [2876] = {25000, 5878}, [3090] = {25000, 5878}, -- Lizards [4259] = {25000, 5876}, [4262] = {25000, 5876}, [4256] = {25000, 5876}, -- Dragons [3104] = {25000, 5877}, [2844] = {25000, 5877}, -- Dragon Lords [2881] = {25000, 5948}, -- Behemoths [2931] = {25000, 5930, 90000, 5893}, -- Bone Beasts [3031] = {25000, 5925} }, [5942] = { -- Demon [2956] = {25000, 5905}, -- Vampire [2916] = {25000, 5906} } } function onUse(cid, item, fromPosition, itemEx, toPosition) local skin = SKINS[item.itemid][itemEx.itemid] if(skin == nil) then doPlayerSendDefaultCancel(cid, RETURNVALUE_NOTPOSSIBLE) return true end local random, effect = math.random(1, 100000), CONST_ME_MAGIC_GREEN if(random <= skin[1]) then doPlayerAddItem(cid, skin[2], 1) elseif(skin[3] and random >= skin[3]) then doPlayerAddItem(cid, skin[4], 1) else effect = CONST_ME_POFF end doSendMagicEffect(toPosition, effect) doTransformItem(itemEx.uid, itemEx.itemid + 1) return true end
  3. Então pessoal, como meu PC é um lixo e não abre o mapa global nem fodendo, preciso pedir isso pra vc's... http://4.1m.yt/ccpjARy0E.png Esse local do mapa global, onde ficam os quaras e tals, que tem a quest do mermaid, alguem corta ele direitinho pra mim com os spawns? Dou 10 reps.. vlw Meu mapa é versão 8.6
  4. Então pessoal, como meu PC é um lixo e não abre o mapa global nem fodendo, preciso pedir isso pra vc's... http://4.1m.yt/ccpjARy0E.png Esse local do mapa global, onde ficam os quaras e tals, que tem a quest do mermaid, alguem corta ele direitinho pra mim com os spawns? Dou 10 reps.. vlw Edit: Meu mapa é versão 8.6
  5. oliverarrow reagiu a uma resposta no tópico: NPC que troca nome
  6. oliverarrow reagiu a uma resposta no tópico: NPC que troca nome
  7. Ta dando erro brother! 15:26 Change Name: Qual deve ser o seu novo nome? 15:26 Oliver Arrow [17]: Oliver Test Po cara obrigado por tentar ajudar, mas account mananger não rola, os caras vão acabar fazendo meu ot ter lag, usando magebomb e tals, ou logando mais um fake, queria npc mesmo
  8. Alguém pode me passar um script ou fazer ou me dar uma base de um NPC que troca seu nome por 30 itens do id 1010
  9. Teu script ta funcionando perfeitamente brother, mas só uma dúvida To achando que esse problema é no meu !frags, quando eu dou !frags da como se eu tive-se red ainda, fica a msg Your black skull will... Dessa parte do script eu acho if(skullEnd > 0) then result = result .. "\nYour " .. (getCreatureSkullType(cid) == SKULL_RED and "red" or "black") .. " skull will expire at " .. os.date("%d %B %Y %X", skullEnd) end Será que isso não vai dar problema depois no meu ot não? Pq a variavel skullend ta > q 0 !frags.lua local config = { useFragHandler = getBooleanFromString(getConfigValue('useFragHandler')), advancedFragList = getBooleanFromString(getConfigValue('advancedFragList')) } function onSay(cid, words, param, channel) if(not config.useFragHandler) then return false end local time = os.time() local times = {today = (time - 86400), week = (time - (7 * 86400))} local contents, result = {day = {}, week = {}, month = {}}, db.getResult("SELECT `pd`.`date`, `pd`.`level`, `p`.`name` FROM `player_killers` pk LEFT JOIN `killers` k ON `pk`.`kill_id` = `k`.`id` LEFT JOIN `player_deaths` pd ON `k`.`death_id` = `pd`.`id` LEFT JOIN `players` p ON `pd`.`player_id` = `p`.`id` WHERE `pk`.`player_id` = " .. getPlayerGUID(cid) .. " AND `k`.`unjustified` = 1 AND `pd`.`date` >= " .. (time - (30 * 86400)) .. " ORDER BY `pd`.`date` DESC") if(result:getID() ~= -1) then repeat local content = { name = result:getDataString("name"), level = result:getDataInt("level"), date = result:getDataInt("date") } if(content.date > times.today) then table.insert(contents.day, content) elseif(content.date > times.week) then table.insert(contents.week, content) else table.insert(contents.month, content) end until not result:next() result:free() end local size = { day = table.maxn(contents.day), week = table.maxn(contents.week), month = table.maxn(contents.month) } if(config.advancedFragList) then local result = "Frags gained today: " .. size.day .. "." if(size.day > 0) then for _, content in ipairs(contents.day) do result = result .. "\n* " .. os.date("%d %B %Y %X at ", content.date) .. content.name .. " on level " .. content.level end result = result .. "\n" end result = result .. "\nFrags gained this week: " .. (size.day + size.week) .. "." if(size.week > 0) then for _, content in ipairs(contents.week) do result = result .. "\n* " .. os.date("%d %B %Y %X at ", content.date) .. content.name .. " on level " .. content.level end result = result .. "\n" end result = result .. "\nFrags gained this month: " .. (size.day + size.week + size.month) .. "." if(size.month > 0) then for _, content in ipairs(contents.month) do result = result .. "\n* " .. os.date("%d %B %Y %X at ", content.date) .. content.name .. " on level " .. content.level end result = result .. "\n" end local skullEnd = getPlayerSkullEnd(cid) if(skullEnd > 0) then result = result .. "\nYour " .. (getCreatureSkullType(cid) == SKULL_RED and "red" or "black") .. " skull will expire at " .. os.date("%d %B %Y %X", skullEnd) end doPlayerPopupFYI(cid, result) else doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "You currently have " .. size.day .. " frags today, " .. (size.day + size.week) .. " this week and " .. (size.day + size.week + size.month) .. " this month.") if(size.day > 0) then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Last frag at " .. os.date("%d %B %Y %X", contents.day[1].date) .. " on level " .. contents.day[1].level .. " (" .. contents.day[1].name .. ").") end local skullEnd = getPlayerSkullEnd(cid) if(skullEnd > 0) then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Your " .. (getCreatureSkullType(cid) == SKULL_RED and "red" or "black") .. " skull will expire at " .. os.date("%d %B %Y %X", skullEnd)) end end return true end
  10. oliverarrow reagiu a uma resposta no tópico: [PEDIDO] NPC tira red
  11. oliverarrow reagiu a uma resposta no tópico: [PEDIDO] NPC tira red
  12. Tentei fazer o meu, mas quando fala red skull da esse erro: local keywordHandler = KeywordHandler:new() local npcHandler = NpcHandler:new(keywordHandler) NpcSystem.parseParameters(npcHandler) function onCreatureAppear(cid) npcHandler:onCreatureAppear(cid) end function onCreatureDisappear(cid) npcHandler:onCreatureDisappear(cid) end function onCreatureSay(cid, type, msg) npcHandler:onCreatureSay(cid, type, msg) end function onThink() npcHandler:onThink() end function creatureSayCallback(cid, type, msg) if(not npcHandler:isFocused(cid)) then return false end local talkUser = NPCHANDLER_CONVBEHAVIOR == CONVERSATION_DEFAULT and 0 or cid if getCreatureCondition(cid, CONDITION_INFIGHT) then npcHandler:say("You are in fight! Wait!", cid) return true end if(msgcontains(msg, 'remove')) then selfSay('I can remove you skulls: {red skull} [5 tokens], {black skull} [10 tokens]', cid) elseif(msgcontains(msg, 'red skull')) then if not getPlayerItemCount(cid, 6527) >= 5 then selfSay("You dont have 5 tokens!", cid) return true end if not getCreatureSkullType(cid) < 4 then selfSay("You dont have RED SKULL!", cid) return true end doPlayerRemoveItem(cid, 6527, 5) selfSay("Here it is.", cid) db.executeQuery("UPDATE killers SET unjustified = '0' WHERE id IN (SELECT kill_id FROM player_killers WHERE player_id = "..getPlayerGUID(cid)..")") doCreatureSetSkullType(cid, 0) elseif(msgcontains(msg, 'black skull')) then if not getPlayerItemCount(cid, 6527) >= 10 then selfSay("You dont have 10 tokens!", cid) return true end if not getCreatureSkullType(cid) < 5 then selfSay("You dont have BLACK SKULL!", cid) return true end doPlayerRemoveItem(cid, 6527, 10) selfSay("Here it is.", cid) db.executeQuery("UPDATE killers SET unjustified = '0' WHERE id IN (SELECT kill_id FROM player_killers WHERE player_id = "..getPlayerGUID(cid)..")") doCreatureSetSkullType(cid, 0) end return true end npcHandler:setCallback(CALLBACK_MESSAGE_DEFAULT, creatureSayCallback) npcHandler:addModule(FocusModule:new())
  13. oliverarrow reagiu a uma resposta no tópico: [PEDIDO] NPC tira red
  14. Preciso das checagens de se player tem black skull ou red skull, esse script já pode me dar uma base, mas ainda falta umas coisas, eu queria script que remove-se black e red, se vc me der os ifs, acho que já da pra eu fazer... e outra estrutura de condicional
  15. Queria um NPC que tira-se red e black skull pelo item 1010 Red skull 5 itens, black skull 10 itens Teria que pagar com o item 1010 pra remover a red e a black source 0.4
  16. Passeando pelo fórum achei um sistema que impede o anuncio de ots, mas se o cara tentar, tentar, tentar ele consegue, então queria algo mais funcional que ao em vez de mutar o jogador desse um banip nele temporario de uma hora, alguem sabe essa função? if(int(text.find("servegame"))>0||int(text.find("no-ip"))>0) { player->sendTextMessage(MSG_STATUS_SMALL, "You can't send this message."); return false; }
  17. É só essas aí que eu postei e coloquei em anexo
  18. Tava querendo atualizar os monstros com algumas magias que tem novas da hora no meu ot 8.6, mas eu não sei Uso versão 0.4 (8.60) Tem como fazer isso? Alguém sabe como? Pls, dou 20 reps São essas as magias <!-- Monster Spells --> <instant name="ghastly dragon curse" words="###1" aggressive="1" blockwalls="1" needtarget="1" needlearn="1" script="monster/ghastly dragon curse.lua"/> <instant name="djinn electrify" words="###2" aggressive="1" blockwalls="1" needtarget="1" needlearn="1" script="monster/djinn electrify.lua"/> <instant name="energy elemental electrify" words="###3" aggressive="1" blockwalls="1" needtarget="0" needlearn="1" script="monster/energy elemental electrify.lua"/> <instant name="massive energy elemental electrify" words="###4" aggressive="1" blockwalls="1" needtarget="0" needlearn="1" script="monster/massive energy elemental electrify.lua"/> <instant name="massive fire elemental soulfire" words="###5" aggressive="1" blockwalls="1" needtarget="0" needlearn="1" script="monster/massive fire elemental soulfire.lua"/> <instant name="hellfire fighter soulfire" words="###6" aggressive="1" blockwalls="1" needtarget="0" needlearn="1" script="monster/hellfire fighter soulfire.lua"/> <instant name="hellspawn soulfire" words="###7" aggressive="1" blockwalls="1" range="7" needtarget="1" needlearn="1" script="monster/hellspawn soulfire.lua"/> <instant name="spectre drown" words="###8" aggressive="1" blockwalls="1" needtarget="0" needlearn="1" script="monster/spectre drown.lua"/> <instant name="phantasm drown" words="###9" direction="1" aggressive="1" blockwalls="1" needtarget="0" needlearn="1" script="monster/phantasm drown.lua"/> <instant name="undead dragon curse" words="###10" direction="1" aggressive="1" blockwalls="1" needtarget="0" needlearn="1" script="monster/undead dragon curse.lua"/> <instant name="draken abomination curse" words="###11" aggressive="1" blockwalls="1" needtarget="1" needlearn="1" script="monster/draken abomination curse.lua"/> <instant name="lancer beetle curse" words="###12" aggressive="1" blockwalls="1" needtarget="1" needlearn="1" script="monster/lancer beetle curse.lua"/> <instant name="lizard magistratus curse" words="###13" aggressive="1" blockwalls="1" needtarget="1" needlearn="1" script="monster/lizard magistratus curse.lua"/> <instant name="death blob curse" words="###14" aggressive="1" blockwalls="1" needtarget="1" needlearn="1" script="monster/death blob curse.lua"/> <instant name="choking fear drown" words="###15" aggressive="1" blockwalls="1" needtarget="0" needlearn="1" script="monster/choking fear drown.lua"/> <instant name="blightwalker curse" words="###16" aggressive="1" blockwalls="1" needtarget="0" needlearn="1" script="monster/blightwalker curse.lua"/> <instant name="sea serpent drown" words="###17" aggressive="1" blockwalls="1" needtarget="1" needlearn="1" script="monster/sea serpent drown.lua"/> <instant name="young sea serpent drown" words="###18" aggressive="1" blockwalls="1" needtarget="1" needlearn="1" script="monster/young sea serpent drown.lua"/> <instant name="quara constrictor freeze" words="###19" aggressive="1" blockwalls="1" needtarget="0" needlearn="1" script="monster/quara constrictor freeze.lua"/> <instant name="quara constrictor electrify" words="###20" aggressive="1" blockwalls="1" needtarget="1" needlearn="1" script="monster/quara constrictor electrify.lua"/> <instant name="cliff strider electrify" words="###21" aggressive="1" blockwalls="1" needtarget="1" needlearn="1" script="monster/cliff strider electrify.lua"/> <instant name="war golem electrify" words="###22" aggressive="1" blockwalls="1" needtarget="1" needlearn="1" script="monster/war golem electrify.lua"/> <instant name="souleater drown" words="###23" aggressive="1" blockwalls="1" needtarget="1" needlearn="1" script="monster/souleater drown.lua"/> <instant name="mutated bat curse" words="###24" direction="1" aggressive="1" blockwalls="1" needtarget="0" needlearn="1" script="monster/mutated bat curse.lua"/> <instant name="vulcongra soulfire" words="###25" aggressive="1" blockwalls="1" needtarget="0" needlearn="1" script="monster/vulcongra soulfire.lua"/> <instant name="lava golem soulfire" words="###26" aggressive="1" blockwalls="1" needtarget="0" needlearn="1" script="monster/lava golem soulfire.lua"/> <instant name="magma crawler soulfire" words="###27" aggressive="1" blockwalls="1" needtarget="0" needlearn="1" script="monster/magma crawler soulfire.lua"/> <instant name="war golem skill reducer" words="###28" direction="1" aggressive="1" blockwalls="1" needtarget="0" needlearn="1" script="monster/war golem skill reducer.lua"/> <instant name="silencer skill reducer" words="###29" aggressive="1" blockwalls="1" needtarget="1" needlearn="1" script="monster/silencer skill reducer.lua"/> <instant name="warlock skill reducer" words="###30" aggressive="1" blockwalls="1" needtarget="1" needlearn="1" script="monster/warlock skill reducer.lua"/> <instant name="cliff strider skill reducer" words="###31" aggressive="1" blockwalls="1" needtarget="0" needlearn="1" script="monster/cliff strider skill reducer.lua"/> <instant name="stampor skill reducer" words="###32" aggressive="1" blockwalls="1" needtarget="1" needlearn="1" script="monster/stampor skill reducer.lua"/> <instant name="diabolic imp skill reducer" words="###33" aggressive="1" blockwalls="1" needtarget="1" needlearn="1" script="monster/diabolic imp skill reducer.lua"/> <instant name="dark torturer skill reducer" words="###34" direction="1" aggressive="1" blockwalls="1" needtarget="0" needlearn="1" script="monster/dark torturer skill reducer.lua"/> <instant name="forest fury skill reducer" words="###35" aggressive="1" blockwalls="1" needtarget="1" needlearn="1" script="monster/forest fury skill reducer.lua"/> <instant name="demon outcast skill reducer" words="###36" aggressive="1" blockwalls="1" needtarget="1" needlearn="1" script="monster/demon outcast skill reducer.lua"/> <instant name="fury skill reducer" words="###37" aggressive="1" blockwalls="1" needtarget="0" needlearn="1" script="monster/fury skill reducer.lua"/> <instant name="barbarian brutetamer skill reducer" words="###38" aggressive="1" blockwalls="1" needtarget="1" needlearn="1" script="monster/barbarian brutetamer skill reducer.lua"/> <instant name="deepling spellsinger skill reducer" words="###39" aggressive="1" blockwalls="1" needtarget="1" needlearn="1" script="monster/deepling spellsinger skill reducer.lua"/> <instant name="werewolf skill reducer" words="###40" aggressive="1" blockwalls="1" needtarget="1" needlearn="1" script="monster/werewolf skill reducer.lua"/> <instant name="ice golem skill reducer" words="###41" aggressive="1" blockwalls="1" needtarget="0" needlearn="1" script="monster/ice golem skill reducer.lua"/> <instant name="feversleep skill reducer" words="###42" aggressive="1" blockwalls="1" needtarget="0" needlearn="1" script="monster/feversleep skill reducer.lua"/> <instant name="shock head skill reducer 1" words="###43" aggressive="1" blockwalls="1" needtarget="1" needlearn="1" script="monster/shock head skill reducer 1.lua"/> <instant name="shock head skill reducer 2" words="###44" aggressive="1" blockwalls="1" needtarget="0" needlearn="1" script="monster/shock head skill reducer 2.lua"/> <instant name="enslaved dwarf skill reducer 1" words="###45" aggressive="1" blockwalls="1" needtarget="0" needlearn="1" script="monster/enslaved dwarf skill reducer 1.lua"/> <instant name="enslaved dwarf skill reducer 2" words="###46" aggressive="1" blockwalls="1" needtarget="0" needlearn="1" script="monster/enslaved dwarf skill reducer 2.lua"/> <instant name="djinn cancel invisibility" words="###47" aggressive="1" blockwalls="1" needtarget="0" needlearn="1" script="monster/djinn cancel invisibility.lua"/> <instant name="betrayed wraith skill reducer" words="###48" direction="1" aggressive="1" blockwalls="1" needtarget="0" needlearn="1" script="monster/betrayed wraith skill reducer.lua"/> <instant name="pirate corsair skill reducer" words="###49" direction="1" aggressive="1" blockwalls="1" needtarget="0" needlearn="1" script="monster/pirate corsair skill reducer.lua"/> monster.rar
  19. oliverarrow postou uma resposta no tópico em Monsters, NPC, Raids & Mounts
    que desgraça deve ser outra função, procurar aqui, se eu achar aviso e passo pro pessoal, se alguem souber diz ai

Informação Importante

Confirmação de Termo