forked from cdrock/TourGuide
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmisctools
More file actions
103 lines (96 loc) · 5.34 KB
/
misctools
File metadata and controls
103 lines (96 loc) · 5.34 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
//Lock Picking
RegisterTaskGenerationFunction("LockPickingGenerateTasks");
void LockPickingGenerateTasks(ChecklistEntry [int] task_entries, ChecklistEntry [int] optional_task_entries, ChecklistEntry [int] future_task_entries)
{
if (get_property_boolean("lockPicked") == true || !lookupSkill("Lock Picking").have_skill())
return;
{
string [int] description;
string main_title = "Pick a lock!";
description.listAppend("Grab your mainstat key, probably.");
task_entries.listAppend(ChecklistEntryMake("__skill lock picking", "skillz.php", ChecklistSubentryMake(main_title, "", description), -11));
}
}
//Daily Dungeon task
RegisterTaskGenerationFunction("DailyDungeonGenerateTasks");
void DailyDungeonGenerateTasks(ChecklistEntry [int] task_entries, ChecklistEntry [int] optional_task_entries, ChecklistEntry [int] future_task_entries)
{
if ((get_property_int("_lastDailyDungeonRoom") == 15) || !__misc_state["in run"]) return;
int DAILYDUNGEON = (get_property_int("_lastDailyDungeonRoom"));
if (DAILYDUNGEON < 14) {
string [int] description;
description.listAppend("HOLY FUCK DO NOT MESS THIS UP DO DAILY DUNGEON");
description.listAppend(15 - DAILYDUNGEON + " room(s) remaining.");
task_entries.listAppend(ChecklistEntryMake("__item fat loot token", "", ChecklistSubentryMake("Daily Dungeon Duty", description), 1).ChecklistEntrySetIDTag("daily dungeon task"));
}
if (DAILYDUNGEON == 14) {
string [int] description;
description.listAppend("HOLY FUCK DO NOT MESS THIS UP DO DAILY DUNGEON");
description.listAppend(15 - DAILYDUNGEON + " room(s) remaining.");
task_entries.listAppend(ChecklistEntryMake("__item fat loot token", "", ChecklistSubentryMake("Daily Dungeon Duty", description), -11).ChecklistEntrySetIDTag("daily dungeon task"));
}
}
//Olfaction
RegisterResourceGenerationFunction("OlfactionGenerateResource");
void OlfactionGenerateResource(ChecklistEntry [int] resource_entries)
{
if (!lookupSkill("Transcendent Olfaction").have_skill()) return;
// Title
string main_title = "Olfaction sniffing";
string [int] description;
// Entries
int olfactionSniffs = clampi(3 - get_property_int("_olfactionsUsed"), 0, 3);
monster olfactionMonster = get_property_monster("olfactedMonster");
monster turtleSexMonster = get_property_monster("_gallapagosMonster");
description.listAppend(HTMLGenerateSpanFont("oh yes my dear....sssnnnnnnnnnnnniiiiiiiiffffffff....quite pungent indeed...", "green"));
description.listAppend(HTMLGenerateSpanFont(olfactionMonster, "green") + " is currently being tracked.");
if (turtleSexMonster != $monster[none]) {
description.listAppend(HTMLGenerateSpanFont(turtleSexMonster, "purple") + " is currently being turtlesexed.");
}
resource_entries.listAppend(ChecklistEntryMake("__skill Transcendent Olfaction", "url", ChecklistSubentryMake(olfactionSniffs + " Olfaction sniffs available", "", description)).ChecklistEntrySetCombinationTag("olfaction").ChecklistEntrySetIDTag("Olfaction queue manipulation"));
}
//Clovers and Lucky
RegisterResourceGenerationFunction("LuckyGenerateResource");
void LuckyGenerateResource(ChecklistEntry [int] resource_entries)
{
if (!__misc_state["in run"]) return;
{
string [int] description;
string url;
description.listAppend(HTMLGenerateSpanFont("Have a Lucky adventure!", "green"));
description.listAppend("1x ore, 4x Zeppelin protesters, 1x wand.");
if ($item[11-leaf clover].available_amount() > 0)
{
url = invSearch("11-leaf clover");
resource_entries.listAppend(ChecklistEntryMake("__item 11-leaf clover", url, ChecklistSubentryMake(pluralise($item[11-leaf clover]), "Inhale leaves for good luck", description), 2).ChecklistEntrySetCombinationTag("fortune"));
}
if ($item[[10883]astral energy drink].available_amount() > 0 && $item[11-leaf clover].available_amount() == 0)
{
url = invSearch("astral energy drink");
resource_entries.listAppend(ChecklistEntryMake("__item [10883]astral energy drink", url, ChecklistSubentryMake(pluralise($item[[10883]astral energy drink]), "Costs 5 spleen each", description), 2).ChecklistEntrySetCombinationTag("fortune"));
}
else if ($item[[10883]astral energy drink].available_amount() > 0 && $item[11-leaf clover].available_amount() > 0)
{
url = invSearch("astral energy drink");
resource_entries.listAppend(ChecklistEntryMake("__item [10883]astral energy drink", url, ChecklistSubentryMake(pluralise($item[[10883]astral energy drink]), "Costs 5 spleen each", ""), 2).ChecklistEntrySetCombinationTag("fortune"));
}
}
}
RegisterTaskGenerationFunction("LuckyGenerateTasks");
void LuckyGenerateTasks(ChecklistEntry [int] task_entries, ChecklistEntry [int] optional_task_entries, ChecklistEntry [int] future_task_entries)
{
if ($effect[lucky!].have_effect() > 0) {
string [int] description;
string main_title = HTMLGenerateSpanFont("You feel lucky, punk!", "green") + "";
if (__misc_state["in run"] && my_path_id() == 44) {
description.listAppend("1x ore, 1x freezerburned ice cube, 1x full-length mirror.");
}
else if (__misc_state["in run"]) {
description.listAppend("1x ore, 4x Zeppelin protesters, 1x wand.");
}
else {
description.listAppend("I dunno. Full-length mirror?");
}
task_entries.listAppend(ChecklistEntryMake("__item 11-leaf clover", "", ChecklistSubentryMake(main_title, description), -11).ChecklistEntrySetIDTag("Fortune adventure now"));
}
}