Michael Cook (mackal)
467e2d3114
Add follow getters to lua just in case
2018-11-03 18:10:36 -04:00
Michael Cook (mackal)
dbb368865c
Add some Follow stuff to lua
...
You can also disallow following code from allowing the NPC to run if
they're far enough away
2018-11-03 17:44:19 -04:00
Michael Cook (mackal)
df899bb2df
Tweak NPC AI Heal logic a bit
...
New rule: Spells:AI_HealHPPct defaults to 50
This is the default maximum HP and NPC will start a heal
The spell AI fields min_hp and max_hp are now used to override the HP
percentages they will heal at
2018-10-09 14:18:24 -04:00
Michael Cook (mackal)
d8c6c62809
Merge pull request #779 from noudess/master
...
Allow UseLevelAggro rule to be configurable.
2018-10-05 17:21:41 -04:00
Michael Cook (mackal)
7836d020ce
Add NPC Max Aggro Distance to zone table
2018-09-08 00:22:16 -04:00
Michael Cook (mackal)
ec40b3dc69
Fix bots
2018-09-08 00:11:31 -04:00
Michael Cook (mackal)
00e44285a7
Fix column cases to make people happy
...
If you already sourced, too fucking bad.
2018-09-08 00:09:14 -04:00
Michael Cook (mackal)
4276bf3208
Too many commas
2018-09-07 23:55:51 -04:00
Michael Cook (mackal)
2d84029b37
Add FastRegen* to zone table
2018-09-07 23:54:40 -04:00
Michael Cook (mackal)
766dcc464e
Fix crash
2018-08-27 12:56:46 -04:00
Michael Cook (mackal)
eb33279701
Reset various pet command states
...
This will prevent charm exploits
2018-08-26 22:19:56 -04:00
Michael Cook (mackal)
67e29a8aa7
Merge pull request #761 from fryguy503/lowlevel-mez-exploit
...
[Exploit] Prevent low level mez testing without aggro.
2018-08-25 20:27:19 -04:00
Michael Cook (mackal)
e816196edb
Merge pull request #762 from fryguy503/green-flee
...
Allow Separate CON_GRAY Flee rate.
2018-08-25 20:27:04 -04:00
Michael Cook (mackal)
16d719596b
Merge pull request #769 from fryguy503/gate_logic_heal
...
Prevent Gate if near bind location (Rule) and Heal on Gate (Rule)
2018-08-25 20:26:11 -04:00
Michael Cook (mackal)
7cc5b143fc
Make lua raid GetGroup functions signed
...
The server code is unsigned for bad reasons :P
2018-08-16 22:33:07 -04:00
Michael Cook (mackal)
ace81215a1
Correct when tanks can be hit by AE Rampage
...
Tanks will only be hit by AE Rampage if they're the only one on the
NPC's hate list. Others on hate list out ranging AE Rampage will also
prevent the tank from being hit by AE Rampage.
2018-08-16 17:13:34 -04:00
Michael Cook (mackal)
ffb9323a98
Revert "AE rampage shouldn't hit target"
...
This reverts commit 30148c3c56 .
Was thinking of wrong thing ... logs say otherwise :P
2018-08-16 13:18:00 -04:00
Michael Cook (mackal)
30148c3c56
AE rampage shouldn't hit target
2018-08-16 13:01:19 -04:00
Michael Cook (mackal)
585ef81fde
Fix lua raid GetGroup(client) and add lua raid GetGroupNumber(index)
...
This number will return group number and not let us iterate a bunch of
times to verify group numbers
2018-08-15 21:35:19 -04:00
Michael Cook (mackal)
54abeba1ce
Merge pull request #766 from noudess/master
...
Change spell logic to use min_hp from spell list.
2018-08-12 15:55:59 -04:00
Michael Cook (mackal)
e3c01d4143
Add lua entity_list function GetShuffledClientList()
...
There is cases where we need to get a random client, but
GetRandomClient() is not sufficient enough due to complex predicates
required on what tells us is a valid client. This way we can just loop
over a shuffled list and verify a client is valid instead of multiple
GetRandomClient() calls.
2018-08-05 22:55:30 -04:00
Michael Cook (mackal)
93749bc509
Add actual support for multi-zone task activities
2018-08-01 13:50:09 -04:00
Michael Cook (mackal)
483a34242b
Merge pull request #757 from fryguy503/purify-rez
...
Purfy Body Resurrection Effects fix
2018-07-22 16:53:43 -04:00
Michael Cook (mackal)
f15ba46c24
Merge pull request #759 from fryguy503/see-invis-percent
...
SeeInvis %
2018-07-22 15:25:04 -04:00
Michael Cook (mackal)
58883c2ed4
Merge pull request #755 from regneq/master
...
Quest NPCs will no longer turn and face their target if they are snea… …king, sitting, or laying/playdead.
2018-07-22 12:56:59 -04:00
Michael Cook (mackal)
87ea81cc36
Merge pull request #754 from fryguy503/disarm-implement
...
Disarm Support
2018-07-21 23:43:25 -04:00
Michael Cook (mackal)
7d0b281b7f
Merge pull request #753 from fryguy503/graveyard-placement
...
Added random graveyard corpse placement within +/- 20 units on X/Y ax…
2018-07-21 23:04:02 -04:00
Michael Cook (mackal)
983b8f7237
Merge pull request #740 from noudess/master
...
Fix HT and LOH to retry after failure to cast
2018-07-21 17:19:57 -04:00
Michael Cook (mackal)
ede21d9b10
Merge pull request #752 from fryguy503/grammar-split
...
Fixed Game breaking grammar issue with /split
2018-07-21 17:06:40 -04:00
Michael Cook (mackal)
02a3f971dd
Merge pull request #751 from fryguy503/horse-feign-fix
...
[Exploit] Prevent players from summoning horses while feigned.
2018-07-21 17:06:29 -04:00
Michael Cook (mackal)
2013063928
Merge pull request #750 from fryguy503/master2
...
Fixing incorrect operator so Appveyor will pass.
2018-07-21 17:06:03 -04:00
Michael Cook (mackal)
96d146f73c
Merge pull request #746 from fryguy503/mount-dismount-water
...
Rule: DismountWater - Causes mounts to dismount when entering liquid …
2018-07-21 13:26:11 -04:00
Michael Cook (mackal)
e06c128ced
Merge pull request #749 from fryguy503/aa-lowlevel-exploit
...
[Exploit Fix] AA Below Level Fix - When you are below level 52 with A…
2018-07-21 13:25:52 -04:00
Michael Cook (mackal)
dfa7e2bffb
Add completion emote for tasks
2018-07-20 14:06:07 -04:00
Michael Cook (mackal)
0cd4c0ac65
Update system_tables.txt
2018-07-17 14:52:32 -04:00
Michael Cook (mackal)
71e309022a
Fun fact, seconds are not milliseconds!
2018-07-15 00:34:44 -04:00
Michael Cook (mackal)
6aba38f664
Bug fix with rest timer changes
2018-07-15 00:27:51 -04:00
Michael Cook (mackal)
6ac4154acd
Don't call UpdateRestTimer when you're casting on yourself
2018-07-14 19:19:58 -04:00
Michael Cook (mackal)
6ab2871fd1
Beneficial spells will now correctly inherit targets RestTimer
...
Example PC A is fighting mob B. PC C casts a heal on PC A. PC C will
inherit the timer from PC A. This is done because beneficial spells have
a "witness" check from NPCs so there is a chance PC C would not gain
aggro and could just keep on going with no RestTimer which allows them
to fast regen while actively participating.
2018-07-14 18:52:20 -04:00
Michael Cook (mackal)
37ff8c830d
Fix /camp rest timer exploit
2018-07-14 17:41:42 -04:00
Michael Cook (mackal)
1d0b11acde
Fix get_instance_timer_by_id too
2018-07-10 13:02:53 -04:00
Michael Cook (mackal)
ade56231fc
Merge pull request #741 from AthrogatePEQ/master
...
Exposing get_instance_timer to lua
2018-07-10 13:01:55 -04:00
Michael Cook (mackal)
c08993b60b
Bit of Task Revamp (shared still unimplemented)
...
Lots of change, packets should be better defined.
Task type tasks are now supported
2018-07-09 16:36:18 -04:00
Michael Cook (mackal)
07f3ab955f
Fix issue with Quest types
2018-07-09 14:01:52 -04:00
Michael Cook (mackal)
46bdbfc454
Merge branch 'master' into tasks
2018-07-09 13:17:17 -04:00
Michael Cook (mackal)
c0c34cf07a
Update ClientTaskState::ShowClientTasks
2018-07-08 23:32:30 -04:00
Michael Cook (mackal)
4c6de9b991
Steal buffer from SerializeBuffer now
2018-07-08 23:03:53 -04:00
Michael Cook (mackal)
2d456ba8c9
Add task faction reward
...
This just reuses NPC faction ID stuff since it does everything we want
and isn't actually tied to NPCs :P
2018-07-08 21:40:04 -04:00
Michael Cook (mackal)
3969ac346d
Remove startzone from tasks table since it's not needed
2018-07-08 18:42:26 -04:00
Michael Cook (mackal)
2418c3dd74
Remove old Text* stuff
2018-07-08 18:33:34 -04:00
Michael Cook (mackal)
7218128d03
Update TaskManager::SaveClientState
2018-07-08 18:07:08 -04:00
Michael Cook (mackal)
62b78fb9a8
Update TaskManager::LoadClientState
2018-07-08 18:01:14 -04:00
Michael Cook (mackal)
7e0c4eb93f
Reformat save/load since they were lacking tabs
2018-07-08 17:35:37 -04:00
Michael Cook (mackal)
9b229779db
Bunch more functions
2018-07-08 16:55:08 -04:00
Michael Cook (mackal)
b59a41829b
Fix more functions
2018-07-08 16:36:00 -04:00
Michael Cook (mackal)
160b56b4b7
Merge branch 'master' into tasks
2018-07-08 01:47:11 -04:00
Michael Cook (mackal)
0c899b2caa
Update more functions
2018-07-08 00:29:46 -04:00
Michael Cook (mackal)
51baccc10f
Merge branch 'master' into tasks
2018-07-06 00:59:45 -04:00
Michael Cook (mackal)
955b2afb18
Update GetTaskActivityDoneCountFromTaskID and GetTaskStartTime
2018-07-06 00:59:19 -04:00
Michael Cook (mackal)
0600b6834a
Update IsTaskActivityCompleted, GetTaskActivityDoneCount, GetTaskActivityState
2018-07-05 14:58:01 -04:00
Michael Cook (mackal)
cf30056cf6
Update FailTask, TaskOutOfTime, and TaskPeriodicChecks
2018-07-05 00:45:51 -04:00
Michael Cook (mackal)
0367bc3465
Task update events should be task type aware now
2018-07-05 00:13:19 -04:00
Michael Cook (mackal)
2f4fb46007
Optional is a DWORD in older packets
2018-07-04 14:36:18 -04:00
Michael Cook (mackal)
26f1d450fc
OP_TaskActivity for older clients
2018-07-04 13:30:24 -04:00
Michael Cook (mackal)
a7c1fad213
Fix up OP_OpenNewTasksWindow for older clients
2018-07-04 01:57:54 -04:00
Michael Cook (mackal)
6d60f619c0
Merge branch 'master' into tasks
2018-07-03 01:20:51 -04:00
Michael Cook (mackal)
60ac0f7888
Add WriteLengthString(const std::string &str)
2018-07-03 01:15:40 -04:00
Michael Cook (mackal)
d2679f065a
Merge branch 'master' into tasks
2018-07-02 22:02:07 -04:00
Michael Cook (mackal)
0ea82b5d88
Bunch more work on fixing up DB and packets
2018-07-02 22:01:17 -04:00
Michael Cook (mackal)
1b8736188d
Merge branch 'master' into tasks
2018-06-29 00:13:31 -04:00
Michael Cook (mackal)
df43d33def
Merge branch 'master' into tasks
2018-06-28 22:17:16 -04:00
Michael Cook (mackal)
70f55179b6
Switch netcode to steady_clock
2018-06-28 22:16:25 -04:00
Michael Cook (mackal)
80b4248315
Merge branch 'master' into tasks
2018-06-27 21:23:00 -04:00
Michael Cook (mackal)
ee95a2a0c8
Remove uneeded DumpPacket in Handle_OP_ItemLinkClick
2018-06-27 21:22:39 -04:00
Michael Cook (mackal)
3d3eee9772
Merge branch 'master' into tasks
2018-06-24 23:22:02 -04:00
Michael Cook (mackal)
3498f7a56f
Bunch of work
2018-06-24 23:21:35 -04:00
Michael Cook (mackal)
0558b1bc48
Merge pull request #739 from noudess/master
...
Changes to make Harmony work.
2018-06-24 14:38:33 -04:00
Michael Cook (mackal)
39d06a4012
Merge branch 'master' into tasks
2018-06-20 14:19:48 -04:00
Michael Cook (mackal)
bce92c5e02
Add support for innate self targeted spells
...
Currently this just includes checking SpellType_InCombatBuffs
2018-06-20 14:18:39 -04:00
Michael Cook (mackal)
7d18b90788
Fix MAX_ACTIVE_TASK messages
2018-06-17 00:17:59 -04:00
Michael Cook (mackal)
58ad1641e6
Fix string IDs to be embedded in says
2018-06-17 00:05:53 -04:00
Michael Cook (mackal)
18c73526aa
Gotta initialize stuff ...
2018-06-16 23:52:25 -04:00
Michael Cook (mackal)
4c826dfbcc
Change task selector quest function to not directly call the Send
...
function
2018-06-16 23:06:46 -04:00
Michael Cook (mackal)
6708cd3d75
More work on tasks
2018-06-16 22:42:26 -04:00
Michael Cook (mackal)
9bd5f36129
Rename ClientTaskState::ActiveTasks to ClientTaskState::ActiveQuests
...
because that's what it is
2018-06-13 18:06:08 -04:00
Michael Cook (mackal)
247d478990
Rename MAXACTIVETASKS to MAXACTIVEQUESTS
2018-06-13 17:51:35 -04:00
Michael Cook (mackal)
c35e010461
Tweak SQL
2018-06-13 17:23:07 -04:00
Michael Cook (mackal)
0765d273ea
More changes to task system
2018-06-13 17:08:21 -04:00
Michael Cook (mackal)
4662f29f11
Change TaskInformation strings to std::string
2018-06-12 13:56:17 -04:00
Michael Cook (mackal)
9e64132261
Change the ActivityInformation::Text*s to std::string
2018-06-12 00:32:13 -04:00
Michael Cook (mackal)
6b64a8183d
Fix issues with TaskGoalListManager::LoadLists
2018-06-11 23:54:42 -04:00
Michael Cook (mackal)
c3e007597e
Remove TaskGoalList_Struct::Size since it's not needed
2018-06-11 22:49:20 -04:00
Michael Cook (mackal)
6399710c1d
Update TaskGoalListManager::GetListByID to std algos
2018-06-11 22:25:44 -04:00
Michael Cook (mackal)
e3dfb2f19d
Switch TaskGoalList_Struct::GoalItemEntries to std::vector
2018-06-11 21:58:11 -04:00
Michael Cook (mackal)
4fec8a2b75
Switch TaskGoalListManager::TaskGoalLists to std::vector
2018-06-11 21:49:32 -04:00
Michael Cook (mackal)
653824ae9e
More task comments ..
2018-06-07 18:14:09 -04:00
Michael Cook (mackal)
b61f612fbe
More comments
2018-06-05 22:39:48 -04:00
Michael Cook (mackal)
028dbc4bda
Add ActivityCollect (unimplemented) and more comments
2018-06-05 22:16:53 -04:00
Michael Cook (mackal)
49b90eae76
More comments to task system
2018-06-05 13:12:29 -04:00
Michael Cook (mackal)
65acefc6b1
Comment task selection packet some
2018-06-04 23:54:57 -04:00