Hello & Welcome to our community. Is this your first visit? Register
Follow us on
Follow us on Facebook Follow us on Twitter Watch us on YouTube


MMOCoin

Likes Likes:  0
Results 1 to 5 of 5

Threaded View

  1. #1
    Contributor
    runiker's Avatar
    Join Date
    Jul 2008
    Posts
    170
    Post Thanks / Like
    Rep Power
    18
    Reputation
    113

    Grunt party anyone?

    Hey all i pulled it off again this time i took a basic script and made it for the primary use of grunts in some type of pvp zone these grunts if you get them below 10% health they will turn into your faction. this would make for a very interesting pvp zone. Just change the spawn ids one for the primary horde (starts out horde) and one for the primary ally.

    Code:
    
     function LordCyran_EnterCombat (pUnit, event)
              pUnit:RegisterEvent("LordCyran_Phase4", 1000, 0)
     end
    
      function Gruntworker_Phase4 (pUnit, event)
           if pUnit:GetHealthPct() < 10 then
              pUnit:RemoveEvents()
              pUnit:RegisterEvent("getplayerclass", 3000, 0)
     end
     end
     function Gruntworker_LeaveCombat (pUnit, event)
              pUnit:RemoveEvents()
     end
    
    
       function getplayerclass (pUnit, event)
     local faction = pUnit:GetFaction()
    if faction = 1052 then
    pUnit:SetFaction(1036)
     else
     pUnit:SetFaction(1052)
     pUnit:RemoveEvents()
    end
    end
    
      RegisterUnitEnt(Allygruntid, 1, "Gruntworker_EnterCombat")
     RegisterUnitEvent(AllyGruntid, 2, "Gruntworker_LeaveCombat")
    
      RegisterUnitEvent(Hordegruntid, 1, "Gruntworker_EnterCombat")
     RegisterUnitEvent(Hordegruntid, 2, "Gruntworker_LeaveCombat")


    Last edited by Dimman; 06-09-10 at 12:51 AM.



  2. Related Threads - Scroll Down after related threads if you are only interested to view replies for above post/thread

 

 

Visitors found this page by searching for:

Nobody landed on this page from a search engine, yet!
SEO Blog

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT -5. The time now is 04:53 AM.
Powered by vBulletin® Copyright ©2000-2025, Jelsoft Enterprises Ltd.
See More links by ForumSetup.net. Feedback Buttons provided by Advanced Post Thanks / Like (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
vBulletin Licensed to: MMOPro.org