Commit graph

1717 commits

Author SHA1 Message Date
Emagi
8b328c87df Make share button available independent of quest being hidden, visible, got mixed up in the last update 2023-04-02 07:33:07 -04:00
Emagi
2b1948da49 File missing from last night update 2023-04-02 07:13:37 -04:00
Emagi
7299addd47 Fix #509 - quest crash cleanup, AddHate fixed for non spell function cal, fixed all quests being hidden in journal, reduced time to update quest journal from 300ms to 50ms 2023-04-01 20:32:48 -04:00
Emagi
00d92aed43 Stop crash when player/spawn zone is not yet set 2023-03-30 06:22:09 -04:00
Emagi
0bad6569cb If only the client was there it could be told the zone wasn't ready.. 2023-03-29 19:29:32 -04:00
Emagi
119d228b8c Protection on overflowing unsigned values or negatives in floats in terms of miscalculation in combat and other stats 2023-03-28 18:33:58 -04:00
Emagi
957fa27b5c Pets and bots now properly update their damage upon levelling with their owner 2023-03-28 09:19:31 -04:00
Emagi
00e6cdaf61 weaponstats command now supports a target, when client summons a npc it will stop movement, helps when summoning pets, zoning should now properly put you in your group instance when available 2023-03-28 09:04:45 -04:00
Emagi
12f7170625 Fix GetOwner pointer from causing potential crashes 2023-03-27 18:02:01 -04:00
Emagi
25baa666e7 Best to keep this close..! 2023-03-27 17:45:26 -04:00
Emagi
7a2d357e16 Fix crash on setting pet stats after summon, owner was not set, fixed pets not surviving camp and popping back into game, added prespawn script to SummonPet 2023-03-27 17:33:30 -04:00
Emagi
d319056047 Dont save player updates until client is successfully in zone 2023-03-24 17:21:29 -04:00
Emagi
658658e1a6 - Fixed popping non-existent items from overflow causing a crash
- Addressed spells being removed from character on /camp and disconnect
- LUA AddRecipeBookToPlayer(Player,  BookID)
BookID = SELECT id, name, tradeskill_default_level FROM items  WHERE item_type='Recipe'
- LUA RemoveRecipeFromPlayer(Player, RecipeID)
RecipeID = SELECT id from recipe where name='RecipeName';
2023-03-24 13:37:05 -04:00
Emagi
8bf5ec84b7 Restrict health pct update for pets only if the pet is got max_hp set to avoid divide by 0 2023-03-24 06:30:48 -04:00
Emagi
814a9ef958 Some clearing/protection of quests being deleted 2023-03-23 06:32:50 -04:00
Emagi
417bea4214 - Spells now has class lists to reduce the time to assign new spells by level
- Fix #467 Tradeskill spells are now sent upon levelling (if not already assigned by starting spells)
- Wards now limit themselves to one "tic"/"trigger" per hit.
- New LUA Functions:
DeleteSpellBook(Player, type)
type = bit operand combination of:
		DELETE_TRADESKILLS = 1,
		DELETE_SPELLS = 2,
		DELETE_COMBAT_ART = 4,
		DELETE_ABILITY = 8,
		DELETE_NOT_SHOWN = 16
Eg. tradeskills and spells = (1+2) = 3

