Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

juju and dungeoneering potions and water and herbs and spawns and npc examine text and todo for potions #519

Open
wants to merge 30 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
6ab13e0
feat: added herbs and potions for dung and juju
MrSlayerGod Feb 15, 2024
92017e7
Merge branch '2011Scape:main' into main
MrSlayerGod Feb 15, 2024
910bb53
feat: updated the todo
MrSlayerGod Feb 16, 2024
5741f6c
Merge branch 'main' of https://github.com/MrSlayerGod/game
MrSlayerGod Feb 16, 2024
a89e5d6
Merge branch '2011Scape:main' into main
MrSlayerGod Feb 17, 2024
382348d
fix: issue with herbdata and CreateUnfinishedPotionAction
MrSlayerGod Feb 17, 2024
d407902
fix: created unfinished potionaction
MrSlayerGod Feb 17, 2024
9bddc6f
fix: createunfinishedpotionaction
MrSlayerGod Feb 17, 2024
7a0e02a
Updated CreatedUnfinishedPotionAction
MrSlayerGod Feb 19, 2024
7a36756
Updated mix_potion now it dont open interface random vial of water now
MrSlayerGod Feb 19, 2024
d5e8396
Updated now display correct item on vial of water that getting made
MrSlayerGod Feb 19, 2024
d2ec3bf
Merge branch '2011Scape:main' into main
MrSlayerGod Feb 22, 2024
e1bf3db
fix: coords issue for ardougne getting teleported into pole
MrSlayerGod Mar 16, 2024
26bb6d5
feat: add golden bowl, fish bowl, dream vial, to watercontainerdata
MrSlayerGod May 2, 2024
e8244b7
feat: added containerHandlerempty class for empty aka water etc
MrSlayerGod May 2, 2024
69c0cb4
feat: added unfishished potion empty handler
MrSlayerGod May 2, 2024
3b2c591
fix: missing dung vial of water
MrSlayerGod May 2, 2024
6b102e3
fix: potion dont have empty potion
MrSlayerGod May 2, 2024
e4b1cd5
fix: issue with dialogue
MrSlayerGod May 2, 2024
b7d1de4
Merge branch '2011Scape:main' into main
MrSlayerGod May 20, 2024
9999895
fix dialogue for benny and arhein
MrSlayerGod May 20, 2024
e8d4cd7
Merge branch '2011Scape:main' into main
MrSlayerGod May 21, 2024
47303ea
feat: rename file to leatherdragonscript so
MrSlayerGod May 22, 2024
e8da114
Merge branch '2011Scape:main' into main
MrSlayerGod Jun 4, 2024
f45ec32
feat: iv reorganization names of npcs
MrSlayerGod Jun 4, 2024
eb3de69
feat: rename file name
MrSlayerGod Jun 4, 2024
f463b19
feat: added jelly combat etc
MrSlayerGod Jun 23, 2024
366d3c2
Merge branch '2011Scape:main' into main
MrSlayerGod Jun 23, 2024
eef9c2e
Merge branch '2011Scape:main' into main
MrSlayerGod Jul 26, 2024
bcc5681
Merge branch '2011Scape:main' into main
MrSlayerGod Sep 20, 2024
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
44 changes: 44 additions & 0 deletions data/cfg/npcs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12494,6 +12494,24 @@
examine: "Overgrown vermin."
- id: 12352
examine: "I think this spider has been magically modified."
- id: 12353
examine: "An ugly, green creature.."
- id: 12354
examine: "An ugly, green creature.."
- id: 12355
examine: "An ugly, green creature.."
- id: 12356
examine: "An ugly, green creature.."
- id: 12357
examine: "An ugly, green creature.."
- id: 12358
examine: "An ugly, green creature.."
- id: 12359
examine: "An ugly, green creature.."
- id: 12360
examine: "An ugly, green creature.."
- id: 12361
examine: "An ugly, green creature.."
- id: 12367
examine: "He tries to keep order around Lumbridge by killing goblins."
- id: 12368
Expand All @@ -12504,6 +12522,8 @@
examine: "White and shaggy."
- id: 12371
examine: "White and shaggy."
- id: 12372
examine: "Dead man walking.."
- id: 12374
examine: "Slightly magical."
- id: 12418
Expand Down Expand Up @@ -13102,10 +13122,34 @@
examine: "A heavily armoured guard."
- id: 12940
examine: "A heavily armoured guard."
- id: 12973
examine: "He looks a bit aggressive."
- id: 12974
examine: "He looks a bit aggressive."
- id: 12975
examine: "He looks a bit aggressive."
- id: 12976
examine: "He looks a bit aggressive"
- id: 12977
examine: "He looks a bit aggressive"
- id: 12978
examine: "He looks a bit aggressive"
- id: 12979
examine: "He looks a bit aggressive."
- id: 12980
examine: "He looks a bit aggressive."
- id: 12981
examine: "He looks a bit aggressive."
- id: 12982
examine: "He looks a bit aggressive"
- id: 12983
examine: "He looks a bit aggressive"
- id: 13089
examine: "Isn't it abhor-able?"
- id: 13090
examine: "Isn't it abhor-able?"
- id: 13100
examine: "An ugly, smelly creature."
- id: 13182
examine: "Mmm, this looks tasty."
- id: 13183
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,14 +57,15 @@ suspend fun chat(it: QueueTask) {
"Is that your ship?",
facialExpression = FacialExpression.CONFUSED
)

