
Tudo que Vodkart postou
-
[8.6] Task System 4.0! (Task system + Daily Task System)
você quer mais de uma door com número de points diferenciados? eu faço tudo num código só! é isso?
-
[8.6] Task System 4.0! (Task system + Daily Task System)
<action actionid="84010" event="script"><![CDATA[ domodlib('task_func') function onUse(cid, item, frompos, item2, topos) local amount = 30 if getTaskPoints(cid) < amount then return doPlayerSendTextMessage(cid,22,"Você só pode passar se tiver " .. amount .. " Task Points.") end doTransformItem(item.uid, item.itemid + 1) doTeleportThing(cid, topos, true) doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE,"Welcome, Task Hunter!") return true end]]></action>
- Language System
-
[8.6] Task System 4.0! (Task system + Daily Task System)
Certo... Agora me listem os tipos de códigos relacionado ao sistema que vocês querem, farei tudo está semana! Exemplo do tile que só passa se tiver X task points(já feito) Door de task points Npc que só teleporta se tiver task points npc que só vende itens(por gold claro) se tiver task points(por trade) npc boss room para quem terminou a task de tal monster... ETC! deem sugestões por favor!
-
[8.6] Task System 4.0! (Task system + Daily Task System)
não tem nem como! só se você deu /reload talkactions dps de dar /reload mods sendo que só precisa dar /reload mods pra atualizar tudo...
-
[8.6] Task System 4.0! (Task system + Daily Task System)
viajei, tem que ser em mods!! abre o Simple task.xml e vai lá no final. antes de </mod> adicione <movevent type="StepIn" actionid ="45250" event="script"><![CDATA[ domodlib('task_func') function onStepIn(cid, item, position, fromPosition) local amount = 30 if getTaskPoints(cid) < amount then doTeleportThing(cid, fromPosition, true) doPlayerSendTextMessage(cid, 25, "Você só pode passar se tiver " .. amount .. " Task Points.") doSendMagicEffect(getThingPos(cid), CONST_ME_MAGIC_BLUE) return true end return true end]]></movevent>
-
[8.6] Task System 4.0! (Task system + Daily Task System)
o tile ficaria assim: domodlib('task_func') function onStepIn(cid, item, position, fromPosition) local amount = 30 if getTaskPoints(cid) < amount then doTeleportThing(cid, fromPosition, true) doPlayerSendTextMessage(cid, 25, "Você só pode passar se tiver " .. amount .. " Task Points.") doSendMagicEffect(getThingPos(cid), CONST_ME_MAGIC_BLUE) return true end return true end E o npc teleporte te entrego hoje de noite quando chegar em casa, estou no escritório! -------------------------------------------------------------------------------- tenta trocar essa linha no mods: if isPlayer(cid) and isMonster(target) and not isSummon(target) then por if isPlayer(cid) and isMonster(target) then
-
[8.6] Task System 4.0! (Task system + Daily Task System)
testei aqui no mesmo serve que você baixou e deu certo baixei teu serviddor e tudo
-
[8.6] Task System 4.0! (Task system + Daily Task System)
tenta trocar essa linha no mods: if isPlayer(cid) and isMonster(target) and not isSummon(target) then por if isPlayer(cid) and isMonster(target) then
-
Tile que passa com x item
ao invés de 'false' era 'true' function onStepIn(cid, item, position, fromPosition) local id,amount = 2160,10 if not doPlayerRemoveItem(cid, id, amount) then doTeleportThing(cid, fromPosition, true) doPlayerSendTextMessage(cid, 25, "Você só pode passar se tiver " .. amount .. " " .. getItemNameById(id) .. ".") doSendMagicEffect(getThingPos(cid), CONST_ME_MAGIC_BLUE) return true end return true end
-
NPc para troca de items no trade
local keywordHandler = KeywordHandler:new() local npcHandler = NpcHandler:new(keywordHandler) NpcSystem.parseParameters(npcHandler) local talkState = {} 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 local shopWindow = {} local moeda = 11192 -- ID certain item local t = { [2195] = {price = 15}, -- [ITEMID TO SELL] = {HOW TO COST} [2493] = {price = 25}, [2361] = {price = 30}, [8851] = {price = 20}, [8925] = {price = 30}, [2640] = {price = 50}, [2494] = {price = 100}, [9932] = {price = 50}, [2472] = {price = 70}, [8931] = {price = 100} } local onBuy = function(cid, item, subType, amount, ignoreCap, inBackpacks) if t[item] and not doPlayerRemoveItem(cid, moeda, t[item].price) then selfSay("you dont have"..t[item].price.." "..getItemNameById(moeda), cid) else doPlayerAddItem(cid, item) selfSay("Here your item!", cid) end return true end if (msgcontains(msg, 'trade') or msgcontains(msg, 'TRADE'))then for var, ret in pairs(t) do table.insert(shopWindow, {id = var, subType = 0, buy = ret.price, sell = 0, name = getItemNameById(var)}) end openShopWindow(cid, shopWindow, onBuy, onSell) end return true end npcHandler:setCallback(CALLBACK_MESSAGE_DEFAULT, creatureSayCallback) npcHandler:addModule(FocusModule:new())
-
script de Addon doll urgente !!!
posta ai o teu script, deve ter configurado errado!! eu arrumo ----------------------- edited --------------------------- vou editar aqui e ja te mando, vc colocou os ids errado das outfits local addons = { ["citizen"] = {id = 2110, sex = {[0] = 136,[1] = 128}}, ["hunter"] = {id = 10529, sex = {[0] = 137,[1] = 129}}, ["mage"] = {id = 5903, sex = {[0] = 138,[1] = 130}}, ["knight"]= {id = 11205, sex = {[0] = 139,[1] = 131}}, ["nobleman"]= {id = 10530, sex = {[0] = 140,[1] = 132}}, ["noblewoman"]= {id = 10530, sex = {[0] = 140,[1] = 132}}, ["summoner"]= {id = 2322, sex = {[0] = 141,[1] = 133}}, ["warrior"]= {id = 10542, sex = {[0] = 142,[1] = 134}}, ["barbarian"]= {id = 10543, sex = {[0] = 147,[1] = 143}}, ["druid"]= {id = 11330, sex = {[0] = 148,[1] = 144}}, ["wizard"]= {id = 11250, sex = {[0] = 149,[1] = 145}}, ["oriental"]= {id = 11201, sex = {[0] = 150,[1] = 146}}, ["pirate"]= {id = 5810, sex = {[0] = 155,[1] = 151}}, ["assassin"]= {id = 6579, sex = {[0] = 156,[1] = 152}}, ["beggar"]= {id = 2108, sex = {[0] = 157,[1] = 153}}, ["shaman"]= {id = 6512, sex = {[0] = 158,[1] = 154}}, ["norseman"]= {id = 8982, sex = {[0] = 252,[1] = 251}}, ["norsewoman"]= {id = 8982, sex = {[0] = 252,[1] = 251}}, ["nightmare"]= {id = 9019, sex = {[0] = 269,[1] = 268}}, ["jester"]= {id = 9693, sex = {[0] = 270,[1] = 273}}, ["brotherhood"]= {id = 11249, sex = {[0] = 279,[1] = 278}}, ["demonhunter"]= {id = 11138, sex = {[0] = 288,[1] = 289}}, ["yalaharian"]= {id = 2194, sex = {[0] = 324,[1] = 325}}, ["warmaster"]= {id = 2194, sex = {[0] = 336,[1] = 335}}, ["wayfarer"]= {id = 2194, sex = {[0] = 366,[1] = 367}} } function onSay(cid, words, param) local param = param:lower() if param == "" or not addons[param] then doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Not A Good Param.") return true end local var = addons[param] if not doPlayerRemoveItem(cid, var.id, 1) then doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "You need a "..getItemNameById(var.id)..".") return true end doPlayerAddOutfit(cid, var.sex[getPlayerSex(cid)], 3) doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Full Addon "..param.." Set sucesfully added!") return true end !addon noblewoman ou !addon nobleman !addon norseman ou !addon norsewoman
-
[8.6] Task System 4.0! (Task system + Daily Task System)
baixei um outro serve e testei, funcionou! 20:26 [Task System] defeated Total [1/40] da Task do Trolls. Baiak Tyranno V2 VIP4 ! (8.6) qual o servidor que vc baixou pra eu testar aqui?
-
script de Addon doll urgente !!!
conseguiu editar a tabela e colocar todos os addons com id dos itens?
-
script de Addon doll urgente !!!
vai terminando a lista dos addons local addons = { ["citizen"] = {id = 2520, sex = {[0] = 136,[1] = 128}}, ["hunter"] = {id = 2173, sex = {[0] = 137,[1] = 129}}, ["mage"] = {id = 2493, sex = {[0] = 138,[1] = 130}} } function onSay(cid, words, param) local param = param:lower() if param == "" or not addons[param] then doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Not A Good Param.") return true end local var = addons[param] if not doPlayerRemoveItem(cid, var.id, 1) then doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "You need a "..getItemNameById(var.id)..".") return true end doPlayerAddOutfit(cid, var.sex[getPlayerSex(cid)], 3) doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Full Addon "..param.." Set sucesfully added!") return true end
-
[8.6] Task System 4.0! (Task system + Daily Task System)
UÉ, não foi o que? não contou o monstro? emtão você que fez alguma coisa de errado ou instalou errado, era para contar os monstros sim além disso acho que funfa na tua versão sim! chegou as storages para ver se não tem nd de errado? pode ser que ja esteja sendo usada. Foi no npc? tais matando os monstro daquela lista?
-
[8.6] Task System 4.0! (Task system + Daily Task System)
tenta deixar essa linha: if isPlayer(cid) and isMonster(target) and not isSummon(target) then assim if isPlayer(cid) and isMonster(target) then e testa
-
Soul System
Primeiro faça o download do sistema e cole na pasta do seu executável. Pronto, tá instalado.
-
Novo Sistema
ao invés de mudar o nick, coloca para aparecer no LOOK os tiers. Além disso não precisaria de 5 baus, faz 1 bau só e dependendo do tier os itens virem diferentes parte da lib TIER_BRONZE = 1 TIER_PRATA = 2 TIER_OURO = 3 TIER_PLATINA = 4 TIER_DIAMANTE = 5 TIER_MESTRE = 6 TIER_DESAFIANTE = 7 TIER_TYPES = { [1] = "Bronze", [2] = "Prata", [3] = "Ouro", [4] = "Platina", [5] = "Diamante", [6] = "Mestre", [7] = "Desafiante" } function getPlayerTier(cid) local var = { [{0, 149}] = TIER_BRONZE, [{150, 299}] = TIER_PRATA, [{300, 450}] = TIER_OURO, [{451, 599}] = TIER_PLATINA, [{600, 799}] = TIER_DIAMANTE, [{800, 999}] = TIER_MESTRE, [{1000, math.huge}] = TIER_DESAFIANTE } for v , r in pairs(var) do if getPlayerLevel(cid) >= v[1] and getPlayerLevel(cid) <= v[2] then return r end end end o onLook que te falei ficaria assim: function onLook(cid, thing, position, lookDistance) if isPlayer(thing.uid) then doPlayerSetSpecialDescription(thing.uid, "\n"..(getPlayerSex(thing.uid) == 0 and "She" or "He").. " is a ["..TIER_TYPES[getPlayerTier(thing.uid)].."]") end return true end ai você poderia usar nos tiles assim por exemplo: function onStepIn(cid, item, position, fromPosition) local var = TIER_DIAMANTE -- que tier precisa ser para passar no tile if not isPlayer(cid) then return true end if getPlayerTier(cid) < var then doTeleportThing(cid, fromPosition, true) doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Você precisa ser do tier "..TIER_TYPES[var].." ou mais para passar aqui!") doSendMagicEffect(getThingPos(cid), CONST_ME_MAGIC_BLUE) return true end doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Seja bem vindo a Ranked!") return true end
-
[8.6x] Bag Premiada
mas sempre ganha? pode clicar em qualquer caixa que sempre vem item? então ja existe esse sistema ._.
-
[8.6x] Bag Premiada
Não entendi muito bem, ele vai clicando nas caixas até achar um item? se ele clicar na caixa errada ele perde? ou seja, vc só tem 1 chance, errou já era?
-
Npc Saffari Zone Automático!
é um sistema de Saffari para poketibia, totalmente automático. [+] O jogador não perde level(experience) ao morrer. [+] O jogador é teleportado quando acabar o tempo ou quando suas Saffari balls acabar! [+] Mostra o tempo restante num comando exclusivo !saffari time Pasta mods Saffari.xml <?xml version="1.0" encoding="ISO-8859-1"?> <mod name="Saffari" version="2.0" author="Vodkart" contact="none.com" enabled="yes"> <config name="saffari_func"><![CDATA[ config = { price = 5000, level = 50, need_premium = false, minutes = 60, saffari_positions = {enter = {x=152,y=51,z=5}, exit = {x=163,y=51,z=5}}, saffari_balls = {11445,30}, -- itemid e quantidade blocked_pokeballs = {2146, 2147, 11437, 11441, 11445}, -- pokeball, ultraball, greatball, masterball, safarriball storages = {874547,874548} -- start, time } function timeString(timeDiff) local dateFormat = { {"day", timeDiff / 60 / 60 / 24}, {"hour", timeDiff / 60 / 60 % 24}, {"minute", timeDiff / 60 % 60}, {"second", timeDiff % 60} } local out = {} for k, t in ipairs(dateFormat) do local v = math.floor(t[2]) if(v > 0) then table.insert(out, (k < #dateFormat and (#out > 0 and ', ' or '') or ' and ') .. v .. ' ' .. t[1] .. (v ~= 1 and 's' or '')) end end local ret = table.concat(out) if ret:len() < 16 and ret:find("second") then local a, b = ret:find(" and ") ret = ret:sub(b+1) end return ret end ]]></config> <event type="login" name="SaffariRegister" event="script"><![CDATA[ function onLogin(cid) registerCreatureEvent(cid, "SaffariDeath") return true end]]></event> <talkaction words="/saffari;!saffari" event="buffer"><![CDATA[ domodlib('saffari_func') param = string.lower(param) if getPlayerStorageValue(cid, config.storages[1]) <= 0 then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE,"you are not in Saffari") return true end if (param == "") then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE,"invalid command, enter !saffari time or !safari leave") return true elseif isInArray({"time","tempo"}, param) then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, (getPlayerStorageValue(cid, config.storages[2]) - os.time() > 0 and "Left "..timeString(getPlayerStorageValue(cid, config.storages[2]) - os.time()).."" or "Time is over. Please wait a moment.").."\nTo leave enter command: !saffari leave") return true elseif isInArray({"sair","leave"},param) then doTeleportThing(cid, config.saffari_positions.exit) setPlayerStorageValue(cid, config.storages[1], 0) setPlayerStorageValue(cid, config.storages[2], 0) doPlayerSendTextMessage(cid,22,'you left the saffari zone.') return true end ]]></talkaction> <globalevent name="SaffariCheck" interval="60" event="script"><![CDATA[ domodlib('saffari_func') function onThink(interval, lastExecution) local on = getPlayersOnline() if #on > 0 then for i = 1, #on do if getPlayerStorageValue(on[i], config.storages[1]) > 0 then if getPlayerItemCount(on[i], config.saffari_balls[1]) <= 0 or getPlayerStorageValue(on[i], config.storages[2]) - os.time() <= 0 then doTeleportThing(on[i], config.saffari_positions.exit) setPlayerStorageValue(on[i], config.storages[1], 0) setPlayerStorageValue(on[i], config.storages[2], 0) doPlayerSendTextMessage(on[i],22,'you left the saffari zone.') end end end end return true end ]]></globalevent> <event type="death" name="SaffariDeath" event="script"><![CDATA[ domodlib('saffari_func') function onDeath(cid, corpse, deathList) if isPlayer(cid) and getPlayerStorageValue(cid, config.storages[1]) >= 1 then setPlayerStorageValue(cid, config.storages[1], 0) setPlayerStorageValue(cid, config.storages[2], 0) doPlayerSetLossPercent(cid, PLAYERLOSS_EXPERIENCE, 0) end return true end ]]></event> </mod> NPC Saffari Man.xml <?xml version="1.0"?> <npc name="Saffari Man" script="data/npc/scripts/saffari.lua" walkinterval="50000" floorchange="0"> <health now="100" max="100"/> <look type="129" head="95" body="116" legs="121" feet="115" addons="3"/> <parameters> <parameter key="message_greet" value="Hello |PLAYERNAME|. You want to {enter} in the {saffari} zone!" /> </parameters> </npc> saffari.lua domodlib('saffari_func') local keywordHandler = KeywordHandler:new() local npcHandler = NpcHandler:new(keywordHandler) NpcSystem.parseParameters(npcHandler) local talkState = {} 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,msg = NPCHANDLER_CONVbehavior == CONVERSATION_DEFAULT and 0 or cid,msg:lower() if isInArray({"saffari","enter","entrar"}, msg) then npcHandler:say('you can stay in the Saffari zone by '..config.minutes..' minutes, the price is '..config.price..' gp(s), You want enter? {yes}', cid) talkState[talkUser] = 1 elseif msgcontains(msg, 'yes') and talkState[talkUser] == 1 then for i = 1, #config.blocked_pokeballs do if getPlayerItemCount(cid, config.blocked_pokeballs[i]) >= 1 then npcHandler:say('Keep your '..getItemNameById(config.blocked_pokeballs[i])..'!', cid) return true end end if config.need_premium and not isPremium(cid) then npcHandler:say('Sorry, you need to be premium!', cid) return true elseif getPlayerLevel(cid) < config.level then npcHandler:say('Sorry, you must be at least level '..config.level..' to enter the Saffari zone!', cid) return true elseif not doPlayerRemoveMoney(cid, config.price) then npcHandler:say('Sorry, you do not have enough money!', cid) return true end doPlayerAddItem(cid, config.saffari_balls[1], config.saffari_balls[2]) selfSay("Thanks, you've been teleported to the Saffari zone and has "..config.minutes.." minutes, if you want to leave enter {!saffari leave}.", cid) doTeleportThing(cid, config.saffari_positions.enter) setPlayerStorageValue(cid, config.storages[1], 1) setPlayerStorageValue(cid, config.storages[2], os.time()+config.minutes*60) elseif msg == "no" and talkState[talkUser] >= 1 then selfSay("then ok.", cid) talkState[talkUser] = 0 npcHandler:releaseFocus(cid) end return true end npcHandler:setCallback(CALLBACK_MESSAGE_DEFAULT, creatureSayCallback) npcHandler:addModule(FocusModule:new())
- Simple Task 3.0
-
(Resolvido)como proibir uso de potions em area pz
local MIN = 50 local MAX = 200 local EMPTY_POTION = 7636 local exhaust = createConditionObject(CONDITION_EXHAUST) setConditionParam(exhaust, CONDITION_PARAM_TICKS, (getConfigInfo('timeBetweenExActions') - 100)) function onUse(cid, item, fromPosition, itemEx, toPosition) if not isPlayer(itemEx.uid) then return true end if getTilePzInfo(getCreaturePosition(cid)) then doPlayerSendCancel(cid, "Você não pode usar potions em Pz.") return true elseif hasCondition(cid, CONDITION_EXHAUST_HEAL) == TRUE then doPlayerSendDefaultCancel(cid, RETURNVALUE_YOUAREEXHAUSTED) return true end if doPlayerAddMana(itemEx.uid, math.random(MIN, MAX)) == LUA_ERROR then return FALSE end doAddCondition(cid, exhaust) doSendMagicEffect(getThingPos(itemEx.uid), CONST_ME_MAGIC_BLUE) doCreatureSay(itemEx.uid, "Aaaah...", TALKTYPE_ORANGE_1) end
-
(Resolvido)como proibir uso de potions em area pz
posta o script aqui