[Lua] Boss Script menu

Shout-Out

User Tag List

Results 1 to 7 of 7
  1. #1
    mrjoker123's Avatar Member
    Reputation
    6
    Join Date
    Jul 2008
    Posts
    32
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    [Lua] Boss Script

    Thanks all that have clicked on this thread, the problem is probably a very easy one, however i'll explain it.

    When in a boss fight, using different spells. I do it the cheater way and create lots of phases and correspond one spell, etc so its much easier.

    However, i have this lua script for a boss, and on phase 2 <=40% health, i want it to spam arcane blasts? i'm still learning lua and i dont understand it. atm i do it so it casts it every 5 seconds, but its even after the long cast time? any help, thankies

    Code:
    function Petra_Phase2(pUnit, Event)
    		if pUnit:GetHealthPct() <= 40 then
    		pUnit:RemoveEvents()
    		pUnit:SendChatMessage(14, 0, "EAT MY APPLE PIE")
    		pUnit:SetMaxMana(10000000)
    		pUnit:RegisterEvent("Petra_FrostboltofAges", 1000, 50)
    		pUnit:RegisterEvent("Petra_ArcaneBlast", 6000, 0)
    		pUnit:RegisterEvent("Petra_Phase3", 1000, 0)
    		end
    		end
    
    function Petra_ArcaneBlast(pUnit,Event) 
    	pUnit:FullCastSpellOnTarget(42897, pUnit:GetMainTank())
    end
    **Just a snip bit of the code**

    Also another dilemma i face is that when i try and set the model it just completely ignores? i do pUnit:SetModel(*DISPLAYID*)

    Code:
    function Petra_Phase1(pUnit, Event)
    		if pUnit:GetHealthPct() <= 75 then
    		pUnit:RemoveEvents()
    		pUnit:SendChatMessage(14, 0, "TEXT")
                    pUnit:SetModel(ID)
    And if anybody else has any little bits to add that will help me thankies, ! ooo i just thought of another thing!!

    Spawning Adds byside of the boss

    http://www.mmowned.com/forums/emulator-server-releases/279546-lua-custom-boss-buffer.html -- IM TRYING TO FOLLOW THIS GUIDE?

    Code:
    Unit:SpawnCreature(30416, x-0.5, y, z, o, 14,50000)
    		Unit:SpawnCreature(30416, x, y-0.5, z, o, 14,50000)
    		Unit:SpawnCreature(30416, x, y, z-0.5, o, 14,50000)
    		Unit:SpawnCreature(30416, x-0.5, y-0.5, z, o, 14,50000)
    		Unit:SpawnCreature(30416, x-0.5, y, z, o, 14,50000)
    		Unit:SpawnCreature(30416, x, y-0.5, z, o, 14,50000)
    		Unit:SpawnCreature(30416, x, y, z-0.5, o, 14,50000)
    		Unit:SpawnCreature(30416, x-0.5, y-0.5, z, o, 14,50000)
    		Unit:SpawnCreature(30416, x-0.5, y, z, o, 14,50000)
    		Unit:SpawnCreature(30416, x, y-0.5, z, o, 14,50000)
    		Unit:SpawnCreature(30416, x, y, z-0.5, o, 14,50000)
    I changed the ID, (30416), but im not sure what to do for x,y,z etc? umm am i being noob or just retarded? i just want to test it so i place the boss anywhere i havent really put any .gps down? would i just have to do that or is there a way of doing it so it spawns so many xyz away from the boss?

    thanks if you can help with any 3 of the problems and help me solute.. as i said there probably like /FACEPALM but u know, instead of me trying to work it out for like 5 hours i ask you guys, thanks

    EDIT:: one last thing i hate wamp and just cant stand it its such a fiddly program for me whenever i use it, ive downloaded a website and ive configged the files? is there anyway of just adding it to like a htdocs file inside of server ? if so can someone help me pleaseee tyy x sorry for asking for so much help ;/
    Last edited by mrjoker123; 04-17-2010 at 04:26 PM.

    [Lua] Boss Script
  2. #2
    Linkn's Avatar Contributor
    Reputation
    90
    Join Date
    Mar 2009
    Posts
    296
    Thanks G/R
    0/0
    Trade Feedback
    1 (100%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    However, i have this lua script for a boss, and on phase 2 <=40% health, i want it to spam arcane blasts? i'm still learning lua and i dont understand it. atm i do it so it casts it every 5 seconds, but its even after the long cast time? any help, thankies
    I don't quite understand the question, could you try and explain it more?

    Also another dilemma i face is that when i try and set the model it just completely ignores? i do pUnit:SetModel(*DISPLAYID*)
    That should work, throw in the creatures displayid and you should be good.

    I changed the ID, (30416), but im not sure what to do for x,y,z etc? umm am i being noob or just retarded? i just want to test it so i place the boss anywhere i havent really put any .gps down? would i just have to do that or is there a way of doing it so it spawns so many xyz away from the boss?
    I believe you can do this:
    Code:
    Unit:SpawnCreature(30416, x+5, y+5, z+5, o+5, 14,50000)
    Not sure really, try it out. (Been awhile since I messed with Lua)

  3. #3
    mrjoker123's Avatar Member
    Reputation
    6
    Join Date
    Jul 2008
    Posts
    32
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    thanks mate, i tried doing SpawnCreature and then X,y,Z before, but it doesnt understand the values? maybe because i need to register?

    and what i mean by arcane blasts is that i want it to repeatidly cast the spell, with no cooldown?

  4. #4
    Mildan's Avatar Member
    Reputation
    10
    Join Date
    Feb 2009
    Posts
    80
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    With the no cooldown I guess you can just make it with the FullCastSpellOnTarget, every 1 second, or ½ a second, so it almost imediatly casts a new one after the previous one.

    As for the X Y Z coordinates, I cant remember which is which, but sine World of Warcraft is a 3D virtual world game, it simply says, is where it is on the ground, and how far up/far down it is.

  5. #5
    Kiev's Avatar Contributor
    Reputation
    288
    Join Date
    Nov 2007
    Posts
    1,819
    Thanks G/R
    0/4
    Trade Feedback
    3 (100%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You need to define what x y z is.

    You can define it with the creatures location, or you can define it to be a set position on the map.




  6. #6
    Ground Zero's Avatar ★ Elder ★
    Reputation
    1132
    Join Date
    Aug 2008
    Posts
    3,504
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Remember if you set a phase to loop, eg do Arcane Blast every 5 seconds, and you move onto the next phase, eg 20% hp and you tell the NPC to RemoveEvents() it will remove the Arcane Blast loop.

  7. #7
    mrjoker123's Avatar Member
    Reputation
    6
    Join Date
    Jul 2008
    Posts
    32
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    yup thankies everyone <3

Similar Threads

  1. [Question] Lua boss script
    By arthars1 in forum World of Warcraft Emulator Servers
    Replies: 1
    Last Post: 06-08-2008, 12:11 AM
  2. [HELP] Lua boss script not working-solutions?
    By WinKIller0 in forum World of Warcraft Emulator Servers
    Replies: 15
    Last Post: 03-21-2008, 08:19 AM
  3. LUA Boss Script
    By Lindoz12 in forum World of Warcraft Emulator Servers
    Replies: 4
    Last Post: 03-04-2008, 02:45 PM
  4. LUA Boss Script Help
    By neurothymia in forum World of Warcraft Emulator Servers
    Replies: 4
    Last Post: 02-05-2008, 02:57 PM
  5. Lua Boss Script Problems!!
    By blah7 in forum World of Warcraft Emulator Servers
    Replies: 14
    Last Post: 01-22-2008, 08:59 PM
All times are GMT -5. The time now is 11:16 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