Scripting LUA 101 menu

User Tag List

Page 6 of 9 FirstFirst ... 23456789 LastLast
Results 76 to 90 of 132
  1. #76
    joober's Avatar Member
    Reputation
    6
    Join Date
    Feb 2008
    Posts
    64
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Wow, very easy to read. Good important information. Easy to understand/nicely organized.

    +rep from me.

    Scripting LUA 101
  2. #77
    SectorSeven's Avatar Banned
    Reputation
    444
    Join Date
    Oct 2007
    Posts
    1,948
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks buddy

  3. #78
    thelastsurviver123's Avatar Member
    Reputation
    2
    Join Date
    Nov 2007
    Posts
    74
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    sweet guide!

  4. #79
    Sumner97's Avatar Member
    Reputation
    1
    Join Date
    May 2008
    Posts
    4
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    @ Shredfire I could be wrong on this, but I think that Lua is case sensitive in some areas. Make sure you use the correct capital or lowercase letters in the right settings.

    On another note I have a question about Lua scripting. I am currently working on scripting Hex Lord Malacrass for ZA. I have 2 out of 3 of his spells working correctly but one I can't get to work for some reason. Basically what it does is takes the abilities of a certain player class in the raid and gives them to Hex Lord for use. I know for this to work correctly you need to find the correct number for the player class that has been targeted. I use the :GetPlayerClass() to find this number and set it to a variable so I can call the certain class abilities. Here is what my code looks like:

    Code:
    function HexLord_SoulDrain(Unit, event)
    	Unit:RemoveEvents()
    	Unit:SendChatMessage(12, 0, "Your will belong ta me now!")
    	Unit:PlaySoundToSet(12046)
    	Unit:FullCastSpellOnTarget(43501, Unit:GetRandomPlayer(0))
    	class = Unit:GetPlayerClass()
    	if class == 1 then
    	Unit:SendChatMessage(11, 0, "Check Warrior")
    	Unit:RegisterEvent("WarriorSpells", 1000, 1)
    	elseif class == 2 then
            ....
            end
            Unit:RegisterEvent("HexLord_SpiritBolts", 30000, 0)
    end
    What happens is he says the chat message, I heard the sound play, and he casts the spell on a random player. But that is all the happens. I don't see the message "Check Warrior" appear. I have reconfigured how I use the :GetPlayerClass() option may times but to the same affect. The question is am I doing something wrong here or does the :GetPlayerClass() option just not work on the Lua engine.

    Help would be greatly appreciated. If I can get this working correctly I would love to post it here for everyone to use.

    Edit: Since GetPlayerClass doesn't work. I just set it to a randomizer event. This should work for now.

    -Sumner
    Last edited by Sumner97; 05-19-2008 at 03:17 AM.

  5. #80
    SectorSeven's Avatar Banned
    Reputation
    444
    Join Date
    Oct 2007
    Posts
    1,948
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    It doesn't work for me, at least not lately.

  6. #81
    Sumner97's Avatar Member
    Reputation
    1
    Join Date
    May 2008
    Posts
    4
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks SectorSeven

    Btw nice guide and love your database. Our server is currently using it.

  7. #82
    pachuco55's Avatar Member
    Reputation
    12
    Join Date
    Mar 2008
    Posts
    75
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    How's that advanced lua guide coming? I am need of more learnings!

  8. #83
    Exona's Avatar Member
    Reputation
    1
    Join Date
    Jan 2007
    Posts
    11
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    +Rep+Rep for awesomeness! Usefull for scripting my own bosses when I get to making me a server again ^_^

    Edit: Gah, gotta wait untill tomorrow to do that :/
    Last edited by Exona; 05-18-2008 at 07:17 PM.

  9. #84
    SectorSeven's Avatar Banned
    Reputation
    444
    Join Date
    Oct 2007
    Posts
    1,948
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Haha its cool. Glad you liked it!

  10. #85
    ledz14's Avatar Member
    Reputation
    6
    Join Date
    Feb 2008
    Posts
    82
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    thanks man, +rep

  11. #86
    SectorSeven's Avatar Banned
    Reputation
    444
    Join Date
    Oct 2007
    Posts
    1,948
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    No problem

  12. #87
    ledz14's Avatar Member
    Reputation
    6
    Join Date
    Feb 2008
    Posts
    82
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    So, since ur an expert, how would I write a script for instant 70 in LUA? greatly appreciated,

    -Ledz

  13. #88
    SectorSeven's Avatar Banned
    Reputation
    444
    Join Date
    Oct 2007
    Posts
    1,948
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Answered this question for ya already

  14. #89
    Zordin's Avatar Banned
    Reputation
    21
    Join Date
    Jan 2007
    Posts
    163
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    How do i make an NPC do a spell at a certain percent?

    Thanks in advance.

  15. #90
    Crucius's Avatar Member
    Reputation
    1
    Join Date
    Nov 2007
    Posts
    5
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Now you must save your script. Save it as Boss_CreatureName.lua is the tipical setup. Place in your scripts folder with has other LUA files in it. Make sure your compile/repack has LUA enabled and that its enabled in your ascent-world. Also, make sure there is a LUA dll in your script_bin folder. Now restart your server and have fun!


    Would we just need to move the saved file into the script_bin folder? Or do we need to do something with it prior to that.

Page 6 of 9 FirstFirst ... 23456789 LastLast

Similar Threads

  1. [Release] My Custom boss script (LUA)
    By Nilrac in forum World of Warcraft Emulator Servers
    Replies: 3
    Last Post: 06-17-2008, 03:57 AM
  2. [share] mini-tut on gossip scripts lua
    By b!atch in forum World of Warcraft Emulator Servers
    Replies: 2
    Last Post: 05-29-2008, 05:11 AM
  3. Need help with my script [lua]
    By Satzen in forum World of Warcraft Emulator Servers
    Replies: 5
    Last Post: 05-18-2008, 05:19 PM
  4. [Guide] Troubleshooting LUA 101
    By EcHoEs in forum World of Warcraft Emulator Servers
    Replies: 2
    Last Post: 04-10-2008, 08:23 AM
  5. script lua question
    By onilank in forum World of Warcraft Emulator Servers
    Replies: 2
    Last Post: 12-21-2007, 06:58 PM
All times are GMT -5. The time now is 11:43 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