Commit graph

530 commits

Author SHA1 Message Date
Image
ac1ecda564 Some equip slot checks to make sure LUA isn't abused for wrong slot numbers 2021-01-17 08:46:05 -05:00
Image
60f1130466 Some EquipmentItem locking fixes 2021-01-17 08:38:51 -05:00
Image
529a260d3e Some equipment lock fixes (not all resolved yet) plus LUA equip functions, regular mail without items works
Partial address issue #246 - normal mail can be sent/received without corrupting the packet.  'Double' 0x80 item packets need serialize support, LE was working on it for crafting, holding off fully addressing 246 with that addition.

Fix #253

bool return = SetEquippedItemByID(Entity, slot, item_id)
bool return = SetEquippedItem(Entity, slot, item)
return = false if it fails to set the item, means the slot is in use already, have to unequip first

UnequipSlot(Entity, slot, no_delete_item) -- does delete the item upon unequipping by default, otherwise set no_delete_item = true
SetEquipment(Entity, slot, type, r, g, b, h_r, h_g, h_b) -- (r = red, g = green, b = blue, h_ = highlights)
2021-01-17 08:31:12 -05:00
Image
ce7cc092d3 Wait a minute for hangup in zone instead of 30s 2021-01-17 08:28:34 -05:00
Image
13f56a07db Quest updates such as the quest flag/leaf over a kill target now displays properly
Fix #264
2021-01-17 08:27:19 -05:00
Image
38929e5c17 ModelViewer / MapEditor updated with the latest EQ2Region code / Map code utilized 2021-01-12 08:07:56 -05:00
Image
1b95c72543 Fixed doors that have a LUA script, butn o usedoor defined, they will open correctly if no usedoor function exists 2021-01-12 07:57:11 -05:00
Image
6304430e3a Quest class constructor mgmt, don't need to always create the quest 2021-01-12 07:56:54 -05:00
Image
567117054d LUA support for triggering a door and overriding via spawnscripts vs code 'always accept open door'
Fix #248
2020-12-31 17:58:36 -05:00
Image
10b1a4e8d0 allow body drops with body_drop item db entry
Fix #244

alter table items add column body_drop tinyint(3) not null default '0';
2020-12-31 17:57:53 -05:00
Image
29f797d71c Signs can spawn in with /spawn create sign
Fix #247
2020-12-31 17:56:26 -05:00
Image
7736005995 Fix some missing water detection
Fix #252

If we go outside the bounds of the region then its likely a water based area, a region debug log exists to review this behavior more.
2020-12-31 17:53:45 -05:00
Image
54db6a162e fix water in certain areas w/ no debug 2020-12-30 15:47:01 -05:00
Image
aa9f76727a Revert "Fix water in certain areas"
This reverts commit b05e4d0fb0.
2020-12-30 15:46:42 -05:00
Image
b05e4d0fb0 Fix water in certain areas 2020-12-30 15:46:07 -05:00
Image
cb6ed3a647 Ninja patch gfaydark crash cause its hitting bsp tree max size node 4294967295? 2020-12-29 21:09:46 -05:00
Image
362daada59 Immunity support updates, player mail, spell heal pct
Fix #219
Fix #220
Fix #223
Fix #243
Fix #245
2020-12-27 16:15:57 -05:00
Image
f85294d6a0 Support for /movecharacter
Fix #199
/movecharacter name zonename

    updates the characters table, moves to safe x,y,z,heading of zone
    character should be logged out, otherwise there is no point to using this command (just gets overwritten on char save).

- /castspell command updated for third argument, when set to '0' will cast as 'self' as it were the target.  eg /castspell 1234 1 0 (will cast spell id 1234 tier 1 and self cast it on your target)
2020-12-27 16:13:26 -05:00
Image
940ff104be Capricorn phase 2020-12-27 16:08:09 -05:00
Image
d4b59319ce Techwizz: Fix CMake to include boost libraries 2020-12-21 15:17:41 -05:00
Image
eaca445168 Fix crash on maintained spells 2020-12-20 21:16:02 -05:00
Image
463c6ce53a InfoStruct accessible in LUA/mutli-thread
Fix #239

GetInfoStructString(Entity, fieldname)
GetInfoStructUInt(Entity, fieldname)
GetInfoStructSInt(Entity, fieldname)
GetInfoStructFloat(Entity, fieldname)

SetInfoStructString(Entity, fieldname, value)
SetInfoStructUInt(Entity, fieldname, value)
SetInfoStructSInt(Entity, fieldname, value)
SetInfoStructFloat(Entity, fieldname, value)
SetCharSheetChanged(Player, bool)
2020-12-20 17:49:03 -05:00
Image
d9b90e1ed8 eq2world project update for LUA + debug mode (better tracing) 2020-12-20 17:47:32 -05:00
Image
d82d5cf9bd std namespace checks that need to be fixed in c++17
using namespace std is causing issues with bind, using :: to workaround for now until c++17 update
2020-12-20 17:45:03 -05:00
Image
091f962210 LUA 5.1 -> 5.4
LUA 5.4 upgrade, bit operand support, better memory management/cleanup (per LUA changelog), and more..

