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-14-2004, 11:18 AM
Scorpious2k's Avatar
Scorpious2k
Demi-God
 
Join Date: Mar 2003
Location: USA
Posts: 1,067
Default AC for mobs and more

First, in the next CVS you should see AC for mobs implemented. You will need to add a column for AC in npc_types by sourcing the file MobACupdate.sql or using this:

Code:
ALTER TABLE `npc_types` ADD `AC` smallint(5) not null default 0;
Since AC defaults to zero, all mobs will have no AC (in other words no difference than you have now) until you set values in it.

If you remember this thread : http://www.eqemulator.net/forums/viewtopic.php?t=14061 then you saw a suggestion I made of a way for serverops to control the way AC is implemented on their server. This will also be in the next CVS. Here is the way it will work (quoted from the above thread)

Quote:
So, I propose instead the creation of 3 variables in the variables table.

ACfail - the percentage of time AC fails to protect. 0 would mean there was always some level of protection, 100 would mean AC has no affect. When AC fails, it will be possible to get a max dmg hit.

ACreduction - the percentage of AC that is ALWAYS reduced from a hit (except when AC fails with ACfail)

ACrandom - the maximum amount of additional protection AC provides. 0 would mean no additional protection is provided, otherwise an additional amount of reduction is calculated using a random percentage of 1 to this value (except when AC fails with ACfail)

So on our server ACfail=0, ACreduction=5, ACrandom=5. AC always provides protection of 5-10 percent.

Someone else might use ACfail=10, ACreduction=2, ACrandom=3 meaning that AC would fail 10% of the time and when it works you get 2-5% reduction.

Setting ACreduction to a value and ACrandom to 0 would give a constant reduction of a fixed percentage of the AC.

Setting ACrandom to a value and ACreduction to 0 would give a random reduction percentage of the AC from 1 to ACrandom.

I think this would give the ServerOps a lot of flexability.
__________________
Maybe I should try making one of these servers...
Reply With Quote
  #2  
Old 05-14-2004, 11:36 AM
RangerDown
Demi-God
 
Join Date: Mar 2004
Posts: 1,066
Default

I'll be the devil's advocate and ask, did you try a situation where the ACreduction and ACrandom together added up to over 100? What happened in combat when they did that? Hopefully we weren't healing the mob :lol:
Reply With Quote
  #3  
Old 05-14-2004, 11:53 AM
Scorpious2k's Avatar
Scorpious2k
Demi-God
 
Join Date: Mar 2003
Location: USA
Posts: 1,067
Default

Quote:
Originally Posted by RangerDown
I'll be the devil's advocate and ask, did you try a situation where the ACreduction and ACrandom together added up to over 100? What happened in combat when they did that? Hopefully we weren't healing the mob :lol:
Nope:
Code:
if (damage<1) damage=0;
__________________
Maybe I should try making one of these servers...
Reply With Quote
  #4  
Old 05-14-2004, 01:06 PM
KhaN's Avatar
KhaN
Dragon
 
Join Date: Mar 2004
Location: France, Bordeaux.
Posts: 677
Default

Thanks Scorpious2k for this.
AC on mobs were really missing
__________________

Reply With Quote
  #5  
Old 05-15-2004, 01:20 AM
sandy
Hill Giant
 
Join Date: Oct 2002
Posts: 212
Default

yes thank you =)
next update will be haste for mobs ? =)
__________________
Sandy
Reply With Quote
  #6  
Old 05-15-2004, 06:37 PM
govtcheeze
Hill Giant
 
Join Date: Mar 2004
Location: South Florida
Posts: 247
Default

Speaking of haste...

/noob question inc

I picked up some haste gloves today, and when I right-click them the haste did not show up. However in the DB they are set up properly. Does this mean PC haste is not currently supported as well as npc (per post above)?
__________________
GovtCheeze, Welfare Warrior
"Listen, here's the thing. If you can't spot the sucker in the first half hour at the table, then you ARE the sucker." -- Mike McDermott, Rounders

