Ir para conteúdo

Gustavo Ntos

Membro
  • Registro em

  • Última visita

Tudo que Gustavo Ntos postou

  1. Não estou conseguindo usar o client em OTC mesmo compilando ele com a opção Extented
  2. o foda é que não to conseguindo passa o .dat e .spr old para extendido toda vez o client não lêe os novos arquivos...
  3. Alguem pode me dizer um client OTC compativel com essa base? >
  4. Ai o cara entra na quest não sai mais e ninguem faz ...
  5. local ilha = {x = 1, y = 1, z = 7} -- POSIÇÃO DA ILHA local dp = {x = 1, y = 1, z = 7} -- POSIÇÃO DO TEMPLO OU DP local time = 2 -- Tempo para mandar as mensagens e adiciona item function onUse(cid, item, frompos, item2, topos) doPlayerSendTextMessage(cid, 25, "Voce foi teleportado para ilha, Capture muitos Pokemons!!") doTeleportThing(cid, ilha) doSendMagicEffect(topos, 24) doRemoveItem(item.uid, 1) function add() doTeleportThing(cid, dp) doSendMagicEffect(topos, 24) end addEvent(add, time* 60 * 60) return TRUE end
  6. Poste as scripts
  7. Action: local ilha = {x = 1, y = 1, z = 7} -- POSIÇÃO DA ILHA local dp = {x = 1, y = 1, z = 7} -- POSIÇÃO DO TEMPLO OU DP local time = 2 -- Tempo em hrs function onUse(cid, item, frompos, item2, topos) doTeleportThing(cid, ilha) doSendMagicEffect(topos, 24) function add() doTeleportThing(cid, dp) doSendMagicEffect(topos, 24) end addEvent(add, time* 60 * 60) return TRUE end Code 2(caso o 1 tenha dado errado): Action: local ilha = {x = 1, y = 1, z = 7} -- POSIÇÃO DA ILHA local config = { storage = 65789 horas = 2 } function onUse(cid, item, frompos, item2, topos) if getPlayerStorageValue(cid, config.storage) > os.time() then doPlayerSendTextMessage(cid, 25, "Voce ja esta na ilha.") end return false if getPlayerStorageValue(cid, config.storage) < os.time() then doTeleportThing(cid, ilha) doSendMagicEffect(topos, 24) setPlayerStorageValue(cid, config.storage, os.time() + config.horas * 60 * 60) end return TRUE end CREATURESCRIPTS: local storage = 65789 local dp = {x = 1, y = 1, z = 7} -- POSIÇÃO DO TEMPLO OU DP function onThink(cid, interval) addEvent(function() if isPlayer(cid) and getPlayerStorageValue(cid, storage) == 0 then doTeleportThing(cid, dp) end end, 1000 * 1) end <event type="think" name="Ilha" event="script" value="Nomedoarquivo.lua"/> Login.lua: registerCreatureEvent(cid, "Ilha")
  8. quest.lua local DESTINO = {x = 2521, y = 2280, z = 14} -- POSIÇÃO DA QUEST 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:lower()) end function onThink() npcHandler:onThink() end local talkState = {} 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 msgcontains(msg, "quest") then selfSay("Voce quer ir mesmo para a quest??", cid) talkState[talkUser] = 1 elseif msgcontains(msg, "yes") and talkState[talkUser] == 1 then doSendMagicEffect(getThingPos(cid), 10) npcHandler:releaseFocus(cid) doTeleportThing(cid, DESTINO) doSendMagicEffect(DESTINO, 10) talkState[talkUser] = 0 end return true end npcHandler:setCallback(CALLBACK_MESSAGE_DEFAULT, creatureSayCallback) npcHandler:addModule(FocusModule:new()) <?xml version="1.0" encoding="UTF-8"?> <npc name="Quest" script="quest.lua" walkinterval="1000"> <health now="100" max="100"/> <look type="468"/> <parameters> <parameter key="module_shop" value="1"/> <parameter key="message_greet" value="Olá eu posso te levar para a {Quest}.."/> </parameters> </npc>
  9. local evo = { --nome do shiny, qnts stones precisa ["Abra"] = {"Shiny Abra", 7}, ["Arcanine"] = {"Shiny Arcanine", 6}, ["Beedrill"] = {"Shiny Beedrill", 2}, ["Blastoise"] = {"Shiny Blastoise", 4}, ["Dratini"] = {"Shiny Dratini", 3}, ["Electabuzz"] = {"Shiny Electabuzz", 5}, ["Grimer"] = {"Shiny Grimer", 1}, ["Growlithe"] = {"Shiny Growlithe", 2}, ["Gyarados"] = {"Shiny Gyarados", 7}, ["Hitmonchan"] = {"Shiny Hitmonchan", 5}, ["Hitmonlee"] = {"Shiny Hitmonlee", 5}, ["Horsea"] = {"Shiny Horsea", 1}, ["Jynx"] = {"Shiny Jynx", 4}, ["Onix"] = {"Shiny Onix", 7}, ["Kingler"] = {"Shiny Kingler", 3}, ["Krabby"] = {"Shiny Krabby", 1}, ["Raichu"] = {"Shiny Raichu", 5}, ["Raticate"] = {"Shiny Raticate", 2}, ["Scyther"] = {"Shiny Scyther", 6}, ["Seadra"] = {"Shiny Seadra", 4}, ["Tentacruel"] = {"Shiny Tentacruel", 6}, ["Venomoth"] = {"Shiny Venomoth", 6}, ["Venusaur"] = {"Shiny Venusaur", 4}, ["Voltorb"] = {"Shiny Voltorb", 1}, ["Electrode"] = {"Shiny Electrode", 3}, ["Pinsir"] = {"Shiny Pinsir", 5}, ["Gengar"] = {"Shiny Gengar", 8}, ["Snorlax"] = {"Shiny Snorlax", 7}, ["Alakazam"] = {"Shiny Alakazam", 8}, ["Zubat"] = {"Shiny Zubat", 1}, ["Pidgeot"] = {"Shiny Pidgeot", 4}, ["Paras"] = {"Shiny Paras", 1}, ["Parasect"] = {"Shiny Parasect", 3}, ["Golbat"] = {"Shiny Golbat", 3}, ["Charizard"] = {"Shiny Charizard", 4}, ["Magikarp"] = {"Shiny Magikarp", 2}, ["Dragonair"] = {"Shiny Dragonair", 5}, ["Dragonite"] = {"Shiny Dragonite", 9}, ["Aerodactyl"] = {"Shiny Aerodactyl", 9}, ["Machamp"] = {"Shiny Machamp", 6}, ["Fearow"] = {"Shiny Fearow", 4}, } function onUse(cid, item, fromPosition, itemEx, toPosition) if isMonster(itemEx.uid) and getCreatureMaster(itemEx.uid) == cid then local monster = getCreatureName(itemEx.uid) if evo[monster] then if getPlayerItemCount(cid, item.itemid) >= evo[monster][2] then doPlayerSendTextMessage(cid, 27, "Congratulations! Your "..getPokeName(itemEx.uid).." evolved into a "..evo[monster][1].."!") local health, maxHealth = getCreatureHealth(itemEx.uid), getCreatureMaxHealth(itemEx.uid) doSendMagicEffect(getThingPos(itemEx.uid), 18) doRemoveCreature(itemEx.uid) doPlayerRemoveItem(cid, item.itemid, evo[monster][2]-1) doRemoveItem(item.uid, 1) local pokeball = getPlayerSlotItem(cid, 8) doItemSetAttribute(pokeball.uid, "poke", evo[monster][1]) doItemSetAttribute(ball, "hp", 1) doItemSetAttribute(ball, "happy", 110) local pk = getCreatureSummons(cid)[1] return TRUE else return doPlayerSendTextMessage(cid, 27, "You need atleast ".. evo[monster][2] .." stones to do it!") end end end return FALSE end Coloque em um item que tem a função Use With:
  10. data/creaturescrips/scripts: Crie um arquivo chamado tpmob.lua e coloque: local tpId = 1387 local tps = { ["Kinkaku"] = {pos = {x=1024, y=920, z=7}, toPos = {x=796, y=1074, z=8}, time = 50}, } function removeTp(tp) local t = getTileItemById(tp.pos, tpId) if t then doRemoveItem(t.uid, 1) doSendMagicEffect(tp.pos, CONST_ME_POFF) end end function onDeath(cid) local tp = tps[getCreatureName(cid)] if tp then doCreateTeleport(tpId, tp.toPos, tp.pos) doCreatureSay(cid, "O teleport irá sumir em "..tp.time.." segundos.", TALKTYPE_ORANGE_1) addEvent(removeTp, tp.time*1000, tp) end return TRUE end Creaturescripts.xml: <event type="death" name="tpmob" event="script" value="tpmob.lua"/> Abre o Monstro que você criou para a quest e adicione essa linha dps de: </frags> <script> <event name="tpmob"/> </script>
  11. Notepad ++ https://notepad-plus-plus.org/
  12. Ninguem nunca vai te ajudar blz? Sabe porque??? Porque você não postou nem ao minimo as scripts desse sistema e se é compativel com tua versão do tfs ou otx
  13. Abre seu talkactions.xml e certifique se tem isso em alguma linha: <!-- Houses --> <talkaction words="!buyhouse" filter="word-spaced" event="function" value="houseBuy"/> <talkaction words="!sellhouse" filter="word-spaced" event="function" value="houseSell"/> <talkaction words="alana sio" filter="word-spaced" event="function" value="houseKick"/> <talkaction words="aleta grav" filter="word-spaced" event="function" value="houseDoorList"/> <talkaction words="aleta sio" filter="word-spaced" event="function" value="houseGuestList"/> <talkaction words="aleta som" filter="word-spaced" event="function" value="houseSubOwnerList"/> <talkaction words="!leavehouse" filter="word-spaced" event="script" value="leavehouse.lua"/>
  14. local a = { itemid = 26194, -- ID DO ITEM QUE VAI DAR A MOUNT mountID = 94, -- ID DA MOUNT storage = 64656, -- STORAGE, SÓ ALTERE SE NECESSARIO } function onUse(cid, item, fromPosition, itemEx, toPosition) if getPlayerStorageValue(cid, a.storage) == -1 then if getPlayerItemCount(cid, a.itemid) >= 1 then doPlayerAddMount(cid, a.mountID) doPlayerRemoveItem(cid, a.itemid, 1) doCreatureSay(cid, 'You receive the permission to ride a sparkion', TALKTYPE_MONSTER_SAY, 2, 2) setPlayerStorageValue(cid, a.storage, 1) else doPlayerSendCancel(cid, "You must have the item in the backpack in order to purchase your mount.") doSendMagicEffect(getPlayerPosition(cid), 2) end else doPlayerSendCancel(cid, "Sorry, you already have this mount.") doSendMagicEffect(getPlayerPosition(cid), 2) end return TRUE end
  15. Data/globalevents/scripts : Crie um arquivo chamado "inv.lua" : local i = { ["12:00"] = {nome = "Mensagem do evento", pos = {x=1000, y=1000, z=6}, monster = {"1 nome do mob, 2 nome do mob"}}, } function onThink(interval, lastExecution) hours = tostring(os.date("%X")):sub(1, 5) tb = i[hours] if tb then doBroadcastMessage(hours .. " - " .. tb.nome .. " Iníciou.") for _,x in pairs(tb.monster) do for s = 1, tonumber(x:match("%d+")) do doSummonCreature(x:match("%s(.+)"), tb.pos) end end end return true end Globalevents.xml: <globalevent name="invasion" interval="60000" event="script" value="inv.lua"/>
  16. Alguem tem alguma sugestão de servidor de pokeitiba para ser usado de base para ser usado para ser feito do "0" .?
  17. A magia não almenta o ML > setAttackFormula(combat, COMBAT_FORMULA_LEVELMAGIC, 8, 8, 10, 12) > Isso é o dano da Spell local combat = createCombatObject() setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_ENERGYDAMAGE) setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_BIGCLOUDS) setAttackFormula(combat, COMBAT_FORMULA_LEVELMAGIC, 8, 8, 10, 12) local condition = createConditionObject(CONDITION_ATTRIBUTES) setConditionParam(condition1, CONDITION_PARAM_TICKS, 10000) setConditionParam(condition1, CONDITION_PARAM_STAT_MAGICLEVEL, 2) setConditionParam(condition1, CONDITION_PARAM_BUFF, true) setCombatCondition(combat, condition) local area = createCombatArea(AREA_CROSS6X6) setCombatArea(combat, area) function onCastSpell(cid, var) if exhaustion.check(cid, 3200) then doPlayerSendCancel(cid, "You are exhausted.") return false end exhaustion.set(cid, 3200, 4) doCombat(cid, combat, var) end
  18. Va no Spells.xml e dps vai na linha do exura e deixa assim o começo: <instant name="" words="Exura" <instant name="" words="Exura" lvl="1" mana="1" prem="0" exhaustion="1000" needlearn="0" event="script" value="x.lua"> <vocation id="1"/> </instant>
  19. function isWalkable(pos, creature, pz, proj) if getTileThingByPos({x = pos.x, y = pos.y, z = pos.z, stackpos = 0}).itemid == 0 then return false end local creature = getTopCreature(pos) if creature.type > 0 then return false end if getTilePzInfo(pos) and not pz then return false end local n = not proj and 3 or 2 for i = 0, 255 do pos.stackpos = i local tile = getTileThingByPos(pos) if tile.itemid ~= 0 and not isCreature(tile.uid) then if hasProperty(tile.uid, n) or hasProperty(tile.uid, 7) then return false end end end return true end function onCastSpell(cid, var) if isPlayer(cid) and exhaustion.check(cid, 2728) == TRUE then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Aguarde " .. exhaustion.get(cid, 2728) .. " segundos para usar novamente.") return false end exhaustion.set(cid, 2728, 8) local pos = getThingPosition(getCreatureTarget(cid)) for x = -1,1 do for y = -1,1 do posicao = {x = pos.x + x, y = pos.y + y, z = pos.z} if isWalkable(posicao) and posicao ~= {x = pos.x,y = pos.y,z = pos.z} then doCreateItem(12007,1,posicao) end end end addEvent(function() for x = -1,1 do for y = -1,1 do posicao = {x = pos.x + x, y = pos.y + y, z = pos.z} if getTileItemById(posicao, 12007).uid > 0 then doRemoveItem(getTileItemById(posicao, 12007).uid) end end end end,5*1000) return true end
  20. Usa essa script e muda o id do item que tem : function isWalkable(pos, creature, pz, proj) if getTileThingByPos({x = pos.x, y = pos.y, z = pos.z, stackpos = 0}).itemid == 0 then return false end local creature = getTopCreature(pos) if creature.type > 0 then return false end if getTilePzInfo(pos) and not pz then return false end local n = not proj and 3 or 2 for i = 0, 255 do pos.stackpos = i local tile = getTileThingByPos(pos) if tile.itemid ~= 0 and not isCreature(tile.uid) then if hasProperty(tile.uid, n) or hasProperty(tile.uid, 7) then return false end end end return true end function onCastSpell(cid, var) if isPlayer(cid) and exhaustion.check(cid, 2728) == TRUE then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Aguarde " .. exhaustion.get(cid, 2728) .. " segundos para usar novamente.") return false end exhaustion.set(cid, 2728, 8) local pos = getThingPosition(getCreatureTarget(cid)) for x = -1,1 do for y = -1,1 do posicao = {x = pos.x + x, y = pos.y + y, z = pos.z} if isWalkable(posicao) and posicao ~= {x = pos.x,y = pos.y,z = pos.z} then doCreateItem(2728,1,posicao) end end end addEvent(function() for x = -1,1 do for y = -1,1 do posicao = {x = pos.x + x, y = pos.y + y, z = pos.z} if getTileItemById(posicao, 2728).uid > 0 then doRemoveItem(getTileItemById(posicao, 2728).uid) end end end end,5*1000) return true end
  21. function onUse(cid, item, frompos, item2, topos) local pausa = 30*60*1000 -- (1000 = 1 segundos) Tempo que o script durará local texto = "Você Aumentou 3x sua Experiencia por 30 minutos" -- Texto que irá receber ao usar a potion. local textofinal = "Acabou a Exp Potion 3x." -- Texto que irá receber quando o efeito da potion acabar. local exp = 3 -- O quanto que você quer que dobre sua experiencia, por exemplo 2 é 2x as rates do seu server. local expfinal = 1 --Não mude, isso é para a experiencia voltar ao normal. local limitedeuso = 49016 local textofinal1 = "Você já esta sob efeito da Exp Potion 3x espere o efeito acabar." local seuitem = 9942 -- seu item que dará double exp local efeito2 = 35 -- efeito que acontecera no momento que usar a pot local time = 30 --fim da parte configuravel não mecha se nao tiver conhecimento de scripting local timeEffect = 1801 -- tempo em segundos que o efeito vai apareceer no player, 31 = 30 segundos. sempre coloque 1 segundo a mais. function effect() if isPlayer(cid) then local pos = getCreaturePosition(cid) doSendMagicEffect(pos, efeito1) end end if item.itemid == seuitem and (getPlayerStorageValue(cid, limitedeuso) - os.time() <= 0) then doRemoveItem(item.uid,1) doPlayerSetExperienceRate(cid,exp) doSendMagicEffect(frompos,efeito2) setPlayerStorageValue(cid, limitedeuso, os.time() + 1800) doPlayerSendTextMessage(cid,22,texto) addEvent(potion,pausa,cid) elseif item.itemid == seuitem and (getPlayerStorageValue(cid, limitedeuso) - os.time() > 0) then doPlayerSendTextMessage(cid,22,textofinal1) end for i = (time*60-(os.time()-getPlayerStorageValue(cid, limitedeuso))), 1, -1 do local a = math.floor(i/60) .. ":" .. i - (60 * math.floor(i/60)) if #a < 4 then a = string.sub(a,1,2) .. "0" .. string.sub(a, 3) end if i == (time*60-(os.time()-getPlayerStorageValue(cid, limitedeuso))) then creatureEvent(doPlayerSendCancel, (time*60-(os.time()-getPlayerStorageValue(cid, limitedeuso)))*1000, cid, "O Efeito da Exp Potion 3x Termina em.") end creatureEvent(doPlayerSendCancel, ((time*60-(os.time()-getPlayerStorageValue(cid, limitedeuso)))-i)*1000, cid, "O Efeito da Exp Potion 3x Termina em "..a..".") end return true end function potion(cid) doPlayerSetExperienceRate(cid,expfinal) doPlayerSendTextMessage(cid,22,textofinal) end

Informação Importante

Confirmação de Termo