Fix issue #238
2020-12-20 17:44:28 -05:00
Image
96debb941c Fixed titles, make sure to source in DB update!
Fix #230
- Fixed titles, DB and code were inconsistent thus / commands did not work
- LUA Functions added:

AddMasterTitle(titleName, isPrefix) -- adds a new title all characters can use, isPrefix is 0 or 1, 1 for prefix, 0 for suffix
- returns master title id (sint32) -- if the title already exists, then it re-uses that id

AddCharacterTitle(Spawn, titleName) -- adds a character title to a spawn if not already present

- returns character title index id (sint32)

SetCharacterTitleSuffix(Spawn, titleName) -- sets the players suffix name, must have title already, otherwise AddCharacterTitle needs to be called first
SetCharacterTitlePrefix(Spawn, titleName) -- sets the players suffix name, must have title already, otherwise AddCharacterTitle needs to be called first

ResetCharacterTitleSuffix(Spawn) - empties title suffix
ResetCharacterTitlePrefix(Spawn) - empties title prefix

Example usage of some of the LUA commands:
	AddMasterTitle("Stupendously Special", 1) -- create new title for all players, is prefix
	AddCharacterTitle(Spawn, "Stupendously Special") -- add title to the current player
	SetCharacterTitlePrefix(Spawn, "Stupendously Special") -- set the characters current prefix to the newly created title
2020-12-12 08:08:36 -05:00
Image
ba80ab2078 Fixed AA commands handler ids being wrong, new lua functions
- char sheet code updated to show unassigned AA, prestige, tradeskill prestige pts

LUA Functions:

- SetInvulnerable(Spawn, true/false)
- GetAAInfo(Spawn, type)
- SetAAInfo(Spawn, type, value)
type can be, assigned_aa, unassigned_aa, assigned_tradeskill_aa, unassigned_tradeskill_aa, assigned_prestige_aa, unassigned_prestige_aa, assigned_tradeskill_prestige_aa, unassigned_tradeskill_prestige_aa
2020-12-09 22:30:03 -05:00
Image
68286ef1e2 oops removed pointless double if/else query (redundant dduhh) 2020-12-06 16:41:53 -05:00
Image
529a402379 UpdateStartingZone function changed to grab city_zone and avoid select/join query (just use already obtained values from first query) 2020-12-06 16:38:02 -05:00
Image
19e3e53a8c fixed an iterator bug with solo/group ho 2020-12-03 13:30:10 -05:00
Image
841f367139 Sanity checks to make sure Maps directory and Regions directory exists 2020-12-03 09:08:14 -05:00
Image
8532c5741b deadlock fix for mLUAHistory when SetPlayerHistory is called in LUA 2020-12-03 07:52:04 -05:00
Image
2f8d68244d Address starting_zones limitation, fix harvesting / removespawn crashes
Fix #228
Fix #229

/waypoint now allows target if you are a GM (over 100 status)
2020-11-29 22:47:48 -05:00
Image
edd993d42a Fix crash in DismissPet when owner dies
Fix #224 crash
2020-11-24 21:48:10 -05:00
Image
287307c397 if spell state is null don't process spell
Fix #226 - should mitigate at the very least, help us identify why this is happening
2020-11-24 21:47:35 -05:00
Image
effd7100c9 Added muted locking on the world maps / region maps.. in case two of the same instance load same time 2020-11-22 22:07:10 -05:00
Image
66505ccea3 RegionScripts, lava/death region support
WorldServer side of Addressing issue #203 and issue #202
2020-11-22 15:30:54 -05:00
Image
236a906e77 Updating milestone in version to sagittarius 2020-11-22 15:20:33 -05:00
Image
9f4a3fc2aa Fix a fd leak (unlikely) 2020-11-06 23:30:44 -05:00
Image
80eaa59564 fix the HO ProcessSpell call, was causing harvest/spells to call "tick" instead of "cast"
Fix #213
2020-11-06 23:30:31 -05:00
Image
9bcd1eeb47 Fix quests dialog crashing in AoM
Fix #212
2020-11-06 23:29:26 -05:00
Image
6be433e3c2 Fix runback
Fix #212
2020-11-06 23:29:08 -05:00
Image
9f92e1f5f1 Update LuaInterface.cpp 2020-11-06 23:27:11 -05:00
Image
b1b036f3a2 Fix crash on /findspawn with no arguments 2020-11-06 23:26:57 -05:00
Image
21066e2174 model viewer exe updates (ugh) 2020-11-06 17:16:42 -05:00
Image
87932815a5 restore exportregion option 2020-11-06 17:16:18 -05:00
Image
072500202f model viewer exe updates 2020-11-06 17:01:36 -05:00
Image
a5e510bf72 model viewer exe updates 2020-11-06 17:00:08 -05:00
Image
d2ff3c4c0d reintegrated water changes into model viewer 2020-11-06 16:59:58 -05:00
Image
fa76b7df01 ModelViewer EXE updates 2020-11-06 16:37:15 -05:00