Oregon core boss script problems menu

User Tag List

Results 1 to 3 of 3
  1. #1
    gillisrofl's Avatar Sergeant
    Reputation
    22
    Join Date
    Oct 2009
    Posts
    47
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Oregon core boss script problems

    Hello! I am having a problem with a boss script that I am working on. The problem is that I want my boss to cast a random spell on my target and then cast another spell later at the same target. This is how I was thinking of doing it:

    Code:
    f (Chain_Visual_One_Timer <= diff)
                {
                    if (Unit *pTarget = SelectUnit(SELECT_TARGET_RANDOM, 0))
                            {
                                DoCast(pTarget, VISUAL_MEDIUM_THUNDER);
                                DoCast(pTarget, SPELL_CHAINLIGHTNING);
                            }
                    Chain_Visual_One_Timer = 30000;
                }
                else
                    Chain_Visual_One_Timer -= diff;
    The only thing I haven't been able to figure out is how to add an interval between these two spells. But the solution to this problem would be just to add some kind of timer within the function. Rather like, the real question is: How do I make my boss remember a pTarget once it has been picked? I've been looking at a Mandokir (Zul'Gurub boss) script that have similar idea to mine where he first cast Gaze at a random target then he later uses another spell on the target:

    Code:
    if (Unit *pTarget = SelectTarget(SELECT_TARGET_RANDOM, 0, 100, true))
                    {
                        DoScriptText(SAY_GAZE, me, pTarget);
                        DoCast(pTarget, SPELL_GAZE);
                        me->MonsterWhisper(SAY_GAZE_WHISPER, pTarget->GetGUID());
                        GazeTarget = pTarget->GetGUID();
                        someGazed = true;
                        endGaze = true;
                    }
    So I tried to copy this in several ways but I haven't gotten it to work. First of if we look at

    Code:
    GazeTarget = pTarget->GetGUID();
    First off, what is GetGUID? Is this some unique ID of the target it choose? I understand that Gazetarget is defined to be the pTarget and that it can be used later by an "if" function. Probably by putting that function within a timed function.

    So how should I do it so that my boss cast first one visual at the random, and then after some time a second visual at the same target and then a spell after some seconds at the same target? Any ideas or solution really appreciated. Thanks!

    Oregon core boss script problems
  2. #2
    gillisrofl's Avatar Sergeant
    Reputation
    22
    Join Date
    Oct 2009
    Posts
    47
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Bump!

    Cmon no one knows a solution? Oregon scripts works almost exactly the same as Trinity core scripts :/... unless were talking about the newer versions of it.

  3. #3
    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)
    Well, the GUID is the unique value given to each player, creature, object etc to make it unique within the world, even when they have the same 'entry' id's to spawn them etc.

    You use the GUID when you want to manipulate one certain object.

    Code:
    Unit *pTarget = SelectUnit(SELECT_TARGET_RANDOM, 0)
    pTarget will be a GUID of the player selected, if it is not NULL.

    So to cast on the same player later, save this player into a variable that will exist outside this subroutine, then call that same variable when you need to cast the spell later on, checking if he's still in the world (not NULL).

Similar Threads

  1. [Lua Script] Boss Script problem
    By Myuu in forum WoW EMU Questions & Requests
    Replies: 1
    Last Post: 01-05-2012, 01:00 PM
  2. [C++ Script] Boss script problem
    By marksman726lul in forum WoW EMU Questions & Requests
    Replies: 6
    Last Post: 07-10-2011, 12:42 AM
  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 01:02 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