Commit graph

443 commits

Author SHA1 Message Date
image
c9b3d3aa1d SetSpellDataIndex and GetSpellDataIndex added to work with custom spell functionality
eg. modify painbringer spell in an item to do more damage than default 3,5 for indexes 2,3
90044 |    1 |           2 | INT        | 3     | 0      | 0
90044 |    1 |           3 | INT        | 5     | 0      | 0

Spell = GetSpell(90044, 1)

SetSpellDataIndex(Spell, 2, 45)
SetSpellDataIndex(Spell, 3, 50)
CastCustomSpell(Spell, Player, Player)
2020-09-22 23:02:48 -04:00
image
be39bb16a3 fixed crash bug running process when we should be removing the dead client 2020-09-22 23:01:25 -04:00
LethalEncounter
6ac60284b3 Merge branch 'master' of http://cutpon.com:3000/devn00b/EQ2EMu 2020-09-22 22:12:58 -04:00
LethalEncounter
c61588803c Added Pre-boat Lore narration (books) to the Boat Tutorial zone. 2020-09-22 20:33:50 -04:00
LethalEncounter
e486b1acc9 Fixed bug with zoning crashing the 283 client 2020-09-20 22:41:03 -04:00
LethalEncounter
81bd804af2 Fixed bug that caused the server to not be compilable on Linux 2020-09-20 21:38:18 -04:00
LethalEncounter
2e903f5f0b Fixed death sounds if the client was lower than the underworld of the zone (we never set it properly) 2020-09-20 14:50:53 -04:00
LethalEncounter
3ea7ffebb6 Merge branch 'master' of http://cutpon.com:3000/devn00b/EQ2EMu 2020-09-19 20:54:44 -04:00
LethalEncounter
ebddaba763 Tutorial instructions for the Far Journey zone
Standardized the message numbers and will send the correct one based on client version
Fixed /tell to not assume that both clients were the same version
Tons of quest fixes
Fixed various spawn bugs
2020-09-19 20:38:00 -04:00
image
a54d7a4dc2 Fix a queued spell crash with custom spells 2020-09-10 12:44:12 -04:00
image
679c1bd779 Player Error log when a item is used but the display charges is 0 2020-09-10 12:16:14 -04:00
image
c21ee782ec Stop potential leak if CastCustomSpell is cut short 2020-09-10 12:12:36 -04:00
image
2efb43d1f1 Update Spells.cpp 2020-09-10 07:39:38 -04:00
image
9ebe3fbec0 Spell Copies will pull spell effects / lua data also -- just in case 2020-09-10 07:38:04 -04:00
image
913f72b5ba Complete LUA Custom Spell Implementation
Complete Fix #196 - need to rebuild the SpellData structure so as to not mess with the base Spell's memory.  Also delete the inner spell when we RemoveSpell since its only a one-off.
2020-09-10 07:26:32 -04:00
image
900a32b259 LUA additions
Fix #196 - LUA custom spell support (for things like item scripts)
Fix #195 - Alignment LUA functions
CastSpell now has a cast_time argument extended to it
2020-09-09 23:54:23 -04:00
image
ff02b05cfd Merge branch 'MoreLuaDebug' of pboyd04/EQ2EMu into master
looks good
2020-09-07 22:16:34 +00:00
Patrick Boyd
6785c8d2d5 Add more LUA debug functions 2020-09-07 16:22:02 -05:00
Patrick Boyd
dd157479b9 Add CMake for root + Login/WorldServer 2020-09-06 13:18:17 -05:00
image
0701fb21a9 restore OfferQuest changes accidentally removed.. 2020-09-05 23:05:00 -04:00
image
897df23280 Fixed async query, added new reason string to remove spell function in LUA
- Fixed a async query for npc_appearance on skin_color to use insert param
- spell 'remove' function now has third parameter 'reason', canceled, expired, purged, death and pet_death
2020-09-05 22:31:04 -04:00
Patrick Boyd
2a3baec376 Add debug prints to OfferQuest + fix bug in Jacques spawn script 2020-09-04 21:00:33 -05:00
image
b3ff45314c custom spawnset result message for skin_color 2020-09-04 08:05:15 -04:00
image
81aa1f23e3 LUA SpawnSet and SpellHeal updates
SpawnSet(NPC, "skin_color", "255 0 0", false, true)

