Likes Likes:  0
Results 1 to 5 of 5
  1. #1
    Contributor PremiumContributor
    Post rank 5
    runiker's Avatar
    Join Date
    Jul 2008
    Posts
    170
    Post Thanks / Like
    Rep Power
    20
    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")





    › See More: Grunt party anyone?
    Last edited by Dimman; 06-09-10 at 01:51 AM.



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

  3. #2
    Beginner Leecher
    Post rank 1
    halla123's Avatar
    Join Date
    Jun 2010
    Posts
    2
    Post Thanks / Like
    Rep Power
    17
    Reputation
    1
    Look's nice Rep+

  4. #3
    Contributor Contributor
    Post rank 4
    Bing's Avatar
    Join Date
    Jul 2010
    Posts
    103
    Post Thanks / Like
    Rep Power
    18
    Reputation
    103
    Oh my god, change that horrid font color, it's making my eyes burn
    Leecher - 01/07/10!
    Active Member - 05/07/10!
    Moderator - 14/08/10!
    Contributor - 15/09/10!

  5. #4
    Elite Member PremiumElite
    Post rank 12
    Dimman's Avatar
    Join Date
    Apr 2009
    Posts
    1,091
    Post Thanks / Like
    Rep Power
    23
    Reputation
    319
    Quote Originally Posted by Bing View Post
    Oh my god, change that horrid font color, it's making my eyes burn
    Done.



    (Filler)
    No touching please.

  6. #5
    Senior Sergeant Active Member
    Post rank 4
    zwroblewski's Avatar
    Join Date
    Jun 2010
    Posts
    115
    Post Thanks / Like
    Rep Power
    17
    Reputation
    13

    Register to remove this ad
    lol nice job

 

 

Bookmarks

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •