Simple Lua Script , not working need help! menu

User Tag List

Page 1 of 2 12 LastLast
Results 1 to 15 of 17
  1. #1
    Arugos's Avatar Member
    Reputation
    14
    Join Date
    Jun 2007
    Posts
    247
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Simple Lua Script , not working need help!

    Why is this simple script not working? The mob just cast the spell on himself instead of on the player attacking him , how do i make him cast the spell on the player attacking him , instead of the closest player or on himself? Also is there a way to make him yell also?


    function GuardianofQuelThalas_MurmursWrath (pUnit, Event)
    tarGet = pUnit:GetClosestPlayer()
    pUnit:CastSpellOnTarget (33331,tarGet)
    end
    RegisterUnitEvent (50095, 1, "GuardianofQuelThalas_MurmursWrath")


    Well i just want to know how to make this script cast murmur's wrath on the player attacking the npc and to make the npc yell 'no pvp here' when hes done casting

    Simple Lua Script , not working need help!
  2. #2
    Le Froid's Avatar Contributor
    Reputation
    172
    Join Date
    Mar 2007
    Posts
    1,327
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Delete "tarGet =" and say what happens

  3. #3
    Arugos's Avatar Member
    Reputation
    14
    Join Date
    Jun 2007
    Posts
    247
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    kk ill try that , and ty for replying

  4. #4
    Pragma's Avatar Contributor
    Reputation
    261
    Join Date
    Feb 2007
    Posts
    630
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    well see i made that script for him but i have had this hapen to me when i tried it out but usually this works but i have come to this conclusion, the spell type conflicts with the lua command, the spell type is whats making it cast it on himself


  5. #5
    Arugos's Avatar Member
    Reputation
    14
    Join Date
    Jun 2007
    Posts
    247
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    still cast it on himself : P

  6. #6
    Arugos's Avatar Member
    Reputation
    14
    Join Date
    Jun 2007
    Posts
    247
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    well i tryed with 2 spells so far , hammer of justice and murmur's wrath ... wich spell do you recommend me? this guy is my mall guard

  7. #7
    Pragma's Avatar Contributor
    Reputation
    261
    Join Date
    Feb 2007
    Posts
    630
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    wait i have an idea, brb gonan check ascentemu.com


  8. #8
    Le Froid's Avatar Contributor
    Reputation
    172
    Join Date
    Mar 2007
    Posts
    1,327
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Eh, the current status of LUA IMO is s*itty. So many commands don't work and when they add stuff there is always a build error. You never know how wrong a working script can go

  9. #9
    Arugos's Avatar Member
    Reputation
    14
    Join Date
    Jun 2007
    Posts
    247
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    dude i already understand nothing to script so i simply ask people for a sample script and some cool people reply with one , i modify it and see if it work ... i got some to work for one of my boss so far but ..if i could know how to make good script i would ..but im a real noob at scripting ... People tell me to use M++ but i dont understand nothing to that .. even more than Lua

    So what do you guys recommend me to use? I just want a mall guard to cast a spell on a target that dare to attack him

    And also .. if someone could give me a sample script that would be good for boss , like cast x spell every x second ..cuz mine spawn with an aura that reduce shadow resistance and he spam a seed of corruption spell whenever he can ..and that pretty gay

  10. #10
    Le Froid's Avatar Contributor
    Reputation
    172
    Join Date
    Mar 2007
    Posts
    1,327
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Here is a tutorial for LUA: Board Message

    Good luck

    Also, if you want a guard stopping PvP or whatever..just wait. Burlex is coding that and it would need C++, not LUA

  11. #11
    Pragma's Avatar Contributor
    Reputation
    261
    Join Date
    Feb 2007
    Posts
    630
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    make it look like this:

    function GuardianofQuelThalas_MurmursWrath (pUnit, Event)
    tarGet = pUnit:GetClosestPlayer()
    if (plr~=nil) then
    pUnit:CastSpellOnTarget (33331,tarGet)
    end
    end
    RegisterUnitEvent (50095, 1, "GuardianofQuelThalas_MurmursWrath")


  12. #12
    Arugos's Avatar Member
    Reputation
    14
    Join Date
    Jun 2007
    Posts
    247
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    TY very much dude +rep

  13. #13
    Pragma's Avatar Contributor
    Reputation
    261
    Join Date
    Feb 2007
    Posts
    630
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    oh i found a tiny error in that script if it doesnt work make it look like this:

    function GuardianofQuelThalas_MurmursWrath (pUnit, Event)
    tarGet = pUnit:GetClosestPlayer()
    if (tarGet~=nil) then
    pUnit:CastSpellOnTarget (33331,tarGet)
    end
    end
    RegisterUnitEvent (50095, 1, "GuardianofQuelThalas_MurmursWrath")


  14. #14
    Arugos's Avatar Member
    Reputation
    14
    Join Date
    Jun 2007
    Posts
    247
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    yeah ty , it was not working , ill reply to tell you if this one work

  15. #15
    Arugos's Avatar Member
    Reputation
    14
    Join Date
    Jun 2007
    Posts
    247
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    still not working , the mob still cast the spell on itself and sometime it bug and just freeze

Page 1 of 2 12 LastLast

Similar Threads

  1. [Lua Script] Lua Script Not Working
    By drpwnage77 in forum WoW EMU Questions & Requests
    Replies: 4
    Last Post: 06-23-2010, 05:50 PM
  2. Halp please lua script not working
    By thebigman in forum WoW EMU Questions & Requests
    Replies: 4
    Last Post: 09-29-2009, 06:06 PM
  3. LUA script not working
    By Dz The Rage in forum WoW EMU Questions & Requests
    Replies: 4
    Last Post: 04-04-2009, 09:26 PM
  4. LUA script not working
    By pedobear123 in forum World of Warcraft General
    Replies: 12
    Last Post: 09-01-2008, 09:38 AM
  5. [Help] Lua Script Not Working
    By Muruk in forum World of Warcraft Emulator Servers
    Replies: 26
    Last Post: 03-16-2008, 02:13 PM
All times are GMT -5. The time now is 11:37 AM. Powered by vBulletin® Version 4.2.3
Copyright © 2024 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search