Michael Cook (mackal)
1e1de3a48a
Fix error
2017-03-20 19:49:35 -04:00
Michael Cook (mackal)
0ac70c5459
SE_Taunt is a flat chance not a bonus to taunt chance
2017-03-20 19:45:26 -04:00
Michael Cook (mackal)
9510e8fbe1
This should resolve leaks and shutdown lua issues
2017-03-18 16:59:46 -04:00
Michael Cook (mackal)
f64e1644b1
Take 2 at fixing encounters
2017-03-18 14:11:30 -04:00
Michael Cook (mackal)
bafb199d24
Fix encounters leaking?
...
I didn't actually test this ...
2017-03-18 01:30:59 -04:00
Michael Cook (mackal)
11e227756d
Fix memory leak in raids
2017-03-18 01:15:08 -04:00
Michael Cook (mackal)
304d41e230
Fix fix memory leak fix
2017-03-18 01:09:48 -04:00
Michael Cook (mackal)
1ae66ce955
Fix uninit jump in Client::Process
2017-03-18 00:59:13 -04:00
Michael Cook (mackal)
13f49fe569
Fix uninit group value
2017-03-18 00:54:03 -04:00
Michael Cook (mackal)
3173c961fa
Fix typo
2017-03-18 00:51:54 -04:00
Michael Cook (mackal)
16845c204c
Fix leak in Group::SendHPPacketsTo
2017-03-18 00:34:49 -04:00
Michael Cook (mackal)
94d8db4691
clang-tidy said this was a use-after-free
...
Also, what is this code doing?
2017-03-16 14:10:36 -04:00
Michael Cook (mackal)
153e587cea
Not sure how that happened
2017-03-16 12:56:21 -04:00
Michael Cook (mackal)
fbb13ec416
bug found by clang 4
2017-03-16 12:52:58 -04:00
Michael Cook (mackal)
e7785d5693
Bash dmg should return 0 with no item (slam)
2017-03-15 15:25:42 -04:00
Michael Cook (mackal)
23bc535e23
Tweaks to most likely wrong PVP damage reduction
2017-03-15 15:07:28 -04:00
Michael Cook (mackal)
d04d6750a2
Allow base damage of 0 (ex slam) min damage done to 1
2017-03-15 13:22:45 -04:00
Michael Cook (mackal)
bd364a4049
Merge pull request #591 from EQEmu/2002_fixes
...
Added an optional rule value that forces startzones to be the same as…
2017-03-12 19:21:05 -04:00
Michael Cook (mackal)
262bcf5c29
Fix merc attack delay
2017-03-10 19:17:04 -05:00
Michael Cook (mackal)
3d229e1da1
Aggro Meter on by default now (seemed fine on PEQ)
2017-03-10 18:15:08 -05:00
Michael Cook (mackal)
df5d58f43d
Temp pets shouldn't spawn when they're targeting a corpse
2017-03-10 13:00:22 -05:00
Michael Cook (mackal)
7d13475bac
Fix ClearAggro xtarget issue
2017-03-02 14:31:48 -05:00
Michael Cook (mackal)
a8a1c3f809
Better comment some group shit
2017-02-28 02:21:44 -05:00
Michael Cook (mackal)
666513c4ab
Better comment SendGroupCreatePacket
2017-02-27 15:21:50 -05:00
Michael Cook (mackal)
91ae6a6613
Secondary aggro meter fix
2017-02-26 19:13:47 -05:00
Michael Cook (mackal)
3fd40e9449
Make ST_AreaNPCOnly skip faction check
...
The motivation for this is there a bunch of auras that use this target type
that all would require setting up faction for these NPCs so they would hate
everything.
Also allows Ward of Destruction to work.
2017-02-25 14:36:17 -05:00
Michael Cook (mackal)
14a5ff399a
clear xtarget manager on death
2017-02-25 02:37:57 -05:00
Michael Cook (mackal)
31907382c8
Lets not aggro zonign clients
2017-02-25 02:21:48 -05:00
Michael Cook (mackal)
0968ce0d60
Add petnaming type 5 (`s ward)
2017-02-24 15:28:22 -05:00
Michael Cook (mackal)
7621bf47c8
Quick fix to resolve some serious group issues
...
Group leader swapping didn't work and left the client in a bad state
This just disbands the group if the leader leaves
Also prevents a group leader from disbanding other groups ...
Which also lead to bad states
Group leader swapping not working is better than these issues :P
2017-02-24 01:12:46 -05:00
Michael Cook (mackal)
602381ebec
copy paste fail
2017-02-23 12:27:44 -05:00
Michael Cook (mackal)
b423ad0d80
Crash fix
2017-02-21 18:02:58 -05:00
Michael Cook (mackal)
9a157fa028
Turn aggro meter off by default until more tested
...
Reports of it being too spammy and causing DCs
2017-02-21 17:54:25 -05:00
Michael Cook (mackal)
056725b9bd
Make timer for aggro meter not a magic number
...
you can edit AGGRO_METER_UPDATE_MS in common/features.h if you want to
see if a different number would work better
2017-02-21 13:38:00 -05:00
Michael Cook (mackal)
46b19e8e6f
Disable the aggro meter timer if it's not enabled
2017-02-20 18:41:17 -05:00
Michael Cook (mackal)
08c2f73e37
Implement aggro meter for RoF2 (RoF wasn't tested)
...
I didn't test RoF, so it's disabled for now (change AggroMeterAvaliable if you want to test)
Group member meters probably buggy ... but do later
The "lock target" feature isn't working currently either
2017-02-18 22:27:34 -05:00
Michael Cook (mackal)
9f4604ec3e
Rework how XTarget auto haters work
...
This should cause the auto haters to be shared with other toons who might be
interested (group/raid) like live.
There maybe some bugs since there is a lot of complex interactions here.
2017-02-17 21:04:48 -05:00
Michael Cook (mackal)
d043c38f71
Make it so enraged NPCs can't be riposted
...
This should prevent infinite loops
2017-02-14 16:47:22 -05:00
Michael Cook (mackal)
ef8b4754ea
Fix min damage issue
2017-02-06 00:11:26 -05:00
Michael Cook (mackal)
592f9a9cb9
Add rule to allow non-PC pet NPCs to crit
...
NPCs can't crit at all ever on live
2017-02-05 13:44:04 -05:00
Michael Cook (mackal)
d8519bc270
Weapons allow NPCs to facestab
2017-01-31 17:25:05 -05:00
Michael Cook (mackal)
5d61cf5bcf
Bots are dumb
2017-01-28 23:21:12 -05:00
Michael Cook (mackal)
2db6464d14
Fix last commit
2017-01-28 22:46:02 -05:00
Michael Cook (mackal)
c17ac67296
Tweak #showstats so bots don't skip stuff
2017-01-28 22:43:07 -05:00
Michael Cook (mackal)
37e87e8cef
Rework combat to make use of a struct to fix some bugs
2017-01-28 19:38:44 -05:00
Michael Cook (mackal)
cdf0d5deb0
Fix crash
2017-01-26 18:04:59 -05:00
Michael Cook (mackal)
31de6a63cc
Fix bot frenzy
2017-01-25 21:08:59 -05:00
Michael Cook (mackal)
7033d9d919
memleak fix
2017-01-21 01:47:06 -05:00
Michael Cook (mackal)
905e3acab3
Fix bots?
2017-01-20 23:27:19 -05:00
Michael Cook (mackal)
2c6e11b464
Have modify NPC stat AC/AGI recache AC
2017-01-19 23:17:14 -05:00
Michael Cook (mackal)
9aba993888
Add optional rule SQL for combat update [skip ci]
2017-01-17 23:34:52 -05:00
Michael Cook (mackal)
f614c35f6e
Combat Revamp -- BREAKING CHANGES -- see changelog
...
Changelog updated for combat revamp
2017-01-17 23:30:50 -05:00
Michael Cook (mackal)
8f21b01b7e
Tweak to accuracy based on newer clients
2017-01-17 02:52:16 -05:00
Michael Cook (mackal)
591fa003c6
Merge pull request #586 from huffin/patch-1
...
Update 2017_01_16_NPCCombatRebalance.sql
2017-01-16 21:00:52 -05:00
Michael Cook (mackal)
18e6e5e5e2
Rename Defense to Mitigation on sim (since that's what it is)
2017-01-16 17:05:57 -05:00
Michael Cook (mackal)
698a814fc3
Add KLS' combat sim
...
This will show you the distribution of hits for a given offense and mitigation
DI 1 is the min hit and DI 20 is the max hit
2017-01-16 17:02:34 -05:00
Michael Cook (mackal)
fb820f4fec
Add Creamo's SQL to rebalance NPCs
2017-01-16 16:58:32 -05:00
Michael Cook (mackal)
0d84a73e9f
Clean up MonkSpecialAttack too
2017-01-15 22:54:50 -05:00
Michael Cook (mackal)
b92d6c57a1
Rework OPCombatAbiltiy a bit
...
This is done to help remove some code duplication in the future
2017-01-15 22:19:32 -05:00
Michael Cook (mackal)
8c6fefa33e
Update #showstats
2017-01-15 16:32:15 -05:00
Michael Cook (mackal)
e03a90b05d
Refactor CheckHitChance
...
Pulled the accuracy/avoidance spell bonuses into their own functions so
we can show the total values in #showstats
2017-01-15 16:08:22 -05:00
Michael Cook (mackal)
c030e1ce8d
Add rule Combat:LevelToStopDamageCaps
...
Setting this to 1 will effectively disable damage caps
Setting this to 20 will give similar results to old incorrect default rules
2017-01-15 15:39:12 -05:00
Michael Cook (mackal)
7e49a21b3b
Change NPC skill AC bonus
...
Basically, live doesn't have an NPC's skill at the max for their class like we
do. So for now, we'll just set their SkillDefense bonus to value / 5
2017-01-15 13:54:10 -05:00
Michael Cook (mackal)
9e824876ba
Combat Revamp - MAJOR BREAKING CHANGE
...
This commit makes combat much more live like. This is based on a lot of parses
done by TAKP and myself. There are numerous things based on dev quotes and
hints. Pretty much all combat has changed, spell effects correct, stacking
correct, etc.
This is the fist stage of the revamp, I will be trying to remove some code
duplication and make things generally cleaner.
Server ops will have to rebalance their NPCs. AC actually means something now.
Rough recommendations?
Level 50 "classic" trash should be no more than 115.
Classic raid mobs should be more 200+ etc
Other "classic" NPCs should be a lot lower as well.
PoP trash probably shouldn't exceed 120 AC
PoP raids should be higher
Devs have said the vast majority of NPCs didn't exceed 600 AC until very
recently. The exceptions were mostly raid encounters.
There really isn't a good "default" for every server, so this will be up to
the devs to find where they want their server stats to be.
2017-01-15 00:03:02 -05:00
Michael Cook (mackal)
891fa0411c
Revert "Update travis-ci to use newer VM"
...
This reverts commit 0a4ccb11aa .
2017-01-12 18:25:32 -05:00
Michael Cook (mackal)
a4fda2a951
Revert "Try newer GCC versions?"
...
This reverts commit 50a67c76e7 .
2017-01-12 18:25:25 -05:00
Michael Cook (mackal)
ffdc933ce0
Revert "Gotta update env vars too I guess"
...
This reverts commit da08a622f1 .
2017-01-12 18:25:16 -05:00
Michael Cook (mackal)
e3f15de1f8
Revert "Gotta set them actually"
...
This reverts commit 6cef5c6beb .
2017-01-12 18:25:06 -05:00
Michael Cook (mackal)
6cef5c6beb
Gotta set them actually
2017-01-12 18:19:04 -05:00
Michael Cook (mackal)
da08a622f1
Gotta update env vars too I guess
2017-01-12 18:10:45 -05:00
Michael Cook (mackal)
50a67c76e7
Try newer GCC versions?
2017-01-12 18:06:13 -05:00
Michael Cook (mackal)
0a4ccb11aa
Update travis-ci to use newer VM
2017-01-12 17:55:08 -05:00
Michael Cook (mackal)
f5827174ee
Make CheckHitChance much more live like
...
This should be fairly close to live-like.
Based on client decompiling, Torven's write up and parses and more parses.
It will probably break your server.
2016-12-25 21:11:10 -05:00
Michael Cook (mackal)
1d19bd11d0
Add Random::Roll0
...
This has the same interval ((0,N]) that the client function does
The devs have referenced this in a few posts talking about
mechanics.
2016-12-25 21:06:02 -05:00
Michael Cook (mackal)
630ea0d3c6
Fix RoF2 OP_GMHideMe
2016-12-21 13:45:18 -05:00
Michael Cook (mackal)
f53b95d141
Rework look acking a bit
...
We should no longer kick from corpse if the quest says to not loot an item
Need to investigate autoloot behavior with respect to everything still
So other cases will still kick you from the corpse (lore conflict etc)
2016-12-16 17:11:44 -05:00
Michael Cook (mackal)
e680a0f704
Change LottingItem_Struct::auto_loot to signed
2016-12-16 16:09:31 -05:00
Michael Cook (mackal)
019586abbd
Clang-format Corpse::LootItem
2016-12-16 16:03:44 -05:00
Michael Cook (mackal)
8f5ba05e75
Minor Corpse::LootItem refactoring
2016-12-16 16:02:42 -05:00
Michael Cook (mackal)
427fb08561
Merge pull request #582 from SCMcLaughlin/master
...
Additional LS config parser fixes:
2016-12-16 02:14:23 -05:00
Michael Cook (mackal)
ac0332c020
Merge pull request #581 from SCMcLaughlin/master
...
Fix potential infinite loop in loginserver's config file reader
2016-12-15 20:55:43 -05:00
Michael Cook (mackal)
c1fbfc0f44
Add support for kicking epic loot locks
...
Returning non-0 (no return in a lua/perl function = return 0 so this is best)
will prevent the client from looting the item
I still need to figure out how to make it so we don't have to kick
the player from the corpse, but maybe that's just a difference on live
2016-12-15 18:31:08 -05:00
Michael Cook (mackal)
3cc7d0db63
Fix fizzle message being the wrong color
2016-12-14 22:06:05 -05:00
Michael Cook (mackal)
bf25c65868
Merge pull request #579 from noudess/master
...
Add check for mob spell based defensive procs.
2016-12-09 19:14:05 -05:00
Michael Cook (mackal)
491cabfe8b
Fix SE_Destroy breaking respawns
2016-12-09 13:36:09 -05:00
Michael Cook (mackal)
fddb6f67ab
Update IsPartialCapableSpell based on Torven's findings
2016-12-09 13:29:46 -05:00
Michael Cook (mackal)
26985496d1
Fix Shield Specialist related SPAs
2016-12-08 22:36:47 -05:00
Michael Cook (mackal)
ab0f883191
Merge pull request #578 from noudess/master
...
Add fish names to fishing messages as per live for non junk items,
2016-12-08 16:42:27 -05:00
Michael Cook (mackal)
baf9336617
Fix RoF+ OP_InterruptCast
2016-12-06 14:12:11 -05:00
Michael Cook (mackal)
bb8fc17189
Quick fix for PP buff issue
...
This may break buffs zoning, but I don't have time to look at
2016-12-01 22:57:50 -05:00
Michael Cook (mackal)
ffbc913b9d
Rename some spell fields
2016-12-01 13:35:19 -05:00
Michael Cook (mackal)
286bfa7af6
Implement the PC/NPC only flag
2016-11-30 20:53:39 -05:00
Michael Cook (mackal)
d9e0708331
Merge pull request #576 from AthrogatePEQ/master
...
Add GetAppearance() to lua.
2016-11-28 16:53:56 -05:00
Michael Cook (mackal)
bbd2796ea4
Add ParticlePoint enum for OP_LevelAppearance
2016-11-18 13:55:04 -05:00
Michael Cook (mackal)
5a08e0ffd9
Adjust Rogue Evade drop
...
Live seems to be inconsistent with how much hate is dropped, but I parsed
~69% drop on the highest and ~39% for the lowest. So round to 70 and 40.
It was also fairly obvious there was a min hate it could drop you to,
which parsed out to ~100 hate.
2016-11-16 02:36:20 -05:00
Michael Cook (mackal)
3dec02881a
Revamp Buff slots
...
Server side we now have 63 total buff slots for clients
They match RoF/RoF2 and are mapped as 42 long, 20 short, 1 disc
The player is limited to what their clients supports, so
Tit players can have 25 buffs and 12 songs, while other can have more
When you log in, we only load up to the max your client supports,
the rest of the buffs are thrown away
Also changed is the default Max Buff slots for NPCs, they now match Tit (60)
If you are thinking about raising that, here are what some other clients support
Tit - SoF 60, SoD - UF 85, RoF - RoF2 97 (although UI only has 85 slots, you can
edit it if you want more)
Also SoD+ the pet limits match the NPC limits.
This will increase memory usage a bit, but I don't see a solution to that
Plus I think most people want this.
2016-11-15 01:37:58 -05:00
Michael Cook (mackal)
71e641c882
Merge pull request #572 from KinglyKrab/master
...
Fixed #npcspawn update.
2016-11-10 15:57:31 -05:00
Michael Cook (mackal)
b3842ba72a
Fix indent
2016-11-09 12:14:24 -05:00
Michael Cook (mackal)
a3c16ecdbe
Merge pull request #571 from AthrogatePEQ/master
...
Expose GetLowestLevel() to Lua.
2016-11-09 12:13:15 -05:00
Michael Cook (mackal)
06e2f76c05
Implement SE_SummonToCorpse
2016-11-05 14:08:00 -04:00