This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| tutorial:esd-add-menu-reward [2026/06/20 22:52] – changed text IDs for better organization jenovavirus | tutorial:esd-add-menu-reward [2026/06/20 23:27] (current) – and another one jenovavirus | ||
|---|---|---|---|
| Line 269: | Line 269: | ||
| AddTalkListData(99, | AddTalkListData(99, | ||
| ShowShopMessage(TalkOptionsType.Regular) | ShowShopMessage(TalkOptionsType.Regular) | ||
| - | # trade | + | # Trade Firebomb for 20x Throwing Knife |
| if GetTalkListEntryResult() == 1: | if GetTalkListEntryResult() == 1: | ||
| assert (t320000_x12(lot1=lot1, | assert (t320000_x12(lot1=lot1, | ||
| - | # | + | # Trade 3x Large Titanite Shard for Ember |
| elif GetTalkListEntryResult() == 2: | elif GetTalkListEntryResult() == 2: | ||
| assert (t320000_x12(lot1=lot2, | assert (t320000_x12(lot1=lot2, | ||
| Line 309: | Line 309: | ||
| call = t320000_x13(goods2=goods2, | call = t320000_x13(goods2=goods2, | ||
| if call.Get() == 0: | if call.Get() == 0: | ||
| - | PlayerEquipmentQuantityChange(ItemType.Goods, | + | PlayerEquipmentQuantityChange(ItemType.Goods, |
| assert t320000_x14(lot1=lot1) | assert t320000_x14(lot1=lot1) | ||
| elif call.Get() == 1: | elif call.Get() == 1: | ||
| Line 316: | Line 316: | ||
| call = t320000_x13(goods2=goods2, | call = t320000_x13(goods2=goods2, | ||
| if call.Get() == 0: | if call.Get() == 0: | ||
| - | PlayerEquipmentQuantityChange(ItemType.Goods, | + | PlayerEquipmentQuantityChange(ItemType.Goods, |
| assert t320000_x14(lot1=lot2) | assert t320000_x14(lot1=lot2) | ||
| elif call.Get() == 1: | elif call.Get() == 1: | ||
| Line 335: | Line 335: | ||
| def t320000_x13(goods2=_, | def t320000_x13(goods2=_, | ||
| if z1 == goods2: | if z1 == goods2: | ||
| - | if ComparePlayerInventoryNumber(ItemType.Goods, | + | if ComparePlayerInventoryNumber(ItemType.Goods, |
| return 0 | return 0 | ||
| else: | else: | ||
| return 1 | return 1 | ||
| elif z1 == goods3: | elif z1 == goods3: | ||
| - | if ComparePlayerInventoryNumber(ItemType.Goods, | + | if ComparePlayerInventoryNumber(ItemType.Goods, |
| return 0 | return 0 | ||
| else: | else: | ||
| Line 351: | Line 351: | ||
| <code Python> | <code Python> | ||
| - | def t320000_x14(goods2=_, goods3=_, z1=_): | + | def t320000_x14(lot1=_): |
| GetItemFromItemLot(lot1) | GetItemFromItemLot(lot1) | ||
| assert not IsMenuOpen(63) and GetCurrentStateElapsedFrames() > 1 | assert not IsMenuOpen(63) and GetCurrentStateElapsedFrames() > 1 | ||