Jump to content

Gabriel Delmond

Campones
  • Content Count

    1
  • Joined

  • Last visited

Everything posted by Gabriel Delmond

  1. Fiz no celular então tá meio bagunçado , testa desta forma : local combat = createCombatObject() setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE) setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_MANADRAIN) setCombatParam(combat, COMBAT_PARAM_AGGRESSIVE, false) setCombatFormula(combat, COMBAT_FORMULA_SKILL, 10, 10, 10, 10) function onUseWeapon(cid, var) local addmana = math.random((mat * (min/100)), (mat * (max/100))) if getPlayerLevel(cid) >= 5 then doCreatureAddMana(cid, addmana) doSendMagicEffect(getThingPos(cid), CONST_ME_MAGIC_BLUE) doCombat(cid, combat, var) else doPlayerSendCancel(cid, 'You need level 20 to use this weapon.') end end
  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...