Go Back   EQEmulator Home > EQEmulator Forums > Archives > Archive::Development > Archive::Development

Archive::Development Archive area for Development's posts that were moved here after an inactivity period of 90 days.

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 04-26-2002, 07:25 PM
beric
Fire Beetle
 
Join Date: Apr 2002
Posts: 4
Default combat system

I've added and modified some code in the attack.cpp file for EQEmu version 0.3.1. I thought some of you might be interested in it. I put in player and NPC to-hit chance code. I've also changed the formulas for determining damage for both players and NPCs. I've play tested it for several hours and it seems to be pretty close to EQ live. The code is a little sloppy, but this is my first attempt at programming in C.

I'll attach my modified attack.cpp for anybody who wants to compile it and test it out. I found that it worked best if I adjusted the NPCs' max damage to (NPClevel+1)*2.

In mysql type:

use eq
UPDATE npc_types set maxdmg=(level+1)*2;

This worked pretty well for most of the mobs up to about the mid 30's. After that they start to hit for less than on EQ live.

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