Ir para conteúdo

Pesquisar na Comunidade

Mostrando resultados para as tags ''double exp''.

  • Pesquisar por Tags

    Digite tags separadas por vírgulas
  • Pesquisar por Autor

Tipo de Conteúdo


Fóruns

  • xTibia - Notícias e Suporte
    • Regras
    • Noticias
    • Soluções
    • Projetos Patrocinados
    • Tutoriais para Iniciantes
    • Imprensa
  • OTServ
    • Notícias e Debates
    • OTServlist
    • Downloads
    • Recursos
    • Suporte
    • Pedidos
    • Show-Off
    • Tutoriais
  • OFF-Topic
    • Barzinho do Éks
    • Design
    • Informática

Encontrar resultados em...

Encontrar resultados que contenham...


Data de Criação

  • Início

    FIM


Data de Atualização

  • Início

    FIM


Filtrar pelo número de...

Data de Registro

  • Início

    FIM


Grupo


Sou

Encontrado 7 registros

  1. Action abaixo, escolha o item que quiser para o script. Tempo (é em segundos): 7200 = 2 Horas Como converter: https://www.google.com.br/#q=2+horas+em+segundos function onUse(cid, item, fromPosition, itemEx, toPosition) local player = Player(cid) if player:getStorageValue(1234) >= os.time() then player:say('You already have double exp!', TALKTYPE_MONSTER_SAY) return true end player:setStorageValue(1234, os.time() + 7200) Item(item.uid):remove(1) player:say('Your 2 hours of double XP has started!', TALKTYPE_MONSTER_SAY) player:registerEvent("dblxp") return trueend Em creaturescripts.xml <event type="think" name="dblxp" script="dblxp.lua" /> Em creaturescripts/scripts crie dblxp.lua function onThink(creature, interval) local player = Player(creature) if not player then return true end if player:getStorageValue(1234) < os.time() then player:sendTextMessage(MESSAGE_STATUS_WARNING, "Your double XP has ended!") player:unregisterEvent("dblxp") end return trueend Créditos: RazorBlade
  2. Galera esse script está muito top <?xml version="1.0" encoding="UTF-8"?><mod name="AdvancedExpPotionSystem" enabled="yes" author="MatheusMkalo" forum="XTibia.com"><!-- Configs and Functions --><config name="PotionExpConfigs"><![CDATA[------ CONFIGURE SEU SCRIPT ------ TRUE ou FALSEconfigs = {time = 1, ---- TIME IN MINUTESneedpa = FALSE,needlvl = {FALSE, level = 1},costmana = {FALSE, mana = 50},addrate = 100, -- Exp que vai adicionar em %removeonuse = FALSE}function getTime(s)local n = math.floor(s / 60)s = s - (60 * n)return n, sendCreatureEventChecker = function(event, ...) -- Colexif isCreature(arg[1]) thenevent(unpack(arg))endendcreatureEvent = function(event, delay, ...) -- ColexaddEvent(CreatureEventChecker, delay, event, unpack(arg))endfunction getPlayerExtraExpRate(cid) -- By MatheusMkaloreturn (getPlayerRates(cid)[8]-1)*100end]]></config><!-- exppotion.lua --><action itemid="5952" event="script"><![CDATA[domodlib('PotionExpConfigs')if getPlayerStorageValue(cid, 62164) >= 1 thenreturn doPlayerPopupFYI(cid, "Você não pode usar o mesmo potion, use os outros para ativar o combo\n\n\nSe seu tempo já esgotou e mesmo assim você não consegue usar o potion\né porque você esta bugado.\n\nPor favor digite !fly desbugar em uma área pz\n\nBom Jogo")endif configs.needpa and not isPremium(cid) thenreturn doPlayerSendCancel(cid, "You need to be a premmium account to use this item.")endif configs.needlvl[1] and getPlayerLevel(cid) < configs.needlvl.level thenreturn doPlayerSendCancel(cid, "You need to be level " .. configs.needlvl.level .. " to use this item.")endif configs.costmana[1] thenif getCreatureMana(cid) < configs.costmana.mana thenreturn doPlayerSendCancel(cid, "You need " .. configs.costmana.mana .. " mana to use this item.")elsedoCreatureAddMana(cid, -configs.costmana.mana)endendif configs.removeonuse thendoRemoveItem(item.uid, 1)endfor i = configs.time*60, 1, -1 dolocal a = math.floor(i/60) .. ":" .. i - (60 * math.floor(i/60))if #a < 4 thena = string.sub(a,1,2) .. "0" .. string.sub(a, 3)endif i == configs.time*60 thencreatureEvent(doPlayerSendCancel, configs.time*60*1000, cid, "The effect of the exp potion end.")endcreatureEvent(doPlayerSendCancel, (configs.time*60-i)*1000, cid, "2x "..a..".")enddoPlayerSetExperienceRate(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, "Você adicionou 2x de exp por 30 minutos.")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 thendoPlayerSetExperienceRate(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 dolocal a = math.floor(i/60) .. ":" .. i - (60 * math.floor(i/60))if #a < 4 thena = string.sub(a,1,2) .. "0" .. string.sub(a, 3)endif i == (time*60-(os.time()-getPlayerStorageValue(cid, 62164))) thencreatureEvent(doPlayerSendCancel, (time*60-(os.time()-getPlayerStorageValue(cid, 62164)))*1000, cid, "The effect of the exp potion end.")endcreatureEvent(doPlayerSendCancel, ((time*60-(os.time()-getPlayerStorageValue(cid, 62164)))-i)*1000, cid, "Sua experiecia de 2x acaba em "..a..".")endendreturn TRUE]]></creaturescript></mod> só tem um detalhe, como que eu faco pra ter um de 3x e uma de 2x ( eu troquei o nome do xml e as storages da copia, ate funciona mas quando o tempo acaba ele não volta com a experiencia normal quando acaba, isso quando eu uso o de 2x e 3x juntos, se usar separado funciona de boa. o lance é usar juntos e acabar a exp normal Na verdade eu queria os itens desta maneira: item "xxxx" daria 2x de exp por 30 minitem "xxxx" daria 3x de exp por 30 minitem "xxxx" daria 4x de exp por 30 minitem "xxxx" daria 5x de exp por 30 minitem "xxxx" daria 7x de exp por 30 min Desde já agradeço
  3. data/actions/double.lua function onUse(cid, item, fromPosition, itemEx, toPosition)local player = Player(cid)player:setStorageValue(80000, os.time() + 2 * 60 * 60)Item(item.uid):remove()player:say("You have just activated 2 hours of Double Experience!", TALKTYPE_MONSTER_SAY)return trueend data/actions.xml <action itemid="8981" script="double.lua"/> data/events/player.lua function Player:onGainExperience(source, exp, rawExp) local thing = self:getStorageValue(80000) if thing > os.time() then return exp * 2.0 end return expend data/events.xml Mude <event class="Player" method="onGainExperience" enabled="0" /> Para <event class="Player" method="onGainExperience" enabled="1" /> Créditos: imkingran
  4. Ola Utilizo uma script pra double exp, porem, quando eu ativo, o servidor laga muito! segue script creaturescripts/scripts function onKill(cid, target) if isPlayer(cid) and isMonster(target) then if getGlobalStorageValue(102590) - os.time() >= 1 then local exp = getExperienceStage(getPlayerLevel(cid), getVocationInfo(getPlayerVocation(cid)).experienceMultiplier) local count = ((getMonsterInfo(string.lower(getCreatureName(target))).experience*1.5*exp)/2) doPlayerAddExperience(cid, count) addEvent(doSendAnimatedText, 500, getCreaturePosition(cid), '+'..count, math.random(50,60)) end else return TRUE end return TRUE end talkactions/scripts function onSay(cid, words, param, channel) local config = { storage = 102590, } if(param == 'cancel') then if getGlobalStorageValue(config.storage) > 0 then setGlobalStorageValue(config.storage, -1) doBroadcastMessage("Double Exp cancelado") end return true end param = tonumber(param) if(not param or param < 0) then doPlayerSendCancel(cid, "Apenas maiores que 0.") return true end if getGlobalStorageValue(config.storage) - os.time() <= 0 then setGlobalStorageValue(config.storage, os.time()+param*60*60) doBroadcastMessage("Exp bonus ativado 50% + EXP por "..param.." horas! Aproveite.") end return true end Alguem pode me dizer aonde modificar para tirar o lag?
  5. Amigos to usando esse certo script meu servidor, ele funciona bem para alguns player porem para outros ele fala que está sendo usado, não estou conseguindo arrumar, o script seria para double exp.... Nãos ei por o script em lua nesses fórum ehehehhe
  6. SERVIDO NOVO SEM TOP... APROVEITE...1 / 1 OU CRIADO NO SITE http://sweet-world.servegame.com/ VARIOS EVENTO E HUNTS... EXP STAGE 500X SEJA BEM VINDO. DOUBLE EXP Mapa global full com teleport, area vip LIBERADA.. novas hunt arma vip ... bom jogo e uma boa sorte !!! Spells do global atual Rates Name Value Experience From Level To Level Rate 0 50 1000 51 100 500 101 130 200 131 150 150 151 190 100 191 215 50 216 270 25 271 999 10 Skill 160.0 x Magic 150.0 x Loot 5.0 x Spawn 1 x
  7. Tenho script de ring que uso mais ta acontecendo seguinte erro.. vip acoount ganha 30 % exp = 1.3 rate ring exp ganha 10% exp = rate 1.1 ai quando equipo ring ele ta tirando a exp do vip account pq a configuraçao ta para trocar rate do char..e nao acrescentar to presisando script que funcione assim vip account 30 % + 10 do anel cara fica com 40% a mais de exp...
×
×
  • Criar Novo...