Changeset 414 (3792) Siege summons, atomic trades and shops, manor and items persistence, quests Siege summons Add the Wild Hog Cannon deploy mode: action 52 switches between mobile and deployed over 30 seconds, with the retail NPC shouts while a switch is running. A Wild Hog Cannon only fires Wild Cannon once deployed, within 2500 range and reloaded; its attack order only brings it within 600 of the target, it never fights in melee. A Siege Golem or a Swoop Cannon ignores movement, attack, stop and skill orders once further than 900 from its owner. Hide the name above a sitting or deploying summon in NpcInfo and PetInfo. Unsummon siege summons when the owner dies, is recalled (including party recall) or when the siege ends. Revalidate zones before testing the siege zone on spawn and teleport, so a siege summon no longer vanishes or survives on a stale zone flag. Reset the deploy state and cancel the pending switch on death and unsummon. Swoop Cannon Rework the ARTILLERY target type: the shot has no target, it is cast on the cannon itself and lands at the effective range of the skill, in the direction going from the cannon to its owner. The affected area ignores line of sight and tests a 2D radius around the impact point. IPAttackByDist reduces damage by the 2D distance to the impact point over the skill radius, capped at 70%. IPAttackByDist ignoreShieldDef 2 now ignores both the shield and the physical defence of the target; the shot previously dealt 1 damage. CanUseSwoopCannon is tested on the owner: its clan must attack the besieged castle and it can't stand inside the castle. Cannon Fodder and Big Bang are no longer refused on doors by the action handler; they simply don't hit them. Add Cannon Fodder (5110) and Big Bang (5111) to the skill list of the 31 Swoop Cannons, the actions did nothing without them. Summons The items consumed by the skill of a servitor are taken from its owner. A failed cast no longer sends MoveToPawn for an actor which can't move; the client was walking a deployed Wild Hog Cannon towards its target. The level difference check applies to every summon, at 20 levels instead of 21. A skill order is dropped if the summon can't afford it or if the skill is under reuse. Siege Hammer accepts doors, siege flags, control towers and siege weapons. Add Siege Hammer (4079) to the 31 Siege Golems, 5135/5136/5137 to Feline King and 5138/5139 to Magnus. CanSummonSiegeGolem no longer refuses the siege and headquarters zones, and the Seal of Strife restriction applies whatever the cabal of the player. INpcKill no longer aborts actions and strips effects of the servitor before killing it. Trades and private stores A trade is now reverted if one of its items can't be transferred, and both sides of a trade are saved at once. Reserve payer's adena before the transfer, on both private buy and sell stores, and cancel the operation if the amount isn't available anymore. Pay only for the items effectively delivered, and give back the unused part of the reservation. Private buy store: match the enchant level of the sold item with the one of the buy list. Private buy store: refuse a cumulated amount exceeding what the owner asked for. Private buy store: check weight and slots of the owner before the transfer. NPC shops RequestBuyItem: reserve limited stocks before charging the buyer, and give them back if the reservation or the payment fails. The buyer was charged first and could get no item if the stock was taken meanwhile. RequestBuyItem: compute price and weight per line as long, a line could overflow once castle tax was applied and reduce the total. RequestSellItem: pay a line only if the item was effectively removed from inventory. RequestSellItem: on amount overflow, stop the sell and still pay what was already sold, instead of dropping the payment. Product: add increaseCount, which gives back a decreased amount without exceeding the maximum count. Craft Check materials and manufacture fee before taking MP and adena. Stop the craft without product if a material couldn't be removed. Items persistence ItemInstanceTaskManager writes a batch as a single transaction, and rolls it back on failure. A failed batch is queued for the next run instead of being dropped. Items are released from the set before being written, so an item edited during the database process isn't lost anymore. Items being written are still reported as unsaved by contains(). Items pending in ItemInstanceTaskManager are restored from their unsaved state instead of being skipped. Manor Add ManorPersistenceTaskManager: manor mutations flag a dirty block, flushed in a single transaction right after the items are written. Period change, maintenance, manor reset and server shutdown enforce an immediate flush. Drop CastleManorManager#storeMe, updateCurrentProduction, updateCurrentProcure and the autosave task. Drop the ManorSavePeriodRate config. Next period uses independent SeedProduction / CropProcure entries, stock used during current period also altered next period. RequestBuySeed: give back the seed amount if the payment fails, the amount stayed consumed without any sale. RequestProcureCropList: split quota, fee and crop removal, each step gives back what the previous ones took. A failure in the middle left the crop amount consumed, or the fee paid, without reward. SeedProduction: add increaseAmount. Rainbow Springs siegeEnd registers the winner passed as parameter, the siege always ended as a draw. Quests Fix multiple HTMs typos. Q008: add missing 30144-03.htm. Q038: reward a random party member being on the right cond, instead of last attacker only. Q119: use existing 32009-02a.htm and don't end the quest if Antique Brooch is missing. Q126: second song clears FA_2 instead of the never set FA3_2. Q225: fix Strong Wooden Chest heading. Q226: fix swapped heading and despawn delay on Leto Lizardman Leader second spawn, it never despawned. Q299: don't end the quest nor edit the cond if honey or spice is missing, only show the related HTM as retail does. Q330: test the sum of both mandragora roots / marsh mosses, the regular dish branch was unreachable. Q330: fix the drop chances of 20155, 20156, 20204 and 20229. Q334: show the reason of a failed wish potion exchange. Q418: set cond 10 on 31963-03.htm, Lockirin branch was unreachable. Q610, Q616: refuse on level only, alliance level isn't tested on retail. Q627: use new 31518-08.htm if Gem of Saints is missing. Q628: open the multisell to recruits. Q639: reward 15084 adena upon holy water delivery, and check cond and item ownership. Q655: replace next siege date on the loaded HTM instead of the filename.
By
Tryskell · 9 hours ago 9 hr
Create an account or sign in to comment