Developer of the original (circa 2004):
Loots v2.0, bitch!
Faction v1.0, bitch!
Magelo-like clone v0.3, bitch!
Zone geometry and spawn/path viewer, bitch!
Reply With Quote
  #7  
Old 05-16-2004, 07:52 AM
mikenune
Discordant
 
Join Date: Apr 2004
Location: Gukta
Posts: 359
Default

I've noticed that "Worn" effects (at least for me) don't show up in my Buffs window, but work anyway. The only clicky effect item I've used like that would be JBoots and their icon didn't show up either. I still got the measly 30-something% speed increase though.
__________________
THE POSTER assumes no warranty, guarantee, or representation as to the accuracy
or sufficiency of the information presented herein, and THE POSTER assumes no
responsibility or liability regarding the use or misuse of such information.
Furthermore THE POSTER assumes no responsibility and makes no warranty, guarantee,
or representation for the content of any web or FTP sites linked to or from this
post.

THE POSTER reserves the right to change the terms, conditions, and notices under
which THE POSTER presents information. It is the responsibility of THE READER to
regularly review these terms, conditions, and notices. THE READER understands that
the reading of any content including or covered by this disclaimer constitutes THE
READER's acceptance of and agreement to such changes.

THE POSTER retains the right to in any way alter the content of this post at any
time with or without prior notice to THE READER.
Reply With Quote
  #8  
Old 05-16-2004, 09:04 AM
smogo
Discordant
 
Join Date: Jan 2004
Location: 47
Posts: 339
Default

Thanks, very nice work.

It is really valuable to have a variable to tune this, instead of hard coded arbitrary design, so that every server can be tuned appropriate to server's style.

This shows EQEMu grows more and more high quality engine :P

Keep on good work !
__________________
EQEMu Quest Repository is down until something new :(
Reply With Quote
  #9  
Old 05-16-2004, 12:54 PM
blastoma
Sarnak
 
Join Date: May 2004
Location: Canada
Posts: 69
Default

Yes, Im very impressed and extremely pleased at this implementation. Well done.

I'm kinda new to eqemu... and I hope to lend my programming skills to the mix. Seems like eqemu gets better by leaps and bounds everyday.
Reply With Quote
  #10  
Old 05-16-2004, 01:07 PM
KhaN's Avatar
KhaN
Dragon
 
Join Date: Mar 2004
Location: France, Bordeaux.
Posts: 677
Default

Scorp, i know im boring but, it is possible to add AC to #spawn ? Could be usefull :p
__________________

Reply With Quote
  #11  
Old 05-18-2004, 05:54 AM
blastoma
Sarnak
 
Join Date: May 2004
Location: Canada
Posts: 69
Default

I was kinda bored last night and started adding ac to mobs in the database. After pulling all my hair out, I figured I'd do it the lazy way (and probably the wrong way... my C++ knowlage is pretty gimp).

Anyhow, I used some randomish number based on the level of the npc to auto-give ac if the ac in the db was 0. I dont know if it works correctly or not... either way... it does show the ac in #showstats.

At line 189ish in mob.cpp I used:

Code:
 	if(in_ac == 0)
		AC  = ((level*level)/1.75) + 15;
	else
		AC  = in_ac;
Numbers are just rough... Hope it helps.
Reply With Quote
  #12  
Old 05-18-2004, 06:02 AM
smogo
Discordant
 
Join Date: Jan 2004
Location: 47
Posts: 339
Default

direct SQL :
Code:
update npc_types set AC=(((level*level)/1.75)+15) where AC=0;
Man, you must have been bored :lol:
__________________
EQEMu Quest Repository is down until something new :(
Reply With Quote
  #13  
Old 05-18-2004, 06:04 AM
blastoma
Sarnak
 
Join Date: May 2004
Location: Canada
Posts: 69
Default

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 11:49 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