
x1zy
Membro
-
Registro em
-
Última visita
Histórico de Curtidas
-
x1zy recebeu reputação de fillipek2 em Somente menbros de honra podem usar bikelocal config = { textoAvisandoSuaVelocidade = "nao", -- Se você quiser que o script mande uma mensagem para o player dizendo a velocidade dele premiumAccount = "nao", -- Se precisa de premium velocidadeDaSuaBike = 1000, -- A volocidade da bike, sempre bote números de 1 á 10. Caso bote mais que isso a volicidade vai ficar muito alta. outfitMale = 95, -- Outfit male outfitFemale = 95, -- Outfit female efeito = 18, -- Efeito que ira aparescer quando der use. storageValue = 5603, -- Storage Para a bike usaVipSystem = "nao", -- Caso alguem use algum tipo de vip system bote sim storageUsadaNoVipSystem = 0, -- Aqui boata a storage do vip system caso use } function onUse(cid, item, itemEx, fromPosition, toPosition) if isPlayer(cid) and getCreatureOutfit(cid).lookType == 814 then return false end if getPlayerStorageValue(cid, config.storageValue) <= 0 then setPlayerStorageValue(cid, 3624, ""..getPlayerStamina(cid).."") a = {lookType = config.outfitMale, lookHead = getCreatureOutfit(cid).lookHead, lookBody = getCreatureOutfit(cid).lookBody, lookLegs = getCreatureOutfit(cid).lookLegs, lookFeet = getCreatureOutfit(cid).lookFeet} b = {lookType = config.outfitFemale, lookHead = getCreatureOutfit(cid).lookHead, lookBody = getCreatureOutfit(cid).lookBody, lookLegs = getCreatureOutfit(cid).lookLegs, lookFeet = getCreatureOutfit(cid).lookFeet} doSendMagicEffect(getThingPos(cid), config.efeito) speedRate = config.velocidadeDaSuaBike * 1000 doChangeSpeed(cid, speedRate + getPlayerStorageValue(cid, 3624)) setPlayerStorageValue(cid, config.storageValue, 1) if getPlayerSex(cid) == 0 then doSetCreatureOutfit(cid, b, -1) else doSetCreatureOutfit(cid, a, -1) end if config.textoAvisandoSuaVelocidade == "sim" then doPlayerSendTextMessage(cid, 27, "Sua velocidade agora é: "..getPlayerStorageValue(cid, 3624).."") end else setPlayerStorageValue(cid, config.storageValue, 0) doSendMagicEffect(getThingPos(cid), config.efeito) doRemoveCondition(cid, CONDITION_OUTFIT) retireSpeedRate = config.velocidadeDaSuaBike * 100 playerSpeedNow = -retireSpeedRate - getPlayerStorageValue(cid, 3624) doChangeSpeed(cid, playerSpeedNow) end return true end
-
x1zy recebeu reputação de Wdlroots em Account Manager com ênfase nas escolhasnas sources(claro) em player.cpp.
bem abaixo, começa em "void Player::manageAccount(const std::string &text)".
-
x1zy recebeu reputação de thelifeofpbion em (Resolvido)Função onTime Globalevents 0.4<globalevent name="EVENTNAME" time="16:20:00" script="SCRIPTNAME.lua" /> local cfg = { storage = 82342, createpos = {x = 174, y = 47, z = 7}, topos = {x = 70, y = 341, z = 6}, msg = "O Last man standing Event Teleport acabou de fechar! Ele irá reaparecer de novo a cada 2 horas! Todos os participantes, preparem-se para a batalha!", timetoclose = 120 } local function remove() local tp = getTileItemById(cfg.createpos, 1387).uid if tp ~= 0 then doRemoveItem(tp) doBroadcastMessage(cfg.msg) setGlobalStorageValue(cfg.storage, 0) end end function onTime(interval) if not getGlobalStorageValue(cfg.storage) == 1 then setGlobalStorageValue(cfg.storage, 1) doCreateTeleport(1387, cfg.topos, cfg.createpos) doBroadcastMessage("Last man standing event Teleport esta aberto!\nCatch o teleport vai fechar dentro de "..cfg.timetoclose.." segundos! O teleport esta localizado na sala de Eventos.") addEvent(remove, cfg.timetoclose * 1000) end return true end
-
x1zy recebeu reputação de thelifeofpbion em (Resolvido)Função onTime Globalevents 0.4eu editar o post, faz pelo onThink mesmo, com interval de 30seg.
lembrando que eu não testei, posta se tiver erros no console.
outra questão, não sei se você vai ter que usar os dias em Inglês ou Português. testa nos 2.
local days = { ['Wednesday'] = "16:20:00", -- quarta ['Friday'] = "16:20:00" } local cfg = { storage = 82342, createpos = {x = 174, y = 47, z = 7}, topos = {x = 70, y = 341, z = 6}, msg = "O Last man standing Event Teleport acabou de fechar! Ele irá reaparecer de novo a cada 2 horas! Todos os participantes, preparem-se para a batalha!", timetoclose = 120 } local function remove() local tp = getTileItemById(cfg.createpos, 1387).uid if tp ~= 0 then doRemoveItem(tp) doBroadcastMessage(cfg.msg) setGlobalStorageValue(cfg.storage, 0) end end function onThink(interval) if not getGlobalStorageValue(cfg.storage) == 1 then getDay = days[os.date("%A")] if getDay and getDay == os.date("%H") then setGlobalStorageValue(cfg.storage, 1) doCreateTeleport(1387, cfg.topos, cfg.createpos) doBroadcastMessage("Last man standing event Teleport esta aberto!\nCatch o teleport vai fechar dentro de "..cfg.timetoclose.." segundos! O teleport esta localizado na sala de Eventos.") addEvent(remove, cfg.timetoclose * 1000) end end return true end
-
x1zy recebeu reputação de Radamanthys Wov em Pedido [descer da bike ao usar desbugar]bem, pelo que esta no script, ele simplesmente teleport o player para x pos. ele não muda outfit de bike nem nada disso.
recomendo você descobrir qual o script que remove outfit de bike, e procurar a função, estou falando de apenas uma linha.
e também descobrir o ID da storage da BIKE.
local storage = 985432 function onSay(cid, words, param) doPlayerSendTextMessage(cid, 25, "Personagem Desbugado!") setPlayerStorageValue(cid, storage, 0) doSendMagicEffect(getCreaturePosition(cid),3) -- ADICIONAR FUNÇÃO QUE MUDA OUTFIT return true end
-
x1zy deu reputação a arthurmgoncalves em SCRIPT de colocar No nomes dos pokes Shinys "Shiny"Ah man, tem nada haver com isso ai não, tem haver com o level system msm, vai em level system da ctrl+f procura por
if string.find(tostring(nick), "Shiny") then
nick = tostring(nick):match("Shiny (.*)")
end
e apaga e salva o arquivo só isso
-
x1zy recebeu reputação de jNo em (Resolvido)Action com erro, e pedido talktem que kickar o player antes de chamar DB!
não testei.
local price = 20000000 function onSay(cid, words, param, channel) local rskulls = {green = SKULL_GREEN, red = SKULL_RED, black = SKULL_BLACK} if not isInArray(rskulls, getPlayerSkullType(cid)) then doPlayerSendCancel(cid,"You dont have skulls") return true end if not doPlayerRemoveMoney(cid, price) then doPlayerSendCancel(cid,"You need " .. price .. " cash.") return true end doCreatureSetSkullType(cid, 0) doCreatureSay(cid, "Your frags and skulls is cleaned!", 19) player = getPlayerGUID(cid) doRemoveCreature(cid, true) db.executeQuery("UPDATE `killers` SET `unjustified` = 0 WHERE `id` IN (SELECT `kill_id` FROM `player_killers` WHERE `player_id` = " .. player .. ")") return true end
-
x1zy recebeu reputação de jNo em (Resolvido)Action com erro, e pedido talklocal cfg = {item = 2423, ammount = 1} function onUse(cid, item, fromPosition, item2, toPosisition) local rskulls = {green = SKULL_GREEN, red = SKULL_RED, black = SKULL_BLACK} if not isInArray(rskulls, getPlayerSkullType(cid)) then doPlayerSendCancel(cid,"You dont have skulls") return true end if not doPlayerRemoveItem(cid, cfg.item, cfg.ammount) then doPlayerSendCancel(cid,"You need ".. cfg.ammount .. "x " .. getItemNameById(cfg.item) .. ".") return true end doCreatureSetSkullType(cid, 0) doCreatureSay(cid, "Your frags and skulls is cleaned!", 19) player = getPlayerGUID(cid) doRemoveCreature(cid, true) db.executeQuery("UPDATE `killers` SET `unjustified` = 0 WHERE `id` IN (SELECT `kill_id` FROM `player_killers` WHERE `player_id` = " .. player .. ")") return true end
-
x1zy recebeu reputação de StormsHard em (Resolvido)Alguem me ajuda nessa actionBem, vou te ajudar a pescar, saca?
1º
antes de:
setPlayerStorageValue(cid, 18392, getCreatureSpeed(cid))
por:
local chance = math.random(1, 6) -- chance 1 em 6 if not chance == 1 then doPlayerSendCancel(cid, "Não foi possivel roubar o carro.") return true end
2º no globalEvents, descobre qual o ficheiro lua do seu logout, e coloca isso:
if getPlayerStorageValue(cid, 18391) == 1 then doPlayerSendCancel(cid, "Você está num veículo.") return false end 3° basta adicionar actionID nos tiles na frente do "depot" e configurar um onMoviment e checar a storage,
se sim chama o codigo que remove o outfit/speed de carro.
4º mais uma vez, não tem no codigo a parte que ele desce do carro.