Spell [RELEASE] Arrow Shower "New" Version 8.41 ¬¬

Discussion in 'GlobalEvents, Spells & CreatureEvents' started by Exedion, Apr 23, 2009.

  1. Exedion

    Exedion Active Member

    Joined:
    Jun 11, 2007
    Messages:
    628
    Likes Received:
    27
    Best Answers:
    0
    Well i work in the week, a spell for paladins, and i dit it with help of Pitufo(credits please) but the spell cause the "Tibia Client Debug" if are 5 or more creatures in the screen :S

    well i leave the script here when fix this problem...

    PHP:
    1.  
    2. local combat = createCombatObject()
    3. setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_NONE)
    4. setCombatFormula(combat, COMBAT_FORMULA_SKILL, 0, -20, 0.8, 0)
    5.  
    6. local area = createCombatArea(AREA_FULLSCREEN)
    7. setCombatArea(combat, area)
    8.  
    9. function onTargetTile(cid, pos)
    10.      local creatures = getCreaturesInRange(getCreaturePosition(cid), 7, 5, 1, 1)
    11.         for _, pid in ipairs(creatures) do
    12.         doSendDistanceShoot(getCreaturePosition(cid), getCreaturePosition(pid), CONST_ANI_INFERNALBOLT)
    13.         doSendMagicEffect(getCreaturePosition(pid), CONST_ME_HITAREA)
    14.     end
    15.  
    16. setCombatCallback(combat, CALLBACK_PARAM_TARGETTILE, "onTargetTile")
    17.  
    18. function onCastSpell(cid, var)
    19.     return doCombat(cid, combat, var)
    20.  
    you need the gesior function
    PHP:
    1. getCreaturesInRange
    enjoy? ¬¬
     
    shakaligankal likes this.
  2. Pitufo™

    Pitufo™ InfinityOT.com

    Joined:
    Feb 14, 2008
    Messages:
    1,438
    Likes Received:
    10
    Best Answers:
    0
    Nice :D

    PD: Credits? ME?
     
  3. Zonet

    Zonet Web Developer

    Joined:
    Sep 1, 2008
    Messages:
    4,375
    Likes Received:
    44
    Best Answers:
    0
    This work only for 8.41?
    nice:)
     
  4. cronoxhere

    cronoxhere Banned User

    Joined:
    Jun 27, 2009
    Messages:
    291
    Likes Received:
    2
    Best Answers:
    0
    Gratz xd
     
  5. shakaligankal

    shakaligankal New Member

    Joined:
    Aug 20, 2018
    Messages:
    2
    Likes Received:
    0
    Best Answers:
    0
    i known thats old but can u help me fix that?
    Code (Text):
    1.  
    2. [10/10/2018 10:59:44] [Error - Spell Interface]
    3. [10/10/2018 10:59:44] data/spells/scripts/attack/envenom.lua
    4. [10/10/2018 10:59:44] Description:
    5. [10/10/2018 10:59:44] (luaSetCombatArea) Area not found
    6.  
     
  6. shakaligankal

    shakaligankal New Member

    Joined:
    Aug 20, 2018
    Messages:
    2
    Likes Received:
    0
    Best Answers:
    0
    And am using TheForgottenServerV8.2 64bit
     

Share This Page

Loading...