Now what? menu

Shout-Out

User Tag List

Thread: Now what?

Page 1 of 2 12 LastLast
Results 1 to 15 of 16
  1. #1
    willkill's Avatar Member
    Reputation
    4
    Join Date
    May 2008
    Posts
    88
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Now what?

    I just did a simple lua script in notepad and saved it. How do I implement it onto the server? I cant find a guide anywhere

    Now what?
  2. #2
    latruwski's Avatar Banned
    Reputation
    647
    Join Date
    Dec 2006
    Posts
    2,456
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    save it as a .lua file and then put it in the scripts folder... it should be automatically loaded
    Ofcourse if you used lua++ you need their engine!
    if the scripts folder does not exist in the arcemu directory then create it

  3. #3
    willkill's Avatar Member
    Reputation
    4
    Join Date
    May 2008
    Posts
    88
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    im on arcemu so I c a folder called scripts_bin. Do I put it in there or make a folder called scripts? Im trying this script to work:
    Code:
    function muru (pUnit, Event)
    	pUnit:CastSpell (41078)
    end  
    RegisterUnitEvent muru, 1, "muru"
    Im not sure if "muru" should be a mob ID or what.

  4. #4
    latruwski's Avatar Banned
    Reputation
    647
    Join Date
    Dec 2006
    Posts
    2,456
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by willkill View Post
    im on arcemu so I c a folder called scripts_bin. Do I put it in there or make a folder called scripts? Im trying this script to work:
    Code:
    function muru (pUnit, Event)
        pUnit:CastSpell (41078)
    end  
    RegisterUnitEvent muru, 1, "muru"
    Im not sure if "muru" should be a mob ID or what.
    scripts_bin = C++ scripts...
    you need to create a scripts folder if you don't have one

  5. #5
    willkill's Avatar Member
    Reputation
    4
    Join Date
    May 2008
    Posts
    88
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    can you check my new script pls? Cant find out y its not working. I found out how to cast basic stuff but this isnt working

    Code:
    function Hogger_open (pUnit, Event)
    	pUnit:RemoveEvents()
    	pUnit:SendChatMessage(12, 0, Haha, Prepare to get killed!")
    	pUnit:RegisterEvent ("Hogger_Fireball", 20000,1)
    end
    
    
    function Hogger_Fireball (pUnit, Event)
    	if pUnit:GetHealthPct() < 72 then
    	pUnit:RemoveEvents()
    	pUnit:FullCastSpellOnTarget(40598)
    	pUnit:SendChatMessage (12, 0, "You are not prepared!")
    	pUnit:RegisterEvent ("Hogger_suicide", 20000,1)
    end
    end
    
    function Hogger_suicide (pUnit, Event)
    	if pUnit:GetHealthPct() < 25 then
    	pUnit:RemoveEvents()
    	pUnit:SetScale(2)
    	pUnit:FullCastSpellOnTarget(45855)
    	pUnit:CastSpell(38166)
    	pUnit:SendChatMessage (12, 0, "NO! I CANNOT DIE!")
    end
    end
    
    pUnit:RegisterUnitEvent (448, 1, "Hogger_open")

  6. #6
    kreegoth's Avatar Contributor
    Reputation
    122
    Join Date
    Jun 2008
    Posts
    810
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You dont have any of the spells registered...

    Such as

    pUnit:RegisterEvent("ShadowGnome_Iceflare", 4000, 0)

    then

    function ShadowGnome_Iceflare (pUnit, event)
    pUnit:FullCastSpellOnTarget(3130, pUnit:GetMainTank())

    end

    Also try

    Hogger_EnterCombat or Oncombat instead of Open.

    ALso 20k is a fairly long time for a mob like normal hogger that isnt likely gonna live that long.

    If you wanna register it in Phases like it seems you do youll need to add in

    pUnit:RegisterEvent("Hogger_Phase2", 1000, 0)
    pUnit:RegisterEvent("Hogger_Phase3", 1000, 0)
    pUnit:RegisterEvent("Hogger_Phase4", 1000, 0)

    and so on then instead of

    function hogger_fireball you would have

    pUnit:RegisterEvent("Hogger_Phase2", 1000, 0)

    and then register your events as mentioned above with the Iceflare parts

    Look in my profile and add me to MSN if you need further explanations,,

  7. #7
    willkill's Avatar Member
    Reputation
    4
    Join Date
    May 2008
    Posts
    88
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Ty for your help! Not sure exactly how to register spells lol.
    Would this work?
    Code:
    function Hogger_open (pUnit, Event)
    	pUnit:RemoveEvents()
    	pUnit:SendChatMessage(12, 0, Haha, Prepare to get killed!")
    	pUnit:RegisterEvent ("Hogger_Fireball", 20000,1)
    end
    
    
    function pUnit:RegisterEvent("Hogger_Phase2", 1000, 0)
    	if pUnit:GetHealthPct() < 72 then
    	pUnit:RemoveEvents();
    	pUnit:FullCastSpellOnTarget(40598)
    	pUnit:SendChatMessage (12, 0, "You are not prepared!")
    end
    end
    
    pUnit:RegisterEvent("Hogger_Phase3", 1000, 0)
    	if pUnit:GetHealthPct() < 25 then
    	pUnit:RemoveEvents();
    	pUnit:SetScale(2)
    	pUnit:FullCastSpellOnTarget(45855)
    	pUnit:CastSpell(38166)
    	pUnit:SendChatMessage (12, 0, "NO! I CANNOT DIE!")
    end
    end
    
    pUnit:RegisterUnitEvent (448, 1, "Hogger_open")

  8. #8
    kreegoth's Avatar Contributor
    Reputation
    122
    Join Date
    Jun 2008
    Posts
    810
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Code:
    function Hogger_EnterCombat (pUnit, Event)
    	pUnit:RemoveEvents()
    	pUnit:SendChatMessage(12, 0, Haha, Prepare to get killed!")
    	pUnit:RegisterEvent ("Hogger_Fireball", 20000,1)
                    pUnit:RegisterEvent("Hogger_Phase2", 1000, 0)
                     
    end
    
    function Hogger_Fireball (pUnit, event)
             pUnit:CastSpell(FIREBALL SPELL ID HERE)
    end
    
    
    function Hogger_Phase2 (pUnit, event)
    	if pUnit:GetHealthPct() < 72 then
    	pUnit:RemoveEvents();
    	pUnit:FullCastSpellOnTarget(40598)
    	pUnit:SendChatMessage (12, 0, "You are not prepared!")
                    pUnit:RegisterEvent("Hogger_Phase3", 1000, 0)
       
    end
    end
    
    function   Hogger_Phase3 (pUnit, event)
    	if pUnit:GetHealthPct() < 25 then
    	pUnit:RemoveEvents();
    	pUnit:SetScale(2)
    	pUnit:FullCastSpellOnTarget(45855)
    	pUnit:CastSpell(38166)
    	pUnit:SendChatMessage (12, 0, "NO! I CANNOT DIE!")
    end
    end
    
    pUnit:RegisterUnitEvent (448, 1, "Hogger_EnterCombat")
    Something like that...

  9. #9
    willkill's Avatar Member
    Reputation
    4
    Join Date
    May 2008
    Posts
    88
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks again, but it doesn't seem to work. Hogger isnt doing anything differant QQ

  10. #10
    LJN's Avatar Member
    Reputation
    273
    Join Date
    Jun 2007
    Posts
    731
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Don't forget that in your world config file you can disable/enable lua scripts. Search in notepad "LUA" somthing like this will show up...

    LUA- "0"
    AS- "0"

    Change the 0 to 1.
    ahhhh

  11. #11
    willkill's Avatar Member
    Reputation
    4
    Join Date
    May 2008
    Posts
    88
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Its fine. I was working with scripts earlier and they were working. Phases just confuse me like crazy. After all, I learned this stuff today

  12. #12
    latruwski's Avatar Banned
    Reputation
    647
    Join Date
    Dec 2006
    Posts
    2,456
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    post the error if you get one...

  13. #13
    kreegoth's Avatar Contributor
    Reputation
    122
    Join Date
    Jun 2008
    Posts
    810
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Is 448 the correct ID for the NPC your trying to use? I'm assuming its Hogger:P. But yeah other than that watch the World window when it loads and post the error here

  14. #14
    willkill's Avatar Member
    Reputation
    4
    Join Date
    May 2008
    Posts
    88
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Yea its 448. I rewrote the script and it seems to be working now. Ill +rep you wen I can =D

  15. #15
    willkill's Avatar Member
    Reputation
    4
    Join Date
    May 2008
    Posts
    88
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    When do you put pUnit? and when do you put Unit?

Page 1 of 2 12 LastLast

Similar Threads

  1. -=Guide=- I got banned. Now what?
    By ocktra in forum World of Warcraft Guides
    Replies: 16
    Last Post: 01-23-2008, 06:33 PM
  2. Realy old pro vhs camera i found now what?
    By Zore. in forum Community Chat
    Replies: 5
    Last Post: 01-03-2008, 06:55 AM
  3. -=Guide=- I got banned. Now what?
    By ocktra in forum World of Warcraft Bots and Programs
    Replies: 9
    Last Post: 12-03-2007, 02:31 PM
  4. CD Key, Now What?
    By BrightChild in forum Community Chat
    Replies: 2
    Last Post: 08-05-2007, 06:17 AM
  5. It worked !!! now what do i do ?
    By whiffel in forum World of Warcraft General
    Replies: 1
    Last Post: 04-11-2007, 04:17 AM
All times are GMT -5. The time now is 01:15 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