Postado Agosto 4, 2015 9 anos Seria mais ou menos um comando de double exp: /double exp, x ou /double exp x X = Tempo em horas ou seja 24 = 24horas, e tambem quando o player logasse estaria uma mensagem no chat, double exp ativado ...
Postado Agosto 4, 2015 9 anos Achei esse: talkactions.xml <talkaction words="/doubleexp" access="5" event="script" value="exp.lua"/> talkactions/scripts/exp.lua function onSay(cid, words, param, channel)local config = {storage = 102590,}if(param == 'cancel') thenif getGlobalStorageValue(config.storage) > 0 thensetGlobalStorageValue(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 endif getGlobalStorageValue(config.storage) - os.time() <= 0 thensetGlobalStorageValue(config.storage, os.time()+param*60*60)doBroadcastMessage("Exp bonus ativado 50% + EXP por "..param.." horas! Aproveite.")endreturn trueend creaturescripts.xml <event type="kill" name="ExpBonus" event="script" value="exp.lua"/> creaturescripts/scripts/exp.lua function onKill(cid, target)if isPlayer(cid) and isMonster(target) thenif getGlobalStorageValue(102590) - os.time() >= 1 thenlocal 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))endelsereturn TRUEendreturn TRUEend creaturescripts/scripts/login.lua registerCreatureEvent(cid, "ExpBonus") Obs.: Não tem a mensagem quando o player loga. Comandos: /doubleexp, TIME /doubleexp cancel Créditos: Cleberadm - XT Edit: Perdão, arrumei, tenta dnv Editado Agosto 4, 2015 9 anos por jvcasarin (veja o histórico de edições) GitHub: https://github.com/s3kk Conteúdo: [SERVER] Heromassa[GESIOR] Gesior 2012 modificado por Sekk[GESIOR] Shop Addons & Mounts - TFS 1.x[GESIOR] Outfitter para Characters e Rank[SISTEMA] Castle 24h[TALKACTION] Multi Element Wand[ACTION] Multi Elemental Arrow & Shield[PROGRAMAÇÃO] Compilar TFS 0.4 no Linux[PROGRAMAÇÃO] Compilando TFS 0.4 no MSVC(x64 e x32) [INFRAESTRUTURA] Configuração COMPLETA Google VM + Tibia 11.x
Participe da conversa
Você pode postar agora e se cadastrar mais tarde. Se você tem uma conta, faça o login para postar com sua conta.