Skip to content

Commit

Permalink
fix(content): thessalia dialogue, bunny_ears, scythe
Browse files Browse the repository at this point in the history
  • Loading branch information
dhemms committed Feb 6, 2025
1 parent 98031ee commit 0e54dd5
Showing 1 changed file with 9 additions and 22 deletions.
31 changes: 9 additions & 22 deletions data/src/scripts/player/scripts/untradeable_holiday_items.rs2
Original file line number Diff line number Diff line change
Expand Up @@ -11,25 +11,12 @@ if (inv_total(inv, scythe) >= 1 | inv_total(bank, scythe) >= 1 | inv_total(worn,
}

// RSC message: https://classic.runescape.wiki/w/Bunny_ears#/media/File:Collecting_Bunny_Ears_(only_have_one_head).jpg
//[opobj3,bunny_ears]
//if (inv_total(inv, bunny_ears) >= 1 | inv_total(bank, bunny_ears) >= 1 | inv_total(worn, bunny_ears) >= 1) {
// mes("You don't need another set of bunny ears.");
// mes("You only have one head.");
// return;
//} else {
// %bunny_ears_unlocked = 1; //currently the only place this is set. if they are introduced to the game in another way, this needs setting elsewhere
// @pickup_obj(obj_coord, obj_type, obj_count);
//}

// bunny_ears doesn't work for some reason. Error:
//Exception in thread "main" java.lang.IllegalStateException: Unable to find id for ClientScriptSymbol(trigger=OPOBJ3, name=bunny_ears, parameters=me.filby.neptune.runescript.compiler.type.MetaType$Unit@9408857, returns=me.filby.neptune.runescript.compiler.type.MetaType$Nothing@27e44e9c)
// at me.filby.neptune.clientscript.compiler.SymbolMapper.get(SymbolMapper.kt:60)
// at me.filby.neptune.clientscript.compiler.writer.JagFileScriptWriter.outputScript(JagFileScriptWriter.kt:36)
// at me.filby.neptune.clientscript.compiler.writer.BinaryScriptWriter.finishWrite(BinaryScriptWriter.kt:44)
// at me.filby.neptune.clientscript.compiler.writer.BinaryScriptWriter.finishWrite(BinaryScriptWriter.kt:30)
// at me.filby.neptune.runescript.compiler.writer.BaseScriptWriter.write(BaseScriptWriter.kt:38)
// at me.filby.neptune.runescript.compiler.ScriptCompiler.write(ScriptCompiler.kt:351)
// at me.filby.neptune.runescript.compiler.ScriptCompiler.compile(ScriptCompiler.kt:200)
// at me.filby.neptune.runescript.compiler.ScriptCompiler.run(ScriptCompiler.kt:156)
// at me.filby.neptune.clientscript.compiler.ClientScriptCompilerApplicationKt.main(ClientScriptCompilerApplication.kt:48)
//Failed to compile scripts.
[opobj3,bunny_ears]
if (inv_total(inv, bunny_ears) >= 1 | inv_total(bank, bunny_ears) >= 1 | inv_total(worn, bunny_ears) >= 1) {
mes("You don't need another set of bunny ears.");
mes("You only have one head.");
return;
} else {
%bunny_ears_unlocked = 1; //currently the only place this is set. if they are introduced to the game in another way, this needs setting elsewhere
@pickup_obj(obj_coord, obj_type, obj_count);
}

0 comments on commit 0e54dd5

Please sign in to comment.