Jump to content

Pifafa

Member
  • Content Count

    299
  • Joined

  • Last visited

  • Days Won

    4

Pifafa last won the day on April 7

Pifafa had the most liked content!

About Pifafa

  • Rank
    Pifafa
  • Birthday 03/09/1991

Profile Information

  • Gender
    Masculino
  • Localization
    Campos Novos
  • I am
    OT-Admin
  • My character
    Pifafa
  • Favorite OTServ
    www.tibinha.com
  • Bot preferred
    Neobot

Recent Profile Visitors

5526 profile views
  1. erro que aparece ao liga servidor! mysql_real_query(): UPDATE `players` SET `exphist7`=players.exphist6, `exphist6`=players.exphist5, `exphist5`=players.exphist4, `exphist4`=players.exphist3, `exphist3`=players.exphist2, `exphist2`=players.exphist1, `exphist1`=players.experience-players.exphist_lastexp, `exphist_lastexp`=players.experience; - MYSQL ERROR: BIGINT UNSIGNED value is out of range in '`ot`.`players`.`experience` - `ot`.`players`.`exphist_lastexp`' (1690)
  2. Exatamente, fazendo que a pagina sai fora do ar, não estou conseguindo arruma esse bug.
  3. Aumento a proposta pra quem conseguir fazer o sistema ganha 60 reais
  4. Olá pessoal, meu script está apresentado o seguinte erro: Código que uso. function onThink(interval) if (tonumber(os.date("%d")) ~= getGlobalStorageValue(23456)) then setGlobalStorageValue(23456, (tonumber(os.date("%d")))) db.executeQuery("UPDATE `players` SET `onlinetime7`=`onlinetime6`, `onlinetime6`=`onlinetime5`, `onlinetime5`=`onlinetime4`, `onlinetime4`=`onlinetime3`, `onlinetime3`=`onlinetime2`, `onlinetime2`=`onlinetime1`, `onlinetime1`=`onlinetimetoday`, `onlinetimetoday`=0;") db.executeQuery("UPDATE `players` SET `exphist7`=`exphist6`, `exphist6`=`exphist5`, `exphist5`=`exphist4`, `exphist4`=`exphist3`, `exphist3`=`exphist2`, `exphist2`=`exphist1`, `exphist1`=`experience`-`exphist_lastexp`, `exphist_lastexp`=`experience`;") end db.executeQuery("UPDATE `players` SET `onlinetimetoday`=`onlinetimetoday`+60, `onlinetimeall`=`onlinetimeall`+60 WHERE `online` = 1;") return true end
  5. Post o script para que outras pessoas possam usar mano... ajudaria muita gente!
  6. Gostei muito, vou ser valorizado por seu usuário antigo ahahah.
  7. Aumento a proposta pra quem conseguir fazer o sistema ganha 30 reais
  8. Não deu certo ele consegue usa a magia.
  9. Ficando assim?! local combat = createCombatObject() setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_HITAREA) setCombatParam(combat, COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_ETHEREALSPEAR) function onUseWeapon(cid, var) local skill = getPlayerRequiredSkillTries(cid, SKILL_DISTANCE, getPlayerSkillLevel(cid, SKILL_DISTANCE)) local target = getCreatureTarget(cid) local crit = math.random(1, 100) if getCreatureCondition(cid, CONDITION_ATTRIBUTES) then doPlayerSendTextMessage(cid, 27, "Voce nao pode usar o Exercise Bow com um buff ativo.") doSendMagicEffect(getCreaturePosition(cid), CONST_ME_POFF) return false end if getCreatureName(target) == "Exercise Dummy" then if getPlayerSkillLevel(cid, SKILL_DISTANCE) >= 0 and getPlayerSkillLevel(cid, SKILL_DISTANCE) <= 19 then if crit <= 5 then doPlayerAddSkillTry(cid, SKILL_DISTANCE, math.ceil(skill*0.7), false) -- 70% doSendAnimatedText(getPlayerPosition(cid),"CRIT+ 70%", TEXTCOLOR_RED) doSendMagicEffect(getThingPos(cid), CONST_ME_MAGIC_BLUE) return doCombat(cid, combat, var) else doPlayerAddSkillTry(cid, SKILL_DISTANCE, math.ceil(skill*0.5), false) -- 50% doSendAnimatedText(getPlayerPosition(cid),"+ 50%", TEXTCOLOR_RED) doSendMagicEffect(getThingPos(cid), CONST_ME_MAGIC_BLUE) return doCombat(cid, combat, var) end elseif getPlayerSkillLevel(cid, SKILL_DISTANCE) >= 20 and getPlayerSkillLevel(cid, SKILL_DISTANCE) <= 29 then if crit <= 5 then doPlayerAddSkillTry(cid, SKILL_DISTANCE, math.ceil(skill*0.5), false) -- 60% doSendAnimatedText(getPlayerPosition(cid),"CRIT+ 50%", TEXTCOLOR_RED) doSendMagicEffect(getThingPos(cid), CONST_ME_MAGIC_BLUE) return doCombat(cid, combat, var) else doPlayerAddSkillTry(cid, SKILL_DISTANCE, math.ceil(skill*0.3), false) -- 40% doSendAnimatedText(getPlayerPosition(cid),"+ 30%", TEXTCOLOR_RED) doSendMagicEffect(getThingPos(cid), CONST_ME_MAGIC_BLUE) return doCombat(cid, combat, var) end elseif getPlayerSkillLevel(cid, SKILL_DISTANCE) >= 30 and getPlayerSkillLevel(cid, SKILL_DISTANCE) <= 39 then if crit <= 5 then doPlayerAddSkillTry(cid, SKILL_DISTANCE, math.ceil(skill*0.4), false) -- 50% doSendAnimatedText(getPlayerPosition(cid),"CRIT+ 40%", TEXTCOLOR_RED) doSendMagicEffect(getThingPos(cid), CONST_ME_MAGIC_BLUE) return doCombat(cid, combat, var) else doPlayerAddSkillTry(cid, SKILL_DISTANCE, math.ceil(skill*0.2), false) -- 30% doSendAnimatedText(getPlayerPosition(cid),"+ 20%", TEXTCOLOR_RED) doSendMagicEffect(getThingPos(cid), CONST_ME_MAGIC_BLUE) return doCombat(cid, combat, var) end elseif getPlayerSkillLevel(cid, SKILL_DISTANCE) >= 40 and getPlayerSkillLevel(cid, SKILL_DISTANCE) <= 49 then if crit <= 5 then doPlayerAddSkillTry(cid, SKILL_DISTANCE, math.ceil(skill*0.3), false) -- 50% doSendAnimatedText(getPlayerPosition(cid),"CRIT+ 30%", TEXTCOLOR_RED) doSendMagicEffect(getThingPos(cid), CONST_ME_MAGIC_BLUE) return doCombat(cid, combat, var) else doPlayerAddSkillTry(cid, SKILL_DISTANCE, math.ceil(skill*0.15), false) -- 25% doSendAnimatedText(getPlayerPosition(cid),"+ 15%", TEXTCOLOR_RED) doSendMagicEffect(getThingPos(cid), CONST_ME_MAGIC_BLUE) return doCombat(cid, combat, var) end elseif getPlayerSkillLevel(cid, SKILL_DISTANCE) >= 50 and getPlayerSkillLevel(cid, SKILL_DISTANCE) <= 59 then if crit <= 5 then doPlayerAddSkillTry(cid, SKILL_DISTANCE, math.ceil(skill*0.1), false) -- 40% doSendAnimatedText(getPlayerPosition(cid),"CRIT+ 10%", TEXTCOLOR_RED) doSendMagicEffect(getThingPos(cid), CONST_ME_MAGIC_BLUE) return doCombat(cid, combat, var) else doPlayerAddSkillTry(cid, SKILL_DISTANCE, math.ceil(skill*0.05), false) -- 20% doSendAnimatedText(getPlayerPosition(cid),"+ 5%", TEXTCOLOR_RED) doSendMagicEffect(getThingPos(cid), CONST_ME_MAGIC_BLUE) return doCombat(cid, combat, var) end elseif getPlayerSkillLevel(cid, SKILL_DISTANCE) >= 60 and getPlayerSkillLevel(cid, SKILL_DISTANCE) <= 69 then if crit <= 5 then doPlayerAddSkillTry(cid, SKILL_DISTANCE, math.ceil(skill*0.03), false) -- 30% doSendAnimatedText(getPlayerPosition(cid),"CRIT+ 3%", TEXTCOLOR_RED) doSendMagicEffect(getThingPos(cid), CONST_ME_MAGIC_BLUE) return doCombat(cid, combat, var) else doPlayerAddSkillTry(cid, SKILL_DISTANCE, math.ceil(skill*0.015), false) -- 15% doSendAnimatedText(getPlayerPosition(cid),"+ 1.5%", TEXTCOLOR_RED) doSendMagicEffect(getThingPos(cid), CONST_ME_MAGIC_BLUE) return doCombat(cid, combat, var) end elseif getPlayerSkillLevel(cid, SKILL_DISTANCE) >= 70 and getPlayerSkillLevel(cid, SKILL_DISTANCE) <= 79 then if crit <= 5 then doPlayerAddSkillTry(cid, SKILL_DISTANCE, math.ceil(skill*0.02), false) -- 20% doSendAnimatedText(getPlayerPosition(cid),"CRIT+ 2%", TEXTCOLOR_RED) doSendMagicEffect(getThingPos(cid), CONST_ME_MAGIC_BLUE) return doCombat(cid, combat, var) else doPlayerAddSkillTry(cid, SKILL_DISTANCE, math.ceil(skill*0.01), false) -- 10% doSendAnimatedText(getPlayerPosition(cid),"+ 1%", TEXTCOLOR_RED) doSendMagicEffect(getThingPos(cid), CONST_ME_MAGIC_BLUE) return doCombat(cid, combat, var) end elseif getPlayerSkillLevel(cid, SKILL_DISTANCE) >= 80 and getPlayerSkillLevel(cid, SKILL_DISTANCE) <= 89 then if crit <= 5 then doPlayerAddSkillTry(cid, SKILL_DISTANCE, math.ceil(skill*0.01), false) -- 10% doSendAnimatedText(getPlayerPosition(cid),"CRIT+ 1%", TEXTCOLOR_RED) doSendMagicEffect(getThingPos(cid), CONST_ME_MAGIC_BLUE) return doCombat(cid, combat, var) else doPlayerAddSkillTry(cid, SKILL_DISTANCE, math.ceil(skill*0.005), false) -- 5% doSendAnimatedText(getPlayerPosition(cid),"+ 0.5%", TEXTCOLOR_RED) doSendMagicEffect(getThingPos(cid), CONST_ME_MAGIC_BLUE) return doCombat(cid, combat, var) end elseif getPlayerSkillLevel(cid, SKILL_DISTANCE) >= 90 and getPlayerSkillLevel(cid, SKILL_DISTANCE) <= 99 then if crit <= 5 then doPlayerAddSkillTry(cid, SKILL_DISTANCE, math.ceil(skill*0.005), false) -- 3% doSendAnimatedText(getPlayerPosition(cid),"CRIT+ 0.5%", TEXTCOLOR_RED) doSendMagicEffect(getThingPos(cid), CONST_ME_MAGIC_BLUE) return doCombat(cid, combat, var) else doPlayerAddSkillTry(cid, SKILL_DISTANCE, math.ceil(skill*0.0025), false) -- 1.5% doSendAnimatedText(getPlayerPosition(cid),"+ 0.25%", TEXTCOLOR_RED) doSendMagicEffect(getThingPos(cid), CONST_ME_MAGIC_BLUE) return doCombat(cid, combat, var) end elseif getPlayerSkillLevel(cid, SKILL_DISTANCE) >= 100 and getPlayerSkillLevel(cid, SKILL_DISTANCE) <= 109 then if crit <= 5 then doPlayerAddSkillTry(cid, SKILL_DISTANCE, math.ceil(skill*0.0025), false) -- 1.4% doSendAnimatedText(getPlayerPosition(cid),"CRIT+ 0.25%", TEXTCOLOR_RED) doSendMagicEffect(getThingPos(cid), CONST_ME_MAGIC_BLUE) return doCombat(cid, combat, var) else doPlayerAddSkillTry(cid, SKILL_DISTANCE, math.ceil(skill*0.0015), false) -- 0.7% doSendAnimatedText(getPlayerPosition(cid),"+ 0.15%", TEXTCOLOR_RED) doSendMagicEffect(getThingPos(cid), CONST_ME_MAGIC_BLUE) return doCombat(cid, combat, var) end elseif getPlayerSkillLevel(cid, SKILL_DISTANCE) >= 110 and getPlayerSkillLevel(cid, SKILL_DISTANCE) <= 119 then if crit <= 5 then doPlayerAddSkillTry(cid, SKILL_DISTANCE, math.ceil(skill*0.001), false) -- 0.6% doSendAnimatedText(getPlayerPosition(cid),"CRIT+ 0.1%", TEXTCOLOR_RED) doSendMagicEffect(getThingPos(cid), CONST_ME_MAGIC_BLUE) return doCombat(cid, combat, var) else doPlayerAddSkillTry(cid, SKILL_DISTANCE, math.ceil(skill*0.0005), false) -- 0.3% doSendAnimatedText(getPlayerPosition(cid),"+ 0.05%", TEXTCOLOR_RED) doSendMagicEffect(getThingPos(cid), CONST_ME_MAGIC_BLUE) return doCombat(cid, combat, var) end elseif getPlayerSkillLevel(cid, SKILL_DISTANCE) >= 120 and getPlayerSkillLevel(cid, SKILL_DISTANCE) <= 129 then if crit <= 5 then doPlayerAddSkillTry(cid, SKILL_DISTANCE, math.ceil(skill*0.0005), false) -- 0.5% doSendAnimatedText(getPlayerPosition(cid),"CRIT+ 0.05%", TEXTCOLOR_RED) doSendMagicEffect(getThingPos(cid), CONST_ME_MAGIC_BLUE) return doCombat(cid, combat, var) else doPlayerAddSkillTry(cid, SKILL_DISTANCE, math.ceil(skill*0.00025), false) -- 0.25% doSendAnimatedText(getPlayerPosition(cid),"+ 0.025%", TEXTCOLOR_RED) doSendMagicEffect(getThingPos(cid), CONST_ME_MAGIC_BLUE) return doCombat(cid, combat, var) end elseif getPlayerSkillLevel(cid, SKILL_DISTANCE) >= 130 then if crit <= 5 then doPlayerAddSkillTry(cid, SKILL_DISTANCE, math.ceil(skill*0.0003), false) -- 0.25% doSendAnimatedText(getPlayerPosition(cid),"CRIT+ 0.03%", TEXTCOLOR_RED) doSendMagicEffect(getThingPos(cid), CONST_ME_MAGIC_BLUE) return doCombat(cid, combat, var) else doPlayerAddSkillTry(cid, SKILL_DISTANCE, math.ceil(skill*0.00015), false) -- 0.15% doSendAnimatedText(getPlayerPosition(cid),"+ 0.015%", TEXTCOLOR_RED) doSendMagicEffect(getThingPos(cid), CONST_ME_MAGIC_BLUE) return doCombat(cid, combat, var) end end else return doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Você só pode usar o exercise weapon no 'Exercise Dummy'.") end end
  10. Essa seria a do paladino aumenta skill... No caso seria bom, ele não consegui usa a magia quando equipado com a arma hahahaha de treinar skill que no caso é um 19:01 You see a exercise bow that has 100 charges left. It can only be wielded properly by royal paladins of level 8 or higher. ItemID: [12691]. DecayTo: [7729]. Position: [X: 2055] [Y: 2041] [Z: 6]. local combat = createCombatObject() setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_MAGIC_BLUE) setCombatParam(combat, COMBAT_PARAM_AGGRESSIVE, false) local condition = createConditionObject(CONDITION_ATTRIBUTES) setConditionParam(condition, CONDITION_PARAM_TICKS, 10000) setConditionParam(condition, CONDITION_PARAM_SKILL_DISTANCEPERCENT, 160) setConditionParam(condition, CONDITION_PARAM_BUFF, true) setCombatCondition(combat, condition) local speed = createConditionObject(CONDITION_PARALYZE) setConditionParam(speed, CONDITION_PARAM_TICKS, 10000) setConditionFormula(speed, -0.5, 50, -0.5, 50) setCombatCondition(combat, speed) local exhaust = createConditionObject(CONDITION_EXHAUST) setConditionParam(exhaust, CONDITION_PARAM_SUBID, 2) setConditionParam(exhaust, CONDITION_PARAM_TICKS, 10000) setCombatCondition(combat, exhaust) function onCastSpell(cid, var) return doCombat(cid, combat, var) end Não teria como por aqui uma condição que não se pode usa ela com spell?! <!-- EXERCISE WEAPONS --> <melee id="12688" level="8" unproperly="1" event="script" value="exercise_sword.lua"> <vocation name="Elite Knight"/> <vocation id="8" showInDescription="0"/> </melee> <melee id="12689" level="8" unproperly="1" event="script" value="exercise_axe.lua"> <vocation name="Elite Knight"/> <vocation id="8" showInDescription="0"/> </melee> <melee id="12690" level="8" unproperly="1" event="script" value="exercise_club.lua"> <vocation name="Elite Knight"/> <vocation id="8" showInDescription="0"/> </melee> <distance id="12691" level="8" swing="true" event="script" value="exercise_distance.lua"> <vocation name="Royal Paladin"/> <vocation id="7" showInDescription="0"/> </distance> <wand id="12692" level="8" event="script" value="exercise_staff.lua"> <vocation name="Master Sorcerer"/> <vocation name="Elder Druid"/> <vocation name="Royal Paladin"/> <vocation name="Elite Knight"/> <vocation id="5;6;7;8" showInDescription="0"/> </wand>
  11. Acredito que sejá qual quer magia que altere o skill..... Teria que por pra ele não ataca até volta ao normal kkk <instant name="Sharpshooter" words="utito tempo san" lvl="60" mana="450" prem="0" aggressive="0" selftarget="1" exhaustion="1500" groups="1,0" icon="135" needlearn="0" event="script" value="support/sharpshooter.lua"> <instant name="Protector" words="utamo tempo" lvl="55" mana="200" prem="0" aggressive="0" selftarget="1" exhaustion="1500" groups="1,0" icon="132" needlearn="0" event="script" value="support/protector.lua"> <instant name="Blood Rage" words="utito tempo" lvl="60" mana="290" prem="0" aggressive="0" selftarget="1" exhaustion="1500" groups="1,0" icon="133" needlearn="0" event="script" value="support/blood rage.lua">
  12. Olá uso esse script, como uma arma de exercício no meu otserver. Porem se player der alguma magia para aumenta o skill a mesma bug, dando 1% a cada hit e até mais 1skill a cada hit... Como poderia por pra bloquear uso de magias quando estão usando ela?! Ou até mesmo se pessoa estiver com uso de buff não poder usa a arma?! local combat = createCombatObject() setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_HITAREA) setCombatParam(combat, COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_ETHEREALSPEAR) function onUseWeapon(cid, var) local skill = getPlayerRequiredSkillTries(cid, SKILL_DISTANCE, getPlayerSkillLevel(cid, SKILL_DISTANCE)) local target = getCreatureTarget(cid) local crit = math.random(1, 100) if getCreatureName(target) == "Exercise Dummy" then if getPlayerSkillLevel(cid, SKILL_DISTANCE) >= 0 and getPlayerSkillLevel(cid, SKILL_DISTANCE) <= 19 then if crit <= 5 then doPlayerAddSkillTry(cid, SKILL_DISTANCE, math.ceil(skill*0.7), false) -- 70% doSendAnimatedText(getPlayerPosition(cid),"CRIT+ 70%", TEXTCOLOR_RED) doSendMagicEffect(getThingPos(cid), CONST_ME_MAGIC_BLUE) return doCombat(cid, combat, var) else doPlayerAddSkillTry(cid, SKILL_DISTANCE, math.ceil(skill*0.5), false) -- 50% doSendAnimatedText(getPlayerPosition(cid),"+ 50%", TEXTCOLOR_RED) doSendMagicEffect(getThingPos(cid), CONST_ME_MAGIC_BLUE) return doCombat(cid, combat, var) end elseif getPlayerSkillLevel(cid, SKILL_DISTANCE) >= 20 and getPlayerSkillLevel(cid, SKILL_DISTANCE) <= 29 then if crit <= 5 then doPlayerAddSkillTry(cid, SKILL_DISTANCE, math.ceil(skill*0.5), false) -- 60% doSendAnimatedText(getPlayerPosition(cid),"CRIT+ 50%", TEXTCOLOR_RED) doSendMagicEffect(getThingPos(cid), CONST_ME_MAGIC_BLUE) return doCombat(cid, combat, var) else doPlayerAddSkillTry(cid, SKILL_DISTANCE, math.ceil(skill*0.3), false) -- 40% doSendAnimatedText(getPlayerPosition(cid),"+ 30%", TEXTCOLOR_RED) doSendMagicEffect(getThingPos(cid), CONST_ME_MAGIC_BLUE) return doCombat(cid, combat, var) end elseif getPlayerSkillLevel(cid, SKILL_DISTANCE) >= 30 and getPlayerSkillLevel(cid, SKILL_DISTANCE) <= 39 then if crit <= 5 then doPlayerAddSkillTry(cid, SKILL_DISTANCE, math.ceil(skill*0.4), false) -- 50% doSendAnimatedText(getPlayerPosition(cid),"CRIT+ 40%", TEXTCOLOR_RED) doSendMagicEffect(getThingPos(cid), CONST_ME_MAGIC_BLUE) return doCombat(cid, combat, var) else doPlayerAddSkillTry(cid, SKILL_DISTANCE, math.ceil(skill*0.2), false) -- 30% doSendAnimatedText(getPlayerPosition(cid),"+ 20%", TEXTCOLOR_RED) doSendMagicEffect(getThingPos(cid), CONST_ME_MAGIC_BLUE) return doCombat(cid, combat, var) end elseif getPlayerSkillLevel(cid, SKILL_DISTANCE) >= 40 and getPlayerSkillLevel(cid, SKILL_DISTANCE) <= 49 then if crit <= 5 then doPlayerAddSkillTry(cid, SKILL_DISTANCE, math.ceil(skill*0.3), false) -- 50% doSendAnimatedText(getPlayerPosition(cid),"CRIT+ 30%", TEXTCOLOR_RED) doSendMagicEffect(getThingPos(cid), CONST_ME_MAGIC_BLUE) return doCombat(cid, combat, var) else doPlayerAddSkillTry(cid, SKILL_DISTANCE, math.ceil(skill*0.15), false) -- 25% doSendAnimatedText(getPlayerPosition(cid),"+ 15%", TEXTCOLOR_RED) doSendMagicEffect(getThingPos(cid), CONST_ME_MAGIC_BLUE) return doCombat(cid, combat, var) end elseif getPlayerSkillLevel(cid, SKILL_DISTANCE) >= 50 and getPlayerSkillLevel(cid, SKILL_DISTANCE) <= 59 then if crit <= 5 then doPlayerAddSkillTry(cid, SKILL_DISTANCE, math.ceil(skill*0.1), false) -- 40% doSendAnimatedText(getPlayerPosition(cid),"CRIT+ 10%", TEXTCOLOR_RED) doSendMagicEffect(getThingPos(cid), CONST_ME_MAGIC_BLUE) return doCombat(cid, combat, var) else doPlayerAddSkillTry(cid, SKILL_DISTANCE, math.ceil(skill*0.05), false) -- 20% doSendAnimatedText(getPlayerPosition(cid),"+ 5%", TEXTCOLOR_RED) doSendMagicEffect(getThingPos(cid), CONST_ME_MAGIC_BLUE) return doCombat(cid, combat, var) end elseif getPlayerSkillLevel(cid, SKILL_DISTANCE) >= 60 and getPlayerSkillLevel(cid, SKILL_DISTANCE) <= 69 then if crit <= 5 then doPlayerAddSkillTry(cid, SKILL_DISTANCE, math.ceil(skill*0.03), false) -- 30% doSendAnimatedText(getPlayerPosition(cid),"CRIT+ 3%", TEXTCOLOR_RED) doSendMagicEffect(getThingPos(cid), CONST_ME_MAGIC_BLUE) return doCombat(cid, combat, var) else doPlayerAddSkillTry(cid, SKILL_DISTANCE, math.ceil(skill*0.015), false) -- 15% doSendAnimatedText(getPlayerPosition(cid),"+ 1.5%", TEXTCOLOR_RED) doSendMagicEffect(getThingPos(cid), CONST_ME_MAGIC_BLUE) return doCombat(cid, combat, var) end elseif getPlayerSkillLevel(cid, SKILL_DISTANCE) >= 70 and getPlayerSkillLevel(cid, SKILL_DISTANCE) <= 79 then if crit <= 5 then doPlayerAddSkillTry(cid, SKILL_DISTANCE, math.ceil(skill*0.02), false) -- 20% doSendAnimatedText(getPlayerPosition(cid),"CRIT+ 2%", TEXTCOLOR_RED) doSendMagicEffect(getThingPos(cid), CONST_ME_MAGIC_BLUE) return doCombat(cid, combat, var) else doPlayerAddSkillTry(cid, SKILL_DISTANCE, math.ceil(skill*0.01), false) -- 10% doSendAnimatedText(getPlayerPosition(cid),"+ 1%", TEXTCOLOR_RED) doSendMagicEffect(getThingPos(cid), CONST_ME_MAGIC_BLUE) return doCombat(cid, combat, var) end elseif getPlayerSkillLevel(cid, SKILL_DISTANCE) >= 80 and getPlayerSkillLevel(cid, SKILL_DISTANCE) <= 89 then if crit <= 5 then doPlayerAddSkillTry(cid, SKILL_DISTANCE, math.ceil(skill*0.01), false) -- 10% doSendAnimatedText(getPlayerPosition(cid),"CRIT+ 1%", TEXTCOLOR_RED) doSendMagicEffect(getThingPos(cid), CONST_ME_MAGIC_BLUE) return doCombat(cid, combat, var) else doPlayerAddSkillTry(cid, SKILL_DISTANCE, math.ceil(skill*0.005), false) -- 5% doSendAnimatedText(getPlayerPosition(cid),"+ 0.5%", TEXTCOLOR_RED) doSendMagicEffect(getThingPos(cid), CONST_ME_MAGIC_BLUE) return doCombat(cid, combat, var) end elseif getPlayerSkillLevel(cid, SKILL_DISTANCE) >= 90 and getPlayerSkillLevel(cid, SKILL_DISTANCE) <= 99 then if crit <= 5 then doPlayerAddSkillTry(cid, SKILL_DISTANCE, math.ceil(skill*0.005), false) -- 3% doSendAnimatedText(getPlayerPosition(cid),"CRIT+ 0.5%", TEXTCOLOR_RED) doSendMagicEffect(getThingPos(cid), CONST_ME_MAGIC_BLUE) return doCombat(cid, combat, var) else doPlayerAddSkillTry(cid, SKILL_DISTANCE, math.ceil(skill*0.0025), false) -- 1.5% doSendAnimatedText(getPlayerPosition(cid),"+ 0.25%", TEXTCOLOR_RED) doSendMagicEffect(getThingPos(cid), CONST_ME_MAGIC_BLUE) return doCombat(cid, combat, var) end elseif getPlayerSkillLevel(cid, SKILL_DISTANCE) >= 100 and getPlayerSkillLevel(cid, SKILL_DISTANCE) <= 109 then if crit <= 5 then doPlayerAddSkillTry(cid, SKILL_DISTANCE, math.ceil(skill*0.0025), false) -- 1.4% doSendAnimatedText(getPlayerPosition(cid),"CRIT+ 0.25%", TEXTCOLOR_RED) doSendMagicEffect(getThingPos(cid), CONST_ME_MAGIC_BLUE) return doCombat(cid, combat, var) else doPlayerAddSkillTry(cid, SKILL_DISTANCE, math.ceil(skill*0.0015), false) -- 0.7% doSendAnimatedText(getPlayerPosition(cid),"+ 0.15%", TEXTCOLOR_RED) doSendMagicEffect(getThingPos(cid), CONST_ME_MAGIC_BLUE) return doCombat(cid, combat, var) end elseif getPlayerSkillLevel(cid, SKILL_DISTANCE) >= 110 and getPlayerSkillLevel(cid, SKILL_DISTANCE) <= 119 then if crit <= 5 then doPlayerAddSkillTry(cid, SKILL_DISTANCE, math.ceil(skill*0.001), false) -- 0.6% doSendAnimatedText(getPlayerPosition(cid),"CRIT+ 0.1%", TEXTCOLOR_RED) doSendMagicEffect(getThingPos(cid), CONST_ME_MAGIC_BLUE) return doCombat(cid, combat, var) else doPlayerAddSkillTry(cid, SKILL_DISTANCE, math.ceil(skill*0.0005), false) -- 0.3% doSendAnimatedText(getPlayerPosition(cid),"+ 0.05%", TEXTCOLOR_RED) doSendMagicEffect(getThingPos(cid), CONST_ME_MAGIC_BLUE) return doCombat(cid, combat, var) end elseif getPlayerSkillLevel(cid, SKILL_DISTANCE) >= 120 and getPlayerSkillLevel(cid, SKILL_DISTANCE) <= 129 then if crit <= 5 then doPlayerAddSkillTry(cid, SKILL_DISTANCE, math.ceil(skill*0.0005), false) -- 0.5% doSendAnimatedText(getPlayerPosition(cid),"CRIT+ 0.05%", TEXTCOLOR_RED) doSendMagicEffect(getThingPos(cid), CONST_ME_MAGIC_BLUE) return doCombat(cid, combat, var) else doPlayerAddSkillTry(cid, SKILL_DISTANCE, math.ceil(skill*0.00025), false) -- 0.25% doSendAnimatedText(getPlayerPosition(cid),"+ 0.025%", TEXTCOLOR_RED) doSendMagicEffect(getThingPos(cid), CONST_ME_MAGIC_BLUE) return doCombat(cid, combat, var) end elseif getPlayerSkillLevel(cid, SKILL_DISTANCE) >= 130 then if crit <= 5 then doPlayerAddSkillTry(cid, SKILL_DISTANCE, math.ceil(skill*0.0003), false) -- 0.25% doSendAnimatedText(getPlayerPosition(cid),"CRIT+ 0.03%", TEXTCOLOR_RED) doSendMagicEffect(getThingPos(cid), CONST_ME_MAGIC_BLUE) return doCombat(cid, combat, var) else doPlayerAddSkillTry(cid, SKILL_DISTANCE, math.ceil(skill*0.00015), false) -- 0.15% doSendAnimatedText(getPlayerPosition(cid),"+ 0.015%", TEXTCOLOR_RED) doSendMagicEffect(getThingPos(cid), CONST_ME_MAGIC_BLUE) return doCombat(cid, combat, var) end end else return doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Você só pode usar o exercise weapon no 'Exercise Dummy'.") end end
  13. Eu gosto muito do ClassicYurots, tem uma media gigante de player, visto que hoje poderia investir uns 500 por mês em publicidade so pra ver as pessoas jogando, porem uso para estudos e ter algo bonito, experimente entra no servidor eu modifiquei muita coisa lá. ahahaha

Open Tibia Server

Quer aprender a criar seu próprio servidor de Tibia? Então está no lugar certo, aqui você encontrará milhares de tutorias, scripts, códigos, mapas e utilitários para que você possa fazer o seu próprio servidor de Tibia começando do zero.

Redes Sociais

Anuncie no Tibia King

Precisa de mais visibilidade em seus projetos? Quer fazer um plano publicitário para o seu servidor? Anuncie no Tibia King e faça sua divulgação, possuímos centenas de acessos simultâneos e milhares diários, com certeza será a sua solução!

×
×
  • Create New...