My first C++ Script (Check pleasE) menu

User Tag List

Results 1 to 2 of 2
  1. #1
    Warriar's Avatar Active Member
    Reputation
    31
    Join Date
    May 2009
    Posts
    149
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    My first C++ Script (Check pleasE)

    this is my first c++ script i made i think it looks okay but can someone please correct the errors if there is any?

    Code:
    //#################################
    //					Made by
    //Warriar
    //
    //
    //
    #include "StdAfx.h"
    #include "Setup.h"
    #include "Base.h"
    
    //Boss
    #define Eddie 66608
    //Spells
    #define Whirlwind 36175
    #define SoC 38252
    #define ArcExplosion 29973
    //phase1
    #define Enrage 41447
    
    class EddieAI : public ArcScriptBossAI
    {
    		ARCSCRIPT_FACTORY_FUNCTION(EddieAI, ArcScriptBossAI);
    			EddieAI(Creature* pCreature) : ArcScriptBossAI(pCreature)
    			{
    				AddSpell(Whirlwind, Target_RandomPlayer, 95, 0, 10000)
    				AddSpell(SoC, Target_SecondMostHated, 95, 0, 10000, 0, 0, false, "I will corrupt you!", Text_Yell, 10290);
    				AddSpell(ArcExplosion, Target_RandomPlayer, 95, 10000)
    
    
    				AddEmote(Event_OnCombatStart, "You have entered my keep seeking treasure, the only thing you will get though, is death.", Text_Yell, 10289);
    				AddEmote(Event_OnTargetDied, "One Down...", Text_Yell, 11250);
    				AddEmote(Event_OnDied, "How could this .... Happen", Text_Yell, 10291);
    
    			}
    
    			void AIUpdate()
    			{
    				if(GetHealthPercent()<=20//phase1
    				{
    					AddSpell(Enrage, Target_ClosestPlayer, 100, 1, 100, 0, 0, false, "I will not go down so easy!", Text_Yell, 10292);
    				}
    					ParentClass::AIUpdate();
    					ParentClass::AIUpdate();
    			}
    };
    
    void SetupWorldBoss(ScriptMgr* pScriptMgr)
    {
    	pSCriptMgr->register_creature_script(Eddie, &EddieAI::Create);

    My first C++ Script (Check pleasE)
  2. #2
    shadowslayer133's Avatar Active Member
    Reputation
    61
    Join Date
    May 2008
    Posts
    313
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    For what you are trying to acomplish here you could complete this task in lua, and save yourself the headache of "what went wrong?", as the console upon loading tells you the error.

    Done by piersd
    Gamer tag - Midnight133

Similar Threads

  1. [Help] LUA script check it please
    By Strupantwn in forum World of Warcraft Emulator Servers
    Replies: 5
    Last Post: 06-09-2008, 12:52 PM
  2. Scripting help please?
    By ledz14 in forum World of Warcraft Emulator Servers
    Replies: 2
    Last Post: 06-02-2008, 02:17 PM
  3. [Release Lua] One of My First Lua Scripts
    By Juicyz in forum World of Warcraft Emulator Servers
    Replies: 5
    Last Post: 03-28-2008, 02:03 AM
  4. [Help me] Lua script error? please help.
    By Szharz in forum World of Warcraft Emulator Servers
    Replies: 3
    Last Post: 03-22-2008, 12:20 PM
  5. Scripting help please will +rep need for a new server
    By runiker in forum WoW EMU Guides & Tutorials
    Replies: 0
    Last Post: 01-22-2008, 04:05 AM
All times are GMT -5. The time now is 01:44 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