Merge remote-tracking branch 'runelite/master'
This commit is contained in:
@@ -11386,5 +11386,13 @@ public final class ItemID
|
|||||||
public static final int TWISTED_TELEPORT_SCROLL = 24460;
|
public static final int TWISTED_TELEPORT_SCROLL = 24460;
|
||||||
public static final int TWISTED_BLUEPRINTS = 24463;
|
public static final int TWISTED_BLUEPRINTS = 24463;
|
||||||
public static final int TWISTED_HORNS = 24466;
|
public static final int TWISTED_HORNS = 24466;
|
||||||
|
public static final int TWISTED_RELICHUNTER_T1_ARMOUR_SET = 24469;
|
||||||
|
public static final int TWISTED_RELICHUNTER_T2_ARMOUR_SET = 24472;
|
||||||
|
public static final int TWISTED_RELICHUNTER_T3_ARMOUR_SET = 24475;
|
||||||
|
public static final int OPEN_HERB_SACK = 24478;
|
||||||
|
public static final int SPICE_RACK = 24479;
|
||||||
|
public static final int OPENED_COAL_BAG = 24480;
|
||||||
|
public static final int OPENED_GEM_BAG = 24481;
|
||||||
|
public static final int OPEN_SEED_BOX = 24482;
|
||||||
/* This file is automatically generated. Do not edit. */
|
/* This file is automatically generated. Do not edit. */
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -12874,5 +12874,11 @@ public final class NullItemID
|
|||||||
public static final int NULL_24465 = 24465;
|
public static final int NULL_24465 = 24465;
|
||||||
public static final int NULL_24467 = 24467;
|
public static final int NULL_24467 = 24467;
|
||||||
public static final int NULL_24468 = 24468;
|
public static final int NULL_24468 = 24468;
|
||||||
|
public static final int NULL_24470 = 24470;
|
||||||
|
public static final int NULL_24471 = 24471;
|
||||||
|
public static final int NULL_24473 = 24473;
|
||||||
|
public static final int NULL_24474 = 24474;
|
||||||
|
public static final int NULL_24476 = 24476;
|
||||||
|
public static final int NULL_24477 = 24477;
|
||||||
/* This file is automatically generated. Do not edit. */
|
/* This file is automatically generated. Do not edit. */
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -19534,5 +19534,7 @@ public final class ObjectID
|
|||||||
public static final int DOOR_HOTSPOT_37617 = 37617;
|
public static final int DOOR_HOTSPOT_37617 = 37617;
|
||||||
public static final int DOOR_HOTSPOT_37618 = 37618;
|
public static final int DOOR_HOTSPOT_37618 = 37618;
|
||||||
public static final int WINDOW_SPACE_37619 = 37619;
|
public static final int WINDOW_SPACE_37619 = 37619;
|
||||||
|
public static final int SPICE_RACK = 37620;
|
||||||
|
public static final int SPICE_RACK_37621 = 37621;
|
||||||
/* This file is automatically generated. Do not edit. */
|
/* This file is automatically generated. Do not edit. */
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1594,4 +1594,6 @@ public final class SpriteID
|
|||||||
public static final int HEALTHBAR_DEFAULT_BACK_140PX = 2189;
|
public static final int HEALTHBAR_DEFAULT_BACK_140PX = 2189;
|
||||||
public static final int HEALTHBAR_DEFAULT_FRONT_160PX = 2190;
|
public static final int HEALTHBAR_DEFAULT_FRONT_160PX = 2190;
|
||||||
public static final int HEALTHBAR_DEFAULT_BACK_160PX = 2191;
|
public static final int HEALTHBAR_DEFAULT_BACK_160PX = 2191;
|
||||||
|
public static final int WIKI_DESELECTED = 2420;
|
||||||
|
public static final int WIKI_SELECTED = 2421;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -171,7 +171,7 @@ public class WidgetID
|
|||||||
static final int SEARCH = 24;
|
static final int SEARCH = 24;
|
||||||
static final int SURFACE_SELECTOR = 32;
|
static final int SURFACE_SELECTOR = 32;
|
||||||
static final int TOOLTIP = 38;
|
static final int TOOLTIP = 38;
|
||||||
static final int OPTION = 43;
|
static final int OPTION = 46;
|
||||||
}
|
}
|
||||||
|
|
||||||
static class SlayerRewards
|
static class SlayerRewards
|
||||||
@@ -342,6 +342,7 @@ public class WidgetID
|
|||||||
static final int RUN_ORB_TEXT = 23;
|
static final int RUN_ORB_TEXT = 23;
|
||||||
static final int SPEC_ORB = 28;
|
static final int SPEC_ORB = 28;
|
||||||
static final int WORLDMAP_ORB = 41;
|
static final int WORLDMAP_ORB = 41;
|
||||||
|
static final int WIKI_BANNER = 43;
|
||||||
}
|
}
|
||||||
|
|
||||||
static class LoginClickToPlayScreen
|
static class LoginClickToPlayScreen
|
||||||
@@ -1187,9 +1188,9 @@ public class WidgetID
|
|||||||
|
|
||||||
static class Options
|
static class Options
|
||||||
{
|
{
|
||||||
static final int MUSIC_SLIDER = 44;
|
static final int MUSIC_SLIDER = 41;
|
||||||
static final int SOUND_EFFECT_SLIDER = 50;
|
static final int SOUND_EFFECT_SLIDER = 46;
|
||||||
static final int AREA_SOUND_SLIDER = 56;
|
static final int AREA_SOUND_SLIDER = 51;
|
||||||
}
|
}
|
||||||
|
|
||||||
static class AchievementDiary
|
static class AchievementDiary
|
||||||
|
|||||||
@@ -163,6 +163,7 @@ public enum WidgetInfo
|
|||||||
MINIMAP_SPEC_ORB(WidgetID.MINIMAP_GROUP_ID, WidgetID.Minimap.SPEC_ORB),
|
MINIMAP_SPEC_ORB(WidgetID.MINIMAP_GROUP_ID, WidgetID.Minimap.SPEC_ORB),
|
||||||
MINIMAP_WORLDMAP_ORB(WidgetID.MINIMAP_GROUP_ID, WidgetID.Minimap.WORLDMAP_ORB),
|
MINIMAP_WORLDMAP_ORB(WidgetID.MINIMAP_GROUP_ID, WidgetID.Minimap.WORLDMAP_ORB),
|
||||||
MINIMAP_WORLD_ORB(WidgetID.MINIMAP_GROUP_ID, WidgetID.Minimap.WORLDMAP_ORB),
|
MINIMAP_WORLD_ORB(WidgetID.MINIMAP_GROUP_ID, WidgetID.Minimap.WORLDMAP_ORB),
|
||||||
|
MINIMAP_WIKI_BANNER(WidgetID.MINIMAP_GROUP_ID, WidgetID.Minimap.WIKI_BANNER),
|
||||||
|
|
||||||
LMS_INFO(WidgetID.LMS_GROUP_ID, WidgetID.Lms.INFO),
|
LMS_INFO(WidgetID.LMS_GROUP_ID, WidgetID.Lms.INFO),
|
||||||
LMS_KDA(WidgetID.LMS_INGAME_GROUP_ID, WidgetID.LmsKDA.INFO),
|
LMS_KDA(WidgetID.LMS_INGAME_GROUP_ID, WidgetID.LmsKDA.INFO),
|
||||||
|
|||||||
@@ -34,9 +34,11 @@ import net.runelite.api.MenuOpcode;
|
|||||||
import net.runelite.api.NPC;
|
import net.runelite.api.NPC;
|
||||||
import net.runelite.api.NPCDefinition;
|
import net.runelite.api.NPCDefinition;
|
||||||
import net.runelite.api.ObjectDefinition;
|
import net.runelite.api.ObjectDefinition;
|
||||||
|
import net.runelite.api.SpriteID;
|
||||||
import net.runelite.api.coords.WorldPoint;
|
import net.runelite.api.coords.WorldPoint;
|
||||||
import net.runelite.api.events.MenuEntryAdded;
|
import net.runelite.api.events.MenuEntryAdded;
|
||||||
import net.runelite.api.events.MenuOptionClicked;
|
import net.runelite.api.events.MenuOptionClicked;
|
||||||
|
import net.runelite.api.events.WidgetHiddenChanged;
|
||||||
import net.runelite.api.events.WidgetLoaded;
|
import net.runelite.api.events.WidgetLoaded;
|
||||||
import net.runelite.api.util.Text;
|
import net.runelite.api.util.Text;
|
||||||
import net.runelite.api.widgets.JavaScriptCallback;
|
import net.runelite.api.widgets.JavaScriptCallback;
|
||||||
@@ -104,14 +106,12 @@ public class WikiPlugin extends Plugin
|
|||||||
@Override
|
@Override
|
||||||
public void startUp()
|
public void startUp()
|
||||||
{
|
{
|
||||||
spriteManager.addSpriteOverrides(WikiSprite.values());
|
|
||||||
clientThread.invokeLater(this::addWidgets);
|
clientThread.invokeLater(this::addWidgets);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void shutDown()
|
public void shutDown()
|
||||||
{
|
{
|
||||||
spriteManager.removeSpriteOverrides(WikiSprite.values());
|
|
||||||
clientThread.invokeLater(() ->
|
clientThread.invokeLater(() ->
|
||||||
{
|
{
|
||||||
Widget minimapOrbs = client.getWidget(WidgetInfo.MINIMAP_ORBS);
|
Widget minimapOrbs = client.getWidget(WidgetInfo.MINIMAP_ORBS);
|
||||||
@@ -126,6 +126,12 @@ public class WikiPlugin extends Plugin
|
|||||||
}
|
}
|
||||||
children[0] = null;
|
children[0] = null;
|
||||||
|
|
||||||
|
Widget vanilla = client.getWidget(WidgetInfo.MINIMAP_WIKI_BANNER);
|
||||||
|
if (vanilla != null)
|
||||||
|
{
|
||||||
|
vanilla.setHidden(false);
|
||||||
|
}
|
||||||
|
|
||||||
onDeselect();
|
onDeselect();
|
||||||
client.setSpellSelected(false);
|
client.setSpellSelected(false);
|
||||||
});
|
});
|
||||||
@@ -148,14 +154,20 @@ public class WikiPlugin extends Plugin
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Widget vanilla = client.getWidget(WidgetInfo.MINIMAP_WIKI_BANNER);
|
||||||
|
if (vanilla != null)
|
||||||
|
{
|
||||||
|
vanilla.setHidden(true);
|
||||||
|
}
|
||||||
|
|
||||||
icon = minimapOrbs.createChild(0, WidgetType.GRAPHIC);
|
icon = minimapOrbs.createChild(0, WidgetType.GRAPHIC);
|
||||||
icon.setSpriteId(WikiSprite.WIKI_ICON.getSpriteId());
|
icon.setSpriteId(SpriteID.WIKI_DESELECTED);
|
||||||
icon.setOriginalX(0);
|
icon.setOriginalX(0);
|
||||||
icon.setOriginalY(2);
|
icon.setOriginalY(0);
|
||||||
icon.setXPositionMode(WidgetPositionMode.ABSOLUTE_RIGHT);
|
icon.setXPositionMode(WidgetPositionMode.ABSOLUTE_RIGHT);
|
||||||
icon.setYPositionMode(WidgetPositionMode.ABSOLUTE_BOTTOM);
|
icon.setYPositionMode(WidgetPositionMode.ABSOLUTE_BOTTOM);
|
||||||
icon.setOriginalWidth(42);
|
icon.setOriginalWidth(40);
|
||||||
icon.setOriginalHeight(16);
|
icon.setOriginalHeight(14);
|
||||||
icon.setTargetVerb("Lookup");
|
icon.setTargetVerb("Lookup");
|
||||||
icon.setName("Wiki");
|
icon.setName("Wiki");
|
||||||
icon.setClickMask(WidgetConfig.USE_GROUND_ITEM | WidgetConfig.USE_ITEM | WidgetConfig.USE_NPC
|
icon.setClickMask(WidgetConfig.USE_GROUND_ITEM | WidgetConfig.USE_ITEM | WidgetConfig.USE_NPC
|
||||||
@@ -164,7 +176,7 @@ public class WikiPlugin extends Plugin
|
|||||||
icon.setOnTargetEnterListener((JavaScriptCallback) ev ->
|
icon.setOnTargetEnterListener((JavaScriptCallback) ev ->
|
||||||
{
|
{
|
||||||
wikiSelected = true;
|
wikiSelected = true;
|
||||||
icon.setSpriteId(WikiSprite.WIKI_SELECTED_ICON.getSpriteId());
|
icon.setSpriteId(SpriteID.WIKI_SELECTED);
|
||||||
client.setAllWidgetsAreOpTargetable(true);
|
client.setAllWidgetsAreOpTargetable(true);
|
||||||
});
|
});
|
||||||
icon.setAction(5, "Search"); // Start at option 5 so the target op is ontop
|
icon.setAction(5, "Search"); // Start at option 5 so the target op is ontop
|
||||||
@@ -180,6 +192,15 @@ public class WikiPlugin extends Plugin
|
|||||||
icon.revalidate();
|
icon.revalidate();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Subscribe
|
||||||
|
private void onWidgetHiddenChanged(WidgetHiddenChanged ev)
|
||||||
|
{
|
||||||
|
if (ev.getWidget().getId() == WidgetInfo.MINIMAP_WIKI_BANNER.getId())
|
||||||
|
{
|
||||||
|
ev.getWidget().setHidden(true);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
private void onDeselect()
|
private void onDeselect()
|
||||||
{
|
{
|
||||||
client.setAllWidgetsAreOpTargetable(false);
|
client.setAllWidgetsAreOpTargetable(false);
|
||||||
@@ -187,7 +208,7 @@ public class WikiPlugin extends Plugin
|
|||||||
wikiSelected = false;
|
wikiSelected = false;
|
||||||
if (icon != null)
|
if (icon != null)
|
||||||
{
|
{
|
||||||
icon.setSpriteId(WikiSprite.WIKI_ICON.getSpriteId());
|
icon.setSpriteId(SpriteID.WIKI_DESELECTED);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -352,59 +373,6 @@ public class WikiPlugin extends Plugin
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (Ints.contains(QUESTLIST_WIDGET_IDS, widgetID)
|
|
||||||
&& ((wikiSelected && widgetIndex != -1) || "Read Journal:".equals(event.getOption())))
|
|
||||||
{
|
|
||||||
Widget w = getWidget(widgetID, widgetIndex);
|
|
||||||
String target = w.getName();
|
|
||||||
|
|
||||||
client.insertMenuItem(
|
|
||||||
MENUOP_QUICKGUIDE,
|
|
||||||
target,
|
|
||||||
MenuOpcode.RUNELITE.getId(),
|
|
||||||
0,
|
|
||||||
widgetIndex,
|
|
||||||
widgetID,
|
|
||||||
false
|
|
||||||
);
|
|
||||||
|
|
||||||
client.insertMenuItem(
|
|
||||||
MENUOP_GUIDE,
|
|
||||||
target,
|
|
||||||
MenuOpcode.RUNELITE.getId(),
|
|
||||||
0,
|
|
||||||
widgetIndex,
|
|
||||||
widgetID,
|
|
||||||
false
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (widgetID == WidgetInfo.ACHIEVEMENT_DIARY_CONTAINER.getId()
|
|
||||||
&& event.getOption().contains("Open"))
|
|
||||||
{
|
|
||||||
Widget w = getWidget(widgetID, widgetIndex);
|
|
||||||
if (w.getActions() == null)
|
|
||||||
{
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
String action = firstAction(w);
|
|
||||||
if (action == null)
|
|
||||||
{
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
client.insertMenuItem(
|
|
||||||
MENUOP_WIKI,
|
|
||||||
action.replace("Open ", "").replace("Journal", "Diary"),
|
|
||||||
MenuOpcode.RUNELITE.getId(),
|
|
||||||
0,
|
|
||||||
widgetIndex,
|
|
||||||
widgetID,
|
|
||||||
false
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (WidgetInfo.TO_GROUP(widgetID) == WidgetInfo.SKILLS_CONTAINER.getGroupId()
|
if (WidgetInfo.TO_GROUP(widgetID) == WidgetInfo.SKILLS_CONTAINER.getGroupId()
|
||||||
&& event.getOption().contains("View"))
|
&& event.getOption().contains("View"))
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,45 +0,0 @@
|
|||||||
/*
|
|
||||||
* Copyright (c) 2018 Abex
|
|
||||||
* All rights reserved.
|
|
||||||
*
|
|
||||||
* Redistribution and use in source and binary forms, with or without
|
|
||||||
* modification, are permitted provided that the following conditions are met:
|
|
||||||
*
|
|
||||||
* 1. Redistributions of source code must retain the above copyright notice, this
|
|
||||||
* list of conditions and the following disclaimer.
|
|
||||||
* 2. Redistributions in binary form must reproduce the above copyright notice,
|
|
||||||
* this list of conditions and the following disclaimer in the documentation
|
|
||||||
* and/or other materials provided with the distribution.
|
|
||||||
*
|
|
||||||
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
|
||||||
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
|
||||||
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
||||||
* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
|
|
||||||
* ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
|
|
||||||
* (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
|
|
||||||
* LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
|
|
||||||
* ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
|
||||||
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
|
||||||
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
||||||
*/
|
|
||||||
package net.runelite.client.plugins.wiki;
|
|
||||||
|
|
||||||
import lombok.AccessLevel;
|
|
||||||
import lombok.Getter;
|
|
||||||
import lombok.RequiredArgsConstructor;
|
|
||||||
import net.runelite.api.SpriteID;
|
|
||||||
import net.runelite.client.game.SpriteOverride;
|
|
||||||
|
|
||||||
@RequiredArgsConstructor
|
|
||||||
public enum WikiSprite implements SpriteOverride
|
|
||||||
{
|
|
||||||
WIKI_ICON(-300, "wiki.png"),
|
|
||||||
WIKI_SELECTED_ICON(-301, "wiki_selected.png"),
|
|
||||||
FIXED_MODE_MINIMAP_CLICKMASK(SpriteID.MINIMAP_CLICK_MASK, "fixed_mode_minimap_clickmask.png");
|
|
||||||
|
|
||||||
@Getter(AccessLevel.PUBLIC)
|
|
||||||
private final int spriteId;
|
|
||||||
|
|
||||||
@Getter(AccessLevel.PUBLIC)
|
|
||||||
private final String fileName;
|
|
||||||
}
|
|
||||||
@@ -9676,5 +9676,10 @@
|
|||||||
24438,
|
24438,
|
||||||
24439,
|
24439,
|
||||||
24440
|
24440
|
||||||
|
],
|
||||||
|
"twisted relichunter armour set": [
|
||||||
|
24469,
|
||||||
|
24472,
|
||||||
|
24475
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|||||||
BIN
Binary file not shown.
|
Before Width: | Height: | Size: 654 B |
Binary file not shown.
|
Before Width: | Height: | Size: 3.0 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 3.0 KiB |
@@ -1 +1 @@
|
|||||||
2F7E219C24E4725FA8F3BCDD9F2A640666CC589B514FEBD9F5938B207F06C0EB
|
1E915795AFAA25E3ABE595EEAC55423C3E5E9E5CE2582AD1A5AAEC91647CC124
|
||||||
@@ -39,7 +39,7 @@ LABEL20:
|
|||||||
if_icmpeq LABEL31
|
if_icmpeq LABEL31
|
||||||
iconst 0 ; Modified to enable clanchat input
|
iconst 0 ; Modified to enable clanchat input
|
||||||
sconst "clanchatInput"
|
sconst "clanchatInput"
|
||||||
runelite_callback
|
runelite_callback
|
||||||
iconst 1
|
iconst 1
|
||||||
if_icmpeq LABEL31 ; Compare to 1
|
if_icmpeq LABEL31 ; Compare to 1
|
||||||
jump LABEL37
|
jump LABEL37
|
||||||
@@ -82,13 +82,13 @@ LABEL58:
|
|||||||
iload 0
|
iload 0
|
||||||
iconst 84
|
iconst 84
|
||||||
if_icmpeq LABEL62
|
if_icmpeq LABEL62
|
||||||
jump LABEL179
|
jump LABEL189
|
||||||
LABEL62:
|
LABEL62:
|
||||||
invoke 1984
|
invoke 1984
|
||||||
iload 2
|
iload 2
|
||||||
iconst 0
|
iconst 0
|
||||||
if_icmpgt LABEL67
|
if_icmpgt LABEL67
|
||||||
jump LABEL178
|
jump LABEL188
|
||||||
LABEL67:
|
LABEL67:
|
||||||
get_varc_string 335
|
get_varc_string 335
|
||||||
sconst "/"
|
sconst "/"
|
||||||
@@ -146,7 +146,7 @@ LABEL108:
|
|||||||
iconst 0
|
iconst 0
|
||||||
invoke 96
|
invoke 96
|
||||||
LABEL111:
|
LABEL111:
|
||||||
jump LABEL174
|
jump LABEL184
|
||||||
LABEL112:
|
LABEL112:
|
||||||
get_varc_string 335
|
get_varc_string 335
|
||||||
sconst "::"
|
sconst "::"
|
||||||
@@ -154,12 +154,12 @@ LABEL112:
|
|||||||
string_indexof_string
|
string_indexof_string
|
||||||
iconst 0
|
iconst 0
|
||||||
if_icmpeq LABEL119
|
if_icmpeq LABEL119
|
||||||
jump LABEL171
|
jump LABEL181
|
||||||
LABEL119:
|
LABEL119:
|
||||||
iload 2
|
iload 2
|
||||||
iconst 2
|
iconst 2
|
||||||
if_icmpgt LABEL123
|
if_icmpgt LABEL123
|
||||||
jump LABEL167
|
jump LABEL177
|
||||||
LABEL123:
|
LABEL123:
|
||||||
get_varc_string 335
|
get_varc_string 335
|
||||||
sconst "::toggleroof"
|
sconst "::toggleroof"
|
||||||
@@ -185,23 +185,35 @@ LABEL139:
|
|||||||
sconst "Roofs are now all hidden."
|
sconst "Roofs are now all hidden."
|
||||||
mes
|
mes
|
||||||
LABEL143:
|
LABEL143:
|
||||||
jump LABEL166
|
jump LABEL176
|
||||||
LABEL144:
|
LABEL144:
|
||||||
get_varc_string 335
|
get_varc_string 335
|
||||||
sconst "::bank"
|
sconst "::wiki"
|
||||||
iconst 0
|
iconst 0
|
||||||
string_indexof_string
|
string_indexof_string
|
||||||
iconst 0
|
iconst 0
|
||||||
if_icmpeq LABEL151
|
if_icmpeq LABEL151
|
||||||
sconst "runeliteCommand" ; load callback name
|
sconst "runeliteCommand" ; load callback name
|
||||||
runelite_callback ; invoke callback
|
runelite_callback ; invoke callback
|
||||||
jump LABEL155
|
jump LABEL154
|
||||||
LABEL151:
|
LABEL151:
|
||||||
|
get_varc_string 335
|
||||||
|
invoke 3299
|
||||||
|
jump LABEL176
|
||||||
|
LABEL154:
|
||||||
|
get_varc_string 335
|
||||||
|
sconst "::bank"
|
||||||
|
iconst 0
|
||||||
|
string_indexof_string
|
||||||
|
iconst 0
|
||||||
|
if_icmpeq LABEL161
|
||||||
|
jump LABEL165
|
||||||
|
LABEL161:
|
||||||
sconst "Hey, everyone, I just tried to do something very silly!"
|
sconst "Hey, everyone, I just tried to do something very silly!"
|
||||||
iconst 0
|
iconst 0
|
||||||
invoke 96
|
invoke 96
|
||||||
jump LABEL166
|
jump LABEL176
|
||||||
LABEL155:
|
LABEL165:
|
||||||
get_varc_string 335
|
get_varc_string 335
|
||||||
invoke 224
|
invoke 224
|
||||||
set_varc_string 335
|
set_varc_string 335
|
||||||
@@ -213,42 +225,28 @@ LABEL155:
|
|||||||
iload 2
|
iload 2
|
||||||
substring
|
substring
|
||||||
docheat
|
docheat
|
||||||
LABEL166:
|
LABEL176:
|
||||||
jump LABEL170
|
jump LABEL180
|
||||||
LABEL167:
|
LABEL177:
|
||||||
get_varc_string 335
|
get_varc_string 335
|
||||||
iconst 0
|
iconst 0
|
||||||
invoke 96
|
invoke 96
|
||||||
LABEL170:
|
LABEL180:
|
||||||
jump LABEL174
|
jump LABEL184
|
||||||
LABEL171:
|
LABEL181:
|
||||||
get_varc_string 335
|
get_varc_string 335
|
||||||
iconst 0
|
iconst 0
|
||||||
invoke 96
|
invoke 96
|
||||||
LABEL174:
|
LABEL184:
|
||||||
get_varc_string 335
|
get_varc_string 335
|
||||||
invoke 77
|
invoke 77
|
||||||
sconst ""
|
sconst ""
|
||||||
set_varc_string 335
|
set_varc_string 335
|
||||||
LABEL178:
|
|
||||||
jump LABEL247
|
|
||||||
LABEL179:
|
|
||||||
iload 0
|
|
||||||
iconst 104
|
|
||||||
if_icmpeq LABEL183
|
|
||||||
jump LABEL189
|
|
||||||
LABEL183:
|
|
||||||
iload 3
|
|
||||||
iconst 1
|
|
||||||
if_icmpeq LABEL187
|
|
||||||
jump LABEL188
|
|
||||||
LABEL187:
|
|
||||||
invoke 75
|
|
||||||
LABEL188:
|
LABEL188:
|
||||||
jump LABEL247
|
jump LABEL257
|
||||||
LABEL189:
|
LABEL189:
|
||||||
iload 0
|
iload 0
|
||||||
iconst 105
|
iconst 104
|
||||||
if_icmpeq LABEL193
|
if_icmpeq LABEL193
|
||||||
jump LABEL199
|
jump LABEL199
|
||||||
LABEL193:
|
LABEL193:
|
||||||
@@ -257,38 +255,52 @@ LABEL193:
|
|||||||
if_icmpeq LABEL197
|
if_icmpeq LABEL197
|
||||||
jump LABEL198
|
jump LABEL198
|
||||||
LABEL197:
|
LABEL197:
|
||||||
invoke 76
|
invoke 75
|
||||||
LABEL198:
|
LABEL198:
|
||||||
jump LABEL247
|
jump LABEL257
|
||||||
LABEL199:
|
LABEL199:
|
||||||
iload 0
|
iload 0
|
||||||
iconst 80
|
iconst 105
|
||||||
if_icmpeq LABEL203
|
if_icmpeq LABEL203
|
||||||
jump LABEL241
|
jump LABEL209
|
||||||
LABEL203:
|
LABEL203:
|
||||||
|
iload 3
|
||||||
|
iconst 1
|
||||||
|
if_icmpeq LABEL207
|
||||||
|
jump LABEL208
|
||||||
|
LABEL207:
|
||||||
|
invoke 76
|
||||||
|
LABEL208:
|
||||||
|
jump LABEL257
|
||||||
|
LABEL209:
|
||||||
|
iload 0
|
||||||
|
iconst 80
|
||||||
|
if_icmpeq LABEL213
|
||||||
|
jump LABEL251
|
||||||
|
LABEL213:
|
||||||
get_varc_string 356
|
get_varc_string 356
|
||||||
string_length
|
string_length
|
||||||
iconst 0
|
iconst 0
|
||||||
if_icmpgt LABEL208
|
if_icmpgt LABEL218
|
||||||
jump LABEL228
|
jump LABEL238
|
||||||
LABEL208:
|
LABEL218:
|
||||||
get_varc_string 356
|
get_varc_string 356
|
||||||
friend_test
|
friend_test
|
||||||
iconst 1
|
iconst 1
|
||||||
if_icmpeq LABEL213
|
if_icmpeq LABEL223
|
||||||
jump LABEL216
|
jump LABEL226
|
||||||
LABEL213:
|
LABEL223:
|
||||||
get_varc_string 356
|
get_varc_string 356
|
||||||
invoke 107
|
invoke 107
|
||||||
return
|
return
|
||||||
LABEL216:
|
LABEL226:
|
||||||
get_varc_int 60
|
get_varc_int 60
|
||||||
clientclock
|
clientclock
|
||||||
if_icmpgt LABEL220
|
if_icmpgt LABEL230
|
||||||
jump LABEL221
|
jump LABEL231
|
||||||
LABEL220:
|
LABEL230:
|
||||||
return
|
return
|
||||||
LABEL221:
|
LABEL231:
|
||||||
clientclock
|
clientclock
|
||||||
iconst 50
|
iconst 50
|
||||||
add
|
add
|
||||||
@@ -296,14 +308,14 @@ LABEL221:
|
|||||||
sconst "That player was not found on your Friends list."
|
sconst "That player was not found on your Friends list."
|
||||||
mes
|
mes
|
||||||
return
|
return
|
||||||
LABEL228:
|
LABEL238:
|
||||||
get_varc_int 60
|
get_varc_int 60
|
||||||
clientclock
|
clientclock
|
||||||
if_icmpgt LABEL232
|
if_icmpgt LABEL242
|
||||||
jump LABEL233
|
jump LABEL243
|
||||||
LABEL232:
|
LABEL242:
|
||||||
return
|
return
|
||||||
LABEL233:
|
LABEL243:
|
||||||
clientclock
|
clientclock
|
||||||
iconst 50
|
iconst 50
|
||||||
add
|
add
|
||||||
@@ -311,8 +323,8 @@ LABEL233:
|
|||||||
sconst "You haven't received any messages to which you can reply."
|
sconst "You haven't received any messages to which you can reply."
|
||||||
mes
|
mes
|
||||||
return
|
return
|
||||||
jump LABEL247
|
jump LABEL257
|
||||||
LABEL241:
|
LABEL251:
|
||||||
get_varc_string 335
|
get_varc_string 335
|
||||||
iconst 0
|
iconst 0
|
||||||
iload 0
|
iload 0
|
||||||
@@ -324,9 +336,9 @@ LABEL241:
|
|||||||
runelite_callback ;
|
runelite_callback ;
|
||||||
if_icmpeq SKIPSETVARC ; skip setting varc with input
|
if_icmpeq SKIPSETVARC ; skip setting varc with input
|
||||||
set_varc_string 335
|
set_varc_string 335
|
||||||
jump LABEL247 ; jump over SKIPSETVARC
|
jump LABEL257 ; jump over SKIPSETVARC
|
||||||
SKIPSETVARC:
|
SKIPSETVARC:
|
||||||
pop_string ; pop message
|
pop_string ; pop message
|
||||||
LABEL247:
|
LABEL257:
|
||||||
invoke 223
|
invoke 223
|
||||||
return
|
return
|
||||||
|
|||||||
Reference in New Issue
Block a user