SendNewAdventureSpells(Player) - sends adventure spells by their level
SendNewTradeskillSpells(Player) - sends tradeskill spells by their level
RemoveSpellBookEntry(Player, spell_id)
2023-03-18 17:52:36 -04:00
Emagi
1e636ef8a9 Fix wards wearing off after one hit when the max count is not set 2023-03-18 06:58:09 -04:00
Emagi
8d52f85e2c Enter House button is fixed! No longer intermittently displays as grey 2023-03-15 14:08:16 -04:00
Emagi
36901efacc Fix typo on damage type vs packet result 2023-03-05 19:21:26 -05:00
Emagi
0c95946f48 Fix #416 allow FOCUS damage type, damage type 14 assigned, example: DamageSpawn(NPC, Spawn, 192, 14, 100, 100)
Does 100 damage with min/max set the same
2023-03-05 19:15:59 -05:00
Emagi
b5aec63d57 Fix chests not opening because they were set to alive 2023-03-05 06:10:44 -05:00
Emagi
3ba895b039 Fix #507 - players dont gain hp while dead so revive works correctly at all times, Fix #232, added spell/item bonus type Power Cost Reduction type is 133, float eg 10.0 is 10% out of 100.0 for percentage 2023-03-04 14:37:45 -05:00
Emagi
304f0d2bca ignore retry attempts for now 2023-02-27 09:00:34 -05:00
Emagi
622ad6347e Remove wait close to avoid MState mutex lock issue 2023-02-27 08:33:19 -05:00
Emagi
b47c8546e4 Address streams stuck in wait-close state 2023-02-24 15:12:44 -05:00
Emagi
c6bebcd532 Reintegrated full linkdead 120 second timer,, groups can have linkdead players remain in group 2023-02-24 15:12:12 -05:00
Emagi
59c049cb08 mem leak fixes 2023-02-24 11:00:55 -05:00
Emagi
56c51b6759 Consolidate use of grid_id and use SetLocation / GetLocation 2023-02-23 10:25:57 -05:00
Emagi
32862500e4 Added Total Power listing to spawn details command display 2023-02-17 10:16:03 -05:00
Emagi
9eabdaf5f5 Enforce given_by type in spell_tiers for spells, spellscroll given_by type is now ommitted from being provided to auto spell lists 2023-02-17 10:03:50 -05:00
Emagi
3ee4e5e105 Fix #304 - quest sharing and delete restrictions, check DB sql for required updates 2023-02-16 18:14:48 -05:00
Emagi
6f21dcd29d Avoid crash on calling AddSpellBonus via lua functions without a spell, also protection on bonuses to not require one 2023-02-16 18:12:34 -05:00
Emagi
f17d884f72 oops.. 2023-02-15 19:10:10 -05:00
Emagi
aedc80a827 Removed redundant boolean for IsFullyLoggedIn, replaced with IsReadyForUpdatees 2023-02-15 19:07:40 -05:00
Emagi
9f19e692cc Additional client login protections 2023-02-15 18:59:08 -05:00
Emagi
1918ad44ce defend against bad client versions 2023-02-15 15:57:57 -05:00
Emagi
1538c41bbc Further attempt to fix ghosts in the machine, clients removing early and still having packets sent to them 2023-02-15 15:49:40 -05:00
Emagi
2ea1982355 Fix #318 - added spawn set scared_strong_players [0|1]. NPCs will be afraid if gray con and in aggro range, needs faction to check aggro list 2023-02-12 13:09:27 -05:00
Emagi
dbf6d0a630 Fix accidental Focus skill check/increase when it is already done below 2023-02-10 19:33:37 -05:00
Emagi
f7ab072a1b Fix #452 - implement skill bonus caps. Fix for conversation crash with CloseItemConversation. Attempts to address spawns being called during deletion like RemovePet 2023-02-10 10:41:53 -05:00
Emagi
effe13a590 Addressed Spawn changes being sent while the client is being removed from the spawn map 2023-02-07 10:04:07 -05:00
Emagi
81dfccef28 Allow region tics to occur when a node is deleted without second pass 2023-02-07 08:34:44 -05:00
Emagi
f743d9ef5e Resolve deleting grids from a spawn causing a crash 2023-02-07 07:28:25 -05:00
Emagi
8571729d8a Address some issues with dead spawn pointers when calling grid map 2023-02-07 07:27:47 -05:00
Emagi
94dd2d260d Info, Position and Visual sizing variables were globally used in the Spawn class, changed to a local returned variable to avoid buffer overruns when the change functions are called again before the size variable is pulled from its global variable 2023-01-28 07:42:20 -05:00
Emagi
5de0b9b4b0 reverse previous excessive locks 2023-01-16 19:54:18 -05:00
Emagi
355ac44bdb Make sure spawn is set as deleted 2023-01-16 14:55:33 -05:00
Emagi
db9a5da85a Patch up missing removal points 2023-01-16 14:51:22 -05:00
Emagi
dd718e7d78 Patch up missing removal points 2023-01-16 14:49:17 -05:00
Emagi
6351a004f9 Last try.. 2023-01-13 15:02:05 -05:00