Go Back   EQEmulator Home > EQEmulator Forums > Support > Support::Windows Servers

Support::Windows Servers Support forum for Windows EQEMu users.

Reply
 
Thread Tools Display Modes
  #1  
Old 07-26-2014, 07:53 PM
Nightrider84's Avatar
Nightrider84
Discordant
 
Join Date: Aug 2010
Location: Colorado
Posts: 410
Default Bot mana cost

Just a quick question ive got some of my bots spells set to 0 instead of -1 so they use no mana. but I they still use mana to cast those spells. is the 0 value the wrong one to put it to make the spell no cost?
Reply With Quote
  #2  
Old 07-26-2014, 08:20 PM
Kingly_Krab
Administrator
 
Join Date: May 2013
Location: United States
Posts: 1,589
Default

Here's some of the botspellsai.cpp code:

Code:
// manacost has special values, -1 is no mana cost, -2 is instant cast (no mana)
    int32 manaCost = mana_cost;

    if (manaCost == -1)
        manaCost = spells[AIspells[i].spellid].mana;
    else if (manaCost == -2)
        manaCost = 0;
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

   

All times are GMT -4. The time now is 02:05 PM.


 

Everquest is a registered trademark of Daybreak Game Company LLC.
EQEmulator is not associated or affiliated in any way with Daybreak Game Company LLC.
Except where otherwise noted, this site is licensed under a Creative Commons License.
       
Powered by vBulletin®, Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3