Dummy Spell Script menu

User Tag List

Results 1 to 3 of 3
  1. #1
    choweyiii's Avatar Contributor
    Reputation
    91
    Join Date
    Aug 2010
    Posts
    127
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Dummy Spell Script

    I wanted to be able to change Dummy effects on spells, but I'm not sure how and the guides I've read didn't really make sense to me. I tried to look around on the Arcemu website, with no avail. I wanted to be able to add and remove spells easily, and register it as a server hook, here's what I have so far...

    Code:
    local Caster = Spell:GetCaster()
    function SpellFinder(Event, pPlayer, spellId)
    if spellId == 58178 then
    Caster:CastSpell(30971)
    end
    end
    
    RegisterServerHook(10, "SpellFinder")
    Pretty confused past whatever I've got there. I'll gladly rep anyone who can post a helpful comment.

    Dummy Spell Script
  2. #2
    stoneharry's Avatar Moderator Harry


    Reputation
    1618
    Join Date
    Sep 2007
    Posts
    4,564
    Thanks G/R
    151/150
    Trade Feedback
    0 (0%)
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)
    Well your trying to call:

    nothing:donothing()

    at the start of the script (since both the pointer and the method do not exist in this context).

    This is where you are going wrong:

    Code:
    function SpellFinder(Event, pPlayer, spellId)
    -- When a spell is cast this function is called
    -- The person who cast this spell (pPlayer) and the spellId (spellId) are provided in the arguments
    if spellId == 58178 then -- if spellid = 58178
    pPlayer:CastSpell(30971) -- player cast this spell
    end
    end
    
    RegisterServerHook(10, "SpellFinder")

  3. #3
    choweyiii's Avatar Contributor
    Reputation
    91
    Join Date
    Aug 2010
    Posts
    127
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks again, I would rep but I have to spread some more first.

Similar Threads

  1. [C++ Script] Question about spell scripting
    By Vytska in forum WoW EMU Questions & Requests
    Replies: 0
    Last Post: 01-31-2012, 07:00 AM
  2. Need spell script !
    By diantonio in forum WoW EMU Questions & Requests
    Replies: 3
    Last Post: 10-25-2009, 04:09 PM
  3. Need spell script !
    By diantonio in forum WoW EMU Guides & Tutorials
    Replies: 1
    Last Post: 10-24-2009, 09:58 AM
  4. Dragonscale Repack With Chrispee's Database FULL Z'AMAN SCRIPTS SPELLS
    By Dragonscale in forum WoW EMU Guides & Tutorials
    Replies: 3
    Last Post: 12-14-2007, 05:29 PM
  5. [GUIDE] - Scripting for Antrix, Making Mobs Talk, Cast Spells, etc
    By Greed in forum WoW EMU Guides & Tutorials
    Replies: 6
    Last Post: 12-10-2007, 07:51 PM
All times are GMT -5. The time now is 03:52 AM. 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