Ir para conteúdo

Ricardo Milos Otzero

Membro
  • Registro em

  • Última visita

Tudo que Ricardo Milos Otzero postou

  1. meu tfs nao possui guild war. então como so tem como criar guild. pensei em colocar um script. que quando o player cria guild. ele ganha o escudo de guild. +REP TFS 0.3.6
  2. local config = { tempo = 5, --tempo em segundos mensagem = { texto = "[TOP]", --não use mais de 9 caracteres efeito = TEXTCOLOR_LIGHTBLUE --efeito para a função doSendAnimatedText }, efeito = 30, --efeito da função doSendMagicEffect globalstr = 150202 -- uma global storage qualquer q esteje vazia } function TopEffect(cid) local var = tostring(getGlobalStorageValue(config.globalstr)):gsub(':', ''):explode(',') if not isCreature(cid) or getPlayerName(cid) ~= var[1] then return LUA_ERROR end doSendAnimatedText(getCreaturePosition(cid), config.mensagem.texto, config.mensagem.efeito) doSendMagicEffect(getCreaturePosition(cid), config.efeito) addEvent(TopEffect, config.tempo*1000, cid) end function onLogin(cid) if tonumber(getGlobalStorageValue(config.globalstr)) then -- virgin local query = db.getResult("SELECT `name`, `level` FROM `players` WHERE `group_id` < 2 ORDER BY `level` DESC LIMIT 1") if (query:getID() ~= -1) then setGlobalStorageValue(config.globalstr, ":"..query:getDataString("name")..",:"..query:getDataInt("level")) TopEffect(cid) end else TopEffect(cid) end registerCreatureEvent(cid, "CheckTop") return true end function onAdvance(cid, skill, oldLevel, newLevel) if skill ~= SKILL__LEVEL then return true end local var = tostring(getGlobalStorageValue(config.globalstr)):gsub(':', ''):explode(',') if newLevel > tonumber(var[2]) then doBroadcastMessage("O jogador " .. getPlayerName(cid) .. " tornou-se o novo Top Level. Parabens!", 22) setGlobalStorageValue(config.globalstr, ":"..getPlayerName(cid)..",:"..newLevel) TopEffect(cid) end return true end Denunciar post Postado 04-05-2019 00:39 Versão do Servidor: TFS - 0.3.5 Tipo de Script: creaturescript Código: Ocultar conteúdo local config = { tempo = 5, --tempo em segundos mensagem = { texto = "[TOP]", --não use mais de 9 caracteres efeito = TEXTCOLOR_LIGHTBLUE --efeito para a função doSendAnimatedText }, efeito = 30, --efeito da função doSendMagicEffect globalstr = 150202 -- uma global storage qualquer q esteje vazia } function TopEffect(cid) local var = tostring(getGlobalStorageValue(config.globalstr)):gsub(':', ''):explode(',') if not isCreature(cid) or getPlayerName(cid) ~= var[1] then return LUA_ERROR end doSendAnimatedText(getCreaturePosition(cid), config.mensagem.texto, config.mensagem.efeito) doSendMagicEffect(getCreaturePosition(cid), config.efeito) addEvent(TopEffect, config.tempo*1000, cid) end function onLogin(cid) if tonumber(getGlobalStorageValue(config.globalstr)) then -- virgin local query = db.getResult("SELECT `name`, `level` FROM `players` WHERE `group_id` < 2 ORDER BY `level` DESC LIMIT 1") if (query:getID() ~= -1) then setGlobalStorageValue(config.globalstr, ":"..query:getDataString("name")..",:"..query:getDataInt("level")) TopEffect(cid) end else TopEffect(cid) end registerCreatureEvent(cid, "CheckTop") return true end function onAdvance(cid, skill, oldLevel, newLevel) if skill ~= SKILL__LEVEL then return true end local var = tostring(getGlobalStorageValue(config.globalstr)):gsub(':', ''):explode(',') if newLevel > tonumber(var[2]) then doBroadcastMessage("O jogador " .. getPlayerName(cid) .. " tornou-se o novo Top Level. Parabens!", 22) setGlobalStorageValue(config.globalstr, ":"..getPlayerName(cid)..",:"..newLevel) TopEffect(cid) end return true end COMO MEU OT NAO PEGA ESCUDO DE WAR , GOSTARIA COLOCAR O ESCUDO AZUL OU O VERDE DE WAR. EM QUEM FOSSE O TOP LEVEL , NESSE SCRIPT AE. QUE O TOP LEVEL FICASSE COM O ESCUDO DE WAR. +REP
  3. QUERIA UM SCRIPT , QUE TODA VEZ O PLAYER LOGAR APARECER "FREE BLESS ATE LVL 20" E OUTRA "DOMINE O CASTELO E GANHE MAS XP" EM VERMELHO . TIPO ESSA MSG DA IMAGEM. +REP TFS 0.3.6
  4. OK VO TENTAR AQUI , VOU VER SE E ISSO , THX você sabe como faz isso , não mostra account manager , quando aperta enter ?
  5. ja fiz isso so que na hora que eu aperto enter aparece , sorry invalid account. queria que aparecesse antes disso. no ot de cima e assim aperta ente e amostra a msg.
  6. COMO FAZ PARA MOSTRAR A "MENSAGEM DO DIA" QUANDO APERTA ENTER NA TELA INICIAL DE LOGIN. SO APERTA ENTER, ANTES DE LOGAR. TIPO ESSA AI ? +REP
  7. ta curando life , quero que cure mana tfs 0.3.6 local combat = createCombatObject() setCombatParam(combat, COMBAT_PARAM_BLOCKARMOR, 1) setCombatParam(combat, COMBAT_PARAM_BLOCKSHIELD, 1) setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE) setCombatFormula(combat, COMBAT_FORMULA_SKILL, 0, 0, 1.0, 0) function onUseWeapon(cid, var) local skill = getPlayerSkill(cid,SKILL_AXE) -- Change this to the type of weapon you are using local mat = 0.085*0.5*50*skill+(getPlayerLevel(cid)/5) -- Change 50 to the attack of the weapon local min = 25 -- this means 5% minimum healing local max = 40 -- this means 15% maximum healing local addhealth = math.random((mat * (min/100)), (mat * (max/100))) if getPlayerLevel(cid) >= 5 then doCreatureAddHealth(cid, addhealth) doSendMagicEffect(getThingPos(cid), CONST_ME_MAGIC_BLUE) doCombat(cid, combat, var) else doPlayerSendCancel(cid, 'You need level 20 to use this weapon.') end end +rep

Informação Importante

Confirmação de Termo