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.

Reply
 
Thread Tools Display Modes
  #1  
Old 05-22-2002, 07:20 AM
Wiz
Dragon
 
Join Date: Feb 2002
Posts: 583
Default Resists

I'm working on some code for spell resists. As of right now, I have a very crude version, that does the following:

- Checks against resist based on level, NPC/Client (NPC's resist easier), and spell resist bonus.
- Has a 6-level limit on mobs you can land spells on.
- Subtracts damage from a DD-only spell, completely resists all other spells upon a successful resist (it's easier to resist a DD-only)

My two problems are:

- I can't figure out how to declare resist type from spdat.eff
- I can't figure out how to declare MR/FR/CR/PR/DR of the mob/player.

I'd really appreciate any help with this, and if I can figure these out, I'm writing up a much more advanced version.
Reply With Quote
  #2  
Old 05-22-2002, 09:14 AM
Lurker_005
Demi-God
 
Join Date: Jan 2002
Location: Tourist town USA
Posts: 1,671
Default

A Sugestion on the level limit.

Make it adjust the chance to resist percentage instead of just cutting it off. Also it should be a bit higher for higher level players than say level 10 players.

Sudo math to display the basic idea, perhaps just modify the resist chance to near 100%

level limit=6+casterlevel/(adjustment vlaue, 6 perhaps)
chance to resist modifier=level differance/level limit
Reply With Quote
  #3  
Old 05-22-2002, 09:44 AM
Wiz
Dragon
 
Join Date: Feb 2002
Posts: 583
Default

You gain a +5 bonus to your roll for each level you have on the target.
You gain a -10 modifier to your roll for each level your target has on you.
Resistable spells will be auto-resisted by NPC's 7 levels above the caster, but not players.
More than 10 levels above the target will not accumulate additional bonus.
More than 6 levels below target will not accumulate additional penalties (for PCvsPC)
Reply With Quote
  #4  
Old 05-22-2002, 11:24 AM
Lurker_005
Demi-God
 
Join Date: Jan 2002
Location: Tourist town USA
Posts: 1,671
Default

That doesn't sound bad, but the limit of only 7 levels above you still bothers me at the high end of the game.

Casters level 58 can't cast on npc's level 65, and noone can cast on level 70npc's

Granted this does assume an EQ live level setup...
Reply With Quote
  #5  
Old 05-22-2002, 12:50 PM
Hmm
Discordant
 
Join Date: Jan 2002
Posts: 276
Default

actally it can get LOW but it wont be zero chance. i once hit a lvl 40 when i was lvl 9 and other way lvl 2 4 etc ( low lvl ) when i was lvl 40 50s sometimes resists my cast spell.
__________________
Hmm...
Reply With Quote
  #6  
Old 05-23-2002, 05:14 AM
Wiz
Dragon
 
Join Date: Feb 2002
Posts: 583
Default

I'll put a roof on the 7-level limit thing, so it doesn't count levels above 60 (aka, once you hit L54, you always have a chance to land spells)
Reply With Quote
  #7  
Old 05-24-2002, 02:23 AM
Lyenu X`Arie
Fire Beetle
 
Join Date: Mar 2002
Posts: 0
Default

Once the new patch on test server comes out we have a 100% correct version of the SPDat struct for it. In the spell struct there is a property called "ResistType", you'll have to look into it mor ebut it says what the resist is for that spell. should help you out =)
Reply With Quote
  #8  
Old 05-24-2002, 05:57 AM
Wiz
Dragon
 
Join Date: Feb 2002
Posts: 583
Default

Excellent. If that's coming up, I'm gonna write the real code with some ghost variables.
Reply With Quote
  #9  
Old 05-24-2002, 06:01 AM
Wiz
Dragon
 
Join Date: Feb 2002
Posts: 583
Default

One question just:

Are you going to add resist variables to PC's? They're on NPC's and items, but they're not declared for clients anywhere I can see.
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 01:19 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