Boss wont work menu

Shout-Out

User Tag List

Results 1 to 4 of 4
  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)

    Boss wont work

    Code:
    local Wolf Man
    
    function Admin_Wolf Man_spawn(pUnit, event)
    	Wolf Man = pUnit
    end
    
    --RegisterUnitEvent(88888, 18, "Admin_Wolf Man_spawn")
    
    --INSERT INTO `creature_names` VALUES ('88888', 'Wolf Man', '', '', '0', '7', '0', '3', '0', '0', '657', '0', '0', '0', '1', '1', '0', '0', '0', '0', '0', '0', '0', '0');
    --INSERT INTO `creature_proto` VALUES ('88888', '80', '80', '35', '2000', '2500', '0', '1', '1', '2100', '0', '100', '200', '0', '0', '0', '0', '0', '10000', '50', '50', '50', '50', '50', '50', '0', '0', '0', '1', '0', '0', '2.5', '8', '14', '0', '0', '0', '0', '0', '0', '0', '0', '0', '1');
    
    function Admin_Wolf Man_combat(pUnit, event)
    	Wolf Man:RegisterEvent("Admin_Wolf Man_72967", 30000, 0)
    function Admin_Wolf Man_72967(pUnit, event)
    	if(Wolf Man:GetCurrentSpellId() == nil) then
    		Wolf Man:FullCastSpellOnTarget(72967, Wolf Man:GetRandomPlayer(0))
    	end
    end
    Whats wrong? :confused:
    Last edited by Fumi; 04-05-2011 at 05:12 AM.

    Boss wont work
  2. #2
    Dr3ad's Avatar Corporal
    Reputation
    7
    Join Date
    Nov 2010
    Posts
    20
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    RegisterUnitEvent is commented out, you're using variable for a nil value, functions cannot have spaced name I guess. I fixed it for you.

    function Admin_Wolf_Man_spawn(pUnit, event)
    Wolf_Man = pUnit
    end

    RegisterUnitEvent(88888, 18, "Admin_Wolf_Man_spawn")

    --INSERT INTO `creature_names` VALUES ('88888', 'Wolf Man', '', '', '0', '7', '0', '3', '0', '0', '657', '0', '0', '0', '1', '1', '0', '0', '0', '0', '0', '0', '0', '0');
    --INSERT INTO `creature_proto` VALUES ('88888', '80', '80', '35', '2000', '2500', '0', '1', '1', '2100', '0', '100', '200', '0', '0', '0', '0', '0', '10000', '50', '50', '50', '50', '50', '50', '0', '0', '0', '1', '0', '0', '2.5', '8', '14', '0', '0', '0', '0', '0', '0', '0', '0', '0', '1');

    function Admin_Wolf_Man_combat(pUnit, event)
    Wolf_Man:RegisterEvent("Admin_Wolf_Man_72967", 30000, 0)
    function Admin_Wolf_Man_72967(pUnit, event)
    if(Wolf_Man:GetCurrentSpellId() == nil) then
    Wolf_Man:FullCastSpellOnTarget(72967, Wolf_Man:GetRandomPlayer(0))
    end
    end
    end

  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 Dr3ad View Post
    RegisterUnitEvent is commented out, you're using variable for a nil value, functions cannot have spaced name I guess. I fixed it for you.

    function Admin_Wolf_Man_spawn(pUnit, event)
    Wolf_Man = pUnit
    end

    RegisterUnitEvent(88888, 18, "Admin_Wolf_Man_spawn")

    --INSERT INTO `creature_names` VALUES ('88888', 'Wolf Man', '', '', '0', '7', '0', '3', '0', '0', '657', '0', '0', '0', '1', '1', '0', '0', '0', '0', '0', '0', '0', '0');
    --INSERT INTO `creature_proto` VALUES ('88888', '80', '80', '35', '2000', '2500', '0', '1', '1', '2100', '0', '100', '200', '0', '0', '0', '0', '0', '10000', '50', '50', '50', '50', '50', '50', '0', '0', '0', '1', '0', '0', '2.5', '8', '14', '0', '0', '0', '0', '0', '0', '0', '0', '0', '1');

    function Admin_Wolf_Man_combat(pUnit, event)
    Wolf_Man:RegisterEvent("Admin_Wolf_Man_72967", 30000, 0)
    function Admin_Wolf_Man_72967(pUnit, event)
    if(Wolf_Man:GetCurrentSpellId() == nil) then
    Wolf_Man:FullCastSpellOnTarget(72967, Wolf_Man:GetRandomPlayer(0))
    end
    end
    end
    he dosent seem to cast 72967 but it might be the spell thats wrong ill try to change it to fireball or something simple

    EDIT:
    Changed spell his still just auto attacking Q.Q
    Last edited by Fumi; 04-05-2011 at 06:11 AM.

  4. #4
    bendaferi's Avatar Active Member
    Reputation
    34
    Join Date
    Jun 2008
    Posts
    111
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Code:
    function Admin_Wolf_Man_spawn(pUnit, event)
    Wolf_Man = pUnit
    end
    RegisterUnitEvent(88888, 18, "Admin_Wolf_Man_spawn")
    
    function Admin_Wolf_Man_combat(pUnit, event)
    Wolf_Man:RegisterEvent("Admin_Wolf_Man_72967", 30000, 0)
    end -- You forgot this 'end' 
    
    function Admin_Wolf_Man_72967(pUnit, event)
    if(Wolf_Man:GetCurrentSpellId() == nil) then
    Wolf_Man:FullCastSpellOnTarget(72967, Wolf_Man:GetRandomPlayer(0))
    end
    end -- There were too many 'ends', edited

Similar Threads

  1. Is my boss script correct? it wont work
    By popwar0012 in forum WoW EMU Questions & Requests
    Replies: 3
    Last Post: 12-01-2009, 11:10 AM
  2. Vendor wont work!
    By LJN in forum World of Warcraft Emulator Servers
    Replies: 7
    Last Post: 11-26-2007, 12:09 PM
  3. Question about MC mine wont work
    By JoeRodge in forum World of Warcraft General
    Replies: 2
    Last Post: 10-07-2007, 12:00 AM
  4. Server wont work
    By nitehuntr in forum World of Warcraft Emulator Servers
    Replies: 8
    Last Post: 09-09-2007, 06:15 PM
  5. My account wont work with the US PTR
    By bko345678 in forum World of Warcraft General
    Replies: 10
    Last Post: 08-04-2007, 02:54 PM
All times are GMT -5. The time now is 09:49 AM. 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