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 05-02-2013, 10:22 AM
wtbmacestun
Fire Beetle
 
Join Date: Mar 2010
Posts: 16
Default

I tried adding this in at line 783 but wont compile. Ive tried multiple different things but I cant get it work right.

Code:
else if(InventorySlot(12)->(database.GetItem()->Magic))
                  {
                   dmg = 1;
                  }
Whenever I compile it I get.

Code:
2>..\..\zone\attack.cpp(783): error C2059: syntax error : '('
2>..\..\zone\attack.cpp(784): error C2143: syntax error : missing ';' before '{'
2>..\..\zone\attack.cpp(785): error C2227: left of '->dmg' must point to class/struct/union/generic type
2>          type is 'InventorySlot'
2>..\..\zone\attack.cpp(787): error C2181: illegal else without matching if
2>..\..\zone\attack.cpp(797): error C2227: left of '->Damage' must point to class/struct/union/generic type
2>          type is ''unknown-type''

I see that dmg should be pointing to something but I am not sure what it should be pointing to.
Reply With Quote
  #2  
Old 05-02-2013, 12:01 PM
wtbmacestun
Fire Beetle
 
Join Date: Mar 2010
Posts: 16
Default

Correct me if I am wrong, but because Client::Attack is a bool that only says when you can attack... aka true or false.
Reply With Quote
  #3  
Old 05-02-2013, 12:11 PM
wtbmacestun
Fire Beetle
 
Join Date: Mar 2010
Posts: 16
Default

I tried this at line 927 but i need some help with the code

Code:
			else if(weapon_item == NULL && SLOT_HANDS() == ItemAttribMagic){
				dmg = 1;
How do I say that my SLOT_HANDS = a magic item?

Edit:

I also tried

Code:
			else if(weapon_item == NULL && SLOT_HANDS()->Magic){
				dmg = 1;
and that didnt work.
Reply With Quote
Reply

Thread Tools
Display Modes

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 10:44 AM.


 

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 - 2025, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3