Skip to content
Open
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
21 changes: 21 additions & 0 deletions scripts/_test/scripts/cheats/cheat_quest.rs2
Original file line number Diff line number Diff line change
Expand Up @@ -472,3 +472,24 @@ return;
~update_questlist;
mes("All quests have been reset.");
return;

//regicide
[debugproc,spkm]
settimer(spawn_kings_messenger, 10);

//temple of ikov
[debugproc,iku]
if (p_finduid(uid) = false) { return; }
%ikov = calc(%ikov + 10);
~send_quest_progress(questlist:ikov, %ikov, ^ikov_completed_armadyl);
mes("Ikov stage increased to <tostring(%ikov)>");

[debugproc,ikd]
if (p_finduid(uid) = false) { return; }
%ikov = calc(%ikov - 10);
~send_quest_progress(questlist:ikov, %ikov, ^ikov_completed_armadyl);
mes("Ikov stage decreased to <tostring(%ikov)>");

//elemental workshop
[debugproc,tew]
queue(elemental_workshop_quest_complete, 0, 0);
18 changes: 18 additions & 0 deletions scripts/_test/scripts/debug/debug_others.rs2
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,21 @@ if (p_finduid(uid) = true) {

[debugproc,members]
mes("Your membership status is: <tostring(playermember)>");

//maze random
[debugproc,maze]
if (p_finduid(uid) = false) {
return;
}
def_coord $coord = enum(int, coord, macro_maze_teleports, random(enum_getoutputcount(macro_maze_teleports)));
%xplamp = 100;
%macro_event_target_coord = coord;
p_telejump($coord);
~chatnpc_specific("Mysterious Old Man", macro_mysterious_old_man, "<p,neutral>You need to reach the maze centre,|then you'll be returned to where you were."); // Split line as per https://imgur.com/riCliBA
mes("You need to reach the maze centre, then you'll be returned to where you were.");

[debugproc,mazeend]
if (p_finduid(uid) = false) {
return;
}
p_telejump(0_45_71_30_32);
17 changes: 0 additions & 17 deletions scripts/macro events/scripts/general/macro_event_maze.rs2
Original file line number Diff line number Diff line change
Expand Up @@ -78,23 +78,6 @@ if_close;
[oploc1,loc_3636] // Open chest search option
~mesbox("Awww, it's empty!");

[debugproc,maze]
if (p_finduid(uid) = false) {
return;
}
def_coord $coord = enum(int, coord, macro_maze_teleports, random(enum_getoutputcount(macro_maze_teleports)));
%xplamp = 100;
%macro_event_target_coord = coord;
p_telejump($coord);
~chatnpc_specific("Mysterious Old Man", macro_mysterious_old_man, "<p,neutral>You need to reach the maze centre,|then you'll be returned to where you were."); // Split line as per https://imgur.com/riCliBA
mes("You need to reach the maze centre, then you'll be returned to where you were.");

[debugproc,mazeend]
if (p_finduid(uid) = false) {
return;
}
p_telejump(0_45_71_30_32);

[proc,macro_maze_open_chest](loc $other_chest)
p_arrivedelay;
anim(human_openchest, 0);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -276,6 +276,3 @@ stat_advance(smithing, 50000);
session_log(^log_adventure, "Quest complete: Elemental Workshop");
// todo: find image for proof on sizing
~send_quest_complete(questlist:elemental_workshop, elemental_shield, 250, ^elemental_workshop_questpoints, "You have completed the\\nElemental Workshop Quest!");

[debugproc,tew]
queue(elemental_workshop_quest_complete, 0, 0);
11 changes: 0 additions & 11 deletions scripts/quests/quest_ikov/scripts/ikov_journal.rs2
Original file line number Diff line number Diff line change
@@ -1,14 +1,3 @@
[debugproc,iku]
if (p_finduid(uid) = false) { return; }
%ikov = calc(%ikov + 10);
~send_quest_progress(questlist:ikov, %ikov, ^ikov_completed_armadyl);
mes("Ikov stage increased to <tostring(%ikov)>");
[debugproc,ikd]
if (p_finduid(uid) = false) { return; }
%ikov = calc(%ikov - 10);
~send_quest_progress(questlist:ikov, %ikov, ^ikov_completed_armadyl);
mes("Ikov stage decreased to <tostring(%ikov)>");

[if_button,questlist:ikov]
//TODO: Figure out proper line breaks (Engine change to split_init/get?)
//sources:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,3 @@ if(uid = %npc_aggressive_player & %upass = ^upass_complete & %regicide_quest = 0
@kings_messenger_dialogue;
}
~chatnpc("<p,neutral>I have no business with you.");

[debugproc,spkm]
settimer(spawn_kings_messenger, 10);
Loading