Go Back   EQEmulator Home > EQEmulator Forums > Development > Development: Custom Code

Development: Custom Code This is for code thatdoes not emulate live and wont be added to the official code.

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 12-26-2014, 12:46 PM
Bohbo
Hill Giant
 
Join Date: Dec 2012
Posts: 116
Default 2Handed Backstab

in the special_attacks.cpp around line 513. In the top example it seems to break backstab all together and the client wont recognize 1hp anymore (white client message that you need a piercing in mainhand). In the 2nd example 1hp works but 2hp still gives a red feedback must have a piercing weapon in primary... Any help would be appreciated, I wanted to add 2hp to rogue weapon options.

EDIT: I am not really expecting the && symbol to fix it, I tried a bunch of things including OR but never got anythign to really work just posting some of my trials.

Code:
	if(IsClient()) {
		const ItemInst *wpn = CastToClient()->GetInv().GetItem(MainPrimary);
		if(!wpn || (wpn->GetItem()->ItemType != ItemType2HPiercing) || (wpn->GetItem()->ItemType != ItemType1HPiercing)){
			Message_StringID(13, BACKSTAB_WEAPON);
			return;
Code:
	if(IsClient()) {
		const ItemInst *wpn = CastToClient()->GetInv().GetItem(MainPrimary);
		if(!wpn || (wpn->GetItem()->ItemType != ItemType2HPiercing) && (wpn->GetItem()->ItemType != ItemType1HPiercing)){
			Message_StringID(13, BACKSTAB_WEAPON);
			return;
Reply With Quote
 


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