Ir para conteúdo

Muvuka

Membro
  • Registro em

  • Última visita

Tudo que Muvuka postou

  1. -=[TFS]=- 0.4 8.60 Eu tenho esse script porem eu quero que quando acaba vip 3 dias ou mais o player seja kikado pro templo mesmo se ele desloga e loga denovo achando que tem bug login é area vip queria uma storage tambem sefor 8981/18956 não sei não manjo de script.lua creaturescript quem poder ajudar eu agradeço. ACTION: <action itemid="8981" script="access.lua"/> function onUse(cid, item, fromPosition, itemEx, toPosition) local config={ removeOnUse = "yes" -- remover quando usar ("yes" or "no") } local days = 3 -- coloque quantos dias o player terá acesso a essa área local daysvalue = days * 24 * 60 * 60 local storageplayer = getPlayerStorageValue(cid, 18956) local timenow = os.time() if getPlayerStorageValue(cid, 18956) - os.time() <= 0 then time = timenow + daysvalue else time = storageplayer + daysvalue end doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Foram adicionados ".. days .." dias de acesso no seu character.") setPlayerStorageValue(cid, 18956, time) local quantity = math.floor((getPlayerStorageValue(cid, 18956) - timenow)/(24 * 60 * 60)) doSendMagicEffect(getPlayerPosition(cid), math.random(28,30)) doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Voce tem ".. quantity .." dias de acesso restantes.") if (config.removeOnUse == "yes") then doRemoveItem(item.uid, 1) end return TRUE end MOVEMENTS: function onStepIn(cid, item, position, fromPosition) local config = { msgDenied = "Voce nao tem acesso a esta area, para adquiri-lo o mesmo devera compra no templo no jornal dourado custa 1k Vip Coins.", msgWelcome = "Bem Vindo a Area!" } if getPlayerStorageValue(cid, 18956) - os.time() <= 0 then doTeleportThing(cid, fromPosition, true) doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, config.msgDenied) doSendMagicEffect(getThingPos(cid), CONST_ME_MAGIC_BLUE) return TRUE end doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, config.msgWelcome) return TRUE end
  2. Muvuka postou uma resposta no tópico em Playground (Off-topic)
    Fagner - Eternas Ondas - Eternas Ondas - 1980 https://youtu.be/TxjzelTLL0o via @YouTube
  3. Preciso de revscript bem simples mesmo quando player da use no jornal 8981 dourado aparece contdown 30 60 minutos e segundos e action/movements movements eu ja fiz só preciso do script que funcione no action no casso esse script preciso de suporte quem poder ajuda eu agraço esse ai é action storage piso que ele vai passar se der use no jornal no set ou na bp item sumi só pode obte se puxa alavanca ja fiz só esse action que ta me encabulando. local storageValue = 13741 local itemID = 8981 local teleportPosition = {x = 154, y = 51, z = 7} local timeInterval = 30 * 60 cdstorage = 123457 } function onUse(player, item, fromPosition, target, toPosition, isHotkey) if player:getStorageValue(config.cdstorage) >= os.time() then player:sendTextMessage(MESSAGE_INFO_DESCR, remainTime(player:getStorageValue(config.cdstorage) - os.time())) return true end function onUse(cid, item, frompos, item2, topos) if getPlayerStorageValue(cid, storageValue) ~= -1 then doPlayerSendCancel(cid, "Você já tem acesso a essa funcionalidade.") return true end if not doPlayerRemoveItem(cid, itemID, 1) then doPlayerSendCancel(cid, "Você precisa ter o item no set ou na bp para usar essa funcionalidade e de (use).") return true end local currentTime = os.time() local expirationTime = currentTime + timeInterval setPlayerStorageValue(cid, storageValue, expirationTime) doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Você ganhou acesso à área por 30 minutos.") doPlayerRemoveItem(cid, itemID, 1) -- Adiciona o item novamente (opcional) doSetItemActionId(item.uid, 0) -- Remove a action id do item (opcional) doPlayerRemoveItem(cid, itemID, 1) return true end function onLogin(cid) local currentTime = os.time() local expirationTime = getPlayerStorageValue(cid, storageValue) if expirationTime ~= -1 and currentTime >= expirationTime then doTeleportThing(cid, teleportPosition, false) setPlayerStorageValue(cid, storageValue, -1) doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Seu acesso expirou. Você foi teleportado para o templo.") end function remainTime(seconds) hrs = math.floor(seconds / 3600) mins = math.floor((seconds - (hrs * 3600)) / 60) secs = math.floor(seconds - (hrs * 3600) - mins * 60) return string.format("Sorry, you can only use this item again in %d hour(s), %d minute(s) and %d second(s).", hrs, mins, secs) end local timeDifference = currentTime - getPlayerStorageValue(cid, "lastTimeCheck") if timeDifference >= timeInterval then local remainingTime = math.floor((expirationTime - currentTime) / 60) doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Tempo restante: " .. remainingTime .. " minutos.") setPlayerStorageValue(cid, "lastTimeCheck", currentTime) end return true end
  4. [30/05/2023 11:07:58] [Warning - ProtocolGame::sendFYIBox] Trying to send an empty or too huge message.
  5. local storageValue = 13741 local itemID = 8981 -- Item utilizado para conceder o acesso de 72 horas local teleportPosition = {x = 154, y = 51, z = 7} -- Posição de teleporte quando o tempo acabar local timeInterval = 1 * 60 -- Intervalo de tempo em segundos (30 minutos) function onUse(cid, item, frompos, item2, topos) if getPlayerStorageValue(cid, storageValue) ~= -1 then doPlayerSendCancel(cid, "Você já tem acesso a essa funcionalidade.") return true end if not doPlayerRemoveItem(cid, itemID, 1) then doPlayerSendCancel(cid, "Você precisa ter o item necessário para usar essa funcionalidade.") return true end local currentTime = os.time() local accessTime = 72 * 60 * 60 -- Convertendo 72 horas para segundos local expirationTime = currentTime + accessTime setPlayerStorageValue(cid, storageValue, expirationTime) doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Você ganhou acesso a essa funcionalidade por 72 horas.") return true end function onLogin(cid) local currentTime = os.time() local expirationTime = getPlayerStorageValue(cid, storageValue) if expirationTime ~= -1 and currentTime >= expirationTime then doTeleportThing(cid, teleportPosition, false) setPlayerStorageValue(cid, storageValue, -1) doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Seu acesso expirou. Você foi teleportado para a posição 154, 51, 7.") end local timeDifference = currentTime - getPlayerStorageValue(cid, "lastTimeCheck") if timeDifference >= timeInterval then local timeRemaining = expirationTime - currentTime local hours = math.floor(timeRemaining / 3600) local minutes = math.floor((timeRemaining % 3600) / 60) local seconds = timeRemaining % 60 local timeString = string.format("%02d:%02d:%02d", hours, minutes, seconds) doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Tempo restante: " .. timeString) setPlayerStorageValue(cid, "lastTimeCheck", currentTime) end return true end
  6. Não funciono em nenhuma seção do data eu queria que quando desse use no item ele sumisse e player entrasse na area dnt por 72 horas
  7. Procuro um Script bem simples acesso a area por 72 horas TIPO ISSO MAIS AO CONTRARIO DE -|TALK|- MOVEMENTS/ACTION local config = { storage = 13550, -- STORAGE PARA CONTROLAR TEMPO cost = 1000000, -- Preço para comprar o acesso tempo = 72 -- Tempo em horas para durar a compra } function onSay(cid, words, param) if getPlayerStorageValue(cid, config.storage) < os.time() then if doPlayerRemoveMoney(cid, config.cost) then setPlayerStorageValue(cid, config.storage, os.time() + (config.tempo * 60 * 60)) doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Voce comprou " .. config.tempo .. " horas de acesso a 10000 level.") doSendMagicEffect(getCreaturePosition(cid), CONST_ME_GIFT_WRAPS) return true else doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Voce precisa de " .. config.cost .. " gold coins para comprar acesso a level 10000.") return false end else doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Voce so pode comprar este acesso a cada " .. config.tempo .. " horas.") end return false end
  8. Não fnciono eu acho que tem que meche na source.
  9. @Underewar não funciono! fica 42 depois 41:59 e não sai da quilo.
  10. rateStaminaLoss = 0 rateStaminaGain = 3 rateStaminaThresholdGain = 12 staminaRatingLimitTop = 41 * 60 staminaRatingLimitBottom = 14 * 60 rateStaminaAboveNormal = 1.5 rateStaminaUnderNormal = 0.5 staminaThresholdOnlyPremium = false Minha stamina ta assim rateStaminaLoss = 0 mais mesmo deixando no 1 continua infinita
  11. CONST_ANI_FIRE = 3 local combat = createCombatObject() setCombatParam(combat, COMBAT_PARAM_TYPE, ?) setCombatParam(combat, COMBAT_PARAM_EFFECT, ?) setCombatFormula(combat, COMBAT_FORMULA_LEVELMAGIC, -1000000000.0, -100000000.0, -1000000000.0, -1000000000.0) local condition = createConditionObject(CONDITION_PARALYZE) setConditionParam(condition, CONDITION_PARAM_TICKS, 20000) --setConditionParam(condition, CONDITION_PARAM_SPEED, -1000) setConditionFormula(condition, -1000.0, 1000.0, -1000.0, -1000.0) setCombatCondition(combat, condition) local arr = { {0, 0, 0, 1, 0, 0, 0}, {0, 0, 1, 1, 1, 0, 0}, {0, 1, 1, 1, 1, 1, 0}, {1, 1, 1, 2, 1, 1, 1}, {0, 1, 1, 1, 1, 1, 0}, {0, 0, 1, 1, 1, 0, 0}, {0, 0, 0, 1, 0, 0, 0}, } local area = createCombatArea(arr) setCombatArea(combat, area) function onCastSpell(cid, var) return doCombat(cid, combat, var) end
  12. local combat1 = createCombatObject() setCombatParam(combat1, COMBAT_PARAM_TYPE, COMBAT_HOLYDAMAGE) setCombatParam(combat1, COMBAT_PARAM_EFFECT, CONST_ME_FIREATTACK) setCombatFormula(combat1, COMBAT_FORMULA_LEVELMAGIC, -9999.9, -9999.9, -9999.9, -9999.9) local combat2 = createCombatObject() setCombatParam(combat2, COMBAT_PARAM_TYPE, COMBAT_ICEDAMAGE) setCombatParam(combat2, COMBAT_PARAM_EFFECT, CONST_ME_WATERSPLASH) setCombatFormula(combat2, COMBAT_FORMULA_LEVELMAGIC, -9999.9, -9999.9, -9999.9, -9999.9) local combat3 = createCombatObject() setCombatParam(combat3, COMBAT_PARAM_TYPE, COMBAT_MANADRAIN) setCombatParam(combat3, COMBAT_PARAM_EFFECT, CONST_ME_EXPLOSIONHIT) setCombatFormula(combat3, COMBAT_FORMULA_LEVELMAGIC, -9999.9, -9999.9, -9999.9, -9999.9) local combat4 = createCombatObject() setCombatParam(combat4, COMBAT_PARAM_TYPE, COMBAT_LIFEDRAIN) setCombatParam(combat4, COMBAT_PARAM_EFFECT, CONST_ME_TUTORIALSQUARE) setCombatFormula(combat4, COMBAT_FORMULA_LEVELMAGIC, -9999.9, -9999.9, -9999.9, -9999.9) local combat5 = createCombatObject() setCombatParam(combat5, COMBAT_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r1) local area2 = createCombatArea(arr2) local area3 = createCombatArea(arr3) local area4 = createCombatArea(arr4) local area5 = createCombatArea(arr5) setCombatArea(combat1, area1) setCombatArea(combat2, area2) setCombatArea(combat3, area3) setCombatArea(combat4, area4) setCombatArea(combat5, area5) local function onCastSpell1(parameters) doCombat(parameters.cid, parameters.combat1, parameters.var) end local function onCastSpell2(parameters) doCombat(parameters.cid, parameters.combat2, parameters.var) end local function onCastSpell3(parameters) doCombat(parameters.cid, parameters.combat3, parameters.var) end local function onCastSpell4(parameters) doCombat(parameters.cid, parameters.combat4, parameters.var) end local function onCastSpell5(parameters) doCombat(parameters.cid, parameters.combat5, parameters.var) end function onCastSpell(cid, var) local parameters = { cid = cid, var = var, combat1 = combat1, combat2 = combat2, combat3 = combat3, combat4 = combat4, combat5 = combat5 } addEvent(onCastSpell1, 100, parameters) addEvent(onCastSpell2, 500, parameters) addEvent(onCastSpell3, 500, parameters) addEvent(onCastSpell4, 500, parameters) addEvent(onCastSpell5, 500, parameters) end A DEMANDA.
  13. local arrs = { { {0, 1, 0}, {1, 2, 1}, {0, 1, 0} }, { {0, 1, 1, 1, 0}, {1, 1, 0, 1, 1}, {1, 0, 2, 0, 1}, {1, 1, 0, 1, 1}, {0, 1, 1, 1, 0} }, { {0, 0, 1, 0, 1, 0, 0}, {0, 1, 0, 1, 0, 1, 0}, {1, 0, 0, 0, 0, 0, 1}, {1, 0, 0, 2, 0, 0, 1}, {1, 0, 0, 0, 0, 0, 1}, {0, 1, 0, 0, 0, 1, 0}, {0, 0, 1, 1, 1, 0, 0} }, { {0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0}, {0, 0, 0, 1, 1, 1, 1, 1, 0, 0, 0}, {0, 0, 1, 1, 0, 0, 0, 1, 1, 0, 0}, {0, 1, 1, 0, 0, 0, 0, 0, 1, 1, 0}, {1, 1, 0, 0, 0, 0, 0, 0, 0, 1, 1}, {1, 1, 0, 0, 0, 2, 0, 0, 0, 1, 1}, {1, 1, 0, 0, 0, 0, 0, 0, 0, 1, 1}, {0, 1, 1, 0, 0, 0, 0, 0, 1, 1, 0}, {0, 0, 1, 1, 0, 0, 0, 1, 1, 0, 0}, {0, 0, 0, 1, 1, 1, 1, 1, 0, 0, 0}, {0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0} } } local combat = {} for i = 1, 4 do combat[i] = Combat() combat[i]:setParameter(COMBAT_PARAM_TYPE, COMBAT_HOLYDAMAGE) combat[i]:setParameter(COMBAT_PARAM_EFFECT, CONST_ME_HOLYAREA) combat[i]:setArea(createCombatArea(arrs[i])) function onGetFormulaValues(player, level, magicLevel) local min = (level / 5) + (maglevel * 10) local max = (level / 5) + (maglevel * 14) return -min, -max end function onTargetTile(creature, position) creature:getPosition():sendDistanceEffect(position, CONST_ANI_HOLY) end combat[i]:setCallback(CALLBACK_PARAM_LEVELMAGICVALUE, "onGetFormulaValues") combat[i]:setCallback(CALLBACK_PARAM_TARGETTILE, "onTargetTile") end local function castSpell(creatureId, variant, counter) local creature = Creature(creatureId) if not creature then return end if counter == 0 then combat[1]:execute(creature, variant) elseif counter == 100 then combat[2]:execute(creature, variant) elseif counter == 250 then combat[3]:execute(creature, variant) elseif counter == 500 then combat[4]:execute(creature, variant) end if counter < 500 then addEvent(castSpell, 50, creatureId, variant, counter + 50) end end function onCastSpell(creature, variant) castSpell(creatureId, variant, 0) return true end
  14. Eu Necessito de Um Script /online Que Mostrasse os Player o Level e as Vocações e os Resets Storage do Reset: 54676 Se Agem Poder Ajudar eu Agradeço.
  15. Era que eu fiz Hahaha vlw ted pelo suporte.
  16. [18/04/2023 21:35:14] [Warning - Monsters::loadFromXml] Cannot load monsters file. [18/04/2023 21:35:14] Line: 87, Info: Comment must not contain '--' (double-hyphen)
  17. mesmo tirando o item laranja que é donate coin nao vai e o amarelo a bolinha vip coin nao compra
  18. </item> <item id="11192" name="Vip Coin"> <attribute key="weight" value="" /> <attribute key="worth" value="1000" /> <attribute key="description" value="Com essa moeda voce compra donate items."/> </item> 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 do Vip Coin] local t = { [12610] = {price = 100}, [8925] = {price = 100}, [12609] = {price = 100}, [2345] = {price = 100}, [9693] = {price = 100}, [11392] = {price = 100}, [2297] = {price = 100}, [11390] = {price = 100}, [7414] = {price = 100}, [2189] = {price = 100}, [7735] = {price = 100}, [11130] = {price = 100}, [8976] = {price = 100}, [2499] = {price = 100}, [2263] = {price = 100}, [2264] = {price = 100}, [2500] = {price = 100}, [3983] = {price = 100}, [7457] = {price = 100}, [10141] = {price = 100}, [5801] = {price = 100}, [7443] = {price = 100}, [7697] = {price = 100}, [2352] = {price = 100}, [2263] = {price = 100}, [8856] = {price = 100}, [2545] = {price = 100}, [2546] = {price = 100}, [2529] = {price = 100}, [9735] = {price = 100}, [2421] = {price = 100}, [2507] = {price = 100}, [2537] = {price = 100}, [2505] = {price = 100}, [2499] = {price = 100}, [10298] = {price = 100}, [2537] = {price = 100}, [6433] = {price = 100}, [4864] = {price = 100}, [3983] = {price = 100}, [2529] = {price = 100}, [7902] = {price = 100}, [7897] = {price = 100}, [11113] = {price = 100}, [7424] = {price = 100}, [8293] = {price = 100}, [5468] = {price = 100}, [7450] = {price = 100}, [8931] = {price = 100}, [2294] = {price = 100}, [2537] = {price = 100}, [8851] = {price = 100}, [7896] = {price = 100}, [7897] = {price = 100}, [7902] = {price = 100}, [2529] = {price = 100}, [7429] = {price = 100}, [7435] = {price = 100}, [2505] = {price = 100}, [8858] = {price = 100}, [6529] = {price = 100}, [6433] = {price = 100}, [10298] = {price = 100}, [9971] = {price = 100}, [11111] = {price = 100}, [7896] = {price = 100}, [10309] = {price = 100}, [10311] = {price = 100}, [10310] = {price = 100}, [7440] = {price = 100}, [7443] = {price = 100}, [2537] = {price = 100}, [2644] = {price = 100}, [11298] = {price = 100}, [11350] = {price = 100}, [12617] = {price = 100}, [8983] = {price = 100}, [11349] = {price = 100}, [10569] = {price = 100}, [12574] = {price = 100}, [10310] = {price = 100}, [12279] = {price = 100}, [12392] = {price = 100}, [8980] = {price = 100}, [10943] = {price = 100}, [5907] = {price = 100}, [11387] = {price = 100}, [6534] = {price = 100}, [8209] = {price = 100}, [7892] = {price = 100}, [7730] = {price = 100}, [8884] = {price = 100}, [11073] = {price = 100}, [8924] = {price = 100}, [8905] = {price = 100}, [11235] = {price = 100}, [8981] = {price = 100}, [9004] = {price = 100}, [8261] = {price = 100}, [9693] = {price = 100}, [2264] = {price = 100}, [2294] = {price = 100}, [2263] = {price = 100}, [2296] = {price = 100}, [2270] = {price = 100}, [2270] = {price = 100}, [2154] = {price = 100}, [2155] = {price = 100}, [2158] = {price = 100}, [10301] = {price = 100}, [5908] = {price = 100}, [7850] = {price = 100}, [6101] = {price = 100}, [7840] = {price = 100}, [10511] = {price = 100}, [7735] = {price = 100}, [7429] = {price = 100}, [7435] = {price = 100}, [10513] = {price = 100}, [7838] = {price = 100}, [10223] = {price = 100}, [10224] = {price = 100}, [7738] = {price = 100}, [10140] = {price = 100}, [10515] = {price = 100}, [11138] = {price = 100}, [7435] = {price = 100}, [10301] = {price = 100}, [7839] = {price = 100}, [7429] = {price = 100}, [7735] = {price = 100} } local onBuy = function(cid, item, subType, amount, ignoreCap, inBackpacks) if t[item] and not doPlayerRemoveItem(cid, moeda, t[item].price) then selfSay("você não tem "..t[item].price.." "..getItemNameById(moeda), cid) else doPlayerAddItem(cid, item) selfSay("aqui está seu 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())

Informação Importante

Confirmação de Termo