Boss script problem menu

Shout-Out

User Tag List

Results 1 to 7 of 7
  1. #1
    marksman726lul's Avatar Member
    Reputation
    1
    Join Date
    Jan 2011
    Posts
    24
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Boss script problem

    The end of my script looks like:

    void AddSC_BOSSNAME()
    {
    Script *newscript;
    newscript = new Script;
    newscript->Name = "npc_BOSSNAME";
    newscript->GetAI = &GetAIBOSSNAME;
    newscript->RegisterSelf();
    }
    //custom
    AddSC_BOSSNAME();

    but i'm told "Script is unidentified" as well as "*newscript"
    and for "AddSC" i am told explicit type is missing ('int' assumed)

    So.. what should I do to fix this?

    ---------- Post added at 11:29 PM ---------- Previous post was at 10:36 PM ----------

    Anyone know..?

    Boss script problem
  2. #2
    Pharcide's Avatar Member
    Reputation
    18
    Join Date
    Jul 2009
    Posts
    28
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    one thing i notice is it should be

    newscript = new Script()

    and I have no idea how arcemu works but AddSC_BOSSNAME(); has no return type so you might want to check that

  3. #3
    marksman726lul's Avatar Member
    Reputation
    1
    Join Date
    Jan 2011
    Posts
    24
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    This is for trinity, I guess I should of mentioned that

  4. #4
    marksman726lul's Avatar Member
    Reputation
    1
    Join Date
    Jan 2011
    Posts
    24
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    So I started trying to fix it up on my own but i'm stuck now..

    3>Custom\NEWBOSS.cpp(84): error C2628: 'ScriptsType' followed by 'void' is illegal (did you forget a ';'?)
    3>Custom\NEWBOSS.cpp(86): error C2061: syntax error : identifier 'NEWBOSS_script'
    Last edited by marksman726lul; 07-09-2011 at 08:16 AM.

  5. #5
    Pharcide's Avatar Member
    Reputation
    18
    Join Date
    Jul 2009
    Posts
    28
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    ohhhhhhhhhh ok that looked like arcemu syntax.

    In your AddSC function all you need is

    Code:
    void AddSC_boss_name()
    {
        new boss_name();
    }

  6. #6
    marksman726lul's Avatar Member
    Reputation
    1
    Join Date
    Jan 2011
    Posts
    24
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by Pharcide View Post
    ohhhhhhhhhh ok that looked like arcemu syntax.

    In your AddSC function all you need is

    Code:
    void AddSC_boss_name()
    {
        new boss_name();
    }
    I did this and it says "expected a type specifier" at
    Code:
    new boss_name();
    Last edited by marksman726lul; 07-09-2011 at 10:54 PM.

  7. #7
    Pharcide's Avatar Member
    Reputation
    18
    Join Date
    Jul 2009
    Posts
    28
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    replace boss_name with whatever your class is named

    If you did that then I have no clue

Similar Threads

  1. [C++ Script] Oregon core boss script problems
    By gillisrofl in forum WoW EMU Questions & Requests
    Replies: 2
    Last Post: 02-22-2012, 03:06 AM
  2. [Lua Script] Boss Script problem
    By Myuu in forum WoW EMU Questions & Requests
    Replies: 1
    Last Post: 01-05-2012, 01:00 PM
  3. [Lua Script] Boss Script Problem!
    By wour55 in forum WoW EMU Questions & Requests
    Replies: 3
    Last Post: 06-28-2010, 06:46 AM
  4. Problem with lua boss script
    By nickeg in forum WoW EMU Questions & Requests
    Replies: 13
    Last Post: 08-16-2008, 09:22 AM
  5. Lua Boss Script Problems!!
    By blah7 in forum World of Warcraft Emulator Servers
    Replies: 14
    Last Post: 01-22-2008, 08:59 PM
All times are GMT -5. The time now is 03:34 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