Spell Scripting - adding timer countdown then cast secondary spell. menu

Shout-Out

User Tag List

Results 1 to 1 of 1
  1. #1
    lordpsyan's Avatar Member
    Reputation
    4
    Join Date
    Dec 2007
    Posts
    17
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Spell Scripting - adding timer countdown then cast secondary spell.

    I am trying to make a spell script, something I have never messed with before. Simply put, a spell is cast upon you when you touch an object. I have that working, since that is a game object script. it also adds a 30 second duration, which also works (no visual countdown, the aura just vanishes). I think this needs to be done in a spell script, instead of newSpell->SetDuration(30000); in gameobject script.

    I cannot figure out how to get the timer working, and then get another spell cast upon the player.
    I have this set in my spell script, so if the spell is removed by any other means, the script shouldn't do anything:
    Code:
                     if (GetTargetApplication()->GetRemoveMode() !=  AURA_REMOVE_BY_EXPIRE &&  GetTargetApplication()->GetRemoveMode() !=  AURA_REMOVE_BY_ENEMY_SPELL)
                        return;
    so to sum up my question:
    spell cast upon player. timer counts down 30 seconds, which gives player enough time to remove the spell, then at end of countdown, another spell cast upon player. Can anyone give me some sample code? I tried working with professor putricide spell codes, and the life bloom spell, but its just not triggering. Yes I added an entry in spell_script_names...

    Thanks.

    Spell Scripting - adding timer countdown then cast secondary spell.

Similar Threads

  1. TrinityCore 3.3.5a Repack Many Scripted Added [ C++ & SQL ]
    By JadaDev in forum WoW EMU General Releases
    Replies: 13
    Last Post: 06-01-2023, 07:04 PM
  2. [PQR] Fixing the SWD poly script ONLY when it's casted on you (not on everyone)
    By dealerx in forum WoW Bot Maps And Profiles
    Replies: 8
    Last Post: 08-16-2017, 04:25 AM
  3. Freeze Timer Countdown on Tradable Legendaries
    By dsDoan in forum Diablo 3 Exploits
    Replies: 7
    Last Post: 04-17-2014, 12:43 AM
  4. [Question/Request] unitpower < 10 then cast bloorage
    By oliax in forum WoW UI, Macros and Talent Specs
    Replies: 2
    Last Post: 02-22-2010, 10:11 AM
  5. [Lua] Make mobs channel spell then cast?
    By blah7 in forum World of Warcraft Emulator Servers
    Replies: 12
    Last Post: 01-18-2008, 03:24 PM
All times are GMT -5. The time now is 12:52 PM. Powered by vBulletin® Version 4.2.3
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Google Authenticator verification provided by Two-Factor Authentication (Free) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search