Commit graph

12 commits

Author SHA1 Message Date
Chris Miles
359471eb8e
[Handin] Item handin overhaul (#1403)
* [Handin] Item handin overhaul

* Update items.lua

* No-op guild tome hand-in

* swap methods
2025-02-03 16:52:51 -06:00
hg
2600236b26 Fix returned item data in items module
The return_data table is being used by table.concat to join a string of
returned items. Since accepted trade items were not being set in this
table, it left gaps so the array part was only valid to the first
accepted item slot.

This caused two issues:

- Depending on the gaps in the return item table, concat could error
  which would halt any event_trade that used it. For example if an
  item was accepted in slot 1 (t[1] nil) with a returned item in t[2],
  concat errored:  `invalid value (nil) at index 1 in table for 'concat'`.

  Since this error only occurs with some gaps, it may be an edge case
  with lua 5.1 that was fixed in later versions.

- Any returned items that were traded in slots after the first accepted
  trade slot were not added to the returned item string for player events
2023-09-27 21:49:51 -04:00
Trust
b143f729d6 Merge branch 'master' of github.com:ProjectEQ/projecteqquests into true_false_cleanup 2023-08-15 12:30:38 -04:00
Trust
9ee2a06772 Replace == bool and ~= bool 2023-08-15 11:39:43 -04:00
Trust
992aea65f9 GetClass() magic number cleanup 2023-08-15 08:14:30 -04:00
Chris Miles
3b4776868c Fix lua items.lua is_attuned being nil 2023-02-17 03:38:31 -06:00
Chris Miles
0138baf57b Push up changes 2023-01-13 05:03:14 -06:00
Chris Miles
cfe0bd1320 Update items.lua 2023-01-12 19:32:57 -06:00
Chris Miles
1093a435c5 Push up changes 2023-01-12 19:31:11 -06:00
Alex King
aacabc8b01
[Lua] Add bot return and handin support.
Adds support for bot EVENT_TRADE item returns/handins, pending https://github.com/EQEmu/Server/pull/2560.
2022-11-25 14:16:41 -05:00
hg
919181db12 Check delivered task items in trade plugins
This will make the Lua items module and Perl check_handin plugin not
return items consumed by source task delivery updates when source is
patched to restore sending delivered task items in EVENT_TRADE.

Note the trade plugins do not handle item stacks so if a trade slot is
consumed by a plugin check, any extra items in the stack will not be
returned even if not all were used by a task update.
2022-11-05 10:44:02 -04:00
JJ
e66c190cdb Finzalizing. Hope this works... 2015-03-14 16:18:39 -04:00