Lookover/Help menu

User Tag List

Results 1 to 5 of 5
  1. #1
    Fumi's Avatar Contributor CoreCoins Purchaser
    Reputation
    207
    Join Date
    Feb 2008
    Posts
    561
    Thanks G/R
    0/6
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Lookover/Help

    Code:
    function 99999_OnCombat(Unit, Event) 
    Unit:SendChatMessage(12, 0, "Your time has come!")
    end
    
    function 99998_OnLeaveCombat(Unit, Event) 
    Unit:RemoveEvents() 
    Unit:SendChatMessage(12, 0, "Fools, You are afraid!") 
    end
    
    function 99997_OnDied(Unit, Event) 
    Unit:RemoveEvents() 
    Unit:SendChatMessage(12, 0, "THIS CANT HAPPEN!") 
    end
    
    function 99996_OnKilledTarget(Unit, Event) 
    Unit:SendChatMessage(12, 0, "I feast on your bones!") 
    end
    
    function Chaos_Chaos Bolt(pUnit, Event) 
    pUnit:FullCastSpellOnTarget(76681, pUnit:GetRandomPlayer(0)) 
    end
    
    RegisterUnitEvent(88887, 1, "99999_OnCombat")
    RegisterUnitEvent(88887, 2, "99998_OnLeaveCombat")
    RegisterUnitEvent(88887, 3, "99997_OnKilledTarget")
    RegisterUnitEvent(88887, 4, "99996_OnDied")
    i made this with a Lua generator and i dont know whats wrongs:confused:
    he is suposed to cast Chaos bolt every 45 sec and yell onCombat but he dosent

    Lookover/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 event is not registered, fix:
    Code:
    function 99999_OnCombat(Unit, Event) 
    Unit:SendChatMessage(12, 0, "Your time has come!")
    Unit:RegisterEvent("Chaos_Chaos Bolt", 45000, 0)
    end
    
    function 99998_OnLeaveCombat(Unit, Event) 
    Unit:RemoveEvents() 
    Unit:SendChatMessage(12, 0, "Fools, You are afraid!") 
    end
    
    function 99997_OnDied(Unit, Event) 
    Unit:RemoveEvents() 
    Unit:SendChatMessage(12, 0, "THIS CANT HAPPEN!") 
    end
    
    function 99996_OnKilledTarget(Unit, Event) 
    Unit:SendChatMessage(12, 0, "I feast on your bones!") 
    end
    
    function Chaos_Chaos Bolt(pUnit, Event) 
    pUnit:FullCastSpellOnTarget(76681, pUnit:GetRandomPlayer(0)) 
    end
    
    RegisterUnitEvent(88887, 1, "99999_OnCombat")
    RegisterUnitEvent(88887, 2, "99998_OnLeaveCombat")
    RegisterUnitEvent(88887, 3, "99997_OnKilledTarget")
    RegisterUnitEvent(88887, 4, "99996_OnDied")
    Note, this will cast it once every 45 seconds, the first time being 45 seconds after entering combat.

  3. #3
    Fumi's Avatar Contributor CoreCoins Purchaser
    Reputation
    207
    Join Date
    Feb 2008
    Posts
    561
    Thanks G/R
    0/6
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by stoneharry View Post
    The event is not registered, fix:
    Code:
    function 99999_OnCombat(Unit, Event) 
    Unit:SendChatMessage(12, 0, "Your time has come!")
    Unit:RegisterEvent("Chaos_Chaos Bolt", 45000, 0)
    end
    
    function 99998_OnLeaveCombat(Unit, Event) 
    Unit:RemoveEvents() 
    Unit:SendChatMessage(12, 0, "Fools, You are afraid!") 
    end
    
    function 99997_OnDied(Unit, Event) 
    Unit:RemoveEvents() 
    Unit:SendChatMessage(12, 0, "THIS CANT HAPPEN!") 
    end
    
    function 99996_OnKilledTarget(Unit, Event) 
    Unit:SendChatMessage(12, 0, "I feast on your bones!") 
    end
    
    function Chaos_Chaos Bolt(pUnit, Event) 
    pUnit:FullCastSpellOnTarget(76681, pUnit:GetRandomPlayer(0)) 
    end
    
    RegisterUnitEvent(88887, 1, "99999_OnCombat")
    RegisterUnitEvent(88887, 2, "99998_OnLeaveCombat")
    RegisterUnitEvent(88887, 3, "99997_OnKilledTarget")
    RegisterUnitEvent(88887, 4, "99996_OnDied")
    Note, this will cast it once every 45 seconds, the first time being 45 seconds after entering combat.
    dosent seem to work he aint casting, yelling only auto attacking

    POST 100!
    Last edited by Fumi; 04-08-2011 at 04:44 AM.

  4. #4
    Facerolling's Avatar Contributor
    Reputation
    116
    Join Date
    Mar 2007
    Posts
    307
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Code:
    function BossMonster_OnCombat(Unit, Event) 
    Unit:SendChatMessage(12, 0, "Your time has come!")
    Unit:RegisterEvent("Chaos_Chaos_Bolt", 45000, 0)
    end
    
    function BossMonster_OnLeaveCombat(Unit, Event) 
    Unit:RemoveEvents() 
    Unit:SendChatMessage(12, 0, "Fools, You are afraid!") 
    end
    
    function BossMonster_OnDied(Unit, Event) 
    Unit:RemoveEvents() 
    Unit:SendChatMessage(12, 0, "THIS CANT HAPPEN!") 
    end
    
    function BossMonster_OnKilledTarget(Unit, Event) 
    Unit:SendChatMessage(12, 0, "I feast on your bones!") 
    end
    
    function Chaos_Chaos_Bolt(pUnit, Event) 
    pUnit:FullCastSpellOnTarget(76681, pUnit:GetRandomPlayer(0)) 
    end
    
    RegisterUnitEvent(88887, 1, "BossMonster_OnCombat")
    RegisterUnitEvent(88887, 2, "BossMonster_OnLeaveCombat")
    RegisterUnitEvent(88887, 3, "BossMonster_OnKilledTarget")
    RegisterUnitEvent(88887, 4, "BossMonster_OnDied")
    You mixed pUnit and Unit in a single script, I think that's the problem.

    Code:
    function BossMonster_OnCombat(Unit, Event) 
    Unit:SendChatMessage(12, 0, "Your time has come!")
    Unit:RegisterEvent("Chaos_Chaos_Bolt", 45000, 0)
    end
    
    function BossMonster_OnLeaveCombat(Unit, Event) 
    Unit:RemoveEvents() 
    Unit:SendChatMessage(12, 0, "Fools, You are afraid!") 
    end
    
    function BossMonster_OnDied(Unit, Event) 
    Unit:RemoveEvents() 
    Unit:SendChatMessage(12, 0, "THIS CANT HAPPEN!") 
    end
    
    function BossMonster_OnKilledTarget(Unit, Event) 
    Unit:SendChatMessage(12, 0, "I feast on your bones!") 
    end
    
    function Chaos_Chaos_Bolt(Unit, Event) 
    Unit:FullCastSpellOnTarget(76681, pUnit:GetRandomPlayer(0)) 
    end
    
    RegisterUnitEvent(88887, 1, "BossMonster_OnCombat")
    RegisterUnitEvent(88887, 2, "BossMonster_OnLeaveCombat")
    RegisterUnitEvent(88887, 3, "BossMonster_OnKilledTarget")
    RegisterUnitEvent(88887, 4, "BossMonster_OnDied")
    Hopefully fixed.
    hey ervyone whats up gamboys

  5. #5
    Fumi's Avatar Contributor CoreCoins Purchaser
    Reputation
    207
    Join Date
    Feb 2008
    Posts
    561
    Thanks G/R
    0/6
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    He yells but dosent throw imba chaos bolts, but might be because i use a weird spell for it (not normal lock spell) and i'll just stick with yelling since i have to be done in 1 hour

Similar Threads

  1. Help WoW Fish-Bot
    By Eliteplague in forum World of Warcraft General
    Replies: 2
    Last Post: 12-10-2024, 05:46 PM
  2. HELP: Gold Scam Exploit
    By GoldDragon in forum World of Warcraft General
    Replies: 11
    Last Post: 01-23-2007, 07:26 PM
  3. Banner Ad Redesign help
    By Matt in forum Community Chat
    Replies: 57
    Last Post: 07-08-2006, 08:40 PM
  4. Hit points and talent points? Please help
    By hankusdankus in forum World of Warcraft General
    Replies: 6
    Last Post: 05-04-2006, 02:00 PM
  5. bot help
    By xwhitedeathx in forum World of Warcraft General
    Replies: 3
    Last Post: 05-01-2006, 03:50 AM
All times are GMT -5. The time now is 08:59 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