CodeCraft menu

Shout-Out

User Tag List

Thread: CodeCraft

Page 2 of 2 FirstFirst 12
Results 16 to 18 of 18
  1. #16
    Pragma's Avatar Contributor
    Reputation
    261
    Join Date
    Feb 2007
    Posts
    630
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    heres a boss i made:
    Code:
    function CastSpell_onHealth(pUnit,Event)
        pUnit:SetScale(3)
    
        i = math.random()
        if i < 0.25 then
    
            print "Zul'Katrn: Tank Curse" --Prints this in your Ascent Console
            local plr = pUnit:GetClosestPlayer()
        
            pUnit:CastSpellOnTarget(18159,plr)
            pUnit:ClearThreatList()
        else
        
            
            m = math.random()
            if m < 0.5 then
    
                print "Zul'Katrn: Shadowbolt Volley" --Prints this in your Ascent Console
            
                b = math.random()
                if b > 0.5 then
                    pUnit:SendChatMessage(12,0,"Puny ones, you cannot defeat me!")
                    pUnit:PlaySoundToSet(11369)
                else
                    pUnit:SendChatMessage(12,0,"Even all your forces combined cannot defeat me!")
                    pUnit:PlaySoundToSet(11362)
                end
                pUnit:FullCastSpell(27646)
                pUnit:ClearThreatList()
                
            else
    
                print "Zul'Katrn: Spawn dual Bosses" --Prints this in your Ascent Console
                
                x = pUnit:GetX()
                y = pUnit:GetY()
                z = pUnit:GetZ()
                o = pUnit:GetO()
                
                x = x + 8
                y = y + 8
                
                pUnit:SpawnCreature(24766,x,y,z,o,168,12500)
                pUnit:ClearThreatList()
            end
            
        end
    
    end
    
    function boss_Repeat(pUnit)
        pUnit:RegisterEvent("CastSpell_onHealth",4000,1)
        pUnit:RegisterEvent("CastSpell_onHealth",11500,0)
    end
    
    RegisterUnitEvent(24766,1,"boss_Repeat")
    
    function Yell_onDeath(pUnit,Event)
    
        print "Zul'Katrn: Boss Dead!!!" --Prints this in your Ascent Console
    
        x = pUnit:GetX()
        y = pUnit:GetY()
        z = pUnit:GetZ()
        o = pUnit:GetO()
        
        x = x + 3
        
        pUnit:PlaySoundToSet(11387)
        pUnit:SendChatMessage(12,0,"Impossible, how did you defeat me!!!")
        pUnit:SetScale(1)
        pUnit:SpawnCreature(24767,x,y,z,o,35,25000)
        
    end
    
    RegisterUnitEvent(24766,4,"Yell_onDeath")
    
    function Spirit_onSpawn(pUnit,Event)
        
        print "Zul'Katrn: Spirit Talking/Vendor Spawning." --Prints this in your Ascent Console
        
        x = pUnit:GetX()
        y = pUnit:GetY()
        z = pUnit:GetZ()
        o = pUnit:GetO()
        
        x = x + 1
        
        pUnit:SendChatMessage(11,0,"You have freed my spirit and let me rest in peace, for this I thank you friend. Take Zul'Katrn's treasure, but be quick about it, he will disappear soon. But now I must go, farewell.")
    end
    
    RegisterUnitEvent(24767,6,"Spirit_onSpawn")

    and heres one where i was fooling around testing a while loop:
    Code:
    function luaGuy(pUnit,Event)
        
        
        num = 0
        
            while num < 5 do
            pUnit:SendChatMessage(11,0,"Spammmmm!!!")
            num = num + 1
            end
    end
    
    RegisterUnitEvent(24773,7,"luaGuy")
    
        
    function suicide(unit)
        unit:SendChatMessage(11,0,"Welcome to the suicide booth.")
        unit:LearnSpell(5)
    end
    RegisterUnitEvent(24774,7,"suicide")
    Last edited by Pragma; 02-12-2008 at 11:41 PM.


    CodeCraft
  2. #17
    Masterkenshin's Avatar Member
    Reputation
    72
    Join Date
    Sep 2007
    Posts
    265
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    What kind of devs are you looking for dude im sure some of my mates at college would help
    and maybe i could lend you one of my devs

    マスターの feel my power

  3. #18
    Aldaus's Avatar Member
    Reputation
    28
    Join Date
    Sep 2007
    Posts
    98
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Bump, Still looking for C++ developers.

    Experienced with C++

Page 2 of 2 FirstFirst 12

Similar Threads

  1. CodeCraft?
    By y2kss66 in forum World of Warcraft Emulator Servers
    Replies: 4
    Last Post: 06-25-2008, 03:01 PM
  2. Reviving CodeCraft
    By Aldaus in forum World of Warcraft Emulator Servers
    Replies: 5
    Last Post: 04-07-2008, 09:26 PM
All times are GMT -5. The time now is 01:58 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