Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions data/config/npc-spawns.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -58,3 +58,11 @@
x: 3320
y: 3194
radius: 3
- npcId: 542
x: 3317
y: 3174
radius: 3
- npcId: 544
x: 3315
y: 3161
radius: 3
54 changes: 54 additions & 0 deletions data/config/shops.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -142,3 +142,57 @@
text: Tiara mould
price: 100
amountInStock: 10
- identification: LOUIES_ARMOURED_LEGS_BAZAR
name: Louie's Armoured Legs Bazaar
items:
- id: 1075
text: Bronze platelegs
price: 80
amountInStock: 5
- id: 1067
text: Iron platelegs
price: 280
amountInStock: 3
- id: 1069
text: Steel platelegs
price: 1000
amountInStock: 2
- id: 1077
text: Black platelegs
price: 1920
amountInStock: 1
- id: 1071
text: Mithril platelegs
price: 2600
amountInStock: 1
- id: 1073
text: Adamant platelegs
price: 6400
amountInStock: 1
- identification: RANAELS_SUPER_SKIRT_STORE
name: Ranael's Super Skirt Store
items:
- id: 1087
text: Bronze plateskirt
price: 80
amountInStock: 5
- id: 1081
text: Iron plateskirt
price: 280
amountInStock: 3
- id: 1083
text: Steel plateskirt
price: 1000
amountInStock: 2
- id: 1089
text: Black plateskirt
price: 1920
amountInStock: 1
- id: 1085
text: Mithril plateskirt
price: 2600
amountInStock: 1
- id: 1091
text: Adamant plateskirt
price: 6400
amountInStock: 1
5 changes: 3 additions & 2 deletions src/plugins/npcs/al-kharid/gem-trader-plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import { npcAction } from '@server/world/actor/player/action/npc-action';
import { ActionType, RunePlugin } from '@server/plugins/plugin';
import { openShop } from '@server/world/actor/player/action/shop-action';
import { dialogueAction, DialogueEmote } from '@server/world/actor/player/action/dialogue-action';
import { npcIds } from '@server/world/config/npc-ids';

const tradeAction : npcAction = (details) => {
openShop(details.player, 'ALKHARID_GEM_TRADER');
Expand Down Expand Up @@ -33,6 +34,6 @@ const talkToAction : npcAction = (details) => {
};

export default new RunePlugin([
{type: ActionType.NPC_ACTION, npcIds: 540, options: 'trade', walkTo: true, action: tradeAction},
{type: ActionType.NPC_ACTION, npcIds: 540, options: 'talk-to', walkTo: true, action: talkToAction}
{type: ActionType.NPC_ACTION, npcIds: npcIds.gemTrader, options: 'trade', walkTo: true, action: tradeAction},
{type: ActionType.NPC_ACTION, npcIds: npcIds.gemTrader, options: 'talk-to', walkTo: true, action: talkToAction}
]);
16 changes: 16 additions & 0 deletions src/plugins/npcs/al-kharid/louie-armoured-legs-plugin.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
import { npcAction } from '@server/world/actor/player/action/npc-action';
import { openShop } from '@server/world/actor/player/action/shop-action';
import { ActionType, RunePlugin } from '@server/plugins/plugin';
import { npcIds } from '@server/world/config/npc-ids';

const tradeAction : npcAction = (details) => {
openShop(details.player, 'LOUIES_ARMOURED_LEGS_BAZAR');
};

export default new RunePlugin({
type: ActionType.NPC_ACTION,
npcIds: npcIds.louieLegs,
options: 'trade',
walkTo: true,
action: tradeAction
});
16 changes: 16 additions & 0 deletions src/plugins/npcs/al-kharid/ranael-super-skirt-plugin.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
import { npcAction } from '@server/world/actor/player/action/npc-action';
import { openShop } from '@server/world/actor/player/action/shop-action';
import { ActionType, RunePlugin } from '@server/plugins/plugin';
import { npcIds } from '@server/world/config/npc-ids';

const tradeAction : npcAction = (details) => {
openShop(details.player, 'RANAELS_SUPER_SKIRT_STORE');
};

export default new RunePlugin({
type: ActionType.NPC_ACTION,
npcIds: npcIds.ranael,
walkTo: true,
options: 'trade',
action: tradeAction,
});
2 changes: 2 additions & 0 deletions src/world/config/npc-ids.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ export const npcIds = {
shopKeeper: 520,
lumbridgeBob: 519,
dommik: 545,
louieLegs: 542,
gemTrader: 540,
gillieGroats: 3807,
ranael: 544
};