it.chatNpc(
"Yes, I use it to make deliveries to my customers ",
"along the coast.",
"These crates here are all ready for my next trip.",
facialExpression = FacialExpression.CALM_TALK
"Yes, I use it to make deliveries to my customers " +
"along the coast." +
"These crates here are all ready for my next trip.",
facialExpression = FacialExpression.CALM_TALK,
wrap = true
)


when (it.options("Where do you deliver to?", "Are you rich then?")) {
1 -> {
it.chatPlayer(
Expand Down
Original file line number Diff line number Diff line change
@@ -1,25 +1,46 @@
package gg.rsmod.plugins.content.areas.spawns

spawn_npc(npc = Npcs.SHADOW_WARRIOR, x = 2716, z = 9749, height = 0, walkRadius = 5, direction = Direction.NORTH, static = false) //Shadow warrior
spawn_npc(npc = Npcs.SHADOW_WARRIOR, x = 2713, z = 9751, height = 0, walkRadius = 5, direction = Direction.NORTH, static = false) //Shadow warrior
spawn_npc(npc = Npcs.SHADOW_WARRIOR, x = 2713, z = 9757, height = 0, walkRadius = 5, direction = Direction.NORTH, static = false) //Shadow warrior
spawn_npc(npc = Npcs.SHADOW_WARRIOR, x = 2712, z = 9745, height = 0, walkRadius = 5, direction = Direction.NORTH, static = false) //Shadow warrior
spawn_npc(npc = Npcs.SHADOW_WARRIOR, x = 2713, z = 9742, height = 0, walkRadius = 5, direction = Direction.NORTH, static = false) //Shadow warrior
spawn_npc(npc = Npcs.SHADOW_WARRIOR, x = 2713, z = 9742, height = 0, walkRadius = 5, direction = Direction.NORTH, static = false) //Shadow warrior
spawn_npc(npc = Npcs.SHADOW_WARRIOR, x = 2712, z = 9738, height = 0, walkRadius = 5, direction = Direction.NORTH, static = false) //Shadow warrior
spawn_npc(npc = Npcs.SHADOW_WARRIOR, x = 2708, z = 9736, height = 0, walkRadius = 5, direction = Direction.NORTH, static = false) //Shadow warrior
spawn_npc(npc = Npcs.SHADOW_WARRIOR, x = 2708, z = 9738, height = 0, walkRadius = 5, direction = Direction.NORTH, static = false) //Shadow warrior
spawn_npc(npc = Npcs.SHADOW_WARRIOR, x = 2704, z = 9741, height = 0, walkRadius = 5, direction = Direction.NORTH, static = false) //Shadow warrior
spawn_npc(npc = Npcs.SHADOW_WARRIOR, x = 2702, z = 9743, height = 0, walkRadius = 5, direction = Direction.NORTH, static = false) //Shadow warrior
spawn_npc(npc = Npcs.SHADOW_WARRIOR, x = 2702, z = 9747, height = 0, walkRadius = 5, direction = Direction.NORTH, static = false) //Shadow warrior
spawn_npc(npc = Npcs.SHADOW_WARRIOR, x = 2703, z = 9751, height = 0, walkRadius = 5, direction = Direction.NORTH, static = false) //Shadow warrior
spawn_npc(npc = Npcs.SHADOW_WARRIOR, x = 2703, z = 9753, height = 0, walkRadius = 5, direction = Direction.NORTH, static = false) //Shadow warrior
spawn_npc(npc = Npcs.SHADOW_WARRIOR, x = 2703, z = 9757, height = 0, walkRadius = 5, direction = Direction.NORTH, static = false) //Shadow warrior
spawn_npc(npc = Npcs.SHADOW_WARRIOR, x = 2703, z = 9759, height = 0, walkRadius = 5, direction = Direction.NORTH, static = false) //Shadow warrior
spawn_npc(npc = Npcs.SHADOW_WARRIOR, x = 2703, z = 9763, height = 0, walkRadius = 5, direction = Direction.NORTH, static = false) //Shadow warrior
spawn_npc(npc = Npcs.SHADOW_WARRIOR, x = 2703, z = 9765, height = 0, walkRadius = 5, direction = Direction.NORTH, static = false) //Shadow warrior
spawn_npc(npc = Npcs.SHADOW_WARRIOR, x = 2701, z = 9769, height = 0, walkRadius = 5, direction = Direction.NORTH, static = false) //Shadow warrior
spawn_npc(npc = Npcs.SHADOW_WARRIOR, x = 2699, z = 9771, height = 0, walkRadius = 5, direction = Direction.NORTH, static = false) //Shadow warrior
spawn_npc(npc = Npcs.SHADOW_WARRIOR, x = 2698, z = 9775, height = 0, walkRadius = 5, direction = Direction.NORTH, static = false) //Shadow warrior
spawn_npc(npc = Npcs.SHADOW_WARRIOR, x = 2698, z = 9777, height = 0, walkRadius = 5, direction = Direction.NORTH, static = false) //Shadow warrior
spawn_npc(npc = Npcs.SHADOW_WARRIOR, x = 2702, z = 9776, height = 0, walkRadius = 5, direction = Direction.NORTH, static = false) //Shadow warrior
spawn_npc(npc = Npcs.GIANT_BAT, x = 2732, z = 9774, height = 0, walkRadius = 5, direction = Direction.NORTH, static = false) //Giant Bat
spawn_npc(npc = Npcs.GIANT_BAT, x = 2727, z = 9772, height = 0, walkRadius = 5, direction = Direction.NORTH, static = false) //Giant Bat
spawn_npc(npc = Npcs.GIANT_BAT, x = 2730, z = 9760, height = 0, walkRadius = 5, direction = Direction.NORTH, static = false) //Giant Bat
spawn_npc(npc = Npcs.GIANT_BAT, x = 2730, z = 9773, height = 0, walkRadius = 5, direction = Direction.NORTH, static = false) //Giant Bat
spawn_npc(npc = Npcs.GIANT_BAT, x = 2706, z = 9738, height = 0, walkRadius = 5, direction = Direction.NORTH, static = false) //Giant Bat

spawn_npc(npc = Npcs.PIT_SCORPION, x = 2714, z = 9757, height = 0, walkRadius = 5, direction = Direction.NORTH, static = false) //Pit Scorpion
spawn_npc(npc = Npcs.PIT_SCORPION, x = 2713, z = 9752, height = 0, walkRadius = 5, direction = Direction.NORTH, static = false) //Pit Scorpion
spawn_npc(npc = Npcs.PIT_SCORPION, x = 2716, z = 9750, height = 0, walkRadius = 5, direction = Direction.NORTH, static = false) //Pit Scorpion
spawn_npc(npc = Npcs.PIT_SCORPION, x = 2715, z = 9743, height = 0, walkRadius = 5, direction = Direction.NORTH, static = false) //Pit Scorpion
spawn_npc(npc = Npcs.PIT_SCORPION, x = 2717, z = 9742, height = 0, walkRadius = 5, direction = Direction.NORTH, static = false) //Pit Scorpion
spawn_npc(npc = Npcs.PIT_SCORPION, x = 2721, z = 9742, height = 0, walkRadius = 5, direction = Direction.NORTH, static = false) //Pit Scorpion
spawn_npc(npc = Npcs.PIT_SCORPION, x = 2724, z = 9745, height = 0, walkRadius = 5, direction = Direction.NORTH, static = false) //Pit Scorpion
spawn_npc(npc = Npcs.PIT_SCORPION, x = 2715, z = 9743, height = 0, walkRadius = 5, direction = Direction.NORTH, static = false) //Pit Scorpion
spawn_npc(npc = Npcs.PIT_SCORPION, x = 2724, z = 9749, height = 0, walkRadius = 5, direction = Direction.NORTH, static = false) //Pit Scorpion
spawn_npc(npc = Npcs.PIT_SCORPION, x = 2720, z = 9750, height = 0, walkRadius = 5, direction = Direction.NORTH, static = false) //Pit Scorpion
spawn_npc(npc = Npcs.PIT_SCORPION, x = 2722, z = 9754, height = 0, walkRadius = 5, direction = Direction.NORTH, static = false) //Pit Scorpion
spawn_npc(npc = Npcs.PIT_SCORPION, x = 2718, z = 9758, height = 0, walkRadius = 5, direction = Direction.NORTH, static = false) //Pit Scorpion
spawn_npc(npc = Npcs.PIT_SCORPION, x = 2723, z = 9759, height = 0, walkRadius = 5, direction = Direction.NORTH, static = false) //Pit Scorpion
spawn_npc(npc = Npcs.PIT_SCORPION, x = 2713, z = 9747, height = 0, walkRadius = 5, direction = Direction.NORTH, static = false) //Pit Scorpion
spawn_npc(npc = Npcs.PIT_SCORPION, x = 2727, z = 9744, height = 0, walkRadius = 5, direction = Direction.NORTH, static = false) //Pit Scorpion
spawn_npc(npc = Npcs.PIT_SCORPION, x = 2720, z = 9738, height = 0, walkRadius = 5, direction = Direction.NORTH, static = false) //Pit Scorpion
spawn_npc(npc = Npcs.PIT_SCORPION, x = 2719, z = 9745, height = 0, walkRadius = 5, direction = Direction.NORTH, static = false) //Pit Scorpion
spawn_npc(npc = Npcs.PIT_SCORPION, x = 2726, z = 9756, height = 0, walkRadius = 5, direction = Direction.NORTH, static = false) //Pit Scorpion
spawn_npc(npc = Npcs.PIT_SCORPION, x = 2712, z = 9742, height = 0, walkRadius = 5, direction = Direction.NORTH, static = false) //Pit Scorpion
spawn_npc(npc = Npcs.PIT_SCORPION, x = 2719, z = 9754, height = 0, walkRadius = 5, direction = Direction.NORTH, static = false) //Pit Scorpion

spawn_npc(npc = Npcs.SHADOW_WARRIOR, x = 2709, z = 9759, height = 0, walkRadius = 5, direction = Direction.NORTH, static = false) //Shadow Warrior
spawn_npc(npc = Npcs.SHADOW_WARRIOR, x = 2708, z = 9756, height = 0, walkRadius = 5, direction = Direction.NORTH, static = false) //Shadow Warrior
spawn_npc(npc = Npcs.SHADOW_WARRIOR, x = 2703, z = 9757, height = 0, walkRadius = 5, direction = Direction.NORTH, static = false) //Shadow Warrior
spawn_npc(npc = Npcs.SHADOW_WARRIOR, x = 2704, z = 9761, height = 0, walkRadius = 5, direction = Direction.NORTH, static = false) //Shadow Warrior
spawn_npc(npc = Npcs.SHADOW_WARRIOR, x = 2707, z = 9764, height = 0, walkRadius = 5, direction = Direction.NORTH, static = false) //Shadow Warrior
spawn_npc(npc = Npcs.SHADOW_WARRIOR, x = 2702, z = 9765, height = 0, walkRadius = 5, direction = Direction.NORTH, static = false) //Shadow Warrior
spawn_npc(npc = Npcs.SHADOW_WARRIOR, x = 2705, z = 9770, height = 0, walkRadius = 5, direction = Direction.NORTH, static = false) //Shadow Warrior
spawn_npc(npc = Npcs.SHADOW_WARRIOR, x = 2699, z = 9769, height = 0, walkRadius = 5, direction = Direction.NORTH, static = false) //Shadow Warrior
spawn_npc(npc = Npcs.SHADOW_WARRIOR, x = 2697, z = 9772, height = 0, walkRadius = 5, direction = Direction.NORTH, static = false) //Shadow Warrior
spawn_npc(npc = Npcs.SHADOW_WARRIOR, x = 2694, z = 9775, height = 0, walkRadius = 5, direction = Direction.NORTH, static = false) //Shadow Warrior
spawn_npc(npc = Npcs.SHADOW_WARRIOR, x = 2697, z = 9779, height = 0, walkRadius = 5, direction = Direction.NORTH, static = false) //Shadow Warrior
spawn_npc(npc = Npcs.SHADOW_WARRIOR, x = 2701, z = 9780, height = 0, walkRadius = 5, direction = Direction.NORTH, static = false) //Shadow Warrior
spawn_npc(npc = Npcs.SHADOW_WARRIOR, x = 2704, z = 9778, height = 0, walkRadius = 5, direction = Direction.NORTH, static = false) //Shadow Warrior
spawn_npc(npc = Npcs.SHADOW_WARRIOR, x = 2701, z = 9775, height = 0, walkRadius = 5, direction = Direction.NORTH, static = false) //Shadow Warrior
spawn_npc(npc = Npcs.SHADOW_WARRIOR, x = 2705, z = 9774, height = 0, walkRadius = 5, direction = Direction.NORTH, static = false) //Shadow Warrior
spawn_npc(npc = Npcs.SHADOW_WARRIOR, x = 2704, z = 9749, height = 0, walkRadius = 5, direction = Direction.NORTH, static = false) //Shadow Warrior
spawn_npc(npc = Npcs.SHADOW_WARRIOR, x = 2704, z = 9744, height = 0, walkRadius = 5, direction = Direction.NORTH, static = false) //Shadow Warrior
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
package gg.rsmod.plugins.content.areas.spawns

spawn_npc(npc = Npcs.HOPELESS_CREATURE_3667, x = 3270, z = 9797, walkRadius = 5, direction = Direction.NORTH)
spawn_npc(npc = Npcs.HOPELESS_CREATURE_3667, x = 3269, z = 9803, walkRadius = 5, direction = Direction.NORTH)
spawn_npc(npc = Npcs.HOPELESS_CREATURE_3667, x = 3272, z = 9808, walkRadius = 5, direction = Direction.NORTH)
spawn_npc(npc = Npcs.HOPELESS_CREATURE_3667, x = 3274, z = 9817, walkRadius = 5, direction = Direction.NORTH)
spawn_npc(npc = Npcs.HOPELESS_CREATURE_3667, x = 3287, z = 9818, walkRadius = 5, direction = Direction.NORTH)
spawn_npc(npc = Npcs.HOPELESS_CREATURE_3667, x = 3290, z = 9811, walkRadius = 5, direction = Direction.NORTH)
spawn_npc(npc = Npcs.HOPELESS_CREATURE_3667, x = 3289, z = 9798, walkRadius = 5, direction = Direction.NORTH)
spawn_npc(npc = Npcs.HOPELESS_CREATURE_3667, x = 3278, z = 9811, walkRadius = 5, direction = Direction.NORTH)
spawn_npc(npc = Npcs.HOPELESS_CREATURE_3667, x = 3282, z = 9808, walkRadius = 5, direction = Direction.NORTH)
spawn_npc(npc = Npcs.HOPELESS_CREATURE_3667, x = 3276, z = 9804, walkRadius = 5, direction = Direction.NORTH)
spawn_npc(npc = Npcs.HOPELESS_CREATURE_3667, x = 3282, z = 9798, walkRadius = 5, direction = Direction.NORTH)

spawn_npc(npc = Npcs.ANGRY_GOBLIN_3663, x = 3270, z = 9850, walkRadius = 5, direction = Direction.NORTH)
spawn_npc(npc = Npcs.ANGRY_BEAR_3664, x = 3271, z = 9844, walkRadius = 5, direction = Direction.NORTH)
spawn_npc(npc = Npcs.ANGRY_UNICORN_3661, x = 3278, z = 9838, walkRadius = 5, direction = Direction.NORTH)
spawn_npc(npc = Npcs.ANGRY_GIANT_RAT_3662, x = 3278, z = 9828, walkRadius = 5, direction = Direction.NORTH)
spawn_npc(npc = Npcs.ANGRY_BEAR_3664, x = 3284, z = 9833, walkRadius = 5, direction = Direction.NORTH)
spawn_npc(npc = Npcs.ANGRY_UNICORN_3661, x = 3291, z = 9834, walkRadius = 5, direction = Direction.NORTH)
spawn_npc(npc = Npcs.ANGRY_GOBLIN_3663, x = 3291, z = 9841, walkRadius = 5, direction = Direction.NORTH)
spawn_npc(npc = Npcs.ANGRY_GIANT_RAT_3662, x = 3284, z = 9850, walkRadius = 5, direction = Direction.NORTH)

spawn_npc(npc = Npcs.CONFUSION_BEAST_3666, x = 3318, z = 9798, walkRadius = 5, direction = Direction.NORTH)
spawn_npc(npc = Npcs.CONFUSION_BEAST_3666, x = 3311, z = 9797, walkRadius = 5, direction = Direction.NORTH)
spawn_npc(npc = Npcs.CONFUSION_BEAST_3666, x = 3305, z = 9800, walkRadius = 5, direction = Direction.NORTH)
spawn_npc(npc = Npcs.CONFUSION_BEAST_3666, x = 3303, z = 9808, walkRadius = 5, direction = Direction.NORTH)
spawn_npc(npc = Npcs.CONFUSION_BEAST_3666, x = 3307, z = 9812, walkRadius = 5, direction = Direction.NORTH)
spawn_npc(npc = Npcs.CONFUSION_BEAST_3666, x = 3312, z = 9818, walkRadius = 5, direction = Direction.NORTH)
spawn_npc(npc = Npcs.CONFUSION_BEAST_3666, x = 3322, z = 9811, walkRadius = 5, direction = Direction.NORTH)
spawn_npc(npc = Npcs.CONFUSION_BEAST_3666, x = 3318, z = 9807, walkRadius = 5, direction = Direction.NORTH)
spawn_npc(npc = Npcs.CONFUSION_BEAST_3666, x = 3312, z = 9808, walkRadius = 5, direction = Direction.NORTH)
spawn_npc(npc = Npcs.CONFUSION_BEAST_3666, x = 3308, z = 9812, walkRadius = 5, direction = Direction.NORTH)
spawn_npc(npc = Npcs.CONFUSION_BEAST_3666, x = 3319, z = 9817, walkRadius = 5, direction = Direction.NORTH)

spawn_npc(npc = Npcs.FEAR_REAPER_3665, x = 3305, z = 9832, walkRadius = 5, direction = Direction.NORTH)
spawn_npc(npc = Npcs.FEAR_REAPER_3665, x = 3319, z = 9830, walkRadius = 5, direction = Direction.NORTH)
spawn_npc(npc = Npcs.FEAR_REAPER_3665, x = 3320, z = 9834, walkRadius = 5, direction = Direction.NORTH)
spawn_npc(npc = Npcs.FEAR_REAPER_3665, x = 3314, z = 9836, walkRadius = 5, direction = Direction.NORTH)
spawn_npc(npc = Npcs.FEAR_REAPER_3665, x = 3304, z = 9842, walkRadius = 5, direction = Direction.NORTH)
spawn_npc(npc = Npcs.FEAR_REAPER_3665, x = 3310, z = 9844, walkRadius = 5, direction = Direction.NORTH)
spawn_npc(npc = Npcs.FEAR_REAPER_3665, x = 3312, z = 9850, walkRadius = 5, direction = Direction.NORTH)
spawn_npc(npc = Npcs.FEAR_REAPER_3665, x = 3321, z = 9849, walkRadius = 5, direction = Direction.NORTH)
spawn_npc(npc = Npcs.FEAR_REAPER_3665, x = 3323, z = 9841, walkRadius = 5, direction = Direction.NORTH)
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,13 @@ suspend fun chat(it: QueueTask) {
2 -> {
it.chatPlayer("How much does a paper cost?", facialExpression = FacialExpression.CONFUSED)
it.chatNpc(
"Just 50 coins! A steal, if you ask me. Do you want one or not?",
facialExpression = FacialExpression.HAPPY_TALKING
"Just 50 coins! A steal," +
"if you ask me. Do you want one or not?",
facialExpression = FacialExpression.CALM_TALK,
wrap = true
)


when (it.options("Yes, please.", "No, thanks.")) {
1 -> {
it.chatPlayer("Yes, please.", facialExpression = FacialExpression.HAPPY_TALKING)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,36 @@ on_npc_combat(*AberrantSpectreCombatScript.ids) {
/**
* Sets the [on_npc_combat] for Regular Dragons
*/
on_npc_combat(*DragonCombatScript.ids) {
on_npc_combat(*LeatherDragonScript.ids) {
npc.queue {
DragonCombatScript.handleSpecialCombat(this)
LeatherDragonScript.handleSpecialCombat(this)
}
}

/**
* Sets the [on_npc_combat] for Metal Dragons
*/
on_npc_combat(*MetalDragonScript.ids) {
npc.queue {
MetalDragonScript.handleSpecialCombat(this)
}
}

/**
* Sets the [on_npc_combat] for Mithril Dragon
*/
on_npc_combat(*MithrilDragonScript.ids) {
npc.queue {
MithrilDragonScript.handleSpecialCombat(this)
}
}

/**
* Sets the [on_npc_combat] for Mithril Dragon
*/
on_npc_combat(*FrostDragonScript.ids) {
npc.queue {
FrostDragonScript.handleSpecialCombat(this)
}
}

Expand All @@ -46,6 +73,15 @@ on_npc_combat(*HighwaymanCombatScript.ids) {
}
}

/**
* Sets the [on_npc_combat] for Jellys
*/
on_npc_combat(*JellysCombatScript.ids) {
npc.queue {
JellysCombatScript.handleSpecialCombat(this)
}
}

/**
* Sets the [on_npc_combat] for Cockatrices
*/
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
package gg.rsmod.plugins.content.combat.scripts.impl

import gg.rsmod.game.model.combat.CombatClass
import gg.rsmod.game.model.combat.StyleType
import gg.rsmod.game.model.combat.WeaponStyle
import gg.rsmod.game.model.entity.Player
import gg.rsmod.game.model.queue.QueueTask
import gg.rsmod.plugins.api.HitType
import gg.rsmod.plugins.api.cfg.Npcs
import gg.rsmod.plugins.api.ext.*
import gg.rsmod.plugins.content.combat.*
import gg.rsmod.plugins.content.combat.formula.MeleeCombatFormula

object JellysCombatScript {

val ids = intArrayOf(Npcs.JELLY, Npcs.JELLY_1638, Npcs.JELLY_1639,Npcs.JELLY_1640,Npcs.JELLY_1641,Npcs.JELLY_1642)
suspend fun handleSpecialCombat(it: QueueTask) {
val npc = it.npc
var target = npc.getCombatTarget() ?: return

while (npc.canEngageCombat(target)) {
npc.facePawn(target)
if (npc.moveToAttackRange(it, target, distance = 1, projectile = false) && npc.isAttackDelayReady()) {
npc.prepareAttack(CombatClass.MAGIC, StyleType.MAGIC_MELEE, WeaponStyle.ACCURATE)
if (target is Player) {
val player = target
npc.animate(npc.combatDef.attackAnimation)
npc.dealHit(target = target, formula = MeleeCombatFormula, delay = 1, type = HitType.MAGIC)
}
npc.postAttackLogic(target)
}
it.wait(4)
target = npc.getCombatTarget() ?: break
}
npc.resetFacePawn()
npc.removeCombatTarget()
}
}
Loading