1
0

319 Commits

Author SHA1 Message Date
Emagi
67b045dea3 fix overriding primary weapon 2025-02-09 17:21:29 -05:00
Emagi
5bbcaa713a make web command in line for /reload spells 2025-02-09 16:39:09 -05:00
Emagi
8b4a623f42 more /reload spells junk 2025-02-09 16:37:16 -05:00
Emagi
9250118b05 More work for /reload spells when multiple zones / players are on 2025-02-09 15:25:16 -05:00
Emagi
764be385ad address the wrong lock being used for spell scripts 2025-02-09 09:30:53 -05:00
Emagi
9bfa15d628 make sure spells are cleaned up when zone is shutdown 2025-02-09 09:11:17 -05:00
Emagi
a479520c33 reverted some of the mutex lock changes for now since it wasn't resolving all reload spells issues 2025-02-08 18:19:40 -05:00
Emagi
65ed5c4f79 Revert "the destroy spells function was using the wrong mutex locks"
This reverts commit d639e5496156130373ad8f2ddedfe000a5845409.
2025-02-08 18:13:06 -05:00
Emagi
a062c5f8d7 Fix the handling in RemoveCurrentSpell 2025-02-07 14:53:23 -05:00
Emagi
b693deb4f8 have script mutex locks before spells locks 2025-02-07 14:43:06 -05:00
Emagi
d639e54961 the destroy spells function was using the wrong mutex locks 2025-02-07 14:35:00 -05:00
Emagi
921f00410b don't need to delete spell effects in the deconstructor any longer for non players. 2025-02-05 16:03:12 -05:00
Emagi
5d191927cf Fix spells to properly cleanup in function SpellProcess::CheckRemoveTargetFromSpell -- RemoveEffectsFromLuaSpell was not properly cleaning up special effects like sneak/snare/root/so on lingered on to cause a crash with dead spells with /reload spells or other activity 2025-02-04 18:45:48 -05:00
Emagi
8dff68f6ab When subsystems are reloading don't allow NPCs or Bots to try to access the spell list 2025-02-01 07:23:32 -05:00
Emagi
2d4e3f4888 Fix to clear the stealth/invis list when CancelAllStealth is called, additionally to send the update to clients 2025-02-01 06:52:55 -05:00
Emagi
31c45c884c null spawn ptr fix for SetSpellList 2025-02-01 06:52:36 -05:00
Emagi
41cc36de83 if no targets left in the spell its ok to remove, flip the flag to just remove the maintained part of the spell 2025-01-31 20:06:45 -05:00
Emagi
f5bda95372 additionally allow calc code to trigger every 10ms instead of 100ms 2025-01-30 10:04:18 -05:00
Emagi
18104e776b better enforce arriving at a waypoint and avoiding Y offsets or other bad pathing behaviors 2025-01-30 09:51:28 -05:00
Emagi
d463ed3dc5 avoid crash for disabled spell/no spell ptr 2025-01-29 22:01:51 -05:00
Emagi
4213beec95 nav path affirmations 2025-01-29 22:01:25 -05:00
Emagi
7e69739e43 allow LUA Functions for movement to use nav path 2025-01-29 15:13:26 -05:00
Emagi
7098c1dbf3 address AoM client having issues with Y coordinates above terrain when lua pathing does not properly align to terrain 2025-01-29 08:50:01 -05:00
Emagi
6f8bee17f5 try to remove gaps between objects causing players/spawns/objects to fall through 2025-01-28 15:25:06 -05:00
Emagi
782f84e67e smooth out pathing by not enforcing Y all the time, still need to do something about gaps in objects that cause spawns to fall through :-/ 2025-01-28 09:52:44 -05:00
Emagi
79a010e055 disable bank / shared bank in trade and also sellitem 2025-01-26 15:16:27 -05:00
Emagi
b8738480b2 mitigation_modifier sint16 added to info struct to allow modification of mitigation after the base is obtained from items 2025-01-26 14:59:55 -05:00
Emagi
abfba27112 mitigation vs physical support added (independently had slash, crush, pierce, physical is a combo of all 3) 2025-01-25 08:13:12 -05:00
Emagi
1342bc5af8 Update Combat.cpp 2025-01-22 11:37:50 -05:00
Emagi
883f172312 make sure to remove spell effect so we don't try to access a dead spell ptr later 2025-01-21 09:20:04 -05:00
Emagi
19cd63878c Update LuaInterface.cpp 2025-01-21 08:03:17 -05:00
Emagi
bd9f1bd8ce Fix accidentally not nullifying the spell pointer when we remove a spell effect 2025-01-21 07:37:22 -05:00
Emagi
78db10105e Lua Function GetID(Spawn) added.. 2025, it's amazing...! 2025-01-19 11:46:04 -05:00
Emagi
bd7d69c495 Additionally RemoveProc should only remove the target, not all targets in the spell 2025-01-19 10:23:57 -05:00
Emagi
b985613791 RemoveSpellBonus should only remove the target if specified, otherwise it can remove the entire target set/group accidentally 2025-01-19 09:59:42 -05:00
Emagi
e9936f1c80 script protection on spells against reuse of the lua state between proc / other spell processes 2025-01-18 18:54:10 -05:00
Emagi
dad7873dc5 LUA functions added: GetSpellCaster(Spell) and GetCasterSpellLevel(Spell) the Spell field is optional if in a spell script
db additionally had field added:

alter table character_spell_effects add column caster_level smallint(5) unsigned not null default 0;
2025-01-18 09:16:35 -05:00
Emagi
c300a5b066 Fixed hangup with remove spell due to remove target list lock 2025-01-16 12:51:09 -05:00
Emagi
3efce0abd6 call spell remove function for reason "target_dead" and "target_removed" also address the long delay between calling the remove function and the death of a spawn. Lastly made it so we can reference the spawn group id after death for a spawn since we remove it from a spawn group. 2025-01-16 12:29:24 -05:00
Emagi
e20b45eedd Fixed issues with /reload spells causing a crash 2025-01-16 10:53:12 -05:00
Emagi
d215872bdf properly restrict obtained spells with classic spells flag 2025-01-16 10:38:05 -05:00
Emagi
154ba64b9c lua spell function remove updated for lua arguments, eg. function remove(Caster, Target, Reason, ..data args..), similar to function cast(Caster, Target, ..data args..) 2025-01-15 15:03:30 -05:00
Emagi
d775c1ece5 be a bit more generous on the scale factor 2025-01-14 14:56:53 -05:00
Emagi
6f36c96a4a revert + reupload fix resistibility factor for higher tiers, properly clamp the resistibility also 2025-01-14 14:00:37 -05:00
Emagi
cd64a84d40 Revert "fix resistibility factor for higher tiers"
This reverts commit e1a02a3ef73106484c3063910bcc2d9e21645315.
2025-01-14 13:59:30 -05:00
Emagi
ff7753528d Revert "have a slightly lower pivot point to avoid negative values since most resistibility is set to >=.65"
This reverts commit 14b0a118d627a314ecebf3a723b33226a8b14f52.
2025-01-14 13:59:24 -05:00
Emagi
14b0a118d6 have a slightly lower pivot point to avoid negative values since most resistibility is set to >=.65 2025-01-14 13:57:01 -05:00
Emagi
e1a02a3ef7 fix resistibility factor for higher tiers 2025-01-14 13:50:19 -05:00
Emagi
3e447db611 fix some bad multipliers for the current xp of the level 2025-01-13 09:21:37 -05:00
Emagi
82a1885887 Added classic spell level support (aka mini ding spells) like warrior getting knee break at lvl 19.6 2025-01-13 09:06:11 -05:00