Postado Junho 11, 2014 10 anos Alguem tem um Script Que Ativa o automaticamente Double Exp só aos finais de semana "Sábado e Domindo" Valendo +REP VENHAM JOGAR O MELHOR BAIAK JÁ CRIADO DE 2022!! CRIE SUA CONTA AGORA MESMO! www.baiakudo.com
Postado Junho 11, 2014 10 anos Autor seu server é por stages? sim VENHAM JOGAR O MELHOR BAIAK JÁ CRIADO DE 2022!! CRIE SUA CONTA AGORA MESMO! www.baiakudo.com
Postado Junho 11, 2014 10 anos local function isSummon(cid) return cid ~= getCreatureMaster(cid) or false end local days = {"saturday", "sunday"} -- {Segunda = Monday, Terça = Tuesday, Quarta = Wednesday, Quinta = Thursday, Sexta = Friday, Sabado = Saturday, Domingo = Sunday} local percent = 2 -- double function onKill(cid, target) if isPlayer(cid) and getPlayerAccess(cid) < 3 and isMonster(target) and not isSummon(target) then for i = 1, #days do if os.date("%A"):lower() ~= days[i]:lower() then return true end end local exp = getExperienceStage(getPlayerLevel(cid), getVocationInfo(getPlayerVocation(cid)).experienceMultiplier) local count = math.floor((getMonsterInfo(getCreatureName(target):lower()).experience*exp*percent)) if getPlayerPremiumDays(cid) > 0 then count = count * 2 end doPlayerAddExperience(cid, count) addEvent(doSendAnimatedText, 1000, getThingPos(cid), ""..count, COLOR_YELLOW) end return true end registro no login.lua registerCreatureEvent(cid, "DoubleExp") TAG: <event type="kill" name="DoubleExp" event="script" value="Nome do Arquivo.lua"/>
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.