(Question) About boss/Mobs cast times. menu

User Tag List

Results 1 to 2 of 2
  1. #1
    Ellenor's Avatar Active Member
    Reputation
    18
    Join Date
    Jan 2008
    Posts
    281
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    (Question) About boss/Mobs cast times.

    Is it possible to make Bosses or trash mobs to actually use cast time in order to cast spells?

    Lets say X boss casting divine Shield within the next 10 sec for example.

    (Question) About boss/Mobs cast times.
  2. #2
    Haith's Avatar Sergeant
    Reputation
    20
    Join Date
    May 2010
    Posts
    43
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I'm not too sure if there is an explicit method to implement this, but with some simple code you could make something along these lines.

    Sudo Code:

    "#" means: Whatever cast chance, per second, you would like the mob to have (ie. 1-10)
    "randomMax" means: the maximum number in your random number bounds (ie. In the above case, 10)


    while(yourTimerVariable != 10)
    {
    temp = randomNumber("#")
    if(temp == randomMax)
    {
    "Make the mob cast the spell."
    "Break the loop"
    }
    "Increment your timer variable by 1 with an LUA or C++ timer function"
    }
    "Make the mob cast the spell."


    Then I guess you could make this a standalone function, where all of the numbers are passed in, each time you want to call the function from a different mob.

    Again, this is very rough psuedo code, as I am not fluent in scripting mobs, but I believe this would do the job

    Best of luck!

    -Haith

    [Edit]: To clarify: what this would do is pick a random number between 1 and whatever number you would like. It would then compare this random number, to the greatest number in your random bound. If they are equal, the mob casts. If they are not equal, the mob doesn't cast, waits one second, and tries again. If after 10 seconds, the mob hasn't cast, it will cast the spell after the 10 seconds.

    [Edit]: This would actually probably be quite a bit simpler:


    temp = randomNumber(1-10)
    while(yourTimerVariable != temp)
    {
    "Increment yourTimerVariable by 1"
    }
    "Make the mob cast the spell."


    Thought of this afterwards, quite a bit more straightforward. lol
    Last edited by Haith; 05-19-2010 at 09:59 PM.

Similar Threads

  1. [Mangos] Question about patrolling Mobs in Instances etc.
    By FRAGSTEALER in forum WoW EMU Questions & Requests
    Replies: 2
    Last Post: 07-07-2015, 01:07 PM
  2. [PQR] Question About Target Instant Casts
    By Moonscarlet in forum WoW Bots Questions & Requests
    Replies: 1
    Last Post: 10-13-2013, 11:43 PM
  3. question about npc spell casting AI_AGENTS
    By xdarkghostx in forum WoW EMU Questions & Requests
    Replies: 5
    Last Post: 01-05-2010, 03:29 AM
  4. Question about Boss script editing
    By yashirotcm in forum WoW EMU Questions & Requests
    Replies: 0
    Last Post: 07-28-2009, 01:26 AM
  5. [Question] Make a Mob Cast a Spell When Critted?
    By kevinno in forum World of Warcraft Emulator Servers
    Replies: 17
    Last Post: 05-27-2008, 07:10 PM
All times are GMT -5. The time now is 03:38 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