Commit graph

1880 commits

Author SHA1 Message Date
Emagi
ed35cb6516 Additional protections for GetZone not being set on spell->caster within LUA function usage 2023-04-14 06:42:37 -04:00
Emagi
e2b8770ac3 avoid crash when GetZone is not set for spell caster 2023-04-14 06:12:22 -04:00
Emagi
fb69ed160c fix spawn sign updates in SpawnSet 2023-04-09 20:45:21 -04:00
Emagi
f951476e66 make consistent quest status between the two packets 2023-04-05 17:26:51 -04:00
Emagi
a281bb48a8 Another broken point for quest display 2023-04-05 17:21:23 -04:00
Emagi
fd58d70daf Fix quest display status 2023-04-05 17:18:12 -04:00
Emagi
f5fe7737d5 temporarily removed CanReceiveQuest check in OfferQuest to see if it adddresses an issue with the content server 2023-04-04 20:01:41 -04:00
Emagi
87d2b79bb4 fix benign cant send quest step update, forgot a return true 2023-04-04 08:51:49 -04:00
Emagi
1fec040744 try to address a locking issue with MPlayerQuests 2023-04-03 20:42:55 -04:00
Emagi
78b4a09627 avoid somehow having quest id 0 passed into the db 2023-04-03 20:23:02 -04:00
Emagi
b62b842bf2 ignore.. lol 2023-04-02 18:57:02 -04:00
Emagi
4e03d5e2a1 Fix spawn database lookup to cache right database id, not spawn id 2023-04-02 18:53:35 -04:00
Emagi
b1c08ef4ad Fix Attack limited to just player targets 2023-04-02 17:48:56 -04:00
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