Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --[==========[
- -- Travelling Merchant
- --]==========]
- function p.travelling_merchant()
- return p.slotA() .. '\n' .. p.slotB() .. '\n' .. p.slotC()
- end
- function p.travelling_merchant_items()
- return {
- ['Barrel of bait'] = {
- cost = '50,000',
- quantity = '1',
- use = '10% chance to gain an additional catch for 3 minutes.'
- },
- ['Tangled fishbowl'] = {
- cost = '50,000',
- quantity = '1',
- use = '5% Fishing experience boost for 3 minutes.'
- },
- ['Broken fishing rod'] = {
- cost = '50,000',
- quantity = '1',
- use = '5-10% bonus catch rate for 3-30 minutes.'
- },
- ['Small goebie burial charm'] = {
- cost = '50,000',
- quantity = '1',
- use = '50 [[Reputation (Mazcab)|Goebie Reputation]] or 50 [[Teci]]'
- },
- ['Goebie burial charm'] = {
- cost = '100,000',
- quantity = '1',
- use = '100 [[Reputation (Mazcab)|Goebie Reputation]] or 100 [[Teci]]'
- },
- ['Menaphite gift offering (small)'] = {
- cost = '100,000',
- quantity = '1',
- use = 'Variety of rewards, see page'
- },
- ['Menaphite gift offering (medium)'] = {
- cost = '300,000',
- quantity = '1',
- use = 'Variety of rewards, see page'
- },
- ['Unstable air rune'] = {
- cost = '250,000',
- quantity = '1',
- use = '5,000 [[Runespan#Rewards|Runespan points]]'
- },
- ['Anima crystal'] = {
- cost = '150,000',
- quantity = '1',
- use = '500 [[Reputation (Heart of Gielinor)|faction reputation]]'
- },
- ['Slayer VIP Coupon'] = {
- cost = '200,000',
- quantity = '1',
- use = 'Redeemed for 1-7 [[Slayer VIP ticket]]s'
- },
- ['D&D token (daily)'] = {
- cost = '250,000',
- quantity = '1',
- use = 'One-time use to reset a daily [[D&D]]'
- },
- ['Unfocused damage enhancer'] = {
- cost = '500,000',
- quantity = '1',
- use = 'Allows choice of any damage enhancer at the cost of lower charges'
- },
- ['Sacred clay (Deep Sea Fishing)'] = {
- name = '[[Sacred clay (Deep Sea Fishing)|Sacred clay]]',
- cost = '600,000',
- quantity = '1',
- use = '50-100 [[Stealing Creation/Rewards#Reward shop|Stealing Creation points]]'
- },
- ['Shattered anima'] = {
- cost = '750,000',
- quantity = '500,000-2,000,000',
- use = 'See shop [[Shattered Worlds/Rewards|here]]'
- },
- ['Advanced pulse core'] = {
- cost = '800,000',
- quantity = '1-3',
- use = '50% extra experience that does not stack with other sources of bonus experience, up to the equivalent of a Medium prismatic lamp.'
- },
- ['Livid plant (Deep Sea Fishing)'] = {
- name = '[[Livid plant (Deep Sea Fishing)|Livid plant]]',
- cost = '1,000,000',
- quantity = '1',
- use = '10,000 to 40,000 [[produce points]]'
- },
- ['Gift for the Reaper'] = {
- cost = '1,250,000',
- quantity = '1',
- use = '20 [[Reaper points]]'
- },
- ['Silverhawk down'] = {
- cost = '1,500,000',
- quantity = '50-100',
- use = 'See [[silverhawk down]] for experience calculator'
- },
- ['Large goebie burial charm'] = {
- cost = '150,000',
- quantity = '1',
- use = '150 [[Reputation (Mazcab)|Goebie Reputation]] or 150 [[Teci]]'
- },
- ['Message in a bottle (Deep Sea Fishing)'] = {
- name = '[[Message in a bottle (Deep Sea Fishing)|Message in a bottle]]',
- cost = '200,000',
- quantity = '1',
- use = 'One time choice between three [[Deep Sea Fishing]] boosts'
- },
- ['Dragonkin lamp'] = {
- cost = '250,000',
- quantity = '1',
- use = 'Rewards a set amount of experience and a 1/100 chance to obtain [[Effy]]'
- },
- ['Dungeoneering Wildcard'] = {
- cost = '400,000',
- quantity = '1-3',
- use = 'Consuming the card inside [[Daemonheim]] rewards 50% extra experience and [[dungeoneering token|token]]s'
- },
- ['Menaphite gift offering (large)'] = {
- cost = '500,000',
- quantity = '1',
- use = 'Variety of rewards, see page'
- },
- ['Taijitu'] = {
- cost = '800,000',
- quantity = '3-5',
- use = 'Secondary currency used for the [[Waiko Reward Shop]].'
- },
- ['D&D token (weekly)'] = {
- cost = '400,000',
- quantity = '1',
- use = 'One-time use to reset a weekly [[D&D]]'
- },
- ['D&D token (monthly)'] = {
- cost = '1,000,000',
- quantity = '1',
- use = 'One-time use to reset a monthly [[D&D]]'
- },
- ['Starved ancient effigy'] = {
- cost = '1,000,000',
- quantity = '1',
- use = 'Rewards a set amount of experience in multiple skills and a 1/100 chance to obtain [[Effy]]'
- },
- ['Harmonic dust'] = {
- cost = '2,000,000',
- quantity = '500-1000',
- use = 'Used for creating [[crystal tool]]s'
- },
- ['Crystal triskelion'] = {
- cost = '2,000,000',
- quantity = '1',
- use = 'Deposited in a cliff face south of [[Rellekka]] to obtain a [[clue scroll (elite)]] and variety of other rewards'
- },
- ['Deathtouched dart'] = {
- cost = '5,000,000',
- quantity = '1',
- use = 'Insta-kill majority of all NPCs'
- },
- ['Unfocused reward enhancer'] = {
- cost = '10,000,000',
- quantity = '1',
- use = 'Allows choice of any reward enhancer at the cost of lower charges'
- }
- }
- end
- function p.slotA()
- local rotations = {
- 'Slayer VIP Coupon',
- 'Unfocused damage enhancer',
- 'Gift for the Reaper',
- 'Tangled fishbowl',
- 'Anima crystal',
- 'Menaphite gift offering (small)',
- 'Small goebie burial charm',
- 'Menaphite gift offering (medium)',
- 'Shattered anima',
- 'Small goebie burial charm',
- 'D&D token (daily)',
- 'Slayer VIP Coupon',
- 'Sacred clay (Deep Sea Fishing)',
- 'Advanced pulse core',
- 'Tangled fishbowl',
- 'Unstable air rune',
- 'Advanced pulse core',
- 'Gift for the Reaper',
- 'Tangled fishbowl',
- 'Broken fishing rod',
- 'Menaphite gift offering (small)',
- 'Small goebie burial charm',
- 'Menaphite gift offering (medium)',
- 'Sacred clay (Deep Sea Fishing)',
- 'Small goebie burial charm',
- 'D&D token (daily)',
- 'Sacred clay (Deep Sea Fishing)',
- 'Shattered anima',
- 'Advanced pulse core',
- 'Gift for the Reaper',
- 'Unstable air rune',
- 'Broken fishing rod',
- 'Gift for the Reaper',
- 'Tangled fishbowl',
- 'Broken fishing rod',
- 'Small goebie burial charm',
- 'Small goebie burial charm',
- 'Menaphite gift offering (medium)',
- 'Sacred clay (Deep Sea Fishing)',
- 'Shattered anima',
- 'D&D token (daily)',
- 'Slayer VIP Coupon',
- 'Shattered anima',
- 'Silverhawk down',
- 'Tangled fishbowl',
- 'Unstable air rune',
- 'Broken fishing rod',
- 'Barrel of bait',
- 'Tangled fishbowl',
- 'Broken fishing rod',
- 'Small goebie burial charm',
- 'Barrel of bait',
- 'Menaphite gift offering (medium)',
- 'Sacred clay (Deep Sea Fishing)',
- 'Menaphite gift offering (small)',
- 'Livid plant (Deep Sea Fishing)',
- 'Sacred clay (Deep Sea Fishing)',
- 'Shattered anima',
- 'Silverhawk down',
- 'Unstable air rune',
- 'Unstable air rune',
- 'Broken fishing rod',
- 'Barrel of bait',
- 'Gift for the Reaper',
- 'Broken fishing rod',
- 'Small goebie burial charm',
- 'Gift for the Reaper',
- 'Goebie burial charm',
- 'Sacred clay (Deep Sea Fishing)',
- 'Shattered anima',
- 'Livid plant (Deep Sea Fishing)',
- 'Unstable air rune',
- 'Shattered anima',
- 'Silverhawk down',
- 'Unstable air rune',
- 'Slayer VIP Coupon',
- 'Broken fishing rod',
- 'Barrel of bait',
- 'Gift for the Reaper',
- 'Goebie burial charm',
- 'Small goebie burial charm',
- 'Barrel of bait',
- 'Goebie burial charm',
- 'Shattered anima',
- 'Menaphite gift offering (small)',
- 'Livid plant (Deep Sea Fishing)',
- 'Unstable air rune',
- 'Sacred clay (Deep Sea Fishing)',
- 'Silverhawk down',
- 'Unstable air rune',
- 'Slayer VIP Coupon',
- 'Unfocused damage enhancer',
- 'Barrel of bait',
- 'Gift for the Reaper',
- 'Anima crystal',
- 'Menaphite gift offering (small)',
- 'Gift for the Reaper',
- 'Goebie burial charm',
- 'Shattered anima',
- 'Small goebie burial charm',
- 'Livid plant (Deep Sea Fishing)',
- 'Unstable air rune',
- 'Sacred clay (Deep Sea Fishing)',
- 'Advanced pulse core',
- 'Unstable air rune',
- 'Slayer VIP Coupon',
- 'Advanced pulse core',
- 'Gift for the Reaper',
- 'Gift for the Reaper',
- 'Goebie burial charm',
- 'Menaphite gift offering (small)',
- 'Small goebie burial charm',
- 'Goebie burial charm',
- 'Shattered anima',
- 'Small goebie burial charm',
- 'D&D token (daily)',
- 'Unstable air rune',
- 'Sacred clay (Deep Sea Fishing)',
- 'Advanced pulse core',
- 'Gift for the Reaper'
- }
- local rotation = p.rotation_days(1, #rotations, 37)
- local item = p.travelling_merchant_items()[rotations[rotation]]
- local page = rotations[rotation]
- local name = item.name or ('[[' .. page .. ']]')
- return '| {{plinkp|' .. page .. '}} || ' .. name .. ' || {{Coins|' .. item.cost .. '}} || ' .. item.quantity .. ' || ' .. item.use
- end
- function p.slotB()
- local rotations = {
- 'Slayer VIP Coupon',
- 'Unfocused damage enhancer',
- 'Gift for the Reaper',
- 'Menaphite gift offering (small)',
- 'Unstable air rune',
- 'Broken fishing rod',
- 'Goebie burial charm',
- 'Shattered anima',
- 'Sacred clay (Deep Sea Fishing)',
- 'Silverhawk down',
- 'Tangled fishbowl',
- 'Small goebie burial charm',
- 'Slayer VIP Coupon',
- 'Unfocused damage enhancer',
- 'Broken fishing rod',
- 'Menaphite gift offering (small)',
- 'Menaphite gift offering (small)',
- 'Livid plant (Deep Sea Fishing)',
- 'Unstable air rune',
- 'Gift for the Reaper',
- 'Sacred clay (Deep Sea Fishing)',
- 'Advanced pulse core',
- 'Unfocused damage enhancer',
- 'Small goebie burial charm',
- 'Small goebie burial charm',
- 'D&D token (daily)',
- 'Sacred clay (Deep Sea Fishing)',
- 'Tangled fishbowl',
- 'Shattered anima',
- 'Silverhawk down',
- 'Advanced pulse core',
- 'Barrel of bait',
- 'Barrel of bait',
- 'Menaphite gift offering (medium)',
- 'Shattered anima',
- 'Unstable air rune',
- 'Menaphite gift offering (small)',
- 'D&D token (daily)',
- 'Silverhawk down',
- 'Gift for the Reaper',
- 'Gift for the Reaper',
- 'Goebie burial charm',
- 'Menaphite gift offering (small)',
- 'Slayer VIP Coupon',
- 'Barrel of bait',
- 'Menaphite gift offering (medium)',
- 'Livid plant (Deep Sea Fishing)',
- 'Unstable air rune',
- 'Tangled fishbowl',
- 'Broken fishing rod',
- 'Small goebie burial charm',
- 'Sacred clay (Deep Sea Fishing)',
- 'Gift for the Reaper',
- 'Goebie burial charm',
- 'Menaphite gift offering (medium)',
- 'Slayer VIP Coupon',
- 'Slayer VIP Coupon',
- 'Unfocused damage enhancer',
- 'Barrel of bait',
- 'Menaphite gift offering (small)',
- 'Tangled fishbowl',
- 'Anima crystal',
- 'Goebie burial charm',
- 'Sacred clay (Deep Sea Fishing)',
- 'Sacred clay (Deep Sea Fishing)',
- 'Advanced pulse core',
- 'Tangled fishbowl',
- 'Small goebie burial charm',
- 'Unstable air rune',
- 'Broken fishing rod',
- 'Anima crystal',
- 'Shattered anima',
- 'Shattered anima',
- 'Silverhawk down',
- 'Unstable air rune',
- 'Barrel of bait',
- 'Slayer VIP Coupon',
- 'Advanced pulse core',
- 'Broken fishing rod',
- 'Menaphite gift offering (small)',
- 'Menaphite gift offering (small)',
- 'Livid plant (Deep Sea Fishing)',
- 'Slayer VIP Coupon',
- 'Gift for the Reaper',
- 'Shattered anima',
- 'Silverhawk down',
- 'Unfocused damage enhancer',
- 'Barrel of bait',
- 'Small goebie burial charm',
- 'Menaphite gift offering (medium)',
- 'Sacred clay (Deep Sea Fishing)',
- 'Tangled fishbowl',
- 'Menaphite gift offering (small)',
- 'Livid plant (Deep Sea Fishing)',
- 'Silverhawk down',
- 'Gift for the Reaper',
- 'Gift for the Reaper',
- 'Goebie burial charm',
- 'Shattered anima',
- 'Slayer VIP Coupon',
- 'Small goebie burial charm',
- 'D&D token (daily)',
- 'Livid plant (Deep Sea Fishing)',
- 'Tangled fishbowl',
- 'Tangled fishbowl',
- 'Anima crystal',
- 'Small goebie burial charm',
- 'Sacred clay (Deep Sea Fishing)',
- 'Barrel of bait',
- 'Menaphite gift offering (medium)',
- 'D&D token (daily)',
- 'Unstable air rune',
- 'Unstable air rune',
- 'Broken fishing rod',
- 'Barrel of bait',
- 'Shattered anima',
- 'Gift for the Reaper',
- 'Anima crystal',
- 'Menaphite gift offering (medium)',
- 'Slayer VIP Coupon'
- }
- local rotation = p.rotation_days(1, #rotations, 37)
- local item = p.travelling_merchant_items()[rotations[rotation]]
- local page = rotations[rotation]
- local name = item.name or ('[[' .. page .. ']]')
- return '| {{plinkp|' .. page .. '}} || ' .. name .. ' || {{Coins|' .. item.cost .. '}} || ' .. item.quantity .. ' || ' .. item.use
- end
- function p.slotC()
- local itemNumber = {
- 1,
- 1,
- 2,
- 1,
- 3,
- 4,
- 3,
- 1,
- 5,
- 6,
- 6,
- 6,
- 5,
- 7,
- 8,
- 5,
- 7,
- 9,
- 1,
- 2,
- 4,
- 4,
- 1,
- 4,
- 6,
- 10,
- 4,
- 11,
- 7,
- 2,
- 5,
- 5,
- 9,
- 12,
- 2,
- 9,
- 4,
- 12,
- 4,
- 12
- }
- local rotation = p.rotation_days(1, #itemNumber, -1)
- local itemNumberInCurrentRotation = itemNumber[rotation];
- local itemOrder = {
- 'Dragonkin lamp',
- 'D&D token (weekly)',
- 'Deathtouched dart',
- 'Menaphite gift offering (large)',
- 'Starved ancient effigy',
- 'Large goebie burial charm',
- 'Crystal triskelion',
- 'Taijitu',
- 'Message in a bottle (Deep Sea Fishing)',
- 'Unfocused reward enhancer',
- 'Dungeoneering Wildcard',
- 'Harmonic dust',
- 'D&D token (monthly)'
- }
- local itemIdxPerIndexAtStart = {
- [1] = 12, -- Dust
- [2] = 6, -- Large goebie
- [3] = 1, -- Lamp
- [4] = 5, -- Effigy
- [5] = 2, -- Weekly
- [6] = 9, -- Bottle
- [7] = 8, -- Tai
- [8] = 11, -- Wild
- [9] = 10, -- Reward
- [10] = 13, -- Monthly
- [11] = 7, -- Trisk
- [12] = 3 -- Dart
- }
- local currentEnumeration = p.rotation_days(40, #itemOrder, 79)
- local page = itemOrder[(itemIdxPerIndexAtStart[itemNumberInCurrentRotation] + currentEnumeration) % #itemOrder + 1]
- local item = p.travelling_merchant_items()[page]
- local name = item.name or ('[[' .. page .. ']]')
- return '| {{plinkp|' .. page .. '}} || ' .. name .. ' || {{Coins|' .. item.cost .. '}} || ' .. item.quantity .. ' || ' .. item.use
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement