Tudo que Magalhaes92 postou
- [URGENTE] - Ban IP no OtservList
- [URGENTE] - Ban IP no OtservList
- [MOD] Reflect System 0.1
-
[AJUDA] Preciso de uma script de Exp potion
Va em Mods >>> ExpPotion <?xml version="1.0" encoding="UTF-8"?> <mod name="AdvancedExpPotionSystem" enabled="yes" author="MatheusMkalo" forum="tibiaking.com"> <!-- Configs and Functions --> <config name="PotionExpConfigs"><![CDATA[ ------ CONFIGURE SEU SCRIPT ------ TRUE ou FALSE configs = { time = 30, ---- TIME IN MINUTES needpa = TRUE, needlvl = {TRUE, level = 1}, costmana = {FALSE, mana = 1}, addrate = 1000, -- Exp que vai adicionar em % removeonuse = TRUE } function getTime(s) local n = math.floor(s / 60) s = s - (60 * n) return n, s end CreatureEventChecker = function(event, ...) -- Colex if isCreature(arg[1]) then event(unpack(arg)) end end creatureEvent = function(event, delay, ...) -- Colex addEvent(CreatureEventChecker, delay, event, unpack(arg)) end function getPlayerExtraExpRate(cid) -- By MatheusMkalo return (getPlayerRates(cid)[8]-1)*100 end ]]></config> <!-- exppotion.lua --> <action itemid="7440" event="script"><![CDATA[ domodlib('PotionExpConfigs') if getPlayerStorageValue(cid, 62164) >= 1 then return doPlayerSendCancel(cid, "You are already taking effect from this item.") end if configs.needpa and not isPremium(cid) then return doPlayerSendCancel(cid, "You need to be a premmium account to use this item.") end if configs.needlvl[1] and getPlayerLevel(cid) < configs.needlvl.level then return doPlayerSendCancel(cid, "You need to be level " .. configs.needlvl.level .. " to use this item.") end if configs.costmana[1] then if getCreatureMana(cid) < configs.costmana.mana then return doPlayerSendCancel(cid, "You need " .. configs.costmana.mana .. " mana to use this item.") else doCreatureAddMana(cid, -configs.costmana.mana) end end if configs.removeonuse then doRemoveItem(item.uid, 1) end for i = configs.time*60, 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 == configs.time*60 then creatureEvent(doPlayerSendCancel, configs.time*60*1000, cid, "The effect of the exp potion end.") end creatureEvent(doPlayerSendCancel, (configs.time*60-i)*1000, cid, "The effect of the exp potion will end in "..a..".") end doPlayerSetExperienceRate(cid, (1+(configs.addrate/100))+(getPlayerExtraExpRate(cid)/100)) creatureEvent(doPlayerSetExperienceRate, configs.time *60*1000, cid, 1+(getPlayerExtraExpRate(cid)/100-(configs.addrate/100))) doPlayerSendTextMessage(cid, 22, "Agora voce ira receber mais exp por matar os mosntros.") setPlayerStorageValue(cid, 62164, os.time()) creatureEvent(setPlayerStorageValue, configs.time *60*1000, cid, 62164, 0) return TRUE ]]></action> <creaturescript type="login" name="ExpPotion" event="script"><![CDATA[ domodlib('PotionExpConfigs') local time = configs.time if os.time()-getPlayerStorageValue(cid, 62164) < time *60 then doPlayerSetExperienceRate(cid, (1+(configs.addrate/100))+(getPlayerExtraExpRate(cid)/100)) creatureEvent(doPlayerSetExperienceRate, (time*60-(os.time()-getPlayerStorageValue(cid, 62164))) * 1000, cid, 1+(getPlayerExtraExpRate(cid)/100-(configs.addrate/100))) creatureEvent(setPlayerStorageValue, (time*60-(os.time()-getPlayerStorageValue(cid, 62164))) * 1000 , cid, 62164, 0) for i = (time*60-(os.time()-getPlayerStorageValue(cid, 62164))), 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, 62164))) then creatureEvent(doPlayerSendCancel, (time*60-(os.time()-getPlayerStorageValue(cid, 62164)))*1000, cid, "The effect of the exp potion end.") end creatureEvent(doPlayerSendCancel, ((time*60-(os.time()-getPlayerStorageValue(cid, 62164)))-i)*1000, cid, "The effect of the exp potion will end in "..a..".") end end return TRUE ]]></creaturescript> </mod> Data >>>Actions <action itemid="7440" script="ExpPotion.lua" />
-
Script Reflect
Ae Galera .. Queria saber se podem disponibilizar um script que de reflete. Tipow ..( Outro char ataca um player que esta com um armor que tenha reflete, ai o char q esta atacando toma reflete do outro que esta usando a armor ) O script tem que ser em equips de quem estiver usando ! Pode ser em % ou em dano real msm !
-
Melhor Baiak Rox do Mundo Disponivel
Gostei do mapa, parabéns !
-
ranking de pk
alguem poderia disponibilizar ranking de pk ? obs: n e pra site e pra dentro do servidor mesmo !
-
/all - Ajuda aque !
Iae galera, tava querendo um script que o play falasse igual essa foto ai. Sendo igual ao adm so que verde, sera que alguém pode disponibilizar ?
-
Addon For Promotion
Ae galera, sera que alguém pode disponibilizar um script que o char so possa usar o novo addon so se ele for promotion ?
-
Talkaction Que Muda o Addon
Esta funfando ??
-
comando igual ao GOD
Ae galera se que alguem poderia disponibilizar um script que o play possa falar igual ao GOD, so quem em verde ? Agradeço desde de ja.
-
Script PREMIUM
Sera que alguém pode disponibilizar um script ou uma solução que a conta já comece com 3 dias de premium ? Motivo.. eu tirei a free premium account.
-
Promotion Scroll
Ae man, consseguir armengar aque e deu certo, ta funfado!. So vai poder usar se for premium, e nao some a vocaçao dps de relogar. Boa sorte. function onUse(cid, item, fromPosition, itemEx, toPosition) if (isPremium(cid)) then if (getPlayerVocation(cid) >= 5 and getPlayerVocation(cid) <=8) then doCreatureSay(cid, "You are now an "..getPlayerVocationName(cid).."!", TALKTYPE_ORANGE_1) doRemoveItem(item.uid, 1) else doPlayerSendCancel(cid,"You need to be promoted in order to use this item.") end return true end end
-
Comando !virar
Iai galera do Tk. Queria saber se existe e se vocês podem disponibilizar um script que possa ser usado como comando ''tipow: !virar Hydra'' Ai a pessoa fica com uma imagem da ''Hydra'' por determinado tempo. Mas só quem é promotion possa usar.
-
qual Npc vende Addon
Ae galera qual npc vende addon. Server Baiak Rox 8.60
-
[Pedido] NPC Que Vende Item com Moeda Diferente!
tenho esse aque no meu server brother. e funfa ! 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 itemid = 2157 -- Novos points ( default é scarab coin ) local shopWindow = {} local t = { [8850] = {price = 400}, -- [ID do item] e o preço que ele irá custar em points. [8929] = {price = 400}, [8932] = {price = 400}, [8926] = {price = 400}, [2424] = {price = 400}, [11296] = {price = 200}, [11295] = {price = 200}, [11298] = {price = 200}, [11297] = {price = 200}, [2527] = {price = 200}, [2108] = {price = 900}, [9019] = {price = 900}, [3955] = {price = 900} } local onBuy = function(cid, item, subType, amount, ignoreCap, inBackpacks) if t[item] and getPlayerItemCount(cid, itemid) < t[item].price then selfSay("you do not have "..t[item].price.." Nugget Coins.", cid) else doPlayerAddItem(cid, item) doPlayerRemoveItem(cid, itemid, (t[item].price)) selfSay("Here you 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()) Npc: <?xml version="1.0"?> <npc name="# Seller Super Rox @" script="data/npc/scripts/newcoin.lua" walkinterval="2000" floorchange="0"> <health now="100" max="100"/> <look type="53" head="87" body="0" legs="87" feet="0" addons="3"/> <parameters> <parameter key="message_greet" value="Hello |PLAYERNAME|. I {trade} items for Nugget Coins!"/> </parameters> </npc>
-
como fazer For your information
Ae galera, alguém pode disponibilizar esse script ? assim q a pessoa loga aparece esse aviso, acho q e simples mas n conseguir. se alguém puder ajudar fico grato.
-
Death na Morte
Ai galera, vir ne um baiak que quando um cara morre sobe um nome ''Death'' sera q alguém tem esse script pra disponibilizar ? Agradeço desde de ja
-
[Sistema] Cast System para 8.6
Funcionando perfeitamente. Vllw man. As magias bugaram, n ta dando pra soltar EXURA SAN, EXURA VITA ETC ...
-
Addon Deixa Rastro ao andar
Eu quero esse script, alguem tem ai ?
-
Teleport para 2 pessoas
Iai galera, tenho esse ''evento'' no meu server, so q n esta funfando alguém pode me dizer como ajeita-lo ? Como faço pra uma alavanca teleportar 2 pessoas ?
-
Npc de troca ou fusao. Ajuda ae.
Alguem com npc de troca ou de fusao ? Queria um tipow assim: Eu tenho 4 itens que sei que posso trocar ou ''faser uma fusão'', ai trocaria pelo um outro iten. Exe: [iten] + [iten] + [iten] + [iten] = [iten]. que fosse uns 4 a 5 itens pra trocar pelo outro. Se alguém puder ajudar, grato desde de ja.
-
[ PEDIDO ] Compra varias itens por alavança e usando outra moeda de troca
Tenta assim . local coin = 2157 -- sua moeda vip local lever = { [6001] = {70,8304}, [6001] = {70,3962}, [6001] = {70,7422}, [6001] = {70,7405}, [6001] = {70,10169}, [6001] = {70,10169}, [6001] = {3,7440} } function onUse(cid,item,fromPosition,itemEx,toPosition) if doPlayerRemoveItem(cid,coin,lever[item.actionid][1]) == FALSE then return doPlayerSendTextMessage(cid,MESSAGE_INFO_DESCR, "você precisa de "..lever[item.actionid][1].." " ..getItemNameById(coin)) end doPlayerAddItem(cid,lever[item.actionid][2], isItemStackable(lever[item.actionid][2]) and 100 or 1) doPlayerSendTextMessage(cid,22,"você comprou um " .. getItemNameById(lever[item.actionid][2])) doSendMagicEffect(getCreaturePosition(cid), math.random(28,30)) doTransformItem(item.uid, item.itemid == 1945 and 1946 or 1945) return true end ai na action da alavanca tu colocar a action q seria '' [6001] '' Testa ai e me fala.
-
Doube Xp. Ajuda
Iai galera, to com com um script de ''Double Xp'' so que so ta dando pra usar ela uma vez, n esta dando dando pra usar dps, quando acaba o tempo. Sera q alguem pode ajudar a resolver isso ou pode disponibilizar um script de DOUBLE XP. Scripit: <?xml version="1.0" encoding="UTF-8"?> <mod name="AdvancedExpPotionSystem" enabled="yes" author="MatheusMkalo" forum="tibiaking.com"> <!-- Configs and Functions --> <config name="PotionExpConfigs"><![CDATA[ ------ CONFIGURE SEU SCRIPT ------ TRUE ou FALSE configs = { time = 40, ---- TIME IN MINUTES needpa = TRUE, needlvl = {FALSE, level = 1}, costmana = {FALSE, mana = 10}, addrate = 1700, -- Exp que vai adicionar em % removeonuse = TRUE } function getTime(s) local n = math.floor(s / 60) s = s - (60 * n) return n, s end CreatureEventChecker = function(event, ...) -- Colex if isCreature(arg[1]) then event(unpack(arg)) end end creatureEvent = function(event, delay, ...) -- Colex addEvent(CreatureEventChecker, delay, event, unpack(arg)) end function getPlayerExtraExpRate(cid) -- By MatheusMkalo return (getPlayerRates(cid)[8]-1)*100 end ]]></config> <!-- exppotion.lua --> <action itemid="5468" event="script"><![CDATA[ domodlib('PotionExpConfigs') if getPlayerStorageValue(cid, 62164) >= 1 then return doPlayerSendCancel(cid, "You are already taking effect from this item.") end if configs.needpa and not isPremium(cid) then return doPlayerSendCancel(cid, "You need to be a premmium account to use this item.") end if configs.needlvl[1] and getPlayerLevel(cid) < configs.needlvl.level then return doPlayerSendCancel(cid, "You need to be level " .. configs.needlvl.level .. " to use this item.") end if configs.costmana[1] then if getCreatureMana(cid) < configs.costmana.mana then return doPlayerSendCancel(cid, "You need " .. configs.costmana.mana .. " mana to use this item.") else doCreatureAddMana(cid, -configs.costmana.mana) end end if configs.removeonuse then doRemoveItem(item.uid, 1) end for i = configs.time*60, 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 == configs.time*60 then creatureEvent(doPlayerSendCancel, configs.time*60*1000, cid, "The effect of the exp potion end.") end creatureEvent(doPlayerSendCancel, (configs.time*60-i)*1000, cid, "The effect of the exp potion will end in "..a..".") end doPlayerSetExperienceRate(cid, (1+(configs.addrate/100))+(getPlayerExtraExpRate(cid)/100)) creatureEvent(doPlayerSetExperienceRate, configs.time *60*1000, cid, 1+(getPlayerExtraExpRate(cid)/100-(configs.addrate/100))) doPlayerSendTextMessage(cid, 22, "Agora voce ira receber mais exp por matar os mosntros.") setPlayerStorageValue(cid, 62164, os.time()) creatureEvent(setPlayerStorageValue, configs.time *60*1000, cid, 62164, 0) return TRUE ]]></action> <creaturescript type="login" name="ExpPotion" event="script"><![CDATA[ domodlib('PotionExpConfigs') local time = configs.time if os.time()-getPlayerStorageValue(cid, 62164) < time *60 then doPlayerSetExperienceRate(cid, (1+(configs.addrate/100))+(getPlayerExtraExpRate(cid)/100)) creatureEvent(doPlayerSetExperienceRate, (time*60-(os.time()-getPlayerStorageValue(cid, 62164))) * 1000, cid, 1+(getPlayerExtraExpRate(cid)/100-(configs.addrate/100))) creatureEvent(setPlayerStorageValue, (time*60-(os.time()-getPlayerStorageValue(cid, 62164))) * 1000 , cid, 62164, 0) for i = (time*60-(os.time()-getPlayerStorageValue(cid, 62164))), 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, 62164))) then creatureEvent(doPlayerSendCancel, (time*60-(os.time()-getPlayerStorageValue(cid, 62164)))*1000, cid, "The effect of the exp potion end.") end creatureEvent(doPlayerSendCancel, ((time*60-(os.time()-getPlayerStorageValue(cid, 62164)))-i)*1000, cid, "The effect of the exp potion will end in "..a..".") end end return TRUE ]]></creaturescript> </mod>
-
Sd Em paladin
Man eu quero pra ele NÃO soltar a SD. Sabe Como fazer isso ?