How to make npc cast spell[HELP!] menu

Shout-Out

User Tag List

Results 1 to 11 of 11
  1. #1
    Flake0207's Avatar Active Member
    Reputation
    30
    Join Date
    Apr 2008
    Posts
    221
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    How to make npc cast spell[HELP!]

    :wave:



    its sad ive tried everything scrpts to changiing proto
    pease help


    [email protected] is my yahoo msnger

    if u hlp i might let u in on my project thnx if u can hlp

    How to make npc cast spell[HELP!]
  2. #2
    Aznex's Avatar Contributor
    Reputation
    128
    Join Date
    Feb 2008
    Posts
    770
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Are u using an lua script? do u have lua++ or blua?
    if so, link the script & what npc
    Last edited by Aznex; 12-15-2008 at 07:03 AM.

  3. #3
    Flake0207's Avatar Active Member
    Reputation
    30
    Join Date
    Apr 2008
    Posts
    221
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    um i tried Ai agents didnt work i dont know the values i need
    im working on dalaran guardian mages spell to port player to shatt or mid of dalaran
    i tried a rlly old script didnt work

  4. #4
    Flake0207's Avatar Active Member
    Reputation
    30
    Join Date
    Apr 2008
    Posts
    221
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Code:
    Sql query failed due to [Unknown column 'targettype_overwrite' in 'field list'],
     Query: [INSERT INTO ai_agents SET entry = '29255', type = '29254', event = '0',
     chance = '200', maxcount = '0', spell = '8690', spelltype = '4', targettype_ove
    rwrite = '0', cooldown_overwrite = '1', floatMisc1 = '0', Misc2  ='0']
    Sql query failed due to [Unknown column 'targettype_overwrite' in 'field list'],
     Query: [INSERT INTO ai_agents SET entry = '29255', type = '29254', event = '0',
     chance = '200', maxcount = '0', spell = '8690', spelltype = '4', targettype_ove
    rwrite = '0', cooldown_overwrite = '1', floatMisc1 = '0', Misc2  ='0']
    Sql query failed due to [Unknown column 'targettype_overwrite' in 'field list'],
     Query: [INSERT INTO ai_agents SET entry = '29255', type = '4', event = '0', cha
    nce = '200', maxcount = '0', spell = '8690', spelltype = '4', targettype_overwri
    te = '0', cooldown_overwrite = '1', floatMisc1 = '0', Misc2  ='0']

  5. #5
    Aznex's Avatar Contributor
    Reputation
    128
    Join Date
    Feb 2008
    Posts
    770
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    from what I understand u wanna make a basic teleNPC who teleports you to mid dalaran & shattrath, for that I recommend u to use an lua script & blua engine(if U compiled your own core)

  6. #6
    Flake0207's Avatar Active Member
    Reputation
    30
    Join Date
    Apr 2008
    Posts
    221
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    i dont need that i need the npc to cast it on a player im also using arcemu
    i alrdy have a tele npc i made

  7. #7
    Aznex's Avatar Contributor
    Reputation
    128
    Join Date
    Feb 2008
    Posts
    770
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Cast it on the player when? when the player passes the npc? when the player asks the npc? when the player attacks the npc? when the npc enters combat? explain yourself..

  8. #8
    Flake0207's Avatar Active Member
    Reputation
    30
    Join Date
    Apr 2008
    Posts
    221
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    passes/npcattackshim/targets him

    would be even greater if u can add the npcidalso
    29254
    29255

  9. #9
    Greatdrak's Avatar Contributor
    Reputation
    99
    Join Date
    Sep 2007
    Posts
    445
    Thanks G/R
    1/1
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Code:
    function Teleport_Attack(Unit, event, miscunit, misc)
        print "Teleporting Now"
        Unit:FullCastSpellOnTarget(46149,Unit:GetMainTank())
    end
    
    function Teleport(unit, event, miscunit, misc)
        print "PORT"
        unit:RegisterEvent("Teleport_Attack",10000,0)
    end
    
    function Teleport_Death(Unit)
        Unit:RemoveEvents()
    end
    
    function Teleport_OnLeaveCombat(Unit)
        Unit:RemoveEvents()
    end
    
    RegisterUnitEvent(29254, 1,"Teleport")
    RegisterUnitEvent(29254, 2, "Teleport_OnLeaveCombat")
    RegisterUnitEvent(29254, 4, "Teleport_Death")
    I'm not a pro at LuA but that should work if the NPC is hostile
    Roses are Blue, Violets are Red, I'm crap with colors, but killer in Bed.

  10. #10
    Flake0207's Avatar Active Member
    Reputation
    30
    Join Date
    Apr 2008
    Posts
    221
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    hostile as in attacks u?

  11. #11
    Greatdrak's Avatar Contributor
    Reputation
    99
    Join Date
    Sep 2007
    Posts
    445
    Thanks G/R
    1/1
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    yes. (as you said you wanted earlier)
    otherwise you need a gossip script if you want it to be on "right click/talk"
    Roses are Blue, Violets are Red, I'm crap with colors, but killer in Bed.

Similar Threads

  1. [Guide] How to make a NPC cast spells. NO LUA!
    By Power of Illuminati in forum WoW EMU Guides & Tutorials
    Replies: 52
    Last Post: 05-06-2011, 07:13 AM
  2. [Guide]How to make NPC casting spells(LUA)
    By paulbechtold in forum WoW EMU Guides & Tutorials
    Replies: 2
    Last Post: 12-30-2009, 07:44 PM
  3. [Help] How to make npc say things
    By Ellenor in forum WoW EMU Questions & Requests
    Replies: 1
    Last Post: 10-08-2008, 05:21 AM
  4. [question] how to make an custom npc cast spells?
    By INS4N3K1LL in forum World of Warcraft Emulator Servers
    Replies: 5
    Last Post: 05-18-2008, 07:45 AM
  5. LUA help, how to make npc cast a spell at a certain HP???
    By pioneer1337 in forum World of Warcraft Emulator Servers
    Replies: 3
    Last Post: 03-30-2008, 06:27 PM
All times are GMT -5. The time now is 03:02 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