skin_color takes in 3 arguments as a string, R G B
two new parameters after value:
- no_update, when set to true (default false, its an inverse flag of send_update) we will not send update of spawn changes
- temporary_flag, when set to true database is not update (default false again to keep compat with LUA scripts).

SpellHeal(Spawn, "heal", min, max, NPC, 0, 0, "New Spell Name")
2020-09-04 07:31:07 -04:00
image
d13f594c8c Merge branch 'ReduceCompilerWarnings' of pboyd04/EQ2EMu into master
appreciate the fixes, thanks!
2020-09-03 21:07:35 +00:00
Patrick Boyd
3078e12938 Reduce compiler warnings in login server 2020-09-03 14:43:40 -05:00
image
5957ec2042 Fix crash on zoneserver shutdown
Fix #179
2020-09-03 13:19:50 -04:00
image
b908936a6e crash fix with CastProc on dead spell ptr
Fix #186
2020-08-31 23:17:15 -04:00
image
dd01a9ce4a Fix locking release for updating logq 2020-08-31 21:57:54 -04:00
image
7ae7d637a3 Protection to group members and also heroic opportunities (avoid crashes)
Fix #185
2020-08-31 21:57:42 -04:00
image
a41aa0fa6d SetQuestsRequired is now mutex protected, trying to prevent crash on deconstructor 2020-08-30 17:48:46 -04:00
image
5bf65b9399 Protection on group member info when updates are made
Prevents corruption in the group member pointers.. clients couldn't see each other in group lists or chat to each other depending on special conditions
2020-08-30 08:29:19 -04:00
image
45710414ec Group members should now always be temp removed on zoning/client deconstruct 2020-08-30 07:30:22 -04:00
image
def9e92b21 crash/leak for loot fixed 2020-08-30 07:30:07 -04:00
image
de53282c12 changed windows watchdog behavior to not delete zoneserver 2020-08-28 21:26:40 -04:00
image
829b930f82 Fix Pet command with no arguments
Fix #183
2020-08-28 21:26:27 -04:00
image
0341a2f210 Remove old data structure from struct_data map, prevents memory leak / buffer overflow
Fix #182 may also be the reason for Fix #180
2020-08-28 11:19:02 -04:00
image
2ebc48c157 Spawn indexes in Player class now protected by mutex
Fix #180
2020-08-28 11:18:22 -04:00
image
cbb399fad4 Update Entity.cpp
Protection for Fix #181
2020-08-28 11:15:56 -04:00
image
56a987274d fix to watchdog code to remove zone entry in iterator when we force shutdown 2020-08-26 07:36:56 -04:00
image
ea88e22405 more spell crash/hang fixes
- Fix lifetime of remove_target_list Spawn* -> int32 entity ID (resolve entity id to spawn on demand, makes sure we don't have a dead ptr)
- Fix for hang behavior with mutex lock when coming in from LUA spell functions
2020-08-25 15:41:40 -04:00
image
53d3114980 deadlock fix for spells code 2020-08-25 14:20:10 -04:00
image
dc98a6035e Zone watchdog logic -- attempt to force shutdown a hung/frozen zone
after 30 seconds of zone process hung, attempt normal shutdown.   If at 60s then force SpawnProcess/ZoneProcess threads to cancel (only linux supports 60s feature to cancel thread).  For windows 60s+ is only notification and does not attempt to cancel threads.

second stage for linux may/may not succeed (either shuts the zone down or crashes the world).  Idea being this is worst case scenario to try to recover/make server owner aware of the hung nature of the zone.
2020-08-25 13:34:46 -04:00
image
7a86840df0 Spell stability fixes (various crashes, bad pointer handling)
Fix #171
Fix #173
2020-08-25 13:32:15 -04:00
image
ab226c00f8 Fix examine info crash
Fix #168
2020-08-24 07:39:53 -04:00
image
a13bc1c7fd fixed unexpected resizing of mobs in combat 2020-08-23 22:54:59 -04:00
image
0d17a539ba Update LuaFunctions.cpp 2020-08-23 22:54:43 -04:00
image
0082debfed fixed crash with threat transfer 2020-08-23 22:54:34 -04:00
image
4a427009c9 version update to virgo 1.0 2020-08-23 22:54:24 -04:00
image
f84d750380 Exe/Binary update for model viewer 2020-08-22 23:08:24 -04:00