Script Help menu

Shout-Out

User Tag List

Thread: Script Help

Results 1 to 7 of 7
  1. #1
    Xmaily's Avatar Master Sergeant
    Reputation
    14
    Join Date
    May 2013
    Posts
    115
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Script Help

    Hey guys so i was testing this script i made for my server and for some reason my ****ing NPC's wont move they were moving at first but then they just stopped and after i restarted my server and i don't know why can anyone help me? Thanks!

    Code:
         function QuestPickup(event, pPlayer, questId, pQuestGiver)
    	    if (questId == 62114) then
                  Voljinorg:SetUInt64Value(UNIT_NPC_FLAGS, 0x00)
                        Voljinorg:RegisterEvent("Orgevent1", 5000, 1)
                        Voljinorg:SetNPCFlags(0)
                end
                if (intid == 2) then
                        player:GossipComplete(player)
                end
        end
         
        RegisterServerHook(14, "QuestPickup")
         
        function Orgevent1(pUnit, event)
                Voljinorg:SpawnGameObject(193956, 1921.738281, -4148.416992, 40.63729, 1.654022, 90000, 100)
                D1:SetMovementFlags(1)
                D2:SetMovementFlags(1)
                D3:SetMovementFlags(1)
                D4:SetMovementFlags(1)
                D1:MoveTo(1927.085938, -4144.994629, 40.637264, 3.633233)
                D2:MoveTo(1926.840454, -4151.346191, 40.621178, 2.627923)
                D3:MoveTo(1917.473267, -4152.667480, 40.624622, 0.664426)
                D4:MoveTo(1916.796021, -4146.035645, 40.636848, 5.785299)
                D1:Emote(45, 8000)
                D2:Emote(45, 8000)
                D3:Emote(45, 8000)
                D4:Emote(45, 8000)
                Voljinorg:SetMovementFlags(1)
                Voljinorg:MoveTo(1921.308350, -4136.730469, 40.546028, 4.720093)
                Voljinorg:RegisterEvent("Orgevent2", 5000, 1)
        end
         
        function Orgevent2(pUnit, event)
                    local x, y, z, o = Voljinorg:GetX(), Voljinorg:GetY(), Voljinorg:GetZ(), Voljinorg:GetO()
                Voljinorg:SpawnCreature(JainaorgEntryID, 1921.527466, -4147.192383, 40.637047, 1.774262, 35, 0)
                Jainaorg:EquipWeapons(873,0,0)
                Voljinorg:RegisterEvent("Orgevent3", 2000, 1)
        end
         
        function Orgevent3(pUnit, event)
                Jainaorg:CastSpell(61456)
                Voljinorg:SendChatMessage(14, 0, "Kor'kron, stand down!")
                Voljinorg:Emote(5, 2500)
                D1:MoveTo(1932.395996, -4138.305664, 40.621716, 3.886666)
                D2:MoveTo(1932.588013, -4157.461914, 40.611843, 2.417970)
                D3:MoveTo(1911.293579, -4158.170410, 40.170410, 0.701875)
                D4:MoveTo(1909.982910, -4139.156250, 40.624950, 5.512440)
                Voljinorg:RegisterEvent("Orgevent4", 8000, 1)
        end
         
        function Orgevent4(pUnit, event)
                Voljinorg:SendChatMessage(12, 0, "Jaina...")
                Voljinorg:Emote(1, 2500)
                Jainaorg:MoveTo(1921.014771, -4138.953125, 40.575260, 1.640426)
                Voljinorg:RegisterEvent("Orgevent5", 5000, 1)
        end
         
        function Orgevent5(pUnit, event)
                Jainaorg:SendChatMessage(12, 0, "Vol'jin, what has happened? The orcs have droped a bomb on Theramore...")
                Jainaorg:Emote(5, 2500)
                D1:MoveTo(1925.066040, -4138.557617, 40.634983, 3.211223)
                D2:MoveTo(1923.107544, -4141.296387, 40.632919, 2.143081)
                D3:MoveTo(1919.909302, -4141.289063, 40.619839, 1.137772)
                D4:MoveTo(1918.352417, -4139.445801, 40.609798, 0.191397)
                D1:Emote(45, 25000)
                D2:Emote(45, 25000)
                D3:Emote(45, 25000)
                D4:Emote(45, 25000)
                Voljinorg:RegisterEvent("Orgevent6", 6000, 1)
        end
         
        function Orgevent6(pUnit, event)
                Voljinorg:SendChatMessage(12, 0, "Jaina, what happened at Theramore. It was a betrayal from within...")
                Voljinorg:Emote(1, 2500)
                Voljinorg:RegisterEvent("Orgevent7", 10000, 1)
        end
         
        function Orgevent7(pUnit, event)
                Thrallorg:MoveTo(1918.177002, -4136.513672, 40.566811, 4.766311)
                Voljinorg:RegisterEvent("Orgevent8", 5000, 1)
        end
         
        function Orgevent8(pUnit, event)
                Thrallorg:SendChatMessage(12, 0, "Lady Proudmoore, the Warchief speaks the truth. This subterfuge was set in motion by Garrosh and corrupted orcs. It was not the Horde's doing.")
                Thrallorg:Emote(1, 2500)
                Voljinorg:RegisterEvent("Orgevent9", 15000, 1)
        end
         
        function Orgevent9(pUnit, event)
                Thrallorg:SendChatMessage(12, 0, "As the combined Horde and Alliance forces began their assault upon Wintergrasp, an uprising broke out in Orgrimmar. Garrosh and hordes of his corrupted brethren attacked in a mutiny to remove Vol'jin from power. Vol'jin acted swiftly and fought back removing hundreds of orcs from the city pushing them back into Razor Hill.")
                Thrallorg:Emote(5, 5000)
                Voljinorg:RegisterEvent("Orgevent10", 15000, 1)
        end
         
        function Orgevent10(pUnit, event)
                Voljinorg:SendChatMessage(12, 0, "The Horde has lost Razor Hill.")
                Voljinorg:Emote(1, 2500)
                Voljinorg:RegisterEvent("Orgevent11", 3000, 1)
        end
         
        function Orgevent11(pUnit, event)
                Voljinorg:SendChatMessage(12, 0, "We now prepare to lay siege to the city and bring the perpetrators of this unforgivable crime to justice.")
                Voljinorg:Emote(1, 2500)
                Voljinorg:RegisterEvent("Orgevent12", 8000, 1)
        end
         
        function Orgevent12(pUnit, event)
                Voljinorg:SendChatMessage(12, 0, "Know this, Jaina: War with the Alliance is not in our best interests. If we are forced into a conflict, Garrosh will destroy our divided forces in Northrend..")
                Voljinorg:Emote(1, 2500)
                Voljinorg:RegisterEvent("Orgevent13", 12000, 1)
        end
    
        function Orgevent13(pUnit, event)
                Voljinorg:SendChatMessage(12, 0, "We will make this right, Jaina. Tell your people all that you have learned here.")
                Voljinorg:Emote(1, 2500)
                Voljinorg:RegisterEvent("Orgevent14", 8000, 1)
        end
    
        function Orgevent14(pUnit, event)
                Jainaorg:SendChatMessage(12, 0, "l will deliver this information to my people Thrall, but....")
                Jainaorg:Emote(1, 2500)
                Voljinorg:RegisterEvent("Orgevent15", 4000, 1)
        end
    
    
        function Orgevent15(pUnit, event)
                Jainaorg:SendChatMessage(12, 0, "Theramore was like a home to me. When Varrian ruled the Alliance...Theramore was a place where I ruled, and I kept the Alliance united from afar. Theramore is where i grew up, it is were our people found strength in our darkest hours.")
                Jainaorg:Emote(1, 6500)
                Voljinorg:RegisterEvent("Orgevent16", 15000, 1)
        end
    
        function Orgevent16(pUnit, event)
                Jainaorg:SendChatMessage(12, 0, "l fear that the rage will consume the Alliance, Vol'jin. l remain hopeful that reason will prevail, but we must prepare for the worst... for war.")
                Jainaorg:Emote(1, 4500)
                Voljinorg:RegisterEvent("Orgevent17", 15000, 1)
        end
    
        function Orgevent17(pUnit, event)
                Jainaorg:SendChatMessage(12, 0, "Farewell, Warchief. l pray that the next time we meet it will be as allies.")
                Jainaorg:Emote(1, 2500)
                D1:MoveTo(1932.395996, -4138.305664, 40.621716, 3.886666)
                D2:MoveTo(1932.588013, -4157.461914, 40.611843, 2.417970)
                D3:MoveTo(1911.293579, -4158.170410, 40.170410, 0.701875)
                D4:MoveTo(1909.982910, -4139.156250, 40.624950, 5.512440)
                Voljinorg:RegisterEvent("Orgevent18", 8000, 1)
        end
    
    
        function Orgevent18(pUnit, event)
                Jainaorg:MoveTo(1921.517944, -4146.989258, 40.635242, 4.782021)
                Voljinorg:RegisterEvent("Orgevent19", 2000, 1)
        end
    
        function Orgevent19(pUnit, event)
                Jainaorg:CastSpell(61456)
                Jainaorg:Despawn(1600, 0)
                Voljinorg:RegisterEvent("Orgevent20", 2000, 1)
        end
    
        function Orgevent20(pUnit, event)
                Voljinorg:SendChatMessage(12, 0, "Kor'kron, prepare transport to Razor Hill.")
                Voljinorg:Emote(1, 2500)
                Voljinorg:RegisterEvent("Orgevent21", 2000, 1)
        end
    
        function Orgevent21(pUnit, event)
                Voljinorg:MoveTo(1920.153687, -4128.087402, 43.141457, 4.738300)
                Thrallorg:MoveTo(1915.068359, -4124.972656, 43.215717, 4.898258)
                Voljinorg:SetNPCFlags(3)
        end

    Script Help
  2. #2
    stoneharry's Avatar Moderator Harry


    Reputation
    1618
    Join Date
    Sep 2007
    Posts
    4,564
    Thanks G/R
    151/150
    Trade Feedback
    0 (0%)
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)
    The pointers to units (the variables you have set for each creature) are probably nil (no value). This is because nothing in the script sets them so I assume you set them as global variables in another script. Restart the server and the variables are reset, so you need to set them again.

  3. #3
    Xmaily's Avatar Master Sergeant
    Reputation
    14
    Join Date
    May 2013
    Posts
    115
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    That was my bad I didn't post that part. Here is the start that i left out

    Code:
     
        local JainaorgEntryID = 94112
        local VoljinorgEntryID = 94111
        local D1EntryID = 94110
        local D2EntryID = 94109
        local D3EntryID = 94108
        local D4EntryID = 94107
        local ThrallorgEntryID = 91001
         
        function JNA(pUnit, event)
                Jainaorg = pUnit
        end
         
        function VLJ(pUnit, event)
                Voljinorg = pUnit
        end
         
        function KRE(pUnit, event)
                D1 = pUnit
        end
         
        function KRR(pUnit, event)
                D2 = pUnit
        end
         
        function KRT(pUnit, event)
                D3 = pUnit
        end
         
        function KRY(pUnit, event)
                D4 = pUnit
        end
    
        function THL(pUnit, event)
                Thrallorg = pUnit
        end
         
        RegisterUnitEvent(JainaorgEntryID, 18, "JNA")
        RegisterUnitEvent(VoljinorgEntryID, 18, "VLJ")
        RegisterUnitEvent(D1EntryID, 18, "KRE")
        RegisterUnitEvent(D2EntryID, 18, "KRR")
        RegisterUnitEvent(D3EntryID, 18, "KRT")
        RegisterUnitEvent(D4EntryID, 18, "KRY")
        RegisterUnitEvent(ThrallorgEntryID, 18, "THL")
    When i restarted my server again i did .npc come (arcemu) and they wernt moving so i was thinking they were bugged or something so i deleted them and re spawned them. So they work until i restart my server then they are stuck in one spot and can't move
    Last edited by Xmaily; 06-01-2013 at 05:35 PM.

  4. #4
    stoneharry's Avatar Moderator Harry


    Reputation
    1618
    Join Date
    Sep 2007
    Posts
    4,564
    Thanks G/R
    151/150
    Trade Feedback
    0 (0%)
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by Xmaily View Post
    That was my bad I didn't post that part. Here is the start that i left out

    Code:
     
        local JainaorgEntryID = 94112
        local VoljinorgEntryID = 94111
        local D1EntryID = 94110
        local D2EntryID = 94109
        local D3EntryID = 94108
        local D4EntryID = 94107
        local ThrallorgEntryID = 91001
         
        function JNA(pUnit, event)
                Jainaorg = pUnit
        end
         
        function VLJ(pUnit, event)
                Voljinorg = pUnit
        end
         
        function KRE(pUnit, event)
                D1 = pUnit
        end
         
        function KRR(pUnit, event)
                D2 = pUnit
        end
         
        function KRT(pUnit, event)
                D3 = pUnit
        end
         
        function KRY(pUnit, event)
                D4 = pUnit
        end
    
        function THL(pUnit, event)
                Thrallorg = pUnit
        end
         
        RegisterUnitEvent(JainaorgEntryID, 18, "JNA")
        RegisterUnitEvent(VoljinorgEntryID, 18, "VLJ")
        RegisterUnitEvent(D1EntryID, 18, "KRE")
        RegisterUnitEvent(D2EntryID, 18, "KRR")
        RegisterUnitEvent(D3EntryID, 18, "KRT")
        RegisterUnitEvent(D4EntryID, 18, "KRY")
        RegisterUnitEvent(ThrallorgEntryID, 18, "THL")
    When i restarted my server again i did .npc come (arcemu) and they wernt moving so i was thinking they were bugged or something so i deleted them and re spawned them. So they work until i restart my server then they are stuck in one spot and can't move
    This is a bug I gave experienced too. I think it is caused by missing map or vmap data for that area. Unfortunately I know of no fix unless you move it somewhere else. Or you could try using a invisible creature that spawns the other creatures.

  5. #5
    Xmaily's Avatar Master Sergeant
    Reputation
    14
    Join Date
    May 2013
    Posts
    115
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I acaully know that my maps and vmap are bugged because when i open my map nothing is there/ gets discovered. I know that you use arcemu harry could you possibly link me maps and vmaps and tell me how to add it to my server

    Thanks.

  6. #6
    stoneharry's Avatar Moderator Harry


    Reputation
    1618
    Join Date
    Sep 2007
    Posts
    4,564
    Thanks G/R
    151/150
    Trade Feedback
    0 (0%)
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by Xmaily View Post
    I acaully know that my maps and vmap are bugged because when i open my map nothing is there/ gets discovered. I know that you use arcemu harry could you possibly link me maps and vmaps and tell me how to add it to my server

    Thanks.
    DBC Extraction - ArcEmu-Wiki
    Collision - ArcEmu-Wiki

  7. #7
    Xmaily's Avatar Master Sergeant
    Reputation
    14
    Join Date
    May 2013
    Posts
    115
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks harry!
    Last edited by Xmaily; 06-03-2013 at 06:45 PM.

Similar Threads

  1. Lua script help and general questions from beginner
    By WinKIller0 in forum World of Warcraft Emulator Servers
    Replies: 1
    Last Post: 02-23-2008, 04:38 AM
  2. LUA Boss Script Help
    By neurothymia in forum World of Warcraft Emulator Servers
    Replies: 4
    Last Post: 02-05-2008, 02:57 PM
  3. Need LUA Scripting Help ?
    By Snailz in forum World of Warcraft Emulator Servers
    Replies: 2
    Last Post: 02-04-2008, 12:36 PM
  4. Scripting help please will +rep need for a new server
    By runiker in forum WoW EMU Guides & Tutorials
    Replies: 0
    Last Post: 01-22-2008, 04:05 AM
  5. [Ascent] Boss Scripts help
    By n0t5ew in forum World of Warcraft Emulator Servers
    Replies: 1
    Last Post: 12-24-2007, 03:04 PM
All times are GMT -5. The time now is 09:45 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