Merge branch 'master' of https://github.com/runelite/runelite into raids_party_display
This commit is contained in:
@@ -99,6 +99,9 @@ public class ConfigManager
|
||||
|
||||
public final void switchSession(AccountSession session)
|
||||
{
|
||||
// Ensure existing config is saved
|
||||
sendConfig();
|
||||
|
||||
if (session == null)
|
||||
{
|
||||
this.session = null;
|
||||
@@ -315,7 +318,7 @@ public class ConfigManager
|
||||
}
|
||||
}
|
||||
|
||||
private synchronized void saveToFile(final File propertiesFile) throws IOException
|
||||
private void saveToFile(final File propertiesFile) throws IOException
|
||||
{
|
||||
propertiesFile.getParentFile().mkdirs();
|
||||
|
||||
@@ -392,19 +395,6 @@ public class ConfigManager
|
||||
pendingChanges.put(groupName + "." + key, value);
|
||||
}
|
||||
|
||||
Runnable task = () ->
|
||||
{
|
||||
try
|
||||
{
|
||||
saveToFile(propertiesFile);
|
||||
}
|
||||
catch (IOException ex)
|
||||
{
|
||||
log.warn("unable to save configuration file", ex);
|
||||
}
|
||||
};
|
||||
executor.execute(task);
|
||||
|
||||
ConfigChanged configChanged = new ConfigChanged();
|
||||
configChanged.setGroup(groupName);
|
||||
configChanged.setKey(key);
|
||||
@@ -435,19 +425,6 @@ public class ConfigManager
|
||||
pendingChanges.put(groupName + "." + key, null);
|
||||
}
|
||||
|
||||
Runnable task = () ->
|
||||
{
|
||||
try
|
||||
{
|
||||
saveToFile(propertiesFile);
|
||||
}
|
||||
catch (IOException ex)
|
||||
{
|
||||
log.warn("unable to save configuration file", ex);
|
||||
}
|
||||
};
|
||||
executor.execute(task);
|
||||
|
||||
ConfigChanged configChanged = new ConfigChanged();
|
||||
configChanged.setGroup(groupName);
|
||||
configChanged.setKey(key);
|
||||
@@ -653,6 +630,7 @@ public class ConfigManager
|
||||
|
||||
public void sendConfig()
|
||||
{
|
||||
boolean changed;
|
||||
synchronized (pendingChanges)
|
||||
{
|
||||
if (client != null)
|
||||
@@ -672,7 +650,20 @@ public class ConfigManager
|
||||
}
|
||||
}
|
||||
}
|
||||
changed = !pendingChanges.isEmpty();
|
||||
pendingChanges.clear();
|
||||
}
|
||||
|
||||
if (changed)
|
||||
{
|
||||
try
|
||||
{
|
||||
saveToFile(propertiesFile);
|
||||
}
|
||||
catch (IOException ex)
|
||||
{
|
||||
log.warn("unable to save configuration file", ex);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,158 +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.game;
|
||||
|
||||
import com.google.inject.Inject;
|
||||
import com.google.inject.Singleton;
|
||||
import java.util.function.Consumer;
|
||||
import lombok.Getter;
|
||||
import net.runelite.api.Client;
|
||||
import net.runelite.api.ScriptID;
|
||||
import net.runelite.api.events.ScriptCallbackEvent;
|
||||
import net.runelite.client.callback.ClientThread;
|
||||
import net.runelite.client.eventbus.EventBus;
|
||||
import net.runelite.client.eventbus.Subscribe;
|
||||
|
||||
@Singleton
|
||||
public class ChatboxInputManager
|
||||
{
|
||||
public static final int NO_LIMIT = Integer.MAX_VALUE;
|
||||
private final Client client;
|
||||
private final ClientThread clientThread;
|
||||
|
||||
private Consumer<String> done;
|
||||
private Consumer<String> changed;
|
||||
private int characterLimit = NO_LIMIT;
|
||||
|
||||
@Getter
|
||||
private boolean open = false;
|
||||
|
||||
@Inject
|
||||
public ChatboxInputManager(Client client, ClientThread clientThread, EventBus eventBus)
|
||||
{
|
||||
this.client = client;
|
||||
this.clientThread = clientThread;
|
||||
eventBus.register(this);
|
||||
}
|
||||
|
||||
/**
|
||||
* Opens a RuneScape-style chatbox input
|
||||
*
|
||||
* @param text Text to show at the top of the window
|
||||
* @param defaul Default text in the editable field
|
||||
* @param done Callback when the text box has been exited, called with "" on esc
|
||||
*/
|
||||
public void openInputWindow(String text, String defaul, Consumer<String> done)
|
||||
{
|
||||
openInputWindow(text, defaul, NO_LIMIT, done);
|
||||
}
|
||||
|
||||
public void openInputWindow(String text, String defaul, int characterLimit, Consumer<String> done)
|
||||
{
|
||||
openInputWindow(text, defaul, characterLimit, null, done);
|
||||
}
|
||||
|
||||
public void openInputWindow(String text, String defaul, int characterLimit, Consumer<String> changed, Consumer<String> done)
|
||||
{
|
||||
this.done = done;
|
||||
this.changed = changed;
|
||||
this.characterLimit = characterLimit;
|
||||
this.open = true;
|
||||
clientThread.invoke(() -> client.runScript(
|
||||
ScriptID.RUNELITE_CHATBOX_INPUT_INIT,
|
||||
text,
|
||||
defaul
|
||||
));
|
||||
}
|
||||
|
||||
/**
|
||||
* Closes the RuneScape-style chatbox input
|
||||
*/
|
||||
public void closeInputWindow()
|
||||
{
|
||||
if (!this.open)
|
||||
{
|
||||
return;
|
||||
}
|
||||
this.open = false;
|
||||
clientThread.invoke(() -> client.runScript(
|
||||
ScriptID.RESET_CHATBOX_INPUT,
|
||||
1,
|
||||
1
|
||||
));
|
||||
}
|
||||
|
||||
@Subscribe
|
||||
public void onScriptCallbackEvent(ScriptCallbackEvent ev)
|
||||
{
|
||||
// This replaces script 74 and most of 112
|
||||
if ("chatboxInputHandler".equals(ev.getEventName()))
|
||||
{
|
||||
int intStackSize = client.getIntStackSize();
|
||||
int stringStackSize = client.getStringStackSize();
|
||||
int typedKey = client.getIntStack()[--intStackSize];
|
||||
String str = client.getStringStack()[--stringStackSize];
|
||||
boolean isDone = false;
|
||||
|
||||
switch (typedKey)
|
||||
{
|
||||
case 27: // Escape
|
||||
str = "";
|
||||
// fallthrough
|
||||
case '\n':
|
||||
this.open = false;
|
||||
isDone = true;
|
||||
break;
|
||||
case '\b':
|
||||
if (!str.isEmpty())
|
||||
{
|
||||
str = str.substring(0, str.length() - 1);
|
||||
}
|
||||
break;
|
||||
default:
|
||||
// If we wanted to do numbers only, we could add a limit here
|
||||
if (typedKey >= 32 && (str.length() < characterLimit))
|
||||
{
|
||||
str += Character.toString((char) typedKey);
|
||||
}
|
||||
}
|
||||
|
||||
if (changed != null)
|
||||
{
|
||||
changed.accept(str);
|
||||
}
|
||||
|
||||
if (isDone && done != null)
|
||||
{
|
||||
done.accept(str);
|
||||
}
|
||||
|
||||
client.getStringStack()[stringStackSize++] = str;
|
||||
client.getIntStack()[intStackSize++] = isDone ? 1 : 0;
|
||||
client.setIntStackSize(intStackSize);
|
||||
client.setStringStackSize(stringStackSize);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -195,7 +195,7 @@ public enum ItemMapping
|
||||
BLACK_MASK, BLACK_MASK_I, BLACK_MASK_1, BLACK_MASK_1_I, BLACK_MASK_2, BLACK_MASK_2_I, BLACK_MASK_3, BLACK_MASK_3_I, BLACK_MASK_4, BLACK_MASK_4_I, BLACK_MASK_5,
|
||||
BLACK_MASK_5_I, BLACK_MASK_6, BLACK_MASK_6_I, BLACK_MASK_7, BLACK_MASK_7_I, BLACK_MASK_8, BLACK_MASK_8_I, BLACK_MASK_9, BLACK_MASK_9_I, BLACK_MASK_10_I,
|
||||
SLAYER_HELMET, SLAYER_HELMET_I, BLACK_SLAYER_HELMET, BLACK_SLAYER_HELMET_I, PURPLE_SLAYER_HELMET, PURPLE_SLAYER_HELMET_I, RED_SLAYER_HELMET, RED_SLAYER_HELMET_I,
|
||||
GREEN_SLAYER_HELMET, GREEN_SLAYER_HELMET_I, TURQUOISE_SLAYER_HELMET, TURQUOISE_SLAYER_HELMET_I),
|
||||
GREEN_SLAYER_HELMET, GREEN_SLAYER_HELMET_I, TURQUOISE_SLAYER_HELMET, TURQUOISE_SLAYER_HELMET_I, HYDRA_SLAYER_HELMET, HYDRA_SLAYER_HELMET_I),
|
||||
|
||||
// Pharaoh's Sceptres
|
||||
ITEM_PHARAOHS_SCEPTRE_1(PHARAOHS_SCEPTRE, PHARAOHS_SCEPTRE_1),
|
||||
|
||||
@@ -366,6 +366,11 @@ public class ChatCommandsPlugin extends Plugin
|
||||
return;
|
||||
}
|
||||
|
||||
if (message.length() <= KILLCOUNT_COMMAND_STRING.length())
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
ChatMessageType type = chatMessage.getType();
|
||||
String search = message.substring(KILLCOUNT_COMMAND_STRING.length() + 1);
|
||||
|
||||
@@ -483,6 +488,11 @@ public class ChatCommandsPlugin extends Plugin
|
||||
return;
|
||||
}
|
||||
|
||||
if (message.length() <= PB_COMMAND.length())
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
ChatMessageType type = chatMessage.getType();
|
||||
String search = message.substring(PB_COMMAND.length() + 1);
|
||||
|
||||
@@ -574,6 +584,11 @@ public class ChatCommandsPlugin extends Plugin
|
||||
return;
|
||||
}
|
||||
|
||||
if (message.length() <= PRICE_COMMAND_STRING.length())
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
MessageNode messageNode = chatMessage.getMessageNode();
|
||||
String search = message.substring(PRICE_COMMAND_STRING.length() + 1);
|
||||
|
||||
@@ -637,6 +652,11 @@ public class ChatCommandsPlugin extends Plugin
|
||||
}
|
||||
else
|
||||
{
|
||||
if (message.length() <= LEVEL_COMMAND_STRING.length())
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
search = message.substring(LEVEL_COMMAND_STRING.length() + 1);
|
||||
}
|
||||
|
||||
|
||||
@@ -167,7 +167,7 @@ public class FriendNotesPlugin extends Plugin
|
||||
if (groupId == WidgetInfo.FRIENDS_LIST.getGroupId() && event.getOption().equals("Message"))
|
||||
{
|
||||
// Friends have color tags
|
||||
setHoveredFriend(Text.removeTags(event.getTarget()));
|
||||
setHoveredFriend(Text.toJagexName(Text.removeTags(event.getTarget())));
|
||||
|
||||
// Build "Add Note" or "Edit Note" menu entry
|
||||
final MenuEntry addNote = new MenuEntry();
|
||||
@@ -197,13 +197,13 @@ public class FriendNotesPlugin extends Plugin
|
||||
return;
|
||||
}
|
||||
|
||||
//Friends have color tags
|
||||
final String sanitizedTarget = Text.removeTags(event.getMenuTarget());
|
||||
|
||||
// Handle clicks on "Add Note" or "Edit Note"
|
||||
if (event.getMenuOption().equals(ADD_NOTE) || event.getMenuOption().equals(EDIT_NOTE))
|
||||
{
|
||||
event.consume();
|
||||
|
||||
//Friends have color tags
|
||||
final String sanitizedTarget = Text.toJagexName(Text.removeTags(event.getMenuTarget()));
|
||||
final String note = getFriendNote(sanitizedTarget);
|
||||
|
||||
// Open the new chatbox input dialog
|
||||
@@ -234,7 +234,16 @@ public class FriendNotesPlugin extends Plugin
|
||||
{
|
||||
// Migrate a friend's note to their new display name
|
||||
final Friend friend = (Friend) nameable;
|
||||
migrateFriendNote(friend.getName(), friend.getPrevName());
|
||||
String name = friend.getName();
|
||||
String prevName = friend.getPrevName();
|
||||
|
||||
if (prevName != null)
|
||||
{
|
||||
migrateFriendNote(
|
||||
Text.toJagexName(name),
|
||||
Text.toJagexName(prevName)
|
||||
);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -242,7 +251,7 @@ public class FriendNotesPlugin extends Plugin
|
||||
public void onRemovedFriend(RemovedFriend event)
|
||||
{
|
||||
// Delete a friend's note if they are removed
|
||||
final String displayName = event.getName();
|
||||
final String displayName = Text.toJagexName(event.getName());
|
||||
log.debug("Remove friend: '{}'", displayName);
|
||||
setFriendNote(displayName, null);
|
||||
}
|
||||
|
||||
@@ -52,6 +52,16 @@ public interface ItemStatConfig extends Config
|
||||
return true;
|
||||
}
|
||||
|
||||
@ConfigItem(
|
||||
keyName = "geStats",
|
||||
name = "Enable GE item information",
|
||||
description = "Shows an item information panel when buying items in the GE"
|
||||
)
|
||||
default boolean geStats()
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
@ConfigItem(
|
||||
keyName = "relative",
|
||||
name = "Show Relative",
|
||||
|
||||
@@ -24,13 +24,46 @@
|
||||
*/
|
||||
package net.runelite.client.plugins.itemstats;
|
||||
|
||||
import com.google.common.collect.ImmutableList;
|
||||
import com.google.common.collect.ImmutableMap;
|
||||
import com.google.common.collect.ImmutableSet;
|
||||
import com.google.inject.Binder;
|
||||
import com.google.inject.Inject;
|
||||
import com.google.inject.Provides;
|
||||
import java.awt.FontMetrics;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.Set;
|
||||
import net.runelite.api.Client;
|
||||
import net.runelite.api.FontID;
|
||||
import net.runelite.api.InventoryID;
|
||||
import net.runelite.api.Item;
|
||||
import net.runelite.api.ItemContainer;
|
||||
import net.runelite.api.ItemID;
|
||||
import net.runelite.api.SpriteID;
|
||||
import net.runelite.api.VarPlayer;
|
||||
import net.runelite.api.Varbits;
|
||||
import net.runelite.api.events.ConfigChanged;
|
||||
import net.runelite.api.events.GameTick;
|
||||
import net.runelite.api.events.ScriptCallbackEvent;
|
||||
import net.runelite.api.events.VarbitChanged;
|
||||
import net.runelite.api.widgets.JavaScriptCallback;
|
||||
import net.runelite.api.widgets.Widget;
|
||||
import net.runelite.api.widgets.WidgetInfo;
|
||||
import net.runelite.api.widgets.WidgetTextAlignment;
|
||||
import net.runelite.api.widgets.WidgetType;
|
||||
import net.runelite.client.callback.ClientThread;
|
||||
import net.runelite.client.config.ConfigManager;
|
||||
import net.runelite.client.eventbus.Subscribe;
|
||||
import net.runelite.client.game.ItemManager;
|
||||
import net.runelite.client.plugins.Plugin;
|
||||
import net.runelite.client.plugins.PluginDescriptor;
|
||||
import net.runelite.client.ui.FontManager;
|
||||
import net.runelite.client.ui.JagexColors;
|
||||
import net.runelite.client.ui.overlay.OverlayManager;
|
||||
import net.runelite.client.util.StackFormatter;
|
||||
import net.runelite.http.api.item.ItemEquipmentStats;
|
||||
import net.runelite.http.api.item.ItemStats;
|
||||
|
||||
@PluginDescriptor(
|
||||
name = "Item Stats",
|
||||
@@ -39,12 +72,30 @@ import net.runelite.client.ui.overlay.OverlayManager;
|
||||
)
|
||||
public class ItemStatPlugin extends Plugin
|
||||
{
|
||||
private static final int ORANGE_TEXT = JagexColors.DARK_ORANGE_INTERFACE_TEXT.getRGB();
|
||||
private static final int YELLOW_TEXT = JagexColors.YELLOW_INTERFACE_TEXT.getRGB();
|
||||
private static final int TEXT_HEIGHT = 11;
|
||||
|
||||
@Inject
|
||||
private OverlayManager overlayManager;
|
||||
|
||||
@Inject
|
||||
private ItemStatOverlay overlay;
|
||||
|
||||
@Inject
|
||||
private Client client;
|
||||
|
||||
@Inject
|
||||
private ItemManager itemManager;
|
||||
|
||||
@Inject
|
||||
private ItemStatConfig config;
|
||||
|
||||
@Inject
|
||||
private ClientThread clientThread;
|
||||
|
||||
private Widget itemInformationTitle;
|
||||
|
||||
@Provides
|
||||
ItemStatConfig getConfig(ConfigManager configManager)
|
||||
{
|
||||
@@ -67,5 +118,319 @@ public class ItemStatPlugin extends Plugin
|
||||
protected void shutDown() throws Exception
|
||||
{
|
||||
overlayManager.remove(overlay);
|
||||
clientThread.invokeLater(this::resetGEInventory);
|
||||
}
|
||||
|
||||
@Subscribe
|
||||
public void onConfigChanged(ConfigChanged event)
|
||||
{
|
||||
if (event.getKey().equals("geStats"))
|
||||
{
|
||||
clientThread.invokeLater(this::resetGEInventory);
|
||||
}
|
||||
}
|
||||
|
||||
@Subscribe
|
||||
public void onGameTick(GameTick event)
|
||||
{
|
||||
if (itemInformationTitle != null && config.geStats()
|
||||
&& client.getWidget(WidgetInfo.GRAND_EXCHANGE_WINDOW_CONTAINER) == null)
|
||||
{
|
||||
resetGEInventory();
|
||||
}
|
||||
}
|
||||
|
||||
@Subscribe
|
||||
public void onVarbitChanged(VarbitChanged event)
|
||||
{
|
||||
if (client.getVar(VarPlayer.CURRENT_GE_ITEM) == -1 && config.geStats())
|
||||
{
|
||||
resetGEInventory();
|
||||
}
|
||||
}
|
||||
|
||||
@Subscribe
|
||||
public void onScriptCallbackEvent(ScriptCallbackEvent event)
|
||||
{
|
||||
if (event.getEventName().equals("geBuilt") && config.geStats())
|
||||
{
|
||||
int currentGeItem = client.getVar(VarPlayer.CURRENT_GE_ITEM);
|
||||
if (currentGeItem != -1 && client.getVar(Varbits.GE_OFFER_CREATION_TYPE) == 0)
|
||||
{
|
||||
createItemInformation(currentGeItem);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private void createItemInformation(int id)
|
||||
{
|
||||
final ItemStats itemStats = itemManager.getItemStats(id, false);
|
||||
|
||||
if (itemStats == null || !itemStats.isEquipable())
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
final ItemEquipmentStats equipmentStats = itemStats.getEquipment();
|
||||
|
||||
if (equipmentStats == null)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
final Widget geInv = client.getWidget(WidgetInfo.GRAND_EXCHANGE_INVENTORY_ITEMS_CONTAINER);
|
||||
|
||||
if (geInv == null)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
final Widget invContainer = getInventoryContainer();
|
||||
|
||||
if (invContainer == null)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
invContainer.deleteAllChildren();
|
||||
geInv.setHidden(true);
|
||||
|
||||
int yPos = 0;
|
||||
|
||||
final FontMetrics smallFM = client.getCanvas().getFontMetrics(FontManager.getRunescapeSmallFont());
|
||||
|
||||
// HEADER
|
||||
|
||||
itemInformationTitle = createText(invContainer, "Item Information", FontID.BOLD_12, ORANGE_TEXT,
|
||||
8, 8, invContainer.getWidth(), 16);
|
||||
itemInformationTitle.setYTextAlignment(WidgetTextAlignment.CENTER);
|
||||
|
||||
Widget closeButton = invContainer.createChild(-1, WidgetType.GRAPHIC);
|
||||
closeButton.setOriginalY(8);
|
||||
closeButton.setOriginalX(invContainer.getWidth() - 24);
|
||||
closeButton.setOriginalHeight(16);
|
||||
closeButton.setOriginalWidth(16);
|
||||
closeButton.setSpriteId(SpriteID.BOTTOM_LINE_MODE_WINDOW_CLOSE_BUTTON_SMALL);
|
||||
closeButton.setAction(0, "Close");
|
||||
closeButton.setOnMouseOverListener((JavaScriptCallback) (ev) ->
|
||||
{
|
||||
closeButton.setSpriteId(SpriteID.BOTTOM_LINE_MODE_WINDOW_CLOSE_BUTTON_SMALL_HOVERED);
|
||||
});
|
||||
closeButton.setOnMouseLeaveListener((JavaScriptCallback) (ev) ->
|
||||
{
|
||||
closeButton.setSpriteId(SpriteID.BOTTOM_LINE_MODE_WINDOW_CLOSE_BUTTON_SMALL);
|
||||
});
|
||||
closeButton.setOnOpListener((JavaScriptCallback) (ev) -> resetGEInventory());
|
||||
closeButton.setHasListener(true);
|
||||
closeButton.revalidate();
|
||||
|
||||
yPos += 15;
|
||||
|
||||
createSeparator(invContainer, yPos);
|
||||
|
||||
// ICON AND TITLE
|
||||
|
||||
yPos += 25;
|
||||
|
||||
Widget icon = invContainer.createChild(-1, WidgetType.GRAPHIC);
|
||||
icon.setOriginalX(8);
|
||||
icon.setOriginalY(yPos);
|
||||
icon.setOriginalWidth(36);
|
||||
icon.setOriginalHeight(32);
|
||||
icon.setItemId(id);
|
||||
icon.setItemQuantityMode(0);
|
||||
icon.setBorderType(1);
|
||||
icon.revalidate();
|
||||
|
||||
Widget itemName = createText(invContainer, itemManager.getItemComposition(id).getName(), FontID.PLAIN_12, ORANGE_TEXT,
|
||||
50, yPos, invContainer.getWidth() - 40, 30);
|
||||
itemName.setYTextAlignment(WidgetTextAlignment.CENTER);
|
||||
|
||||
yPos += 20;
|
||||
|
||||
createSeparator(invContainer, yPos);
|
||||
|
||||
// STATS HEADER
|
||||
|
||||
yPos += 25;
|
||||
|
||||
createText(invContainer, "Attack", FontID.PLAIN_11, ORANGE_TEXT, 5, yPos, 50, -1);
|
||||
|
||||
int defenceXPos = invContainer.getWidth() - (smallFM.stringWidth("Defence") + 5);
|
||||
createText(invContainer, "Defence", FontID.PLAIN_11, ORANGE_TEXT, defenceXPos, yPos, 50, -1);
|
||||
|
||||
// STYLE BONUSES
|
||||
|
||||
final Set<String> stats = ImmutableSet.of(
|
||||
"Stab",
|
||||
"Slash",
|
||||
"Crush",
|
||||
"Magic",
|
||||
"Ranged"
|
||||
);
|
||||
|
||||
final List<Integer> attackStats = ImmutableList.of(
|
||||
equipmentStats.getAstab(),
|
||||
equipmentStats.getAslash(),
|
||||
equipmentStats.getAcrush(),
|
||||
equipmentStats.getAmagic(),
|
||||
equipmentStats.getArange()
|
||||
);
|
||||
|
||||
final List<Integer> defenceStats = ImmutableList.of(
|
||||
equipmentStats.getDstab(),
|
||||
equipmentStats.getDslash(),
|
||||
equipmentStats.getDcrush(),
|
||||
equipmentStats.getDmagic(),
|
||||
equipmentStats.getDrange()
|
||||
);
|
||||
|
||||
int index = 0;
|
||||
|
||||
for (final String stat : stats)
|
||||
{
|
||||
yPos += TEXT_HEIGHT + 2;
|
||||
|
||||
// Style label
|
||||
final Widget styleText = createText(invContainer, stat, FontID.PLAIN_11, ORANGE_TEXT,
|
||||
0, yPos, invContainer.getWidth(), -1);
|
||||
styleText.setXTextAlignment(WidgetTextAlignment.CENTER);
|
||||
|
||||
// Attack bonus
|
||||
createText(invContainer, attackStats.get(index).toString(), FontID.PLAIN_11, YELLOW_TEXT,
|
||||
5, yPos, 50, -1);
|
||||
|
||||
// Defence bonus
|
||||
final int defenceX = invContainer.getWidth() - (smallFM.stringWidth(defenceStats.get(index).toString()) + 5);
|
||||
createText(invContainer, defenceStats.get(index).toString(), FontID.PLAIN_11, YELLOW_TEXT,
|
||||
defenceX, yPos, 50, -1);
|
||||
|
||||
index++;
|
||||
}
|
||||
|
||||
// MISC BONUSES
|
||||
|
||||
yPos += TEXT_HEIGHT + 8;
|
||||
|
||||
final Map<String, Integer> miscStats = ImmutableMap.of(
|
||||
"Strength", equipmentStats.getStr(),
|
||||
"Ranged Strength", equipmentStats.getRstr(),
|
||||
"Magic Damage", equipmentStats.getMdmg(),
|
||||
"Prayer Bonus", equipmentStats.getPrayer()
|
||||
);
|
||||
|
||||
for (final Map.Entry<String, Integer> miscStat : miscStats.entrySet())
|
||||
{
|
||||
final String name = miscStat.getKey();
|
||||
final String value = miscStat.getValue().toString();
|
||||
|
||||
// Stat label
|
||||
createText(invContainer, name, FontID.PLAIN_11, ORANGE_TEXT, 5, yPos, 50, -1);
|
||||
|
||||
// Stat bonus
|
||||
int valueXPos = invContainer.getWidth() - (smallFM.stringWidth(value) + 5);
|
||||
createText(invContainer, value, FontID.PLAIN_11, YELLOW_TEXT, valueXPos, yPos, 50, -1);
|
||||
|
||||
yPos += TEXT_HEIGHT + 2;
|
||||
}
|
||||
|
||||
// COINS
|
||||
|
||||
createSeparator(invContainer, invContainer.getHeight() - 40);
|
||||
|
||||
final String coinText = "You have " + StackFormatter.quantityToRSStackSize(getCurrentGP())
|
||||
+ (getCurrentGP() == 1 ? " coin." : " coins.");
|
||||
|
||||
final Widget coinWidget = createText(invContainer, coinText, FontID.PLAIN_12, ORANGE_TEXT,
|
||||
0, invContainer.getHeight() - 18, invContainer.getWidth(), -1);
|
||||
|
||||
coinWidget.setXTextAlignment(WidgetTextAlignment.CENTER);
|
||||
}
|
||||
|
||||
private static Widget createText(Widget parent, String text, int fontId, int textColor,
|
||||
int x, int y, int width, int height)
|
||||
{
|
||||
final Widget widget = parent.createChild(-1, WidgetType.TEXT);
|
||||
widget.setText(text);
|
||||
widget.setFontId(fontId);
|
||||
widget.setTextColor(textColor);
|
||||
widget.setTextShadowed(true);
|
||||
widget.setOriginalHeight(height == -1 ? TEXT_HEIGHT : height);
|
||||
widget.setOriginalWidth(width);
|
||||
widget.setOriginalY(y);
|
||||
widget.setOriginalX(x);
|
||||
widget.revalidate();
|
||||
return widget;
|
||||
}
|
||||
|
||||
private static void createSeparator(Widget parent, int y)
|
||||
{
|
||||
Widget separator = parent.createChild(-1, WidgetType.GRAPHIC);
|
||||
separator.setOriginalWidth(parent.getWidth());
|
||||
separator.setOriginalY(y);
|
||||
separator.setOriginalHeight(32);
|
||||
separator.setSpriteId(SpriteID.UNKNOWN_BORDER_EDGE_HORIZONTAL_995);
|
||||
separator.revalidate();
|
||||
}
|
||||
|
||||
private void resetGEInventory()
|
||||
{
|
||||
final Widget invContainer = getInventoryContainer();
|
||||
|
||||
if (invContainer == null)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
if (itemInformationTitle != null && invContainer.getChild(0) == itemInformationTitle)
|
||||
{
|
||||
invContainer.deleteAllChildren();
|
||||
itemInformationTitle = null;
|
||||
}
|
||||
|
||||
final Widget geInv = client.getWidget(WidgetInfo.GRAND_EXCHANGE_INVENTORY_ITEMS_CONTAINER);
|
||||
if (geInv != null)
|
||||
{
|
||||
geInv.setHidden(false);
|
||||
}
|
||||
}
|
||||
|
||||
private int getCurrentGP()
|
||||
{
|
||||
final ItemContainer inventory = client.getItemContainer(InventoryID.INVENTORY);
|
||||
|
||||
if (inventory == null)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
for (final Item item : inventory.getItems())
|
||||
{
|
||||
if (item.getId() == ItemID.COINS_995)
|
||||
{
|
||||
return item.getQuantity();
|
||||
}
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
private Widget getInventoryContainer()
|
||||
{
|
||||
if (client.isResized())
|
||||
{
|
||||
if (client.getVar(Varbits.SIDE_PANELS) == 1)
|
||||
{
|
||||
return client.getWidget(WidgetInfo.RESIZABLE_VIEWPORT_BOTTOM_LINE_INVENTORY_CONTAINER);
|
||||
}
|
||||
else
|
||||
{
|
||||
return client.getWidget(WidgetInfo.RESIZABLE_VIEWPORT_INVENTORY_CONTAINER);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
return client.getWidget(WidgetInfo.FIXED_VIEWPORT_INVENTORY_CONTAINER);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -148,8 +148,8 @@ enum PrayerItems
|
||||
ANCIENT_DHIDE(ItemID.ANCIENT_DHIDE, 1),
|
||||
ARMADYL_DHIDE(ItemID.ARMADYL_DHIDE, 1),
|
||||
BANDOS_DHIDE(ItemID.BANDOS_DHIDE, 1),
|
||||
GUTHIX_DRAGONHIDE(ItemID.GUTHIX_DRAGONHIDE, 1),
|
||||
GUTHIX_DRAGONHIDE_10794(ItemID.GUTHIX_DRAGONHIDE_10794, 1),
|
||||
GUTHIX_DRAGONHIDE(ItemID.GUTHIX_DHIDE, 1),
|
||||
GUTHIX_DRAGONHIDE_10794(ItemID.GUTHIX_DRAGONHIDE, 1),
|
||||
SARADOMIN_DHIDE(ItemID.SARADOMIN_DHIDE, 1),
|
||||
SARADOMIN_DHIDE_10792(ItemID.SARADOMIN_DHIDE_10792, 1),
|
||||
ZAMORAK_DHIDE(ItemID.ZAMORAK_DHIDE, 1),
|
||||
|
||||
@@ -65,7 +65,7 @@ enum Task
|
||||
CAVE_SLIMES("Cave slimes", ItemID.SWAMP_CAVE_SLIME),
|
||||
CERBERUS("Cerberus", ItemID.HELLPUPPY),
|
||||
CHAOS_ELEMENTAL("Chaos Elemental", ItemID.PET_CHAOS_ELEMENTAL),
|
||||
CHAOS_FANATIC("Chaos Fanatic", ItemID.PET_CHAOS_ELEMENTAL),
|
||||
CHAOS_FANATIC("Chaos Fanatic", ItemID.ANCIENT_STAFF),
|
||||
COCKATRICE("Cockatrice", ItemID.COCKATRICE, "Cockathrice"),
|
||||
COWS("Cows", ItemID.COW_MASK),
|
||||
CRAWLING_HANDS("Crawling hands", ItemID.CRAWLING_HAND, "Crushing hand"),
|
||||
|
||||
@@ -131,6 +131,9 @@ public class WikiPlugin extends Plugin
|
||||
return;
|
||||
}
|
||||
children[0] = null;
|
||||
|
||||
onDeselect();
|
||||
client.setSpellSelected(false);
|
||||
});
|
||||
}
|
||||
|
||||
@@ -186,7 +189,10 @@ public class WikiPlugin extends Plugin
|
||||
private void onDeselect()
|
||||
{
|
||||
wikiSelected = false;
|
||||
icon.setSpriteId(WikiSprite.WIKI_ICON.getSpriteId());
|
||||
if (icon != null)
|
||||
{
|
||||
icon.setSpriteId(WikiSprite.WIKI_ICON.getSpriteId());
|
||||
}
|
||||
}
|
||||
|
||||
@Subscribe
|
||||
|
||||
@@ -79,7 +79,7 @@ class XpState
|
||||
|
||||
if (state.getStartXp() == -1)
|
||||
{
|
||||
if (currentXp > 0)
|
||||
if (currentXp >= 0)
|
||||
{
|
||||
initializeSkill(skill, currentXp);
|
||||
return XpUpdateResult.INITIALIZED;
|
||||
@@ -198,7 +198,8 @@ class XpState
|
||||
|
||||
boolean isInitialized(Skill skill)
|
||||
{
|
||||
return xpSkills.containsKey(skill);
|
||||
XpStateSingle xpStateSingle = xpSkills.get(skill);
|
||||
return xpStateSingle != null && xpStateSingle.getStartXp() != -1;
|
||||
}
|
||||
|
||||
@NonNull
|
||||
|
||||
@@ -305,7 +305,9 @@ public class XpTrackerPlugin extends Plugin
|
||||
if (skill == Skill.CONSTRUCTION && updateResult == XpUpdateResult.INITIALIZED)
|
||||
{
|
||||
// Construction is the last skill initialized on login, now initialize the total experience
|
||||
xpState.initializeSkill(Skill.OVERALL, client.getOverallExperience());
|
||||
long overallXp = client.getOverallExperience();
|
||||
log.debug("Initializing XP tracker with {} overall exp", overallXp);
|
||||
xpState.initializeSkill(Skill.OVERALL, overallXp);
|
||||
}
|
||||
else if (xpState.isInitialized(Skill.OVERALL))
|
||||
{
|
||||
|
||||
@@ -62,4 +62,10 @@ public class JagexColors
|
||||
public static final Color TOOLTIP_BACKGROUND = new Color(255, 255, 160);
|
||||
public static final Color TOOLTIP_BORDER = Color.BLACK;
|
||||
public static final Color TOOLTIP_TEXT = Color.BLACK;
|
||||
|
||||
/*
|
||||
* Colors used in interfaces
|
||||
*/
|
||||
public static final Color DARK_ORANGE_INTERFACE_TEXT = new Color(255, 152, 31);
|
||||
public static final Color YELLOW_INTERFACE_TEXT = Color.YELLOW;
|
||||
}
|
||||
|
||||
@@ -6705,10 +6705,6 @@
|
||||
10370,
|
||||
10790
|
||||
],
|
||||
"guthix dragonhide": [
|
||||
10378,
|
||||
10794
|
||||
],
|
||||
"saradomin dhide": [
|
||||
10386,
|
||||
10792
|
||||
@@ -8908,5 +8904,11 @@
|
||||
23067,
|
||||
23068,
|
||||
23070
|
||||
],
|
||||
"mystic set": [
|
||||
23110,
|
||||
23113,
|
||||
23116,
|
||||
23119
|
||||
]
|
||||
}
|
||||
@@ -3,68 +3,68 @@
|
||||
.string_stack_count 0
|
||||
.int_var_count 1
|
||||
.string_var_count 2
|
||||
load_string ""
|
||||
sconst ""
|
||||
sstore 0
|
||||
load_string ""
|
||||
sconst ""
|
||||
sstore 1
|
||||
invoke 514
|
||||
load_int 1
|
||||
iconst 1
|
||||
if_icmpeq LABEL8
|
||||
jump LABEL34
|
||||
LABEL8:
|
||||
049 359 ; Skip truncating of varcstr 22 by not calling 280
|
||||
tolowercase ; instead get the var directly and lowercase it
|
||||
get_varc_string 359 ; Skip truncating of varcstr 22 by not calling 280
|
||||
lowercase ; instead get the var directly and lowercase it
|
||||
sstore 1
|
||||
sload 1
|
||||
string_length
|
||||
load_int 0
|
||||
string_length
|
||||
iconst 0
|
||||
if_icmpgt LABEL15
|
||||
jump LABEL34
|
||||
LABEL15:
|
||||
iload 0
|
||||
load_int -1
|
||||
iconst -1
|
||||
if_icmpne LABEL19
|
||||
jump LABEL23
|
||||
LABEL19:
|
||||
iload 0
|
||||
get_item_name
|
||||
tolowercase
|
||||
oc_name
|
||||
lowercase
|
||||
sstore 0
|
||||
LABEL1337: ; check if the bank tags plugin is active
|
||||
load_int 1 ; true
|
||||
load_int 0 ; load active boolean
|
||||
load_string "bankTagsActive" ; push event name
|
||||
runelite_callback ; invoke callback
|
||||
LABEL1337:; check if the bank tags plugin is active
|
||||
iconst 1 ; true
|
||||
iconst 0 ; load active boolean
|
||||
sconst "bankTagsActive" ; push event name
|
||||
runelite_callback ; invoke callback
|
||||
if_icmpeq LABEL1338 ; if the plugin is active then jump to the label that decides if the
|
||||
; item should be shown
|
||||
jump LABEL23 ; if the plugin is not active then jump to the normal label
|
||||
LABEL1338: ; let the bank tag plugin decide if the item should be shown
|
||||
load_int 0 ; load return value
|
||||
LABEL1338:; let the bank tag plugin decide if the item should be shown
|
||||
iconst 0 ; load return value
|
||||
iload 0 ; load item id
|
||||
sload 0 ; load item name
|
||||
sload 1 ; load search string
|
||||
load_string "bankSearchFilter" ; push event name
|
||||
runelite_callback ; invoke callback
|
||||
pop_int ; pop item id
|
||||
pop_string ; pop search string
|
||||
pop_string ; pop item name
|
||||
return ; return value
|
||||
sconst "bankSearchFilter" ; push event name
|
||||
runelite_callback ; invoke callback
|
||||
pop_int ; pop item id
|
||||
pop_string ; pop search string
|
||||
pop_string ; pop item name
|
||||
return ; return value
|
||||
LABEL23:
|
||||
sload 0
|
||||
sload 1
|
||||
load_int 0
|
||||
string_indexof_from
|
||||
load_int -1
|
||||
iconst 0
|
||||
string_indexof_string
|
||||
iconst -1
|
||||
if_icmpne LABEL30
|
||||
jump LABEL32
|
||||
LABEL30:
|
||||
load_int 1
|
||||
return
|
||||
iconst 1
|
||||
return
|
||||
LABEL32:
|
||||
load_int 0
|
||||
return
|
||||
iconst 0
|
||||
return
|
||||
LABEL34:
|
||||
load_int 1
|
||||
return
|
||||
load_int -1
|
||||
return
|
||||
iconst 1
|
||||
return
|
||||
iconst -1
|
||||
return
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@@ -3,207 +3,207 @@
|
||||
.string_stack_count 0
|
||||
.int_var_count 16
|
||||
.string_var_count 4
|
||||
load_int 0
|
||||
iconst 0
|
||||
istore 1
|
||||
load_int 2
|
||||
iconst 2
|
||||
istore 2
|
||||
load_int 103
|
||||
iconst 103
|
||||
istore 3
|
||||
load_int 4
|
||||
iconst 4
|
||||
istore 4
|
||||
load_int 23
|
||||
iconst 23
|
||||
istore 5
|
||||
invoke 900
|
||||
istore 6
|
||||
load_int 103
|
||||
load_int 105
|
||||
load_int 1136
|
||||
iconst 103
|
||||
iconst 105
|
||||
iconst 1136
|
||||
iload 6
|
||||
get_enum_value
|
||||
load_int 0
|
||||
enum
|
||||
iconst 0
|
||||
if_icmpgt LABEL20
|
||||
jump LABEL58
|
||||
LABEL20:
|
||||
iload 6
|
||||
load_int 1745
|
||||
iconst 1745
|
||||
if_icmpeq LABEL24
|
||||
jump LABEL36
|
||||
LABEL24:
|
||||
load_int 0
|
||||
load_int 102
|
||||
load_int 103
|
||||
load_int 105
|
||||
load_int 1960
|
||||
iconst 0
|
||||
iconst 102
|
||||
iconst 103
|
||||
iconst 105
|
||||
iconst 1960
|
||||
iload 6
|
||||
get_enum_value
|
||||
load_int 30
|
||||
enum
|
||||
iconst 30
|
||||
istore 5
|
||||
istore 1
|
||||
istore 3
|
||||
istore 2
|
||||
LABEL36:
|
||||
get_varc 41
|
||||
load_int -1
|
||||
get_varc_int 41
|
||||
iconst -1
|
||||
if_icmpeq LABEL40
|
||||
jump LABEL49
|
||||
LABEL40:
|
||||
invoke 922
|
||||
load_int 1
|
||||
iconst 1
|
||||
if_icmpeq LABEL44
|
||||
jump LABEL49
|
||||
LABEL44:
|
||||
iload 4
|
||||
iload 5
|
||||
iadd
|
||||
add
|
||||
istore 4
|
||||
jump LABEL58
|
||||
LABEL49:
|
||||
iload 4
|
||||
load_int 73
|
||||
load_int 73
|
||||
iconst 73
|
||||
iconst 73
|
||||
iload 6
|
||||
load_int 10551325
|
||||
get_enum_value
|
||||
widget_get_height_widget
|
||||
iadd
|
||||
iconst 10551325
|
||||
enum
|
||||
if_getheight
|
||||
add
|
||||
istore 4
|
||||
LABEL58:
|
||||
iload 4
|
||||
istore 7
|
||||
load_int 10682368
|
||||
widget_get_width_widget
|
||||
iconst 10682368
|
||||
if_getwidth
|
||||
istore 8
|
||||
load_int 0
|
||||
iconst 0
|
||||
istore 9
|
||||
load_int 105
|
||||
load_int 73
|
||||
load_int 580
|
||||
iconst 105
|
||||
iconst 73
|
||||
iconst 580
|
||||
iload 9
|
||||
get_enum_value
|
||||
enum
|
||||
istore 10
|
||||
load_int 0
|
||||
iconst 0
|
||||
istore 11
|
||||
load_string ""
|
||||
sconst ""
|
||||
sstore 0
|
||||
get_system_update_timer
|
||||
load_int 0
|
||||
reboottimer
|
||||
iconst 0
|
||||
if_icmpgt LABEL79
|
||||
jump LABEL156
|
||||
LABEL79:
|
||||
get_system_update_timer
|
||||
load_int 50
|
||||
idiv
|
||||
load_int 60
|
||||
modulo
|
||||
reboottimer
|
||||
iconst 50
|
||||
div
|
||||
iconst 60
|
||||
mod
|
||||
istore 11
|
||||
iload 11
|
||||
load_int 10
|
||||
iconst 10
|
||||
if_icmplt LABEL89
|
||||
jump LABEL100
|
||||
LABEL89:
|
||||
load_string "System update in: "
|
||||
get_system_update_timer
|
||||
load_int 3000
|
||||
idiv
|
||||
int_to_string
|
||||
load_string ":0"
|
||||
sconst "System update in: "
|
||||
reboottimer
|
||||
iconst 3000
|
||||
div
|
||||
tostring
|
||||
sconst ":0"
|
||||
iload 11
|
||||
int_to_string
|
||||
string_append 4
|
||||
tostring
|
||||
join_string 4
|
||||
sstore 0
|
||||
jump LABEL110
|
||||
LABEL100:
|
||||
load_string "System update in: "
|
||||
get_system_update_timer
|
||||
load_int 3000
|
||||
idiv
|
||||
int_to_string
|
||||
load_string ":"
|
||||
sconst "System update in: "
|
||||
reboottimer
|
||||
iconst 3000
|
||||
div
|
||||
tostring
|
||||
sconst ":"
|
||||
iload 11
|
||||
int_to_string
|
||||
string_append 4
|
||||
tostring
|
||||
join_string 4
|
||||
sstore 0
|
||||
LABEL110:
|
||||
iload 7
|
||||
sload 0
|
||||
iload 9
|
||||
iload 10
|
||||
load_int 10682368
|
||||
iconst 10682368
|
||||
iload 8
|
||||
iload 1
|
||||
load_int 13
|
||||
iconst 13
|
||||
iload 7
|
||||
iload 2
|
||||
iload 3
|
||||
load_int 16776960
|
||||
load_int 1
|
||||
iconst 16776960
|
||||
iconst 1
|
||||
invoke 199
|
||||
iadd
|
||||
add
|
||||
istore 7
|
||||
iload 10
|
||||
widget_put_actions_null_widget
|
||||
load_int -1
|
||||
load_string ""
|
||||
if_clearops
|
||||
iconst -1
|
||||
sconst ""
|
||||
iload 10
|
||||
widget_put_option_click_listener_widget
|
||||
load_int -1
|
||||
load_string ""
|
||||
if_setonop
|
||||
iconst -1
|
||||
sconst ""
|
||||
iload 10
|
||||
widget_put_mouse_hover_listener_widget
|
||||
load_int -1
|
||||
load_string ""
|
||||
if_setonmouserepeat
|
||||
iconst -1
|
||||
sconst ""
|
||||
iload 10
|
||||
widget_put_mouse_exit_listener_widget
|
||||
load_int 0
|
||||
load_int 0
|
||||
load_int 0
|
||||
load_int 0
|
||||
if_setonmouseleave
|
||||
iconst 0
|
||||
iconst 0
|
||||
iconst 0
|
||||
iconst 0
|
||||
iload 10
|
||||
widget_put_size_widget
|
||||
if_setsize
|
||||
iload 9
|
||||
load_int 1
|
||||
iadd
|
||||
iconst 1
|
||||
add
|
||||
istore 9
|
||||
load_int 105
|
||||
load_int 73
|
||||
load_int 580
|
||||
iconst 105
|
||||
iconst 73
|
||||
iconst 580
|
||||
iload 9
|
||||
get_enum_value
|
||||
enum
|
||||
istore 10
|
||||
LABEL156:
|
||||
load_int -1
|
||||
iconst -1
|
||||
istore 12
|
||||
load_int -1
|
||||
iconst -1
|
||||
istore 13
|
||||
load_string ""
|
||||
sconst ""
|
||||
sstore 1
|
||||
load_int 0
|
||||
iconst 0
|
||||
istore 14
|
||||
load_string ""
|
||||
sconst ""
|
||||
sstore 2
|
||||
load_string ""
|
||||
sconst ""
|
||||
sstore 3
|
||||
get_varc 55
|
||||
get_varc 202
|
||||
get_varc_int 55
|
||||
get_varc_int 202
|
||||
if_icmpge LABEL172
|
||||
jump LABEL282
|
||||
LABEL172:
|
||||
get_varc 55
|
||||
get_gamecycle
|
||||
load_int 3000
|
||||
isub
|
||||
get_varc_int 55
|
||||
clientclock
|
||||
iconst 3000
|
||||
sub
|
||||
if_icmpgt LABEL178
|
||||
jump LABEL282
|
||||
LABEL178:
|
||||
load_int 14
|
||||
get_chatlinebuffer_length
|
||||
load_int 0
|
||||
iconst 14
|
||||
chat_gethistorylength
|
||||
iconst 0
|
||||
if_icmpgt LABEL183
|
||||
jump LABEL282
|
||||
LABEL183:
|
||||
load_int 14
|
||||
load_int 0
|
||||
get_chat_message_type
|
||||
iconst 14
|
||||
iconst 0
|
||||
chat_gethistory_bytypeandline
|
||||
istore 14
|
||||
sstore 0
|
||||
sstore 2
|
||||
@@ -211,7 +211,7 @@ LABEL183:
|
||||
istore 13
|
||||
istore 12
|
||||
iload 12
|
||||
load_int -1
|
||||
iconst -1
|
||||
if_icmpne LABEL196
|
||||
jump LABEL282
|
||||
LABEL196:
|
||||
@@ -223,124 +223,124 @@ LABEL196:
|
||||
sload 0
|
||||
iload 9
|
||||
iload 10
|
||||
load_int 10682368
|
||||
iconst 10682368
|
||||
iload 8
|
||||
iload 1
|
||||
load_int 13
|
||||
iconst 13
|
||||
iload 7
|
||||
iload 2
|
||||
iload 3
|
||||
load_int 16776960
|
||||
load_int 1
|
||||
iconst 16776960
|
||||
iconst 1
|
||||
invoke 199
|
||||
iadd
|
||||
add
|
||||
istore 7
|
||||
iload 10
|
||||
widget_put_actions_null_widget
|
||||
if_clearops
|
||||
sload 3
|
||||
string_length
|
||||
load_int 0
|
||||
iconst 0
|
||||
if_icmpgt LABEL223
|
||||
jump LABEL248
|
||||
LABEL223:
|
||||
load_int 6
|
||||
load_string "Open"
|
||||
iconst 6
|
||||
sconst "Open"
|
||||
iload 10
|
||||
widget_put_action_widget
|
||||
load_int 7
|
||||
load_string "Check"
|
||||
if_setop
|
||||
iconst 7
|
||||
sconst "Check"
|
||||
iload 10
|
||||
widget_put_action_widget
|
||||
load_int 2065
|
||||
if_setop
|
||||
iconst 2065
|
||||
iload 10
|
||||
widget_get_parentid_widget
|
||||
if_getlayer
|
||||
iload 9
|
||||
load_int 16777215
|
||||
load_string "Iii"
|
||||
iconst 16777215
|
||||
sconst "Iii"
|
||||
iload 10
|
||||
widget_put_mouse_hover_listener_widget
|
||||
load_int 2065
|
||||
if_setonmouserepeat
|
||||
iconst 2065
|
||||
iload 10
|
||||
widget_get_parentid_widget
|
||||
if_getlayer
|
||||
iload 9
|
||||
load_int 16776960
|
||||
load_string "Iii"
|
||||
iconst 16776960
|
||||
sconst "Iii"
|
||||
iload 10
|
||||
widget_put_mouse_exit_listener_widget
|
||||
if_setonmouseleave
|
||||
jump LABEL256
|
||||
LABEL248:
|
||||
load_int -1
|
||||
load_string ""
|
||||
iconst -1
|
||||
sconst ""
|
||||
iload 10
|
||||
widget_put_mouse_hover_listener_widget
|
||||
load_int -1
|
||||
load_string ""
|
||||
if_setonmouserepeat
|
||||
iconst -1
|
||||
sconst ""
|
||||
iload 10
|
||||
widget_put_mouse_exit_listener_widget
|
||||
if_setonmouseleave
|
||||
LABEL256:
|
||||
load_int 9
|
||||
load_string "Clear history"
|
||||
iconst 9
|
||||
sconst "Clear history"
|
||||
iload 10
|
||||
widget_put_action_widget
|
||||
load_string "<col=ff9040>"
|
||||
load_string "Notification"
|
||||
load_string "</col>"
|
||||
string_append 3
|
||||
if_setop
|
||||
sconst "<col=ff9040>"
|
||||
sconst "Notification"
|
||||
sconst "</col>"
|
||||
join_string 3
|
||||
iload 10
|
||||
widget_put_name_widget
|
||||
load_int 2064
|
||||
load_int -2147483644
|
||||
if_setopbase
|
||||
iconst 2064
|
||||
iconst -2147483644
|
||||
sload 3
|
||||
load_string "is"
|
||||
sconst "is"
|
||||
iload 10
|
||||
widget_put_option_click_listener_widget
|
||||
if_setonop
|
||||
iload 9
|
||||
load_int 1
|
||||
iadd
|
||||
iconst 1
|
||||
add
|
||||
istore 9
|
||||
load_int 105
|
||||
load_int 73
|
||||
load_int 580
|
||||
iconst 105
|
||||
iconst 73
|
||||
iconst 580
|
||||
iload 9
|
||||
get_enum_value
|
||||
enum
|
||||
istore 10
|
||||
LABEL282:
|
||||
iload 0
|
||||
istore 12
|
||||
load_int 0
|
||||
iconst 0
|
||||
istore 15
|
||||
get_varp 287
|
||||
load_int 1
|
||||
iconst 1
|
||||
if_icmpeq LABEL290
|
||||
jump LABEL479
|
||||
LABEL290:
|
||||
get_varc 41
|
||||
load_int -1
|
||||
get_varc_int 41
|
||||
iconst -1
|
||||
if_icmpne LABEL297
|
||||
get_varbit 4089
|
||||
load_int 0
|
||||
iconst 0
|
||||
if_icmpeq LABEL297
|
||||
jump LABEL479
|
||||
LABEL297:
|
||||
iload 12
|
||||
load_int -1
|
||||
iconst -1
|
||||
if_icmpne LABEL301
|
||||
jump LABEL479
|
||||
LABEL301:
|
||||
iload 10
|
||||
load_int -1
|
||||
iconst -1
|
||||
if_icmpne LABEL305
|
||||
jump LABEL479
|
||||
LABEL305:
|
||||
iload 7
|
||||
iload 4
|
||||
isub
|
||||
load_int 57
|
||||
sub
|
||||
iconst 57
|
||||
if_icmplt LABEL311
|
||||
jump LABEL479
|
||||
LABEL311:
|
||||
iload 12
|
||||
get_chat_message
|
||||
chat_gethistory_byuid
|
||||
istore 14
|
||||
sstore 0
|
||||
sstore 2
|
||||
@@ -352,7 +352,7 @@ LABEL311:
|
||||
iload 13
|
||||
iload 14
|
||||
invoke 91
|
||||
load_int 1
|
||||
iconst 1
|
||||
if_icmpeq LABEL327
|
||||
jump LABEL475
|
||||
LABEL327:
|
||||
@@ -364,50 +364,50 @@ LABEL327:
|
||||
jump LABEL372
|
||||
LABEL330:
|
||||
iload 7
|
||||
load_string "From "
|
||||
sconst "From "
|
||||
sload 1
|
||||
load_string ":"
|
||||
load_string "privateChatSplitFrom"
|
||||
runelite_callback
|
||||
string_append 3
|
||||
sconst ":"
|
||||
sconst "privateChatSplitFrom"
|
||||
runelite_callback
|
||||
join_string 3
|
||||
sload 0
|
||||
iload 9
|
||||
iload 10
|
||||
load_int 10682368
|
||||
iconst 10682368
|
||||
iload 8
|
||||
iload 1
|
||||
load_int 13
|
||||
iconst 13
|
||||
iload 7
|
||||
iload 2
|
||||
iload 3
|
||||
load_int 65535
|
||||
load_int 1
|
||||
iconst 65535
|
||||
iconst 1
|
||||
invoke 203
|
||||
iadd
|
||||
add
|
||||
istore 7
|
||||
jump LABEL407
|
||||
LABEL351:
|
||||
iload 7
|
||||
load_string "To "
|
||||
sconst "To "
|
||||
sload 1
|
||||
load_string ":"
|
||||
load_string "privateChatSplitTo"
|
||||
runelite_callback
|
||||
string_append 3
|
||||
sconst ":"
|
||||
sconst "privateChatSplitTo"
|
||||
runelite_callback
|
||||
join_string 3
|
||||
sload 0
|
||||
iload 9
|
||||
iload 10
|
||||
load_int 10682368
|
||||
iconst 10682368
|
||||
iload 8
|
||||
iload 1
|
||||
load_int 13
|
||||
iconst 13
|
||||
iload 7
|
||||
iload 2
|
||||
iload 3
|
||||
load_int 65535
|
||||
load_int 1
|
||||
iconst 65535
|
||||
iconst 1
|
||||
invoke 203
|
||||
iadd
|
||||
add
|
||||
istore 7
|
||||
jump LABEL407
|
||||
LABEL372:
|
||||
@@ -415,184 +415,184 @@ LABEL372:
|
||||
sload 0
|
||||
iload 9
|
||||
iload 10
|
||||
load_int 10682368
|
||||
iconst 10682368
|
||||
iload 8
|
||||
iload 1
|
||||
load_int 13
|
||||
iconst 13
|
||||
iload 7
|
||||
iload 2
|
||||
iload 3
|
||||
load_int 65535
|
||||
load_int 1
|
||||
iconst 65535
|
||||
iconst 1
|
||||
invoke 199
|
||||
iadd
|
||||
add
|
||||
istore 7
|
||||
iload 15
|
||||
load_int 5
|
||||
iconst 5
|
||||
if_icmpeq LABEL392
|
||||
jump LABEL407
|
||||
LABEL392:
|
||||
get_varbit 1627
|
||||
load_int 0
|
||||
iconst 0
|
||||
if_icmpeq LABEL396
|
||||
jump LABEL407
|
||||
LABEL396:
|
||||
iload 13
|
||||
load_int 500
|
||||
iadd
|
||||
load_int 1
|
||||
iadd
|
||||
put_varc 65
|
||||
load_int 664
|
||||
load_int 0
|
||||
load_string "1"
|
||||
load_int 10616832
|
||||
widget_put_render_listener_widget
|
||||
iconst 500
|
||||
add
|
||||
iconst 1
|
||||
add
|
||||
set_varc_int 65
|
||||
iconst 664
|
||||
iconst 0
|
||||
sconst "1"
|
||||
iconst 10616832
|
||||
if_setontimer
|
||||
LABEL407:
|
||||
iload 10
|
||||
widget_put_actions_null_widget
|
||||
if_clearops
|
||||
iload 15
|
||||
load_int 3
|
||||
iconst 3
|
||||
if_icmpeq LABEL419
|
||||
iload 15
|
||||
load_int 6
|
||||
iconst 6
|
||||
if_icmpeq LABEL419
|
||||
iload 15
|
||||
load_int 7
|
||||
iconst 7
|
||||
if_icmpeq LABEL419
|
||||
jump LABEL453
|
||||
LABEL419:
|
||||
iload 14
|
||||
load_int 1
|
||||
iconst 1
|
||||
if_icmpeq LABEL423
|
||||
jump LABEL428
|
||||
LABEL423:
|
||||
load_int 8
|
||||
load_string "Message"
|
||||
iconst 8
|
||||
sconst "Message"
|
||||
iload 10
|
||||
widget_put_action_widget
|
||||
if_setop
|
||||
jump LABEL436
|
||||
LABEL428:
|
||||
load_int 8
|
||||
load_string "Add friend"
|
||||
iconst 8
|
||||
sconst "Add friend"
|
||||
iload 10
|
||||
widget_put_action_widget
|
||||
load_int 9
|
||||
load_string "Add ignore"
|
||||
if_setop
|
||||
iconst 9
|
||||
sconst "Add ignore"
|
||||
iload 10
|
||||
widget_put_action_widget
|
||||
if_setop
|
||||
LABEL436:
|
||||
load_int 10
|
||||
load_string "Report"
|
||||
iconst 10
|
||||
sconst "Report"
|
||||
iload 10
|
||||
widget_put_action_widget
|
||||
load_string "<col=ffffff>"
|
||||
if_setop
|
||||
sconst "<col=ffffff>"
|
||||
sload 1
|
||||
load_string "</col>"
|
||||
string_append 3
|
||||
sconst "</col>"
|
||||
join_string 3
|
||||
iload 10
|
||||
widget_put_name_widget
|
||||
load_int 88
|
||||
load_int -2147483644
|
||||
load_string "event_opbase"
|
||||
load_string "is"
|
||||
if_setopbase
|
||||
iconst 88
|
||||
iconst -2147483644
|
||||
sconst "event_opbase"
|
||||
sconst "is"
|
||||
iload 10
|
||||
widget_put_option_click_listener_widget
|
||||
if_setonop
|
||||
jump LABEL457
|
||||
LABEL453:
|
||||
load_int -1
|
||||
load_string ""
|
||||
iconst -1
|
||||
sconst ""
|
||||
iload 10
|
||||
widget_put_option_click_listener_widget
|
||||
if_setonop
|
||||
LABEL457:
|
||||
load_int -1
|
||||
load_string ""
|
||||
iconst -1
|
||||
sconst ""
|
||||
iload 10
|
||||
widget_put_mouse_hover_listener_widget
|
||||
load_int -1
|
||||
load_string ""
|
||||
if_setonmouserepeat
|
||||
iconst -1
|
||||
sconst ""
|
||||
iload 10
|
||||
widget_put_mouse_exit_listener_widget
|
||||
if_setonmouseleave
|
||||
iload 9
|
||||
load_int 1
|
||||
iadd
|
||||
iconst 1
|
||||
add
|
||||
istore 9
|
||||
load_int 105
|
||||
load_int 73
|
||||
load_int 580
|
||||
iconst 105
|
||||
iconst 73
|
||||
iconst 580
|
||||
iload 9
|
||||
get_enum_value
|
||||
enum
|
||||
istore 10
|
||||
LABEL475:
|
||||
iload 12
|
||||
get_messagenode_next_id
|
||||
chat_getprevuid
|
||||
istore 12
|
||||
jump LABEL297
|
||||
LABEL479:
|
||||
iload 10
|
||||
load_int -1
|
||||
iconst -1
|
||||
if_icmpne LABEL483
|
||||
jump LABEL540
|
||||
LABEL483:
|
||||
iload 10
|
||||
widget_put_actions_null_widget
|
||||
load_int -1
|
||||
load_string ""
|
||||
if_clearops
|
||||
iconst -1
|
||||
sconst ""
|
||||
iload 10
|
||||
widget_put_option_click_listener_widget
|
||||
load_int -1
|
||||
load_string ""
|
||||
if_setonop
|
||||
iconst -1
|
||||
sconst ""
|
||||
iload 10
|
||||
widget_put_mouse_hover_listener_widget
|
||||
load_int -1
|
||||
load_string ""
|
||||
if_setonmouserepeat
|
||||
iconst -1
|
||||
sconst ""
|
||||
iload 10
|
||||
widget_put_mouse_exit_listener_widget
|
||||
load_int 0
|
||||
load_int 0
|
||||
load_int 0
|
||||
load_int 0
|
||||
if_setonmouseleave
|
||||
iconst 0
|
||||
iconst 0
|
||||
iconst 0
|
||||
iconst 0
|
||||
iload 10
|
||||
widget_put_size_widget
|
||||
load_int 10682368
|
||||
if_setsize
|
||||
iconst 10682368
|
||||
iload 9
|
||||
load_int 2
|
||||
imul
|
||||
widget_load_child
|
||||
load_int 1
|
||||
iconst 2
|
||||
multiply
|
||||
cc_find
|
||||
iconst 1
|
||||
if_icmpeq LABEL511
|
||||
jump LABEL515
|
||||
LABEL511:
|
||||
load_string ""
|
||||
widget_put_text
|
||||
load_int 1
|
||||
widget_put_hidden
|
||||
sconst ""
|
||||
cc_settext
|
||||
iconst 1
|
||||
cc_sethide
|
||||
LABEL515:
|
||||
load_int 10682368
|
||||
iconst 10682368
|
||||
iload 9
|
||||
load_int 2
|
||||
imul
|
||||
load_int 1
|
||||
iadd
|
||||
widget_load_child
|
||||
load_int 1
|
||||
iconst 2
|
||||
multiply
|
||||
iconst 1
|
||||
add
|
||||
cc_find
|
||||
iconst 1
|
||||
if_icmpeq LABEL525
|
||||
jump LABEL529
|
||||
LABEL525:
|
||||
load_string ""
|
||||
widget_put_text
|
||||
load_int 1
|
||||
widget_put_hidden
|
||||
sconst ""
|
||||
cc_settext
|
||||
iconst 1
|
||||
cc_sethide
|
||||
LABEL529:
|
||||
iload 9
|
||||
load_int 1
|
||||
iadd
|
||||
iconst 1
|
||||
add
|
||||
istore 9
|
||||
load_int 105
|
||||
load_int 73
|
||||
load_int 580
|
||||
iconst 105
|
||||
iconst 73
|
||||
iconst 580
|
||||
iload 9
|
||||
get_enum_value
|
||||
enum
|
||||
istore 10
|
||||
jump LABEL479
|
||||
LABEL540:
|
||||
|
||||
@@ -5,47 +5,47 @@
|
||||
.string_var_count 1
|
||||
sload 0 ; load input
|
||||
iload 0 ; load chat type
|
||||
load_string "chatboxInput" ; event name
|
||||
runelite_callback ; invoke callback
|
||||
pop_int ; pop chat type
|
||||
string_length ; get string length of chat message
|
||||
load_int 0 ; load 0
|
||||
sconst "chatboxInput" ; event name
|
||||
runelite_callback ; invoke callback
|
||||
pop_int ; pop chat type
|
||||
string_length ; get string length of chat message
|
||||
iconst 0 ; load 0
|
||||
if_icmpne LABEL100 ; if length is not 0, continue
|
||||
return
|
||||
return
|
||||
LABEL100:
|
||||
get_varbit 4394
|
||||
load_int 1
|
||||
iconst 1
|
||||
if_icmpeq LABEL4
|
||||
jump LABEL24
|
||||
LABEL4:
|
||||
iload 0
|
||||
load_int 1
|
||||
iconst 1
|
||||
if_icmpeq LABEL8
|
||||
jump LABEL16
|
||||
LABEL8:
|
||||
get_localplayer_name
|
||||
load_string ": "
|
||||
load_string "<col=2020ef>"
|
||||
chat_playername
|
||||
sconst ": "
|
||||
sconst "<col=2020ef>"
|
||||
sload 0
|
||||
load_string "</col>"
|
||||
string_append 5
|
||||
send_game_message
|
||||
sconst "</col>"
|
||||
join_string 5
|
||||
mes
|
||||
jump LABEL23
|
||||
LABEL16:
|
||||
get_localplayer_name
|
||||
load_string ": "
|
||||
load_string "<col=0000ff>"
|
||||
chat_playername
|
||||
sconst ": "
|
||||
sconst "<col=0000ff>"
|
||||
sload 0
|
||||
load_string "</col>"
|
||||
string_append 5
|
||||
send_game_message
|
||||
sconst "</col>"
|
||||
join_string 5
|
||||
mes
|
||||
LABEL23:
|
||||
jump LABEL27
|
||||
LABEL24:
|
||||
sload 0
|
||||
iload 0
|
||||
chatbox_input
|
||||
chat_sendpublic
|
||||
LABEL27:
|
||||
get_gamecycle
|
||||
put_varc 61
|
||||
return
|
||||
clientclock
|
||||
set_varc_int 61
|
||||
return
|
||||
|
||||
@@ -1,79 +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.
|
||||
|
||||
;;
|
||||
; Keylistener for ChatboxInputInit
|
||||
;
|
||||
; Script 112 Normal keylistener
|
||||
;
|
||||
; @param int pressedKey
|
||||
; @param int typedKey
|
||||
;;
|
||||
|
||||
.id 10002
|
||||
.int_stack_count 1
|
||||
.string_stack_count 1
|
||||
.int_var_count 2
|
||||
.string_var_count 1
|
||||
|
||||
; If we are not the active listener, the widget ids have probably changed
|
||||
get_varc 5
|
||||
load_int -2
|
||||
if_icmpeq LABEL2
|
||||
|
||||
; Log the error
|
||||
load_string "Got input while not active; Widget ids in ChatboxInputInit are probably wrong."
|
||||
load_string "debug"
|
||||
runelite_callback
|
||||
return
|
||||
|
||||
LABEL2:
|
||||
; Discard zero presses
|
||||
iload 0
|
||||
load_int 0
|
||||
if_icmpeq LABEL1
|
||||
|
||||
; Call runelite
|
||||
iload 0
|
||||
get_varc_string 22
|
||||
load_string "chatboxInputHandler"
|
||||
runelite_callback
|
||||
istore 0
|
||||
put_varc_string 22
|
||||
|
||||
; Check return value
|
||||
iload 0
|
||||
load_int 1
|
||||
if_icmpne LABEL0
|
||||
|
||||
; Close the dialog
|
||||
load_int 1
|
||||
load_int 1
|
||||
invoke 299
|
||||
|
||||
; Update UI
|
||||
LABEL0:
|
||||
load_string ""
|
||||
invoke 222
|
||||
LABEL1:
|
||||
return
|
||||
@@ -1,88 +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.
|
||||
|
||||
;;
|
||||
; Creates a chatbox text input
|
||||
;
|
||||
; @param String Prompt text
|
||||
; @param String Default value
|
||||
;
|
||||
; Script 752 GE input panel
|
||||
; Script 103-111 various input panels
|
||||
; Script 74 validates input
|
||||
; script 112 key callback
|
||||
;;
|
||||
|
||||
.id 10001
|
||||
.int_stack_count 0
|
||||
.string_stack_count 2
|
||||
.int_var_count 0
|
||||
.string_var_count 2
|
||||
|
||||
; Hide the chat pane
|
||||
invoke 677
|
||||
|
||||
; Set current value
|
||||
sload 1
|
||||
put_varc_string 22
|
||||
|
||||
; Mark varcstring22 for our use
|
||||
load_int -2
|
||||
put_varc 5
|
||||
|
||||
; Set text
|
||||
sload 0
|
||||
load_int 10616876
|
||||
widget_put_text_widget
|
||||
|
||||
; Init the widgets
|
||||
load_string ""
|
||||
invoke 222
|
||||
|
||||
; Register the key listener
|
||||
load_int 10002
|
||||
load_int -2147483639 ; typedKey
|
||||
load_string "i"
|
||||
load_int 10616877
|
||||
widget_put_key_listener_widget
|
||||
|
||||
; Restore the chatbox on exit
|
||||
load_int 299
|
||||
load_int 1
|
||||
load_int 1
|
||||
load_string "ii"
|
||||
load_int 10616877
|
||||
widget_put_dialog_abort_listener_widget
|
||||
|
||||
; 70% sure this opens the keyboard on mobile
|
||||
invoke 1972
|
||||
load_int 1
|
||||
if_icmpeq LABEL25
|
||||
jump LABEL26
|
||||
LABEL25:
|
||||
load_int 1
|
||||
load_int 10
|
||||
invoke 1983
|
||||
LABEL26:
|
||||
|
||||
return
|
||||
@@ -3,166 +3,166 @@
|
||||
.string_stack_count 0
|
||||
.int_var_count 4
|
||||
.string_var_count 3
|
||||
load_string "<col=0000ff>"
|
||||
sconst "<col=0000ff>"
|
||||
sstore 0
|
||||
load_int 0
|
||||
iconst 0
|
||||
istore 0
|
||||
load_int 6250335
|
||||
iconst 6250335
|
||||
istore 1
|
||||
invoke 921
|
||||
load_int 1
|
||||
iconst 1
|
||||
if_icmpeq LABEL10
|
||||
jump LABEL20
|
||||
LABEL10:
|
||||
load_string "<col=9090ff>"
|
||||
load_int 16777215
|
||||
load_int 12566463
|
||||
sconst "<col=9090ff>"
|
||||
iconst 16777215
|
||||
iconst 12566463
|
||||
istore 1
|
||||
istore 0
|
||||
sstore 0
|
||||
load_int 1
|
||||
load_int 10616889
|
||||
widget_put_text_shadowed_widget
|
||||
iconst 1
|
||||
iconst 10616889
|
||||
if_settextshadow
|
||||
jump LABEL23
|
||||
LABEL20:
|
||||
load_int 0
|
||||
load_int 10616889
|
||||
widget_put_text_shadowed_widget
|
||||
iconst 0
|
||||
iconst 10616889
|
||||
if_settextshadow
|
||||
LABEL23:
|
||||
iload 0
|
||||
load_int 10616889
|
||||
widget_put_textcolor_widget
|
||||
049 335
|
||||
iconst 10616889
|
||||
if_setcolour
|
||||
get_varc_string 335
|
||||
string_length
|
||||
istore 2
|
||||
049 335
|
||||
appendtags
|
||||
get_varc_string 335
|
||||
escape
|
||||
sstore 1
|
||||
load_string ""
|
||||
sconst ""
|
||||
sstore 2
|
||||
load_int 0
|
||||
iconst 0
|
||||
istore 3
|
||||
get_varbit 8119
|
||||
load_int 1
|
||||
iconst 1
|
||||
if_icmpeq LABEL40
|
||||
jump LABEL99
|
||||
LABEL40:
|
||||
load_int 105
|
||||
load_int 115
|
||||
load_int 1894
|
||||
iconst 105
|
||||
iconst 115
|
||||
iconst 1894
|
||||
get_varbit 1777
|
||||
get_enum_value
|
||||
get_localplayer_name
|
||||
load_string ": "
|
||||
enum
|
||||
chat_playername
|
||||
sconst ": "
|
||||
sload 0
|
||||
sload 1
|
||||
load_string "</col>"
|
||||
string_append 6
|
||||
sconst "</col>"
|
||||
join_string 6
|
||||
sstore 2
|
||||
iload 2
|
||||
load_int 80
|
||||
iconst 80
|
||||
if_icmplt LABEL56
|
||||
jump LABEL63
|
||||
LABEL56:
|
||||
sload 2
|
||||
sload 0
|
||||
load_string "*"
|
||||
load_string "</col>"
|
||||
string_append 3
|
||||
concat_string
|
||||
sconst "*"
|
||||
sconst "</col>"
|
||||
join_string 3
|
||||
append
|
||||
sstore 2
|
||||
LABEL63:
|
||||
sload 2
|
||||
load_int 2147483647
|
||||
load_int 495
|
||||
get_max_line_width
|
||||
iconst 2147483647
|
||||
iconst 495
|
||||
parawidth
|
||||
istore 3
|
||||
iload 3
|
||||
load_int 10616889
|
||||
widget_get_width_widget
|
||||
iconst 10616889
|
||||
if_getwidth
|
||||
if_icmpgt LABEL73
|
||||
jump LABEL79
|
||||
LABEL73:
|
||||
load_int 2
|
||||
load_int 2
|
||||
load_int 0
|
||||
load_int 10616889
|
||||
widget_put_text_alignment_widget
|
||||
iconst 2
|
||||
iconst 2
|
||||
iconst 0
|
||||
iconst 10616889
|
||||
if_settextalign
|
||||
jump LABEL84
|
||||
LABEL79:
|
||||
load_int 0
|
||||
load_int 2
|
||||
load_int 0
|
||||
load_int 10616889
|
||||
widget_put_text_alignment_widget
|
||||
iconst 0
|
||||
iconst 2
|
||||
iconst 0
|
||||
iconst 10616889
|
||||
if_settextalign
|
||||
LABEL84:
|
||||
load_int 10616889
|
||||
widget_put_actions_null_widget
|
||||
load_int -1
|
||||
load_string ""
|
||||
load_int 10616889
|
||||
widget_put_mouse_hover_listener_widget
|
||||
load_int -1
|
||||
load_string ""
|
||||
load_int 10616889
|
||||
widget_put_mouse_exit_listener_widget
|
||||
load_int -1
|
||||
load_string ""
|
||||
load_int 10616889
|
||||
widget_put_option_click_listener_widget
|
||||
iconst 10616889
|
||||
if_clearops
|
||||
iconst -1
|
||||
sconst ""
|
||||
iconst 10616889
|
||||
if_setonmouserepeat
|
||||
iconst -1
|
||||
sconst ""
|
||||
iconst 10616889
|
||||
if_setonmouseleave
|
||||
iconst -1
|
||||
sconst ""
|
||||
iconst 10616889
|
||||
if_setonop
|
||||
jump LABEL140
|
||||
LABEL99:
|
||||
load_int 105
|
||||
load_int 115
|
||||
load_int 1894
|
||||
iconst 105
|
||||
iconst 115
|
||||
iconst 1894
|
||||
get_varbit 1777
|
||||
get_enum_value
|
||||
load_string " You must set a name before you can chat."
|
||||
string_append 2
|
||||
enum
|
||||
sconst " You must set a name before you can chat."
|
||||
join_string 2
|
||||
sstore 2
|
||||
load_int 1
|
||||
load_int 2
|
||||
load_int 0
|
||||
load_int 10616889
|
||||
widget_put_text_alignment_widget
|
||||
load_int 10
|
||||
load_string "Configure"
|
||||
load_int 10616889
|
||||
widget_put_action_widget
|
||||
load_string "<col=ff9040>"
|
||||
load_string "Display name"
|
||||
load_string "</col>"
|
||||
string_append 3
|
||||
load_int 10616889
|
||||
widget_put_name_widget
|
||||
load_int 45
|
||||
load_int -2147483645
|
||||
iconst 1
|
||||
iconst 2
|
||||
iconst 0
|
||||
iconst 10616889
|
||||
if_settextalign
|
||||
iconst 10
|
||||
sconst "Configure"
|
||||
iconst 10616889
|
||||
if_setop
|
||||
sconst "<col=ff9040>"
|
||||
sconst "Display name"
|
||||
sconst "</col>"
|
||||
join_string 3
|
||||
iconst 10616889
|
||||
if_setopbase
|
||||
iconst 45
|
||||
iconst -2147483645
|
||||
iload 1
|
||||
load_string "Ii"
|
||||
load_int 10616889
|
||||
widget_put_mouse_hover_listener_widget
|
||||
load_int 45
|
||||
load_int -2147483645
|
||||
sconst "Ii"
|
||||
iconst 10616889
|
||||
if_setonmouserepeat
|
||||
iconst 45
|
||||
iconst -2147483645
|
||||
iload 0
|
||||
load_string "Ii"
|
||||
load_int 10616889
|
||||
widget_put_mouse_exit_listener_widget
|
||||
load_int 489
|
||||
load_int -2147483644
|
||||
load_int 1024
|
||||
load_string "ii"
|
||||
load_int 10616889
|
||||
widget_put_option_click_listener_widget
|
||||
sconst "Ii"
|
||||
iconst 10616889
|
||||
if_setonmouseleave
|
||||
iconst 489
|
||||
iconst -2147483644
|
||||
iconst 1024
|
||||
sconst "ii"
|
||||
iconst 10616889
|
||||
if_setonop
|
||||
LABEL140:
|
||||
sload 2
|
||||
load_int 10616889
|
||||
widget_put_text_widget
|
||||
load_string "setChatboxInput"
|
||||
iconst 10616889
|
||||
if_settext
|
||||
sconst "setChatboxInput"
|
||||
runelite_callback
|
||||
load_int 3
|
||||
load_int 16
|
||||
load_int 1
|
||||
load_int 0
|
||||
load_int 10616889
|
||||
widget_put_size_widget
|
||||
iconst 3
|
||||
iconst 16
|
||||
iconst 1
|
||||
iconst 0
|
||||
iconst 10616889
|
||||
if_setsize
|
||||
return
|
||||
|
||||
@@ -3,238 +3,238 @@
|
||||
.string_stack_count 0
|
||||
.int_var_count 5
|
||||
.string_var_count 0
|
||||
load_int 10616887
|
||||
widget_get_hidden_widget
|
||||
load_int 1
|
||||
iconst 10616887
|
||||
if_gethide
|
||||
iconst 1
|
||||
if_icmpeq LABEL9
|
||||
load_int 10616888
|
||||
widget_get_hidden_widget
|
||||
load_int 1
|
||||
iconst 10616888
|
||||
if_gethide
|
||||
iconst 1
|
||||
if_icmpeq LABEL9
|
||||
jump LABEL10
|
||||
LABEL9:
|
||||
return
|
||||
LABEL10:
|
||||
get_varbit 8119
|
||||
load_int 0
|
||||
iconst 0
|
||||
if_icmpeq LABEL19
|
||||
load_int -1
|
||||
load_int 162
|
||||
iconst -1
|
||||
iconst 162
|
||||
invoke 1701
|
||||
load_int 0
|
||||
iconst 0
|
||||
if_icmpeq LABEL19
|
||||
jump LABEL20
|
||||
LABEL19:
|
||||
return
|
||||
LABEL20:
|
||||
049 335
|
||||
get_varc_string 335
|
||||
string_length
|
||||
istore 2
|
||||
load_int 0
|
||||
iconst 0
|
||||
istore 3
|
||||
load_int 0
|
||||
iconst 0
|
||||
istore 4
|
||||
invoke 1972
|
||||
load_int 1
|
||||
iconst 1
|
||||
if_icmpeq LABEL31
|
||||
jump LABEL37
|
||||
LABEL31:
|
||||
get_varc 41
|
||||
load_int 4
|
||||
get_varc_int 41
|
||||
iconst 4
|
||||
if_icmpeq LABEL35
|
||||
jump LABEL37
|
||||
LABEL35:
|
||||
load_int 1
|
||||
iconst 1
|
||||
istore 4
|
||||
LABEL37:
|
||||
get_rights
|
||||
load_int 0
|
||||
staffmodlevel
|
||||
iconst 0
|
||||
if_icmpgt LABEL41
|
||||
jump LABEL43
|
||||
LABEL41:
|
||||
load_int 1
|
||||
iconst 1
|
||||
istore 3
|
||||
LABEL43:
|
||||
iload 3
|
||||
load_int 1
|
||||
iconst 1
|
||||
if_icmpeq LABEL47
|
||||
jump LABEL58
|
||||
LABEL47:
|
||||
load_string "`"
|
||||
sconst "`"
|
||||
iload 1
|
||||
string_indexof
|
||||
load_int -1
|
||||
string_indexof_char
|
||||
iconst -1
|
||||
if_icmpne LABEL53
|
||||
jump LABEL58
|
||||
LABEL53:
|
||||
iload 2
|
||||
load_int 0
|
||||
iconst 0
|
||||
if_icmpeq LABEL57
|
||||
jump LABEL58
|
||||
LABEL57:
|
||||
return
|
||||
LABEL58:
|
||||
iload 0
|
||||
load_int 84
|
||||
iconst 84
|
||||
if_icmpeq LABEL62
|
||||
jump LABEL179
|
||||
LABEL62:
|
||||
invoke 1984
|
||||
iload 2
|
||||
load_int 0
|
||||
iconst 0
|
||||
if_icmpgt LABEL67
|
||||
jump LABEL178
|
||||
LABEL67:
|
||||
049 335
|
||||
load_string "/"
|
||||
load_int 0
|
||||
string_indexof_from
|
||||
load_int 0
|
||||
get_varc_string 335
|
||||
sconst "/"
|
||||
iconst 0
|
||||
string_indexof_string
|
||||
iconst 0
|
||||
if_icmpeq LABEL77
|
||||
iload 4
|
||||
load_int 1
|
||||
iconst 1
|
||||
if_icmpeq LABEL77
|
||||
jump LABEL112
|
||||
LABEL77:
|
||||
get_clanchatcount
|
||||
load_int 0
|
||||
clan_getchatcount
|
||||
iconst 0
|
||||
if_icmpgt LABEL81
|
||||
jump LABEL108
|
||||
LABEL81:
|
||||
iload 2
|
||||
load_int 1
|
||||
iconst 1
|
||||
if_icmple LABEL85
|
||||
jump LABEL90
|
||||
LABEL85:
|
||||
iload 4
|
||||
load_int 0
|
||||
iconst 0
|
||||
if_icmpeq LABEL89
|
||||
jump LABEL90
|
||||
LABEL89:
|
||||
return
|
||||
LABEL90:
|
||||
get_varbit 4394
|
||||
load_int 1
|
||||
iconst 1
|
||||
if_icmpeq LABEL94
|
||||
jump LABEL96
|
||||
LABEL94:
|
||||
part_clanchat
|
||||
clan_leavechat
|
||||
jump LABEL107
|
||||
LABEL96:
|
||||
iload 4
|
||||
load_int 1
|
||||
iconst 1
|
||||
if_icmpeq LABEL100
|
||||
jump LABEL104
|
||||
LABEL100:
|
||||
load_string "/"
|
||||
049 335
|
||||
concat_string
|
||||
050 335
|
||||
sconst "/"
|
||||
get_varc_string 335
|
||||
append
|
||||
set_varc_string 335
|
||||
LABEL104:
|
||||
049 335
|
||||
load_int 2
|
||||
get_varc_string 335
|
||||
iconst 2
|
||||
invoke 96
|
||||
LABEL107:
|
||||
jump LABEL111
|
||||
LABEL108:
|
||||
049 335
|
||||
load_int 0
|
||||
get_varc_string 335
|
||||
iconst 0
|
||||
invoke 96
|
||||
LABEL111:
|
||||
jump LABEL174
|
||||
LABEL112:
|
||||
049 335
|
||||
load_string "::"
|
||||
load_int 0
|
||||
string_indexof_from
|
||||
load_int 0
|
||||
get_varc_string 335
|
||||
sconst "::"
|
||||
iconst 0
|
||||
string_indexof_string
|
||||
iconst 0
|
||||
if_icmpeq LABEL119
|
||||
jump LABEL171
|
||||
LABEL119:
|
||||
iload 2
|
||||
load_int 2
|
||||
iconst 2
|
||||
if_icmpgt LABEL123
|
||||
jump LABEL167
|
||||
LABEL123:
|
||||
049 335
|
||||
load_string "::toggleroof"
|
||||
load_int 0
|
||||
string_indexof_from
|
||||
load_int 0
|
||||
get_varc_string 335
|
||||
sconst "::toggleroof"
|
||||
iconst 0
|
||||
string_indexof_string
|
||||
iconst 0
|
||||
if_icmpeq LABEL130
|
||||
jump LABEL144
|
||||
LABEL130:
|
||||
get_hideroofs
|
||||
load_int 1
|
||||
getremoveroofs
|
||||
iconst 1
|
||||
if_icmpeq LABEL134
|
||||
jump LABEL139
|
||||
LABEL134:
|
||||
load_int 0
|
||||
set_hideroofs
|
||||
load_string "Roofs will only be removed selectively."
|
||||
send_game_message
|
||||
iconst 0
|
||||
setremoveroofs
|
||||
sconst "Roofs will only be removed selectively."
|
||||
mes
|
||||
jump LABEL143
|
||||
LABEL139:
|
||||
load_int 1
|
||||
set_hideroofs
|
||||
load_string "Roofs are now all hidden."
|
||||
send_game_message
|
||||
iconst 1
|
||||
setremoveroofs
|
||||
sconst "Roofs are now all hidden."
|
||||
mes
|
||||
LABEL143:
|
||||
jump LABEL166
|
||||
LABEL144:
|
||||
049 335
|
||||
load_string "::bank"
|
||||
load_int 0
|
||||
string_indexof_from
|
||||
load_int 0
|
||||
get_varc_string 335
|
||||
sconst "::bank"
|
||||
iconst 0
|
||||
string_indexof_string
|
||||
iconst 0
|
||||
if_icmpeq LABEL151
|
||||
load_string "runeliteCommand" ; load callback name
|
||||
sconst "runeliteCommand" ; load callback name
|
||||
runelite_callback ; invoke callback
|
||||
jump LABEL155
|
||||
LABEL151:
|
||||
load_string "Hey, everyone, I just tried to do something very silly!"
|
||||
load_int 0
|
||||
sconst "Hey, everyone, I just tried to do something very silly!"
|
||||
iconst 0
|
||||
invoke 96
|
||||
jump LABEL166
|
||||
LABEL155:
|
||||
049 335
|
||||
get_varc_string 335
|
||||
invoke 224
|
||||
050 335
|
||||
049 335
|
||||
set_varc_string 335
|
||||
get_varc_string 335
|
||||
string_length
|
||||
istore 2
|
||||
049 335
|
||||
load_int 2
|
||||
get_varc_string 335
|
||||
iconst 2
|
||||
iload 2
|
||||
string_substring
|
||||
run_command
|
||||
substring
|
||||
docheat
|
||||
LABEL166:
|
||||
jump LABEL170
|
||||
LABEL167:
|
||||
049 335
|
||||
load_int 0
|
||||
get_varc_string 335
|
||||
iconst 0
|
||||
invoke 96
|
||||
LABEL170:
|
||||
jump LABEL174
|
||||
LABEL171:
|
||||
049 335
|
||||
load_int 0
|
||||
get_varc_string 335
|
||||
iconst 0
|
||||
invoke 96
|
||||
LABEL174:
|
||||
049 335
|
||||
get_varc_string 335
|
||||
invoke 77
|
||||
load_string ""
|
||||
050 335
|
||||
sconst ""
|
||||
set_varc_string 335
|
||||
LABEL178:
|
||||
jump LABEL247
|
||||
LABEL179:
|
||||
iload 0
|
||||
load_int 104
|
||||
iconst 104
|
||||
if_icmpeq LABEL183
|
||||
jump LABEL189
|
||||
LABEL183:
|
||||
iload 3
|
||||
load_int 1
|
||||
iconst 1
|
||||
if_icmpeq LABEL187
|
||||
jump LABEL188
|
||||
LABEL187:
|
||||
@@ -243,12 +243,12 @@ LABEL188:
|
||||
jump LABEL247
|
||||
LABEL189:
|
||||
iload 0
|
||||
load_int 105
|
||||
iconst 105
|
||||
if_icmpeq LABEL193
|
||||
jump LABEL199
|
||||
LABEL193:
|
||||
iload 3
|
||||
load_int 1
|
||||
iconst 1
|
||||
if_icmpeq LABEL197
|
||||
jump LABEL198
|
||||
LABEL197:
|
||||
@@ -257,68 +257,68 @@ LABEL198:
|
||||
jump LABEL247
|
||||
LABEL199:
|
||||
iload 0
|
||||
load_int 80
|
||||
iconst 80
|
||||
if_icmpeq LABEL203
|
||||
jump LABEL241
|
||||
LABEL203:
|
||||
049 356
|
||||
get_varc_string 356
|
||||
string_length
|
||||
load_int 0
|
||||
iconst 0
|
||||
if_icmpgt LABEL208
|
||||
jump LABEL228
|
||||
LABEL208:
|
||||
049 356
|
||||
is_friend
|
||||
load_int 1
|
||||
get_varc_string 356
|
||||
friend_test
|
||||
iconst 1
|
||||
if_icmpeq LABEL213
|
||||
jump LABEL216
|
||||
LABEL213:
|
||||
049 356
|
||||
get_varc_string 356
|
||||
invoke 107
|
||||
return
|
||||
LABEL216:
|
||||
get_varc 60
|
||||
get_gamecycle
|
||||
get_varc_int 60
|
||||
clientclock
|
||||
if_icmpgt LABEL220
|
||||
jump LABEL221
|
||||
LABEL220:
|
||||
return
|
||||
LABEL221:
|
||||
get_gamecycle
|
||||
load_int 50
|
||||
iadd
|
||||
put_varc 60
|
||||
load_string "That player was not found on your Friends list."
|
||||
send_game_message
|
||||
clientclock
|
||||
iconst 50
|
||||
add
|
||||
set_varc_int 60
|
||||
sconst "That player was not found on your Friends list."
|
||||
mes
|
||||
return
|
||||
LABEL228:
|
||||
get_varc 60
|
||||
get_gamecycle
|
||||
get_varc_int 60
|
||||
clientclock
|
||||
if_icmpgt LABEL232
|
||||
jump LABEL233
|
||||
LABEL232:
|
||||
return
|
||||
LABEL233:
|
||||
get_gamecycle
|
||||
load_int 50
|
||||
iadd
|
||||
put_varc 60
|
||||
load_string "You haven't received any messages to which you can reply."
|
||||
send_game_message
|
||||
clientclock
|
||||
iconst 50
|
||||
add
|
||||
set_varc_int 60
|
||||
sconst "You haven't received any messages to which you can reply."
|
||||
mes
|
||||
return
|
||||
jump LABEL247
|
||||
LABEL241:
|
||||
049 335
|
||||
load_int 0
|
||||
get_varc_string 335
|
||||
iconst 0
|
||||
iload 0
|
||||
iload 1
|
||||
invoke 74
|
||||
load_int 1 ; check if we're ignoring input
|
||||
load_int 0 ;
|
||||
load_string "blockChatInput" ;
|
||||
iconst 1 ; check if we're ignoring input
|
||||
iconst 0 ;
|
||||
sconst "blockChatInput" ;
|
||||
runelite_callback ;
|
||||
if_icmpeq LABEL247 ; don't add to input varcstr
|
||||
050 335
|
||||
set_varc_string 335
|
||||
LABEL247:
|
||||
invoke 223
|
||||
return
|
||||
|
||||
1
runelite-client/src/main/scripts/GEOffersSetupInit.hash
Normal file
1
runelite-client/src/main/scripts/GEOffersSetupInit.hash
Normal file
@@ -0,0 +1 @@
|
||||
B370DDEEF61E0F420C1990DDA4FBBEDCEE8324F3750ABAC79B072A27268D887B
|
||||
394
runelite-client/src/main/scripts/GEOffersSetupInit.rs2asm
Normal file
394
runelite-client/src/main/scripts/GEOffersSetupInit.rs2asm
Normal file
@@ -0,0 +1,394 @@
|
||||
.id 779
|
||||
.int_stack_count 15
|
||||
.string_stack_count 0
|
||||
.int_var_count 16
|
||||
.string_var_count 1
|
||||
get_varbit 4397
|
||||
iconst 1
|
||||
if_icmpeq LABEL4
|
||||
jump LABEL65
|
||||
LABEL4:
|
||||
iload 0
|
||||
iload 1
|
||||
cc_find
|
||||
iconst 1
|
||||
if_icmpeq LABEL10
|
||||
jump LABEL12
|
||||
LABEL10:
|
||||
iconst 1
|
||||
cc_sethide
|
||||
LABEL12:
|
||||
iload 0
|
||||
iload 6
|
||||
cc_find
|
||||
iconst 1
|
||||
if_icmpeq LABEL18
|
||||
jump LABEL23
|
||||
LABEL18:
|
||||
iconst 0
|
||||
cc_settrans
|
||||
iconst -1
|
||||
sconst ""
|
||||
cc_setontimer
|
||||
LABEL23:
|
||||
iload 0
|
||||
iload 12
|
||||
cc_find
|
||||
iconst 1
|
||||
if_icmpeq LABEL29
|
||||
jump LABEL31
|
||||
LABEL29:
|
||||
iconst 1
|
||||
cc_sethide
|
||||
LABEL31:
|
||||
iload 0
|
||||
iload 4
|
||||
cc_find
|
||||
iconst 1
|
||||
if_icmpeq LABEL37
|
||||
jump LABEL39
|
||||
LABEL37:
|
||||
sconst "Sell offer"
|
||||
cc_settext
|
||||
LABEL39:
|
||||
iload 0
|
||||
iload 5
|
||||
cc_find
|
||||
iconst 1
|
||||
if_icmpeq LABEL45
|
||||
jump LABEL47
|
||||
LABEL45:
|
||||
iconst 1119
|
||||
cc_setgraphic
|
||||
LABEL47:
|
||||
iload 0
|
||||
iload 2
|
||||
cc_find
|
||||
iconst 1
|
||||
if_icmpeq LABEL53
|
||||
jump LABEL56
|
||||
LABEL53:
|
||||
iconst 1
|
||||
sconst "All"
|
||||
cc_setop
|
||||
LABEL56:
|
||||
iload 0
|
||||
iload 3
|
||||
cc_find
|
||||
iconst 1
|
||||
if_icmpeq LABEL62
|
||||
jump LABEL64
|
||||
LABEL62:
|
||||
sconst "All"
|
||||
cc_settext
|
||||
LABEL64:
|
||||
jump LABEL130
|
||||
LABEL65:
|
||||
iload 0
|
||||
iload 1
|
||||
cc_find
|
||||
iconst 1
|
||||
if_icmpeq LABEL71
|
||||
jump LABEL73
|
||||
LABEL71:
|
||||
iconst 0
|
||||
cc_sethide
|
||||
LABEL73:
|
||||
iload 0
|
||||
iload 6
|
||||
cc_find
|
||||
iconst 1
|
||||
if_icmpeq LABEL79
|
||||
jump LABEL89
|
||||
LABEL79:
|
||||
iconst 100
|
||||
cc_settrans
|
||||
iconst 811
|
||||
iconst -2147483645
|
||||
iconst -2147483643
|
||||
clientclock
|
||||
iconst 100
|
||||
iconst 250
|
||||
sconst "Iiiii"
|
||||
cc_setontimer
|
||||
LABEL89:
|
||||
iload 0
|
||||
iload 12
|
||||
cc_find
|
||||
iconst 1
|
||||
if_icmpeq LABEL95
|
||||
jump LABEL97
|
||||
LABEL95:
|
||||
iconst 0
|
||||
cc_sethide
|
||||
LABEL97:
|
||||
iload 0
|
||||
iload 4
|
||||
cc_find
|
||||
iconst 1
|
||||
if_icmpeq LABEL103
|
||||
jump LABEL105
|
||||
LABEL103:
|
||||
sconst "Buy offer"
|
||||
cc_settext
|
||||
LABEL105:
|
||||
iload 0
|
||||
iload 5
|
||||
cc_find
|
||||
iconst 1
|
||||
if_icmpeq LABEL111
|
||||
jump LABEL113
|
||||
LABEL111:
|
||||
iconst 1118
|
||||
cc_setgraphic
|
||||
LABEL113:
|
||||
iload 0
|
||||
iload 2
|
||||
cc_find
|
||||
iconst 1
|
||||
if_icmpeq LABEL119
|
||||
jump LABEL122
|
||||
LABEL119:
|
||||
iconst 1
|
||||
sconst "+1K"
|
||||
cc_setop
|
||||
LABEL122:
|
||||
iload 0
|
||||
iload 3
|
||||
cc_find
|
||||
iconst 1
|
||||
if_icmpeq LABEL128
|
||||
jump LABEL130
|
||||
LABEL128:
|
||||
sconst "+1K"
|
||||
cc_settext
|
||||
LABEL130:
|
||||
sconst ","
|
||||
sstore 0
|
||||
iconst 0
|
||||
istore 15
|
||||
get_varp 1151
|
||||
iconst -1
|
||||
if_icmpne LABEL138
|
||||
jump LABEL274
|
||||
LABEL138:
|
||||
iload 0
|
||||
iload 7
|
||||
cc_find
|
||||
iconst 1
|
||||
if_icmpeq LABEL144
|
||||
jump LABEL147
|
||||
LABEL144:
|
||||
get_varp 1151
|
||||
get_varbit 4396
|
||||
cc_setobject_nonum
|
||||
LABEL147:
|
||||
iload 0
|
||||
iload 8
|
||||
cc_find
|
||||
iconst 1
|
||||
if_icmpeq LABEL153
|
||||
jump LABEL156
|
||||
LABEL153:
|
||||
get_varp 1151
|
||||
oc_name
|
||||
cc_settext
|
||||
LABEL156:
|
||||
iload 0
|
||||
iload 9
|
||||
cc_find
|
||||
iconst 1
|
||||
if_icmpeq LABEL162
|
||||
jump LABEL166
|
||||
LABEL162:
|
||||
get_varbit 4396
|
||||
sload 0
|
||||
invoke 46
|
||||
cc_settext
|
||||
LABEL166:
|
||||
iload 0
|
||||
iload 10
|
||||
cc_find
|
||||
iconst 1
|
||||
if_icmpeq LABEL172
|
||||
jump LABEL185
|
||||
LABEL172:
|
||||
get_varbit 4398
|
||||
iconst 1
|
||||
if_icmpeq LABEL176
|
||||
jump LABEL179
|
||||
LABEL176:
|
||||
sconst "1 coin"
|
||||
cc_settext
|
||||
jump LABEL185
|
||||
LABEL179:
|
||||
get_varbit 4398
|
||||
sload 0
|
||||
invoke 46
|
||||
sconst " coins"
|
||||
join_string 2
|
||||
cc_settext
|
||||
LABEL185:
|
||||
get_varbit 4396
|
||||
iconst 0
|
||||
if_icmpgt LABEL189
|
||||
jump LABEL211
|
||||
LABEL189:
|
||||
iconst 2147483647
|
||||
get_varbit 4396
|
||||
div
|
||||
get_varbit 4398
|
||||
if_icmplt LABEL195
|
||||
jump LABEL211
|
||||
LABEL195:
|
||||
iload 0
|
||||
iload 11
|
||||
cc_find
|
||||
iconst 1
|
||||
if_icmpeq LABEL201
|
||||
jump LABEL206
|
||||
LABEL201:
|
||||
sconst "<col=ff0000>"
|
||||
sconst "Too much money!"
|
||||
sconst "</col>"
|
||||
join_string 3
|
||||
cc_settext
|
||||
LABEL206:
|
||||
iload 0
|
||||
iload 14
|
||||
iload 13
|
||||
invoke 780
|
||||
jump LABEL273
|
||||
LABEL211:
|
||||
get_varbit 4396
|
||||
get_varbit 4398
|
||||
multiply
|
||||
istore 15
|
||||
iload 0
|
||||
iload 11
|
||||
cc_find
|
||||
iconst 1
|
||||
if_icmpeq LABEL221
|
||||
jump LABEL234
|
||||
LABEL221:
|
||||
iload 15
|
||||
iconst 1
|
||||
if_icmpeq LABEL225
|
||||
jump LABEL228
|
||||
LABEL225:
|
||||
sconst "1 coin"
|
||||
cc_settext
|
||||
jump LABEL234
|
||||
LABEL228:
|
||||
iload 15
|
||||
sload 0
|
||||
invoke 46
|
||||
sconst " coins"
|
||||
join_string 2
|
||||
cc_settext
|
||||
LABEL234:
|
||||
iload 15
|
||||
iconst 0
|
||||
if_icmpgt LABEL238
|
||||
jump LABEL269
|
||||
LABEL238:
|
||||
iload 13
|
||||
invoke 208
|
||||
pop_int
|
||||
iconst 772
|
||||
iconst -2147483645
|
||||
sconst "I"
|
||||
iload 13
|
||||
if_setonmouserepeat
|
||||
iconst 97
|
||||
iconst -2147483645
|
||||
sconst "I"
|
||||
iload 13
|
||||
if_setonmouseleave
|
||||
iconst 489
|
||||
iconst -2147483644
|
||||
iconst 2
|
||||
sconst "ii"
|
||||
iload 13
|
||||
if_setonop
|
||||
iload 0
|
||||
iload 14
|
||||
cc_find
|
||||
iconst 1
|
||||
if_icmpeq LABEL263
|
||||
jump LABEL268
|
||||
LABEL263:
|
||||
sconst "<col=ffffff>"
|
||||
sconst "Confirm"
|
||||
sconst "</col>"
|
||||
join_string 3
|
||||
cc_settext
|
||||
LABEL268:
|
||||
jump LABEL273
|
||||
LABEL269:
|
||||
iload 0
|
||||
iload 14
|
||||
iload 13
|
||||
invoke 780
|
||||
LABEL273:
|
||||
jump LABEL319
|
||||
LABEL274:
|
||||
iload 0
|
||||
iload 7
|
||||
cc_find
|
||||
iconst 1
|
||||
if_icmpeq LABEL280
|
||||
jump LABEL283
|
||||
LABEL280:
|
||||
iconst 6512
|
||||
iconst 1
|
||||
cc_setobject_nonum
|
||||
LABEL283:
|
||||
iload 0
|
||||
iload 8
|
||||
cc_find
|
||||
iconst 1
|
||||
if_icmpeq LABEL289
|
||||
jump LABEL291
|
||||
LABEL289:
|
||||
sconst "Choose an item..."
|
||||
cc_settext
|
||||
LABEL291:
|
||||
iload 0
|
||||
iload 9
|
||||
cc_find
|
||||
iconst 1
|
||||
if_icmpeq LABEL297
|
||||
jump LABEL299
|
||||
LABEL297:
|
||||
sconst ""
|
||||
cc_settext
|
||||
LABEL299:
|
||||
iload 0
|
||||
iload 10
|
||||
cc_find
|
||||
iconst 1
|
||||
if_icmpeq LABEL305
|
||||
jump LABEL307
|
||||
LABEL305:
|
||||
sconst ""
|
||||
cc_settext
|
||||
LABEL307:
|
||||
iload 0
|
||||
iload 11
|
||||
cc_find
|
||||
iconst 1
|
||||
if_icmpeq LABEL313
|
||||
jump LABEL315
|
||||
LABEL313:
|
||||
sconst ""
|
||||
cc_settext
|
||||
LABEL315:
|
||||
iload 0
|
||||
iload 14
|
||||
iload 13
|
||||
invoke 780
|
||||
LABEL319:
|
||||
sconst "geBuilt" ;
|
||||
runelite_callback ;
|
||||
return
|
||||
@@ -3,42 +3,42 @@
|
||||
.string_stack_count 0
|
||||
.int_var_count 0
|
||||
.string_var_count 1
|
||||
get_varc 11
|
||||
load_int 1
|
||||
get_varc_int 11
|
||||
iconst 1
|
||||
if_icmpeq LABEL4
|
||||
jump LABEL5
|
||||
LABEL4:
|
||||
close_window
|
||||
if_close
|
||||
LABEL5:
|
||||
load_int 11
|
||||
iconst 11
|
||||
invoke 677
|
||||
load_string "Show items whose names contain the following text:"
|
||||
load_string "setSearchBankInputText" ; load event name
|
||||
sconst "Show items whose names contain the following text:"
|
||||
sconst "setSearchBankInputText" ; load event name
|
||||
runelite_callback ; invoke callback
|
||||
load_int 10616876
|
||||
widget_put_text_widget
|
||||
load_string ""
|
||||
iconst 10616876
|
||||
if_settext
|
||||
sconst ""
|
||||
invoke 222
|
||||
load_string ""
|
||||
sconst ""
|
||||
sstore 0
|
||||
load_int 112
|
||||
load_int -2147483640
|
||||
load_int -2147483639
|
||||
iconst 112
|
||||
iconst -2147483640
|
||||
iconst -2147483639
|
||||
sload 0
|
||||
load_string "izs"
|
||||
load_int 10616877
|
||||
widget_put_key_listener_widget
|
||||
load_int 138
|
||||
load_string ""
|
||||
load_int 10616877
|
||||
widget_put_dialog_abort_listener_widget
|
||||
sconst "izs"
|
||||
iconst 10616877
|
||||
if_setonkey
|
||||
iconst 138
|
||||
sconst ""
|
||||
iconst 10616877
|
||||
if_setondialogabort
|
||||
invoke 1972
|
||||
load_int 1
|
||||
iconst 1
|
||||
if_icmpeq LABEL29
|
||||
jump LABEL32
|
||||
LABEL29:
|
||||
load_int 0
|
||||
load_int 80
|
||||
iconst 0
|
||||
iconst 80
|
||||
invoke 1983
|
||||
LABEL32:
|
||||
return
|
||||
|
||||
@@ -3,253 +3,253 @@
|
||||
.string_stack_count 0
|
||||
.int_var_count 21
|
||||
.string_var_count 0
|
||||
load_int 73
|
||||
load_int 73
|
||||
iconst 73
|
||||
iconst 73
|
||||
iload 1
|
||||
load_int 10551298
|
||||
get_enum_value
|
||||
iconst 10551298
|
||||
enum
|
||||
istore 2
|
||||
load_int 73
|
||||
load_int 73
|
||||
iconst 73
|
||||
iconst 73
|
||||
iload 1
|
||||
load_int 10551306
|
||||
get_enum_value
|
||||
iconst 10551306
|
||||
enum
|
||||
istore 3
|
||||
load_int 73
|
||||
load_int 73
|
||||
iconst 73
|
||||
iconst 73
|
||||
iload 1
|
||||
load_int 10551301
|
||||
get_enum_value
|
||||
iconst 10551301
|
||||
enum
|
||||
istore 4
|
||||
load_int 73
|
||||
load_int 73
|
||||
iconst 73
|
||||
iconst 73
|
||||
iload 1
|
||||
load_int 10551308
|
||||
get_enum_value
|
||||
iconst 10551308
|
||||
enum
|
||||
istore 5
|
||||
load_int 103
|
||||
load_int 105
|
||||
load_int 1960
|
||||
iconst 103
|
||||
iconst 105
|
||||
iconst 1960
|
||||
iload 1
|
||||
get_enum_value
|
||||
enum
|
||||
istore 6
|
||||
load_int 103
|
||||
load_int 105
|
||||
load_int 1961
|
||||
iconst 103
|
||||
iconst 105
|
||||
iconst 1961
|
||||
iload 1
|
||||
get_enum_value
|
||||
enum
|
||||
istore 7
|
||||
load_int 103
|
||||
load_int 105
|
||||
load_int 1135
|
||||
iconst 103
|
||||
iconst 105
|
||||
iconst 1135
|
||||
iload 1
|
||||
get_enum_value
|
||||
enum
|
||||
istore 8
|
||||
load_int 103
|
||||
load_int 105
|
||||
load_int 1136
|
||||
iconst 103
|
||||
iconst 105
|
||||
iconst 1136
|
||||
iload 1
|
||||
get_enum_value
|
||||
enum
|
||||
istore 9
|
||||
load_int 0
|
||||
iconst 0
|
||||
istore 10
|
||||
load_int 0
|
||||
iconst 0
|
||||
istore 11
|
||||
load_int 0
|
||||
iconst 0
|
||||
istore 12
|
||||
load_int 0
|
||||
iconst 0
|
||||
istore 13
|
||||
load_int 0
|
||||
iconst 0
|
||||
istore 14
|
||||
load_int 0
|
||||
iconst 0
|
||||
istore 15
|
||||
iload 0
|
||||
widget_get_width_widget
|
||||
if_getwidth
|
||||
istore 16
|
||||
iload 0
|
||||
widget_get_height_widget
|
||||
if_getheight
|
||||
istore 17
|
||||
iload 1
|
||||
load_int 1745
|
||||
iconst 1745
|
||||
if_icmpeq LABEL70
|
||||
jump LABEL84
|
||||
LABEL70:
|
||||
load_int 0
|
||||
iconst 0
|
||||
iload 16
|
||||
load_int 39387148
|
||||
widget_get_width_widget
|
||||
isub
|
||||
iconst 39387148
|
||||
if_getwidth
|
||||
sub
|
||||
invoke 1045
|
||||
istore 14
|
||||
load_int 0
|
||||
iconst 0
|
||||
iload 17
|
||||
load_int 39387148
|
||||
widget_get_height_widget
|
||||
isub
|
||||
iconst 39387148
|
||||
if_getheight
|
||||
sub
|
||||
invoke 1045
|
||||
istore 15
|
||||
LABEL84:
|
||||
get_varbit 4606
|
||||
load_int 0
|
||||
iconst 0
|
||||
if_icmpne LABEL88
|
||||
jump LABEL253
|
||||
LABEL88:
|
||||
get_varbit 4606
|
||||
load_int 2
|
||||
iconst 2
|
||||
if_icmpeq LABEL92
|
||||
jump LABEL101
|
||||
LABEL92:
|
||||
load_int 512
|
||||
load_int 220
|
||||
6200
|
||||
load_int 0
|
||||
load_int 0
|
||||
load_int 0
|
||||
load_int 0
|
||||
6202
|
||||
iconst 512
|
||||
iconst 220
|
||||
viewport_setfov
|
||||
iconst 0
|
||||
iconst 0
|
||||
iconst 0
|
||||
iconst 0
|
||||
viewport_clampfov
|
||||
jump LABEL106
|
||||
LABEL101:
|
||||
load_int 512
|
||||
load_int 512
|
||||
load_int 512
|
||||
load_int 512
|
||||
6202
|
||||
iconst 512
|
||||
iconst 512
|
||||
iconst 512
|
||||
iconst 512
|
||||
viewport_clampfov
|
||||
LABEL106:
|
||||
load_int 50
|
||||
set_camera_focal_point_height
|
||||
iconst 50
|
||||
cam_setfollowheight
|
||||
iload 2
|
||||
load_int -1
|
||||
iconst -1
|
||||
if_icmpne LABEL112
|
||||
jump LABEL252
|
||||
LABEL112:
|
||||
iload 3
|
||||
load_int -1
|
||||
iconst -1
|
||||
if_icmpne LABEL116
|
||||
jump LABEL252
|
||||
LABEL116:
|
||||
get_viewport_size
|
||||
viewport_geteffectivesize
|
||||
istore 11
|
||||
istore 10
|
||||
load_int 0
|
||||
iconst 0
|
||||
iload 16
|
||||
iload 10
|
||||
isub
|
||||
sub
|
||||
invoke 1045
|
||||
load_int 0
|
||||
iconst 0
|
||||
iload 17
|
||||
iload 11
|
||||
isub
|
||||
sub
|
||||
invoke 1045
|
||||
istore 13
|
||||
istore 12
|
||||
iload 10
|
||||
iload 11
|
||||
load_int 0
|
||||
load_int 0
|
||||
iconst 0
|
||||
iconst 0
|
||||
iload 2
|
||||
widget_put_size_widget
|
||||
if_setsize
|
||||
iload 10
|
||||
load_int 0
|
||||
iconst 0
|
||||
iload 14
|
||||
iload 12
|
||||
isub
|
||||
sub
|
||||
invoke 1045
|
||||
isub
|
||||
sub
|
||||
iload 11
|
||||
load_int 0
|
||||
iconst 0
|
||||
iload 15
|
||||
iload 13
|
||||
isub
|
||||
sub
|
||||
invoke 1045
|
||||
isub
|
||||
load_int 0
|
||||
load_int 0
|
||||
sub
|
||||
iconst 0
|
||||
iconst 0
|
||||
iload 3
|
||||
widget_put_size_widget
|
||||
if_setsize
|
||||
iload 4
|
||||
load_int -1
|
||||
iconst -1
|
||||
if_icmpne LABEL159
|
||||
jump LABEL242
|
||||
LABEL159:
|
||||
iload 5
|
||||
load_int -1
|
||||
iconst -1
|
||||
if_icmpne LABEL163
|
||||
jump LABEL242
|
||||
LABEL163:
|
||||
iload 12
|
||||
iload 14
|
||||
isub
|
||||
load_int 2
|
||||
idiv
|
||||
sub
|
||||
iconst 2
|
||||
div
|
||||
iload 13
|
||||
iload 15
|
||||
isub
|
||||
load_int 2
|
||||
idiv
|
||||
sub
|
||||
iconst 2
|
||||
div
|
||||
istore 13
|
||||
istore 12
|
||||
load_int 0
|
||||
iconst 0
|
||||
iload 6
|
||||
iload 12
|
||||
isub
|
||||
sub
|
||||
invoke 1045
|
||||
load_int 0
|
||||
iconst 0
|
||||
iload 8
|
||||
iload 12
|
||||
isub
|
||||
sub
|
||||
invoke 1045
|
||||
istore 8
|
||||
istore 6
|
||||
load_int 0
|
||||
iconst 0
|
||||
iload 7
|
||||
iload 13
|
||||
isub
|
||||
sub
|
||||
invoke 1045
|
||||
load_int 0
|
||||
iconst 0
|
||||
iload 9
|
||||
iload 13
|
||||
isub
|
||||
sub
|
||||
invoke 1045
|
||||
istore 9
|
||||
istore 7
|
||||
iload 6
|
||||
iload 7
|
||||
load_int 0
|
||||
load_int 0
|
||||
iconst 0
|
||||
iconst 0
|
||||
iload 4
|
||||
widget_put_position_widget
|
||||
if_setposition
|
||||
iload 6
|
||||
iload 7
|
||||
load_int 0
|
||||
load_int 0
|
||||
iconst 0
|
||||
iconst 0
|
||||
iload 5
|
||||
widget_put_position_widget
|
||||
if_setposition
|
||||
iload 6
|
||||
iload 8
|
||||
iadd
|
||||
add
|
||||
iload 7
|
||||
iload 9
|
||||
iadd
|
||||
load_int 1
|
||||
load_int 1
|
||||
add
|
||||
iconst 1
|
||||
iconst 1
|
||||
iload 4
|
||||
widget_put_size_widget
|
||||
if_setsize
|
||||
iload 6
|
||||
iload 8
|
||||
iadd
|
||||
add
|
||||
iload 7
|
||||
iload 9
|
||||
iadd
|
||||
load_int 1
|
||||
load_int 1
|
||||
add
|
||||
iconst 1
|
||||
iconst 1
|
||||
iload 5
|
||||
widget_put_size_widget
|
||||
if_setsize
|
||||
iload 1
|
||||
load_int 73
|
||||
load_int 73
|
||||
iconst 73
|
||||
iconst 73
|
||||
iload 1
|
||||
load_int 10551307
|
||||
get_enum_value
|
||||
iconst 10551307
|
||||
enum
|
||||
iload 5
|
||||
iload 8
|
||||
iload 9
|
||||
@@ -257,137 +257,137 @@ LABEL163:
|
||||
jump LABEL252
|
||||
LABEL242:
|
||||
iload 1
|
||||
load_int 73
|
||||
load_int 73
|
||||
iconst 73
|
||||
iconst 73
|
||||
iload 1
|
||||
load_int 10551307
|
||||
get_enum_value
|
||||
iconst 10551307
|
||||
enum
|
||||
iload 3
|
||||
load_int 0
|
||||
load_int 0
|
||||
iconst 0
|
||||
iconst 0
|
||||
invoke 910
|
||||
LABEL252:
|
||||
jump LABEL369
|
||||
LABEL253:
|
||||
load_int 0
|
||||
load_int 0
|
||||
load_int 0
|
||||
load_int 0
|
||||
6202
|
||||
get_varc 73
|
||||
load_int 128
|
||||
load_string "outerZoomLimit"
|
||||
runelite_callback
|
||||
iconst 0
|
||||
iconst 0
|
||||
iconst 0
|
||||
iconst 0
|
||||
viewport_clampfov
|
||||
get_varc_int 73
|
||||
iconst 128
|
||||
sconst "outerZoomLimit"
|
||||
runelite_callback
|
||||
if_icmpge LABEL262
|
||||
jump LABEL278
|
||||
LABEL262:
|
||||
get_varc 73
|
||||
load_int 896
|
||||
load_string "innerZoomLimit"
|
||||
get_varc_int 73
|
||||
iconst 896
|
||||
sconst "innerZoomLimit"
|
||||
runelite_callback
|
||||
if_icmple LABEL266
|
||||
jump LABEL278
|
||||
LABEL266:
|
||||
get_varc 74
|
||||
load_int 128
|
||||
load_string "outerZoomLimit"
|
||||
runelite_callback
|
||||
get_varc_int 74
|
||||
iconst 128
|
||||
sconst "outerZoomLimit"
|
||||
runelite_callback
|
||||
if_icmpge LABEL270
|
||||
jump LABEL278
|
||||
LABEL270:
|
||||
get_varc 74
|
||||
load_int 896
|
||||
load_string "innerZoomLimit"
|
||||
get_varc_int 74
|
||||
iconst 896
|
||||
sconst "innerZoomLimit"
|
||||
runelite_callback
|
||||
if_icmple LABEL274
|
||||
jump LABEL278
|
||||
LABEL274:
|
||||
get_varc 73
|
||||
get_varc 74
|
||||
get_varc_int 73
|
||||
get_varc_int 74
|
||||
invoke 42
|
||||
jump LABEL281
|
||||
LABEL278:
|
||||
load_int 512
|
||||
load_int 512
|
||||
iconst 512
|
||||
iconst 512
|
||||
invoke 42
|
||||
LABEL281:
|
||||
get_viewport_size
|
||||
viewport_geteffectivesize
|
||||
istore 11
|
||||
istore 10
|
||||
iload 2
|
||||
load_int -1
|
||||
iconst -1
|
||||
if_icmpne LABEL288
|
||||
jump LABEL369
|
||||
LABEL288:
|
||||
iload 3
|
||||
load_int -1
|
||||
iconst -1
|
||||
if_icmpne LABEL292
|
||||
jump LABEL369
|
||||
LABEL292:
|
||||
iload 10
|
||||
iload 11
|
||||
load_int 0
|
||||
load_int 0
|
||||
iconst 0
|
||||
iconst 0
|
||||
iload 2
|
||||
widget_put_size_widget
|
||||
if_setsize
|
||||
iload 10
|
||||
iload 14
|
||||
isub
|
||||
sub
|
||||
iload 11
|
||||
iload 15
|
||||
isub
|
||||
load_int 0
|
||||
load_int 0
|
||||
sub
|
||||
iconst 0
|
||||
iconst 0
|
||||
iload 3
|
||||
widget_put_size_widget
|
||||
if_setsize
|
||||
iload 4
|
||||
load_int -1
|
||||
iconst -1
|
||||
if_icmpne LABEL312
|
||||
jump LABEL359
|
||||
LABEL312:
|
||||
iload 5
|
||||
load_int -1
|
||||
iconst -1
|
||||
if_icmpne LABEL316
|
||||
jump LABEL359
|
||||
LABEL316:
|
||||
iload 6
|
||||
iload 7
|
||||
load_int 0
|
||||
load_int 0
|
||||
iconst 0
|
||||
iconst 0
|
||||
iload 4
|
||||
widget_put_position_widget
|
||||
if_setposition
|
||||
iload 6
|
||||
iload 7
|
||||
load_int 0
|
||||
load_int 0
|
||||
iconst 0
|
||||
iconst 0
|
||||
iload 5
|
||||
widget_put_position_widget
|
||||
if_setposition
|
||||
iload 6
|
||||
iload 8
|
||||
iadd
|
||||
add
|
||||
iload 7
|
||||
iload 9
|
||||
iadd
|
||||
load_int 1
|
||||
load_int 1
|
||||
add
|
||||
iconst 1
|
||||
iconst 1
|
||||
iload 4
|
||||
widget_put_size_widget
|
||||
if_setsize
|
||||
iload 6
|
||||
iload 8
|
||||
iadd
|
||||
add
|
||||
iload 7
|
||||
iload 9
|
||||
iadd
|
||||
load_int 1
|
||||
load_int 1
|
||||
add
|
||||
iconst 1
|
||||
iconst 1
|
||||
iload 5
|
||||
widget_put_size_widget
|
||||
if_setsize
|
||||
iload 1
|
||||
load_int 73
|
||||
load_int 73
|
||||
iconst 73
|
||||
iconst 73
|
||||
iload 1
|
||||
load_int 10551307
|
||||
get_enum_value
|
||||
iconst 10551307
|
||||
enum
|
||||
iload 5
|
||||
iload 8
|
||||
iload 9
|
||||
@@ -395,191 +395,191 @@ LABEL316:
|
||||
jump LABEL369
|
||||
LABEL359:
|
||||
iload 1
|
||||
load_int 73
|
||||
load_int 73
|
||||
iconst 73
|
||||
iconst 73
|
||||
iload 1
|
||||
load_int 10551307
|
||||
get_enum_value
|
||||
iconst 10551307
|
||||
enum
|
||||
iload 3
|
||||
load_int 0
|
||||
load_int 0
|
||||
iconst 0
|
||||
iconst 0
|
||||
invoke 910
|
||||
LABEL369:
|
||||
load_int 73
|
||||
load_int 73
|
||||
iconst 73
|
||||
iconst 73
|
||||
iload 1
|
||||
load_int 10551309
|
||||
get_enum_value
|
||||
iconst 10551309
|
||||
enum
|
||||
istore 18
|
||||
iload 18
|
||||
load_int -1
|
||||
iconst -1
|
||||
if_icmpne LABEL379
|
||||
jump LABEL423
|
||||
LABEL379:
|
||||
invoke 1972
|
||||
load_int 0
|
||||
iconst 0
|
||||
if_icmpeq LABEL383
|
||||
jump LABEL417
|
||||
LABEL383:
|
||||
iload 18
|
||||
widget_get_index_widget
|
||||
load_int 1
|
||||
if_hassub
|
||||
iconst 1
|
||||
if_icmpeq LABEL388
|
||||
jump LABEL417
|
||||
LABEL388:
|
||||
get_varc 173
|
||||
load_int -2
|
||||
get_varc_int 173
|
||||
iconst -2
|
||||
if_icmpeq LABEL392
|
||||
jump LABEL399
|
||||
LABEL392:
|
||||
load_int 512
|
||||
load_int 0
|
||||
load_int 0
|
||||
load_int 1
|
||||
iconst 512
|
||||
iconst 0
|
||||
iconst 0
|
||||
iconst 1
|
||||
iload 18
|
||||
widget_put_size_widget
|
||||
if_setsize
|
||||
jump LABEL416
|
||||
LABEL399:
|
||||
get_varc 173
|
||||
load_int -3
|
||||
get_varc_int 173
|
||||
iconst -3
|
||||
if_icmpeq LABEL403
|
||||
jump LABEL410
|
||||
LABEL403:
|
||||
load_int 0
|
||||
load_int 0
|
||||
load_int 1
|
||||
load_int 1
|
||||
iconst 0
|
||||
iconst 0
|
||||
iconst 1
|
||||
iconst 1
|
||||
iload 18
|
||||
widget_put_size_widget
|
||||
if_setsize
|
||||
jump LABEL416
|
||||
LABEL410:
|
||||
load_int 512
|
||||
load_int 334
|
||||
load_int 0
|
||||
load_int 0
|
||||
iconst 512
|
||||
iconst 334
|
||||
iconst 0
|
||||
iconst 0
|
||||
iload 18
|
||||
widget_put_size_widget
|
||||
if_setsize
|
||||
LABEL416:
|
||||
jump LABEL423
|
||||
LABEL417:
|
||||
load_int 512
|
||||
load_int 334
|
||||
load_int 0
|
||||
load_int 0
|
||||
iconst 512
|
||||
iconst 334
|
||||
iconst 0
|
||||
iconst 0
|
||||
iload 18
|
||||
widget_put_size_widget
|
||||
if_setsize
|
||||
LABEL423:
|
||||
load_int 73
|
||||
load_int 73
|
||||
iconst 73
|
||||
iconst 73
|
||||
iload 1
|
||||
load_int 10551311
|
||||
get_enum_value
|
||||
iconst 10551311
|
||||
enum
|
||||
istore 18
|
||||
load_int 0
|
||||
iconst 0
|
||||
istore 19
|
||||
load_int 0
|
||||
iconst 0
|
||||
istore 20
|
||||
iload 18
|
||||
load_int -1
|
||||
iconst -1
|
||||
if_icmpne LABEL437
|
||||
jump LABEL481
|
||||
LABEL437:
|
||||
load_int 73
|
||||
load_int 73
|
||||
iconst 73
|
||||
iconst 73
|
||||
iload 1
|
||||
load_int 10551303
|
||||
get_enum_value
|
||||
widget_get_index_widget
|
||||
load_int 1
|
||||
iconst 10551303
|
||||
enum
|
||||
if_hassub
|
||||
iconst 1
|
||||
if_icmpeq LABEL446
|
||||
jump LABEL455
|
||||
LABEL446:
|
||||
get_varbit 4692
|
||||
load_int 0
|
||||
iconst 0
|
||||
if_icmpne LABEL450
|
||||
jump LABEL453
|
||||
LABEL450:
|
||||
load_int 0
|
||||
iconst 0
|
||||
istore 20
|
||||
jump LABEL455
|
||||
LABEL453:
|
||||
load_int 38
|
||||
iconst 38
|
||||
istore 20
|
||||
LABEL455:
|
||||
invoke 1972
|
||||
load_int 1
|
||||
iconst 1
|
||||
if_icmpeq LABEL459
|
||||
jump LABEL473
|
||||
LABEL459:
|
||||
get_varbit 6254
|
||||
load_int 0
|
||||
iconst 0
|
||||
if_icmpeq LABEL463
|
||||
jump LABEL468
|
||||
LABEL463:
|
||||
load_int 182
|
||||
load_int 4
|
||||
iadd
|
||||
iconst 182
|
||||
iconst 4
|
||||
add
|
||||
istore 19
|
||||
jump LABEL472
|
||||
LABEL468:
|
||||
load_int 120
|
||||
load_int 4
|
||||
iadd
|
||||
iconst 120
|
||||
iconst 4
|
||||
add
|
||||
istore 19
|
||||
LABEL472:
|
||||
jump LABEL475
|
||||
LABEL473:
|
||||
load_int 0
|
||||
iconst 0
|
||||
istore 19
|
||||
LABEL475:
|
||||
iload 19
|
||||
iload 20
|
||||
load_int 2
|
||||
load_int 0
|
||||
iconst 2
|
||||
iconst 0
|
||||
iload 18
|
||||
widget_put_position_widget
|
||||
if_setposition
|
||||
LABEL481:
|
||||
load_int 73
|
||||
load_int 73
|
||||
iconst 73
|
||||
iconst 73
|
||||
iload 1
|
||||
load_int 10551303
|
||||
get_enum_value
|
||||
iconst 10551303
|
||||
enum
|
||||
istore 18
|
||||
load_int 0
|
||||
iconst 0
|
||||
istore 19
|
||||
iload 18
|
||||
load_int -1
|
||||
iconst -1
|
||||
if_icmpne LABEL493
|
||||
jump LABEL515
|
||||
LABEL493:
|
||||
invoke 1972
|
||||
load_int 1
|
||||
iconst 1
|
||||
if_icmpeq LABEL497
|
||||
jump LABEL507
|
||||
LABEL497:
|
||||
get_varbit 6254
|
||||
load_int 0
|
||||
iconst 0
|
||||
if_icmpeq LABEL501
|
||||
jump LABEL504
|
||||
LABEL501:
|
||||
load_int 182
|
||||
iconst 182
|
||||
istore 19
|
||||
jump LABEL506
|
||||
LABEL504:
|
||||
load_int 120
|
||||
iconst 120
|
||||
istore 19
|
||||
LABEL506:
|
||||
jump LABEL509
|
||||
LABEL507:
|
||||
load_int 0
|
||||
iconst 0
|
||||
istore 19
|
||||
LABEL509:
|
||||
iload 19
|
||||
load_int 0
|
||||
load_int 1
|
||||
load_int 1
|
||||
iconst 0
|
||||
iconst 1
|
||||
iconst 1
|
||||
iload 18
|
||||
widget_put_size_widget
|
||||
if_setsize
|
||||
LABEL515:
|
||||
iload 0
|
||||
iload 1
|
||||
|
||||
@@ -6,77 +6,77 @@
|
||||
; locals
|
||||
; 2 bar size
|
||||
get_varbit 4606
|
||||
load_int 0
|
||||
iconst 0
|
||||
if_icmpne LABEL4
|
||||
jump LABEL5
|
||||
LABEL4:
|
||||
return
|
||||
LABEL5:
|
||||
load_int 512
|
||||
iconst 512
|
||||
istore 3
|
||||
load_int 512
|
||||
iconst 512
|
||||
istore 4
|
||||
iload 1
|
||||
widget_get_width_widget
|
||||
if_getwidth
|
||||
iload 0
|
||||
widget_get_width_widget
|
||||
isub
|
||||
if_getwidth
|
||||
sub
|
||||
istore 5
|
||||
load_int 0
|
||||
iconst 0
|
||||
iload 2
|
||||
invoke 1045
|
||||
istore 2
|
||||
iload 1
|
||||
widget_get_width_widget
|
||||
if_getwidth
|
||||
iload 0
|
||||
widget_get_width_widget
|
||||
isub
|
||||
if_getwidth
|
||||
sub
|
||||
iload 2
|
||||
invoke 1046
|
||||
istore 2
|
||||
load_int 896
|
||||
load_string "innerZoomLimit"
|
||||
iconst 896
|
||||
sconst "innerZoomLimit"
|
||||
runelite_callback
|
||||
load_int 128
|
||||
load_string "outerZoomLimit"
|
||||
runelite_callback
|
||||
isub
|
||||
iconst 128
|
||||
sconst "outerZoomLimit"
|
||||
runelite_callback
|
||||
sub
|
||||
istore 6 ; resizable delta
|
||||
load_int 896
|
||||
load_string "innerZoomLimit"
|
||||
iconst 896
|
||||
sconst "innerZoomLimit"
|
||||
runelite_callback
|
||||
load_int 128
|
||||
load_string "outerZoomLimit"
|
||||
runelite_callback
|
||||
isub
|
||||
iconst 128
|
||||
sconst "outerZoomLimit"
|
||||
runelite_callback
|
||||
sub
|
||||
istore 7 ; fixed delta
|
||||
iload 2
|
||||
iload 6
|
||||
imul
|
||||
multiply
|
||||
iload 5
|
||||
idiv
|
||||
div
|
||||
iload 6
|
||||
load_string "zoomLinToExp"
|
||||
runelite_callback
|
||||
pop_int
|
||||
load_int 128
|
||||
load_string "outerZoomLimit"
|
||||
runelite_callback
|
||||
iadd
|
||||
sconst "zoomLinToExp"
|
||||
runelite_callback
|
||||
pop_int
|
||||
iconst 128
|
||||
sconst "outerZoomLimit"
|
||||
runelite_callback
|
||||
add
|
||||
istore 3
|
||||
iload 2
|
||||
iload 7
|
||||
imul
|
||||
multiply
|
||||
iload 5
|
||||
idiv
|
||||
div
|
||||
iload 7
|
||||
load_string "zoomLinToExp"
|
||||
runelite_callback
|
||||
pop_int
|
||||
load_int 128
|
||||
load_string "outerZoomLimit"
|
||||
runelite_callback
|
||||
iadd
|
||||
sconst "zoomLinToExp"
|
||||
runelite_callback
|
||||
pop_int
|
||||
iconst 128
|
||||
sconst "outerZoomLimit"
|
||||
runelite_callback
|
||||
add
|
||||
istore 4
|
||||
iload 4
|
||||
iload 3
|
||||
|
||||
@@ -7,77 +7,77 @@
|
||||
; 0 resizableZoomRange
|
||||
; 1 fixedZoomRange
|
||||
; 2 bar size
|
||||
load_int 896
|
||||
load_string "innerZoomLimit"
|
||||
iconst 896
|
||||
sconst "innerZoomLimit"
|
||||
runelite_callback
|
||||
load_int 128
|
||||
load_string "outerZoomLimit"
|
||||
runelite_callback
|
||||
isub
|
||||
iconst 128
|
||||
sconst "outerZoomLimit"
|
||||
runelite_callback
|
||||
sub
|
||||
istore 0
|
||||
load_int 896
|
||||
load_string "innerZoomLimit"
|
||||
iconst 896
|
||||
sconst "innerZoomLimit"
|
||||
runelite_callback
|
||||
load_int 128
|
||||
load_string "outerZoomLimit"
|
||||
runelite_callback
|
||||
isub
|
||||
iconst 128
|
||||
sconst "outerZoomLimit"
|
||||
runelite_callback
|
||||
sub
|
||||
istore 1
|
||||
load_int 17104910
|
||||
widget_get_width_widget
|
||||
load_int 17104911
|
||||
widget_get_width_widget
|
||||
isub
|
||||
iconst 17104910
|
||||
if_getwidth
|
||||
iconst 17104911
|
||||
if_getwidth
|
||||
sub
|
||||
istore 2
|
||||
load_int 0
|
||||
iconst 0
|
||||
istore 3
|
||||
load_int 0
|
||||
iconst 0
|
||||
istore 4
|
||||
get_viewport_size
|
||||
viewport_geteffectivesize
|
||||
istore 4
|
||||
istore 3
|
||||
load_int 0
|
||||
iconst 0
|
||||
istore 5
|
||||
iload 3
|
||||
load_int 334
|
||||
iconst 334
|
||||
if_icmpgt LABEL27
|
||||
jump LABEL36
|
||||
LABEL27:
|
||||
get_varc 74
|
||||
load_int 128
|
||||
load_string "outerZoomLimit"
|
||||
runelite_callback
|
||||
isub
|
||||
get_varc_int 74
|
||||
iconst 128
|
||||
sconst "outerZoomLimit"
|
||||
runelite_callback
|
||||
sub
|
||||
iload 0
|
||||
load_string "zoomExpToLin"
|
||||
sconst "zoomExpToLin"
|
||||
runelite_callback
|
||||
pop_int
|
||||
iload 2
|
||||
imul
|
||||
multiply
|
||||
iload 0
|
||||
idiv
|
||||
div
|
||||
istore 5
|
||||
jump LABEL44
|
||||
LABEL36:
|
||||
get_varc 73
|
||||
load_int 128
|
||||
load_string "outerZoomLimit"
|
||||
runelite_callback
|
||||
isub
|
||||
get_varc_int 73
|
||||
iconst 128
|
||||
sconst "outerZoomLimit"
|
||||
runelite_callback
|
||||
sub
|
||||
iload 0
|
||||
load_string "zoomExpToLin"
|
||||
sconst "zoomExpToLin"
|
||||
runelite_callback
|
||||
pop_int
|
||||
iload 2
|
||||
imul
|
||||
multiply
|
||||
iload 1
|
||||
idiv
|
||||
div
|
||||
istore 5
|
||||
LABEL44:
|
||||
iload 5
|
||||
load_int 0
|
||||
load_int 0
|
||||
load_int 0
|
||||
load_int 17104911
|
||||
widget_put_position_widget
|
||||
iconst 0
|
||||
iconst 0
|
||||
iconst 0
|
||||
iconst 17104911
|
||||
if_setposition
|
||||
return
|
||||
|
||||
@@ -3,28 +3,28 @@
|
||||
.string_stack_count 0
|
||||
.int_var_count 2
|
||||
.string_var_count 1
|
||||
get_varc 5
|
||||
load_int 14
|
||||
get_varc_int 5
|
||||
iconst 14
|
||||
if_icmpeq LABEL4
|
||||
jump LABEL7
|
||||
LABEL4:
|
||||
load_int 1
|
||||
put_varc 66
|
||||
iconst 1
|
||||
set_varc_int 66
|
||||
return
|
||||
LABEL7:
|
||||
load_int -1
|
||||
iconst -1
|
||||
istore 0
|
||||
load_string ""
|
||||
sconst ""
|
||||
sstore 0
|
||||
049 359
|
||||
get_varc_string 359
|
||||
string_length
|
||||
istore 1
|
||||
iload 1
|
||||
load_int 0
|
||||
iconst 0
|
||||
if_icmpgt LABEL18
|
||||
jump LABEL184
|
||||
LABEL18:
|
||||
get_varc 5
|
||||
get_varc_int 5
|
||||
switch
|
||||
1: LABEL21
|
||||
2: LABEL44
|
||||
@@ -46,87 +46,87 @@ LABEL21:
|
||||
return
|
||||
jump LABEL183
|
||||
LABEL23:
|
||||
get_ignorecount
|
||||
load_int 0
|
||||
ignore_count
|
||||
iconst 0
|
||||
if_icmplt LABEL27
|
||||
jump LABEL30
|
||||
LABEL27:
|
||||
load_string "Unable to update ignore list - system busy."
|
||||
send_game_message
|
||||
sconst "Unable to update ignore list - system busy."
|
||||
mes
|
||||
jump LABEL43
|
||||
LABEL30:
|
||||
get_varc 5
|
||||
load_int 4
|
||||
get_varc_int 5
|
||||
iconst 4
|
||||
if_icmpeq LABEL34
|
||||
jump LABEL37
|
||||
LABEL34:
|
||||
049 359
|
||||
add_ignore
|
||||
get_varc_string 359
|
||||
ignore_add
|
||||
jump LABEL43
|
||||
LABEL37:
|
||||
get_varc 5
|
||||
load_int 5
|
||||
get_varc_int 5
|
||||
iconst 5
|
||||
if_icmpeq LABEL41
|
||||
jump LABEL43
|
||||
LABEL41:
|
||||
049 359
|
||||
remove_ignore
|
||||
get_varc_string 359
|
||||
ignore_del
|
||||
LABEL43:
|
||||
jump LABEL183
|
||||
LABEL44:
|
||||
get_friendcount
|
||||
load_int 0
|
||||
friend_count
|
||||
iconst 0
|
||||
if_icmplt LABEL48
|
||||
jump LABEL51
|
||||
LABEL48:
|
||||
load_string "Unable to complete action - system busy."
|
||||
send_game_message
|
||||
sconst "Unable to complete action - system busy."
|
||||
mes
|
||||
jump LABEL106
|
||||
LABEL51:
|
||||
get_varc 5
|
||||
load_int 2
|
||||
get_varc_int 5
|
||||
iconst 2
|
||||
if_icmpeq LABEL55
|
||||
jump LABEL58
|
||||
LABEL55:
|
||||
049 359
|
||||
add_friend
|
||||
get_varc_string 359
|
||||
friend_add
|
||||
jump LABEL106
|
||||
LABEL58:
|
||||
get_varc 5
|
||||
load_int 3
|
||||
get_varc_int 5
|
||||
iconst 3
|
||||
if_icmpeq LABEL62
|
||||
jump LABEL65
|
||||
LABEL62:
|
||||
049 359
|
||||
remove_friend
|
||||
get_varc_string 359
|
||||
friend_del
|
||||
jump LABEL106
|
||||
LABEL65:
|
||||
get_varc 5
|
||||
load_int 6
|
||||
get_varc_int 5
|
||||
iconst 6
|
||||
if_icmpeq LABEL69
|
||||
jump LABEL106
|
||||
LABEL69:
|
||||
get_varbit 8119
|
||||
load_int 0
|
||||
iconst 0
|
||||
if_icmpeq LABEL73
|
||||
jump LABEL79
|
||||
LABEL73:
|
||||
load_int 1
|
||||
load_int 1
|
||||
iconst 1
|
||||
iconst 1
|
||||
invoke 299
|
||||
load_string "You must set a name before you can chat."
|
||||
send_game_message
|
||||
sconst "You must set a name before you can chat."
|
||||
mes
|
||||
return
|
||||
LABEL79:
|
||||
5005
|
||||
load_int 2
|
||||
chat_getfilter_private
|
||||
iconst 2
|
||||
if_icmpeq LABEL83
|
||||
jump LABEL94
|
||||
LABEL83:
|
||||
5000
|
||||
load_int 1
|
||||
5016
|
||||
chatfilter_update
|
||||
chat_getfilter_public
|
||||
iconst 1
|
||||
chat_getfilter_trade
|
||||
chat_setfilter
|
||||
invoke 178
|
||||
invoke 553
|
||||
istore 0
|
||||
@@ -136,122 +136,122 @@ LABEL83:
|
||||
invoke 89
|
||||
LABEL94:
|
||||
get_varbit 4394
|
||||
load_int 1
|
||||
iconst 1
|
||||
if_icmpeq LABEL98
|
||||
jump LABEL101
|
||||
LABEL98:
|
||||
049 360
|
||||
remove_friend
|
||||
get_varc_string 360
|
||||
friend_del
|
||||
jump LABEL104
|
||||
LABEL101:
|
||||
049 360
|
||||
049 359
|
||||
load_string "privateMessage" ; load event name
|
||||
load_int 0 ; whether or not to skip
|
||||
get_varc_string 360
|
||||
get_varc_string 359
|
||||
sconst "privateMessage" ; load event name
|
||||
iconst 0 ; whether or not to skip
|
||||
runelite_callback ; invoke callback
|
||||
load_int 1
|
||||
iconst 1
|
||||
if_icmpeq LABEL104 ; if skipped, do not message
|
||||
privmsg
|
||||
chat_sendprivate
|
||||
LABEL104:
|
||||
get_gamecycle
|
||||
put_varc 61
|
||||
clientclock
|
||||
set_varc_int 61
|
||||
LABEL106:
|
||||
jump LABEL183
|
||||
LABEL107:
|
||||
049 359
|
||||
get_varc_string 359
|
||||
invoke 212
|
||||
numeric_input
|
||||
resume_countdialog
|
||||
jump LABEL183
|
||||
LABEL111:
|
||||
049 359
|
||||
string_remove_html
|
||||
050 361
|
||||
049 359
|
||||
string_input_1
|
||||
get_varc_string 359
|
||||
removetags
|
||||
set_varc_string 361
|
||||
get_varc_string 359
|
||||
resume_namedialog
|
||||
jump LABEL183
|
||||
LABEL117:
|
||||
049 359
|
||||
string_input_2
|
||||
get_varc_string 359
|
||||
resume_stringdialog
|
||||
jump LABEL183
|
||||
LABEL120:
|
||||
get_varbit 8119
|
||||
load_int 0
|
||||
iconst 0
|
||||
if_icmpeq LABEL124
|
||||
jump LABEL130
|
||||
LABEL124:
|
||||
load_int 1
|
||||
load_int 1
|
||||
iconst 1
|
||||
iconst 1
|
||||
invoke 299
|
||||
load_string "You must set a name before you can chat."
|
||||
send_game_message
|
||||
sconst "You must set a name before you can chat."
|
||||
mes
|
||||
return
|
||||
LABEL130:
|
||||
049 359
|
||||
string_remove_html
|
||||
050 362
|
||||
049 359
|
||||
join_clanchat
|
||||
get_varc_string 359
|
||||
removetags
|
||||
set_varc_string 362
|
||||
get_varc_string 359
|
||||
clan_joinchat
|
||||
jump LABEL183
|
||||
LABEL136:
|
||||
iload 1
|
||||
load_int 10
|
||||
iconst 10
|
||||
if_icmpgt LABEL140
|
||||
jump LABEL146
|
||||
LABEL140:
|
||||
049 359
|
||||
load_int 0
|
||||
load_int 9
|
||||
string_substring
|
||||
get_varc_string 359
|
||||
iconst 0
|
||||
iconst 9
|
||||
substring
|
||||
sstore 0
|
||||
jump LABEL148
|
||||
LABEL146:
|
||||
049 359
|
||||
get_varc_string 359
|
||||
sstore 0
|
||||
LABEL148:
|
||||
sload 0
|
||||
tolowercase
|
||||
5021
|
||||
lowercase
|
||||
chat_setmessagefilter
|
||||
invoke 553
|
||||
invoke 84
|
||||
jump LABEL183
|
||||
LABEL154:
|
||||
get_varbit 8119
|
||||
load_int 0
|
||||
iconst 0
|
||||
if_icmpeq LABEL158
|
||||
jump LABEL164
|
||||
LABEL158:
|
||||
load_int 1
|
||||
load_int 1
|
||||
iconst 1
|
||||
iconst 1
|
||||
invoke 299
|
||||
load_string "You must set a name before you can chat."
|
||||
send_game_message
|
||||
sconst "You must set a name before you can chat."
|
||||
mes
|
||||
return
|
||||
LABEL164:
|
||||
049 359
|
||||
load_int 0
|
||||
put_varc 62
|
||||
050 358
|
||||
get_varc_string 359
|
||||
iconst 0
|
||||
set_varc_int 62
|
||||
set_varc_string 358
|
||||
invoke 95
|
||||
load_int 552
|
||||
load_int -2147483645
|
||||
load_int 1
|
||||
load_string "I1"
|
||||
load_int 10616845
|
||||
widget_put_render_listener_widget
|
||||
iconst 552
|
||||
iconst -2147483645
|
||||
iconst 1
|
||||
sconst "I1"
|
||||
iconst 10616845
|
||||
if_setontimer
|
||||
jump LABEL183
|
||||
LABEL176:
|
||||
load_int 0
|
||||
load_int 1
|
||||
iconst 0
|
||||
iconst 1
|
||||
invoke 299
|
||||
return
|
||||
jump LABEL183
|
||||
LABEL181:
|
||||
049 359
|
||||
get_varc_string 359
|
||||
invoke 2061
|
||||
LABEL183:
|
||||
jump LABEL190
|
||||
LABEL184:
|
||||
get_varc 5
|
||||
get_varc_int 5
|
||||
switch
|
||||
16: LABEL189
|
||||
7: LABEL187
|
||||
@@ -265,7 +265,7 @@ LABEL187:
|
||||
LABEL189:
|
||||
return
|
||||
LABEL190:
|
||||
load_int 1
|
||||
load_int 1
|
||||
iconst 1
|
||||
iconst 1
|
||||
invoke 299
|
||||
return
|
||||
|
||||
@@ -3,19 +3,19 @@
|
||||
.string_stack_count 0
|
||||
.int_var_count 3
|
||||
.string_var_count 0
|
||||
load_string "resetChatboxInput"
|
||||
sconst "resetChatboxInput"
|
||||
runelite_callback
|
||||
load_int 1
|
||||
load_int 10616872
|
||||
widget_put_hidden_widget
|
||||
load_int 0
|
||||
load_int 10616887
|
||||
widget_put_hidden_widget
|
||||
iconst 1
|
||||
iconst 10616872
|
||||
if_sethide
|
||||
iconst 0
|
||||
iconst 10616887
|
||||
if_sethide
|
||||
invoke 923
|
||||
load_int 0
|
||||
iconst 0
|
||||
istore 2
|
||||
iload 1
|
||||
load_int 1
|
||||
iconst 1
|
||||
if_icmpeq LABEL13
|
||||
jump LABEL27
|
||||
LABEL13:
|
||||
@@ -26,144 +26,144 @@ LABEL13:
|
||||
iload 2
|
||||
invoke 89
|
||||
invoke 223
|
||||
load_int 1
|
||||
iconst 1
|
||||
invoke 927
|
||||
invoke 1972
|
||||
load_int 1
|
||||
iconst 1
|
||||
if_icmpeq LABEL26
|
||||
jump LABEL27
|
||||
LABEL26:
|
||||
invoke 1984
|
||||
LABEL27:
|
||||
invoke 1972
|
||||
load_int 1
|
||||
iconst 1
|
||||
if_icmpeq LABEL31
|
||||
jump LABEL32
|
||||
LABEL31:
|
||||
invoke 2581
|
||||
LABEL32:
|
||||
load_int 0
|
||||
put_varc 5
|
||||
iconst 0
|
||||
set_varc_int 5
|
||||
iload 0
|
||||
load_int 1
|
||||
iconst 1
|
||||
if_icmpeq LABEL38
|
||||
jump LABEL40
|
||||
LABEL38:
|
||||
load_string ""
|
||||
050 359
|
||||
sconst ""
|
||||
set_varc_string 359
|
||||
LABEL40:
|
||||
load_int 0
|
||||
load_int -8
|
||||
load_int 1
|
||||
load_int 1
|
||||
load_int 10616876
|
||||
widget_put_position_widget
|
||||
load_int 0
|
||||
load_int 40
|
||||
load_int 1
|
||||
load_int 0
|
||||
load_int 10616876
|
||||
widget_put_size_widget
|
||||
load_int 0
|
||||
load_int 22
|
||||
load_int 1
|
||||
load_int 1
|
||||
load_int 10616877
|
||||
widget_put_position_widget
|
||||
load_int 0
|
||||
load_int 20
|
||||
load_int 1
|
||||
load_int 0
|
||||
load_int 10616877
|
||||
widget_put_size_widget
|
||||
load_int 0
|
||||
load_int 10616876
|
||||
widget_put_hidden_widget
|
||||
load_int 0
|
||||
load_int 10616877
|
||||
widget_put_hidden_widget
|
||||
load_int 1
|
||||
load_int 10616881
|
||||
widget_put_hidden_widget
|
||||
load_int 10616885
|
||||
widget_unset_children
|
||||
load_int 10616886
|
||||
widget_unset_children
|
||||
load_int -1
|
||||
load_string ""
|
||||
load_int 10616872
|
||||
widget_put_mouse_press_listener_widget
|
||||
load_int -1
|
||||
load_string ""
|
||||
load_int 10616872
|
||||
widget_put_render_listener_widget
|
||||
load_int 10616872
|
||||
widget_unset_children
|
||||
load_int 10616878
|
||||
widget_unset_children
|
||||
load_int 10616879
|
||||
widget_unset_children
|
||||
load_int 10616880
|
||||
widget_unset_children
|
||||
load_int 1
|
||||
load_int 10616878
|
||||
widget_put_hidden_widget
|
||||
load_int 1
|
||||
load_int 10616879
|
||||
widget_put_hidden_widget
|
||||
load_int 1
|
||||
load_int 10616880
|
||||
widget_put_hidden_widget
|
||||
load_int -1
|
||||
load_string ""
|
||||
load_int 10616878
|
||||
widget_put_mouse_hover_listener_widget
|
||||
load_int -1
|
||||
load_string ""
|
||||
load_int 10616879
|
||||
widget_put_mouse_hover_listener_widget
|
||||
load_int -1
|
||||
load_string ""
|
||||
load_int 10616880
|
||||
widget_put_mouse_hover_listener_widget
|
||||
load_int -1
|
||||
load_string ""
|
||||
load_int 10616878
|
||||
widget_put_mouse_exit_listener_widget
|
||||
load_int -1
|
||||
load_string ""
|
||||
load_int 10616879
|
||||
widget_put_mouse_exit_listener_widget
|
||||
load_int -1
|
||||
load_string ""
|
||||
load_int 10616880
|
||||
widget_put_mouse_exit_listener_widget
|
||||
load_int -1
|
||||
load_string ""
|
||||
load_int 10616878
|
||||
widget_put_render_listener_widget
|
||||
load_int -1
|
||||
load_string ""
|
||||
load_int 10616879
|
||||
widget_put_render_listener_widget
|
||||
load_int -1
|
||||
load_string ""
|
||||
load_int 10616880
|
||||
widget_put_render_listener_widget
|
||||
load_int -1
|
||||
load_string ""
|
||||
load_int 10616878
|
||||
widget_put_mouse_press_listener_widget
|
||||
load_int -1
|
||||
load_string ""
|
||||
load_int 10616879
|
||||
widget_put_mouse_press_listener_widget
|
||||
load_int -1
|
||||
load_string ""
|
||||
load_int 10616880
|
||||
widget_put_mouse_press_listener_widget
|
||||
get_varc 41
|
||||
load_int -1
|
||||
iconst 0
|
||||
iconst -8
|
||||
iconst 1
|
||||
iconst 1
|
||||
iconst 10616876
|
||||
if_setposition
|
||||
iconst 0
|
||||
iconst 40
|
||||
iconst 1
|
||||
iconst 0
|
||||
iconst 10616876
|
||||
if_setsize
|
||||
iconst 0
|
||||
iconst 22
|
||||
iconst 1
|
||||
iconst 1
|
||||
iconst 10616877
|
||||
if_setposition
|
||||
iconst 0
|
||||
iconst 20
|
||||
iconst 1
|
||||
iconst 0
|
||||
iconst 10616877
|
||||
if_setsize
|
||||
iconst 0
|
||||
iconst 10616876
|
||||
if_sethide
|
||||
iconst 0
|
||||
iconst 10616877
|
||||
if_sethide
|
||||
iconst 1
|
||||
iconst 10616881
|
||||
if_sethide
|
||||
iconst 10616885
|
||||
cc_deleteall
|
||||
iconst 10616886
|
||||
cc_deleteall
|
||||
iconst -1
|
||||
sconst ""
|
||||
iconst 10616872
|
||||
if_setonclick
|
||||
iconst -1
|
||||
sconst ""
|
||||
iconst 10616872
|
||||
if_setontimer
|
||||
iconst 10616872
|
||||
cc_deleteall
|
||||
iconst 10616878
|
||||
cc_deleteall
|
||||
iconst 10616879
|
||||
cc_deleteall
|
||||
iconst 10616880
|
||||
cc_deleteall
|
||||
iconst 1
|
||||
iconst 10616878
|
||||
if_sethide
|
||||
iconst 1
|
||||
iconst 10616879
|
||||
if_sethide
|
||||
iconst 1
|
||||
iconst 10616880
|
||||
if_sethide
|
||||
iconst -1
|
||||
sconst ""
|
||||
iconst 10616878
|
||||
if_setonmouserepeat
|
||||
iconst -1
|
||||
sconst ""
|
||||
iconst 10616879
|
||||
if_setonmouserepeat
|
||||
iconst -1
|
||||
sconst ""
|
||||
iconst 10616880
|
||||
if_setonmouserepeat
|
||||
iconst -1
|
||||
sconst ""
|
||||
iconst 10616878
|
||||
if_setonmouseleave
|
||||
iconst -1
|
||||
sconst ""
|
||||
iconst 10616879
|
||||
if_setonmouseleave
|
||||
iconst -1
|
||||
sconst ""
|
||||
iconst 10616880
|
||||
if_setonmouseleave
|
||||
iconst -1
|
||||
sconst ""
|
||||
iconst 10616878
|
||||
if_setontimer
|
||||
iconst -1
|
||||
sconst ""
|
||||
iconst 10616879
|
||||
if_setontimer
|
||||
iconst -1
|
||||
sconst ""
|
||||
iconst 10616880
|
||||
if_setontimer
|
||||
iconst -1
|
||||
sconst ""
|
||||
iconst 10616878
|
||||
if_setonclick
|
||||
iconst -1
|
||||
sconst ""
|
||||
iconst 10616879
|
||||
if_setonclick
|
||||
iconst -1
|
||||
sconst ""
|
||||
iconst 10616880
|
||||
if_setonclick
|
||||
get_varc_int 41
|
||||
iconst -1
|
||||
if_icmpeq LABEL154
|
||||
jump LABEL156
|
||||
LABEL154:
|
||||
@@ -171,7 +171,7 @@ LABEL154:
|
||||
pop_int
|
||||
LABEL156:
|
||||
invoke 1972
|
||||
load_int 1
|
||||
iconst 1
|
||||
if_icmpeq LABEL160
|
||||
jump LABEL161
|
||||
LABEL160:
|
||||
|
||||
@@ -3,43 +3,43 @@
|
||||
.string_stack_count 0
|
||||
.int_var_count 4
|
||||
.string_var_count 0
|
||||
load_int 1
|
||||
load_int 0
|
||||
load_string "scrollWheelZoom"
|
||||
iconst 1
|
||||
iconst 0
|
||||
sconst "scrollWheelZoom"
|
||||
runelite_callback
|
||||
if_icmpeq LABEL18
|
||||
load_int 0
|
||||
iconst 0
|
||||
iload 0
|
||||
load_int 25
|
||||
imul
|
||||
isub
|
||||
iconst 25
|
||||
multiply
|
||||
sub
|
||||
istore 1
|
||||
load_int 512
|
||||
iconst 512
|
||||
istore 2
|
||||
load_int 512
|
||||
iconst 512
|
||||
istore 3
|
||||
get_varbit 6357
|
||||
load_int 0
|
||||
iconst 0
|
||||
if_icmpeq LABEL14
|
||||
jump LABEL33
|
||||
LABEL14:
|
||||
get_varbit 4606
|
||||
load_int 0
|
||||
iconst 0
|
||||
if_icmpne LABEL18
|
||||
jump LABEL19
|
||||
LABEL18:
|
||||
return
|
||||
LABEL19:
|
||||
6205
|
||||
viewport_getfov
|
||||
istore 2
|
||||
istore 3
|
||||
iload 3
|
||||
iload 1
|
||||
iadd
|
||||
add
|
||||
istore 3
|
||||
iload 2
|
||||
iload 1
|
||||
iadd
|
||||
add
|
||||
istore 2
|
||||
iload 3
|
||||
iload 2
|
||||
|
||||
@@ -30,5 +30,5 @@
|
||||
; Send a private message
|
||||
sload 0
|
||||
sload 1
|
||||
privmsg
|
||||
return
|
||||
chat_sendprivate
|
||||
return
|
||||
|
||||
@@ -3,112 +3,112 @@
|
||||
.string_stack_count 1
|
||||
.int_var_count 11
|
||||
.string_var_count 4
|
||||
load_int 83
|
||||
load_int 49
|
||||
load_int 1497
|
||||
iconst 83
|
||||
iconst 49
|
||||
iconst 1497
|
||||
iload 0
|
||||
get_enum_value
|
||||
enum
|
||||
istore 3
|
||||
iload 0
|
||||
get_boostedskilllevels
|
||||
int_to_string
|
||||
widget_put_text
|
||||
stat
|
||||
tostring
|
||||
cc_settext
|
||||
iload 0
|
||||
get_realskilllevels
|
||||
stat_base
|
||||
istore 4
|
||||
iload 0 ; load the skill id from arguments
|
||||
iload 4 ; load the current real skill level
|
||||
load_string "skillTabBaseLevel" ; push event name
|
||||
sconst "skillTabBaseLevel" ; push event name
|
||||
runelite_callback ; invoke callback
|
||||
istore 4 ; store the (possibly) edited real skill level
|
||||
iload 4
|
||||
int_to_string
|
||||
widget_put_text 1
|
||||
tostring
|
||||
cc_settext 1
|
||||
iload 0
|
||||
get_skillexperiences
|
||||
stat_xp
|
||||
istore 5
|
||||
load_string ","
|
||||
sconst ","
|
||||
sstore 1
|
||||
sload 0
|
||||
load_string " XP:"
|
||||
string_append 2
|
||||
sconst " XP:"
|
||||
join_string 2
|
||||
sstore 2
|
||||
iload 5
|
||||
sload 1
|
||||
invoke 46
|
||||
sstore 3
|
||||
load_int 0
|
||||
iconst 0
|
||||
istore 6
|
||||
get_varbit 4181
|
||||
load_int 0
|
||||
iconst 0
|
||||
if_icmpeq LABEL35
|
||||
jump LABEL66
|
||||
LABEL35:
|
||||
iload 4
|
||||
load_int 99
|
||||
load_string "skillTabMaxLevel" ; push event name
|
||||
iconst 99
|
||||
sconst "skillTabMaxLevel" ; push event name
|
||||
runelite_callback ; invoke callback
|
||||
if_icmplt LABEL39
|
||||
jump LABEL65
|
||||
LABEL39:
|
||||
load_int 105
|
||||
load_int 105
|
||||
load_int 256
|
||||
iconst 105
|
||||
iconst 105
|
||||
iconst 256
|
||||
iload 4
|
||||
load_int 1
|
||||
iadd
|
||||
get_enum_value
|
||||
iconst 1
|
||||
add
|
||||
enum
|
||||
istore 6
|
||||
sload 2
|
||||
load_string "|Next level at:|Remaining XP:"
|
||||
concat_string
|
||||
sconst "|Next level at:|Remaining XP:"
|
||||
append
|
||||
sstore 2
|
||||
sload 3
|
||||
load_string "|"
|
||||
sconst "|"
|
||||
iload 6
|
||||
sload 1
|
||||
invoke 46
|
||||
load_string "|"
|
||||
sconst "|"
|
||||
iload 6
|
||||
iload 5
|
||||
isub
|
||||
sub
|
||||
sload 1
|
||||
invoke 46
|
||||
string_append 4
|
||||
concat_string
|
||||
join_string 4
|
||||
append
|
||||
sstore 3
|
||||
LABEL65:
|
||||
jump LABEL84
|
||||
LABEL66:
|
||||
sload 2
|
||||
load_string "|Next level at:"
|
||||
concat_string
|
||||
sconst "|Next level at:"
|
||||
append
|
||||
sstore 2
|
||||
sload 3
|
||||
load_string "|"
|
||||
load_int 105
|
||||
load_int 105
|
||||
load_int 256
|
||||
sconst "|"
|
||||
iconst 105
|
||||
iconst 105
|
||||
iconst 256
|
||||
iload 4
|
||||
load_int 1
|
||||
iadd
|
||||
get_enum_value
|
||||
iconst 1
|
||||
add
|
||||
enum
|
||||
sload 1
|
||||
invoke 46
|
||||
string_append 2
|
||||
concat_string
|
||||
join_string 2
|
||||
append
|
||||
sstore 3
|
||||
LABEL84:
|
||||
load_int 0
|
||||
iconst 0
|
||||
istore 7
|
||||
load_int 0
|
||||
iconst 0
|
||||
istore 8
|
||||
load_int 0
|
||||
iconst 0
|
||||
istore 9
|
||||
load_int 0
|
||||
iconst 0
|
||||
istore 10
|
||||
invoke 1138
|
||||
load_int 1
|
||||
iconst 1
|
||||
if_icmpeq LABEL96
|
||||
jump LABEL278
|
||||
LABEL96:
|
||||
@@ -116,13 +116,13 @@ LABEL96:
|
||||
invoke 1936
|
||||
istore 7
|
||||
iload 7
|
||||
load_int -1
|
||||
iconst -1
|
||||
if_icmpne LABEL103
|
||||
jump LABEL133
|
||||
LABEL103:
|
||||
iload 7
|
||||
load_int 10
|
||||
idiv
|
||||
iconst 10
|
||||
div
|
||||
istore 7
|
||||
iload 7
|
||||
iload 5
|
||||
@@ -130,35 +130,35 @@ LABEL103:
|
||||
jump LABEL133
|
||||
LABEL111:
|
||||
sload 2
|
||||
load_string "|"
|
||||
load_string "<col=7c0808>"
|
||||
load_string "XP to regain:"
|
||||
load_string "</col>"
|
||||
string_append 4
|
||||
concat_string
|
||||
sconst "|"
|
||||
sconst "<col=7c0808>"
|
||||
sconst "XP to regain:"
|
||||
sconst "</col>"
|
||||
join_string 4
|
||||
append
|
||||
sstore 2
|
||||
sload 3
|
||||
load_string "|"
|
||||
load_string "<col=7c0808>"
|
||||
sconst "|"
|
||||
sconst "<col=7c0808>"
|
||||
iload 7
|
||||
iload 5
|
||||
isub
|
||||
sub
|
||||
sload 1
|
||||
invoke 46
|
||||
load_string "</col>"
|
||||
string_append 4
|
||||
concat_string
|
||||
sconst "</col>"
|
||||
join_string 4
|
||||
append
|
||||
sstore 3
|
||||
load_int 1
|
||||
iconst 1
|
||||
istore 8
|
||||
LABEL133:
|
||||
iload 8
|
||||
load_int 0
|
||||
iconst 0
|
||||
if_icmpeq LABEL137
|
||||
jump LABEL278
|
||||
LABEL137:
|
||||
get_varp 1588
|
||||
load_int 0
|
||||
iconst 0
|
||||
if_icmpgt LABEL141
|
||||
jump LABEL278
|
||||
LABEL141:
|
||||
@@ -171,279 +171,279 @@ LABEL141:
|
||||
6: LABEL144
|
||||
jump LABEL278
|
||||
LABEL144:
|
||||
load_int 20
|
||||
iconst 20
|
||||
invoke 2031
|
||||
istore 10
|
||||
iload 10
|
||||
load_int 0
|
||||
iconst 0
|
||||
if_icmpgt LABEL151
|
||||
jump LABEL170
|
||||
LABEL151:
|
||||
sload 2
|
||||
load_string "|"
|
||||
load_string "<col=7c0808>"
|
||||
load_string "XP permitted:"
|
||||
load_string "</col>"
|
||||
string_append 4
|
||||
concat_string
|
||||
sconst "|"
|
||||
sconst "<col=7c0808>"
|
||||
sconst "XP permitted:"
|
||||
sconst "</col>"
|
||||
join_string 4
|
||||
append
|
||||
sstore 2
|
||||
sload 3
|
||||
load_string "|"
|
||||
load_string "<col=7c0808>"
|
||||
sconst "|"
|
||||
sconst "<col=7c0808>"
|
||||
iload 10
|
||||
sload 1
|
||||
invoke 46
|
||||
load_string "</col>"
|
||||
string_append 4
|
||||
concat_string
|
||||
sconst "</col>"
|
||||
join_string 4
|
||||
append
|
||||
sstore 3
|
||||
jump LABEL188
|
||||
LABEL170:
|
||||
load_int 1
|
||||
iconst 1
|
||||
istore 9
|
||||
sload 2
|
||||
load_string "|"
|
||||
load_string "<col=7c0808>"
|
||||
load_string "XP permitted:"
|
||||
load_string "</col>"
|
||||
string_append 4
|
||||
concat_string
|
||||
sconst "|"
|
||||
sconst "<col=7c0808>"
|
||||
sconst "XP permitted:"
|
||||
sconst "</col>"
|
||||
join_string 4
|
||||
append
|
||||
sstore 2
|
||||
sload 3
|
||||
load_string "|"
|
||||
load_string "<col=7c0808>"
|
||||
load_string "NONE"
|
||||
load_string "</col>"
|
||||
string_append 4
|
||||
concat_string
|
||||
sconst "|"
|
||||
sconst "<col=7c0808>"
|
||||
sconst "NONE"
|
||||
sconst "</col>"
|
||||
join_string 4
|
||||
append
|
||||
sstore 3
|
||||
LABEL188:
|
||||
jump LABEL278
|
||||
LABEL189:
|
||||
load_int 30
|
||||
iconst 30
|
||||
invoke 2031
|
||||
istore 10
|
||||
iload 10
|
||||
load_int 0
|
||||
iconst 0
|
||||
if_icmpgt LABEL196
|
||||
jump LABEL215
|
||||
LABEL196:
|
||||
sload 2
|
||||
load_string "|"
|
||||
load_string "<col=7c0808>"
|
||||
load_string "XP permitted:"
|
||||
load_string "</col>"
|
||||
string_append 4
|
||||
concat_string
|
||||
sconst "|"
|
||||
sconst "<col=7c0808>"
|
||||
sconst "XP permitted:"
|
||||
sconst "</col>"
|
||||
join_string 4
|
||||
append
|
||||
sstore 2
|
||||
sload 3
|
||||
load_string "|"
|
||||
load_string "<col=7c0808>"
|
||||
sconst "|"
|
||||
sconst "<col=7c0808>"
|
||||
iload 10
|
||||
sload 1
|
||||
invoke 46
|
||||
load_string "</col>"
|
||||
string_append 4
|
||||
concat_string
|
||||
sconst "</col>"
|
||||
join_string 4
|
||||
append
|
||||
sstore 3
|
||||
jump LABEL233
|
||||
LABEL215:
|
||||
load_int 1
|
||||
iconst 1
|
||||
istore 9
|
||||
sload 2
|
||||
load_string "|"
|
||||
load_string "<col=7c0808>"
|
||||
load_string "XP permitted:"
|
||||
load_string "</col>"
|
||||
string_append 4
|
||||
concat_string
|
||||
sconst "|"
|
||||
sconst "<col=7c0808>"
|
||||
sconst "XP permitted:"
|
||||
sconst "</col>"
|
||||
join_string 4
|
||||
append
|
||||
sstore 2
|
||||
sload 3
|
||||
load_string "|"
|
||||
load_string "<col=7c0808>"
|
||||
load_string "NONE"
|
||||
load_string "</col>"
|
||||
string_append 4
|
||||
concat_string
|
||||
sconst "|"
|
||||
sconst "<col=7c0808>"
|
||||
sconst "NONE"
|
||||
sconst "</col>"
|
||||
join_string 4
|
||||
append
|
||||
sstore 3
|
||||
LABEL233:
|
||||
jump LABEL278
|
||||
LABEL234:
|
||||
load_int 40
|
||||
iconst 40
|
||||
invoke 2031
|
||||
istore 10
|
||||
iload 10
|
||||
load_int 0
|
||||
iconst 0
|
||||
if_icmpgt LABEL241
|
||||
jump LABEL260
|
||||
LABEL241:
|
||||
sload 2
|
||||
load_string "|"
|
||||
load_string "<col=7c0808>"
|
||||
load_string "XP permitted:"
|
||||
load_string "</col>"
|
||||
string_append 4
|
||||
concat_string
|
||||
sconst "|"
|
||||
sconst "<col=7c0808>"
|
||||
sconst "XP permitted:"
|
||||
sconst "</col>"
|
||||
join_string 4
|
||||
append
|
||||
sstore 2
|
||||
sload 3
|
||||
load_string "|"
|
||||
load_string "<col=7c0808>"
|
||||
sconst "|"
|
||||
sconst "<col=7c0808>"
|
||||
iload 10
|
||||
sload 1
|
||||
invoke 46
|
||||
load_string "</col>"
|
||||
string_append 4
|
||||
concat_string
|
||||
sconst "</col>"
|
||||
join_string 4
|
||||
append
|
||||
sstore 3
|
||||
jump LABEL278
|
||||
LABEL260:
|
||||
load_int 1
|
||||
iconst 1
|
||||
istore 9
|
||||
sload 2
|
||||
load_string "|"
|
||||
load_string "<col=7c0808>"
|
||||
load_string "XP permitted:"
|
||||
load_string "</col>"
|
||||
string_append 4
|
||||
concat_string
|
||||
sconst "|"
|
||||
sconst "<col=7c0808>"
|
||||
sconst "XP permitted:"
|
||||
sconst "</col>"
|
||||
join_string 4
|
||||
append
|
||||
sstore 2
|
||||
sload 3
|
||||
load_string "|"
|
||||
load_string "<col=7c0808>"
|
||||
load_string "NONE"
|
||||
load_string "</col>"
|
||||
string_append 4
|
||||
concat_string
|
||||
sconst "|"
|
||||
sconst "<col=7c0808>"
|
||||
sconst "NONE"
|
||||
sconst "</col>"
|
||||
join_string 4
|
||||
append
|
||||
sstore 3
|
||||
LABEL278:
|
||||
iload 1
|
||||
load_int 5
|
||||
widget_load_child 1
|
||||
load_int 1
|
||||
iconst 5
|
||||
cc_find 1
|
||||
iconst 1
|
||||
if_icmpeq LABEL284
|
||||
jump LABEL294
|
||||
LABEL284:
|
||||
iload 9
|
||||
load_int 1
|
||||
iconst 1
|
||||
if_icmpeq LABEL288
|
||||
jump LABEL291
|
||||
LABEL288:
|
||||
load_int 0
|
||||
widget_put_hidden 1
|
||||
iconst 0
|
||||
cc_sethide 1
|
||||
jump LABEL293
|
||||
LABEL291:
|
||||
load_int 1
|
||||
widget_put_hidden 1
|
||||
iconst 1
|
||||
cc_sethide 1
|
||||
LABEL293:
|
||||
jump LABEL321
|
||||
LABEL294:
|
||||
iload 1
|
||||
load_int 5
|
||||
load_int 5
|
||||
widget_create_child 1
|
||||
load_int 6
|
||||
load_int 0
|
||||
load_int 0
|
||||
load_int 1
|
||||
widget_put_position 1
|
||||
load_int 19
|
||||
load_int 19
|
||||
load_int 0
|
||||
load_int 0
|
||||
widget_put_size 1
|
||||
load_int 940
|
||||
widget_put_spriteid 1
|
||||
load_int 65793
|
||||
widget_put_sprite2 1
|
||||
iconst 5
|
||||
iconst 5
|
||||
cc_create 1
|
||||
iconst 6
|
||||
iconst 0
|
||||
iconst 0
|
||||
iconst 1
|
||||
cc_setposition 1
|
||||
iconst 19
|
||||
iconst 19
|
||||
iconst 0
|
||||
iconst 0
|
||||
cc_setsize 1
|
||||
iconst 940
|
||||
cc_setgraphic 1
|
||||
iconst 65793
|
||||
cc_setgraphicshadow 1
|
||||
iload 9
|
||||
load_int 1
|
||||
iconst 1
|
||||
if_icmpeq LABEL316
|
||||
jump LABEL319
|
||||
LABEL316:
|
||||
load_int 0
|
||||
widget_put_hidden 1
|
||||
iconst 0
|
||||
cc_sethide 1
|
||||
jump LABEL321
|
||||
LABEL319:
|
||||
load_int 1
|
||||
widget_put_hidden 1
|
||||
iconst 1
|
||||
cc_sethide 1
|
||||
LABEL321:
|
||||
iload 3
|
||||
load_int 1
|
||||
iconst 1
|
||||
if_icmpeq LABEL325
|
||||
jump LABEL344
|
||||
LABEL325:
|
||||
get_ismembers
|
||||
load_int 0
|
||||
map_members
|
||||
iconst 0
|
||||
if_icmpeq LABEL329
|
||||
jump LABEL344
|
||||
LABEL329:
|
||||
get_varc 103
|
||||
load_int 0
|
||||
get_varc_int 103
|
||||
iconst 0
|
||||
if_icmpeq LABEL333
|
||||
jump LABEL344
|
||||
LABEL333:
|
||||
load_string "<col=ff0000>"
|
||||
sconst "<col=ff0000>"
|
||||
sload 0
|
||||
load_string ":"
|
||||
load_string "</col>"
|
||||
string_append 4
|
||||
sconst ":"
|
||||
sconst "</col>"
|
||||
join_string 4
|
||||
sstore 2
|
||||
load_string "<col=ff0000>"
|
||||
load_string "Members Only"
|
||||
load_string "</col>"
|
||||
string_append 3
|
||||
sconst "<col=ff0000>"
|
||||
sconst "Members Only"
|
||||
sconst "</col>"
|
||||
join_string 3
|
||||
sstore 3
|
||||
LABEL344:
|
||||
invoke 1972
|
||||
load_int 1
|
||||
iconst 1
|
||||
if_icmpeq LABEL348
|
||||
jump LABEL375
|
||||
LABEL348:
|
||||
load_int 2367
|
||||
load_int -2147483644
|
||||
load_int -2147483645
|
||||
load_int -1
|
||||
iconst 2367
|
||||
iconst -2147483644
|
||||
iconst -2147483645
|
||||
iconst -1
|
||||
iload 2
|
||||
sload 2
|
||||
sload 3
|
||||
load_int 495
|
||||
load_string "iIiIssf"
|
||||
iconst 495
|
||||
sconst "iIiIssf"
|
||||
iload 1
|
||||
widget_put_option_click_listener_widget
|
||||
get_varc 218
|
||||
if_setonop
|
||||
get_varc_int 218
|
||||
iload 1
|
||||
if_icmpeq LABEL363
|
||||
jump LABEL374
|
||||
LABEL363:
|
||||
get_varc 217
|
||||
load_int -1
|
||||
get_varc_int 217
|
||||
iconst -1
|
||||
if_icmpeq LABEL367
|
||||
jump LABEL374
|
||||
LABEL367:
|
||||
iload 1
|
||||
load_int -1
|
||||
iconst -1
|
||||
iload 2
|
||||
sload 2
|
||||
sload 3
|
||||
load_int 495
|
||||
iconst 495
|
||||
invoke 2344
|
||||
LABEL374:
|
||||
jump LABEL390
|
||||
LABEL375:
|
||||
load_int 992
|
||||
load_int -2147483645
|
||||
load_int -1
|
||||
iconst 992
|
||||
iconst -2147483645
|
||||
iconst -1
|
||||
iload 2
|
||||
sload 2
|
||||
sload 3
|
||||
load_int 495
|
||||
load_int 25
|
||||
load_int 5
|
||||
idiv
|
||||
load_string "IiIssfi"
|
||||
iconst 495
|
||||
iconst 25
|
||||
iconst 5
|
||||
div
|
||||
sconst "IiIssfi"
|
||||
iload 1
|
||||
widget_put_mouse_hover_listener_widget
|
||||
load_int 0
|
||||
put_varc 2
|
||||
if_setonmouserepeat
|
||||
iconst 0
|
||||
set_varc_int 2
|
||||
LABEL390:
|
||||
return
|
||||
|
||||
@@ -5,105 +5,105 @@
|
||||
.string_var_count 2
|
||||
invoke 1007
|
||||
istore 2
|
||||
load_string "Total level:"
|
||||
load_string "<br>"
|
||||
sconst "Total level:"
|
||||
sconst "<br>"
|
||||
iload 2
|
||||
int_to_string
|
||||
string_append 3
|
||||
tostring
|
||||
join_string 3
|
||||
iload 0
|
||||
load_string "skillTabTotalLevel" ; push event name
|
||||
sconst "skillTabTotalLevel" ; push event name
|
||||
runelite_callback ; invoke callback
|
||||
widget_put_text_widget
|
||||
if_settext
|
||||
iload 0
|
||||
widget_put_actions_null_widget
|
||||
load_string ""
|
||||
if_clearops
|
||||
sconst ""
|
||||
sstore 0
|
||||
load_string ""
|
||||
sconst ""
|
||||
sstore 1
|
||||
get_ismembers
|
||||
load_int 1
|
||||
map_members
|
||||
iconst 1
|
||||
if_icmpeq LABEL22
|
||||
get_varc 103
|
||||
load_int 1
|
||||
get_varc_int 103
|
||||
iconst 1
|
||||
if_icmpeq LABEL22
|
||||
jump LABEL28
|
||||
LABEL22:
|
||||
load_string "Total XP:"
|
||||
sconst "Total XP:"
|
||||
sstore 0
|
||||
invoke 1008
|
||||
invoke 1009
|
||||
sstore 1
|
||||
jump LABEL37
|
||||
LABEL28:
|
||||
load_string "Total XP:|Free Total Level:"
|
||||
sconst "Total XP:|Free Total Level:"
|
||||
sstore 0
|
||||
invoke 1008
|
||||
invoke 1009
|
||||
load_string "|"
|
||||
sconst "|"
|
||||
invoke 1320
|
||||
int_to_string
|
||||
string_append 3
|
||||
tostring
|
||||
join_string 3
|
||||
sstore 1
|
||||
LABEL37:
|
||||
invoke 1972
|
||||
load_int 1
|
||||
iconst 1
|
||||
if_icmpeq LABEL41
|
||||
jump LABEL72
|
||||
LABEL41:
|
||||
load_int 1
|
||||
load_string "Toggle Total XP"
|
||||
iconst 1
|
||||
sconst "Toggle Total XP"
|
||||
iload 0
|
||||
widget_put_action_widget
|
||||
load_int 2367
|
||||
load_int -2147483644
|
||||
load_int -2147483645
|
||||
load_int -1
|
||||
if_setop
|
||||
iconst 2367
|
||||
iconst -2147483644
|
||||
iconst -2147483645
|
||||
iconst -1
|
||||
iload 1
|
||||
sload 0
|
||||
sload 1
|
||||
load_int 495
|
||||
load_string "iIiIssf"
|
||||
iconst 495
|
||||
sconst "iIiIssf"
|
||||
iload 0
|
||||
widget_put_option_click_listener_widget
|
||||
get_varc 218
|
||||
if_setonop
|
||||
get_varc_int 218
|
||||
iload 0
|
||||
if_icmpeq LABEL60
|
||||
jump LABEL71
|
||||
LABEL60:
|
||||
get_varc 217
|
||||
load_int -1
|
||||
get_varc_int 217
|
||||
iconst -1
|
||||
if_icmpeq LABEL64
|
||||
jump LABEL71
|
||||
LABEL64:
|
||||
iload 0
|
||||
load_int -1
|
||||
iconst -1
|
||||
iload 1
|
||||
sload 0
|
||||
sload 1
|
||||
load_int 495
|
||||
iconst 495
|
||||
invoke 2344
|
||||
LABEL71:
|
||||
jump LABEL92
|
||||
LABEL72:
|
||||
load_int 992
|
||||
load_int -2147483645
|
||||
load_int -1
|
||||
iconst 992
|
||||
iconst -2147483645
|
||||
iconst -1
|
||||
iload 1
|
||||
sload 0
|
||||
sload 1
|
||||
load_int 495
|
||||
load_int 25
|
||||
load_int 5
|
||||
idiv
|
||||
load_string "IiIssfi"
|
||||
iconst 495
|
||||
iconst 25
|
||||
iconst 5
|
||||
div
|
||||
sconst "IiIssfi"
|
||||
iload 0
|
||||
widget_put_mouse_hover_listener_widget
|
||||
load_int 40
|
||||
if_setonmouserepeat
|
||||
iconst 40
|
||||
iload 1
|
||||
load_string "I"
|
||||
sconst "I"
|
||||
iload 0
|
||||
widget_put_mouse_exit_listener_widget
|
||||
load_int 0
|
||||
put_varc 2
|
||||
if_setonmouseleave
|
||||
iconst 0
|
||||
set_varc_int 2
|
||||
LABEL92:
|
||||
return
|
||||
|
||||
@@ -5,24 +5,24 @@
|
||||
.string_var_count 0
|
||||
|
||||
; Check if we should allow server to relayout bank
|
||||
load_int 1 ; true
|
||||
load_int 0 ; load active boolean
|
||||
load_string "getSearchingTagTab" ; push event name
|
||||
runelite_callback ; invoke callback
|
||||
iconst 1 ; true
|
||||
iconst 0 ; load active boolean
|
||||
sconst "getSearchingTagTab" ; push event name
|
||||
runelite_callback ; invoke callback
|
||||
if_icmpne LABEL2
|
||||
|
||||
; Let layout continue if current bank tab is 0
|
||||
get_varbit 4150
|
||||
load_int 0
|
||||
iconst 0
|
||||
if_icmpeq LABEL2
|
||||
|
||||
; Reset the current bank tab to 0 otherwise
|
||||
load_int 0
|
||||
iconst 0
|
||||
set_varbit 4150
|
||||
|
||||
load_string "Server attempted to reset bank tab."
|
||||
load_string "debug"
|
||||
runelite_callback
|
||||
sconst "Server attempted to reset bank tab."
|
||||
sconst "debug"
|
||||
runelite_callback
|
||||
|
||||
LABEL2:
|
||||
iload 0
|
||||
@@ -39,4 +39,4 @@ LABEL2:
|
||||
iload 11
|
||||
iload 12
|
||||
invoke 277
|
||||
return
|
||||
return
|
||||
|
||||
@@ -4,88 +4,88 @@
|
||||
.int_var_count 6
|
||||
.string_var_count 0
|
||||
get_varbit 4606
|
||||
load_int 0
|
||||
iconst 0
|
||||
if_icmpne LABEL4
|
||||
jump LABEL5
|
||||
LABEL4:
|
||||
return
|
||||
LABEL5:
|
||||
load_int 896
|
||||
load_string "innerZoomLimit"
|
||||
iconst 896
|
||||
sconst "innerZoomLimit"
|
||||
runelite_callback
|
||||
iload 0
|
||||
invoke 1046
|
||||
istore 0
|
||||
load_int 128
|
||||
load_string "outerZoomLimit"
|
||||
runelite_callback
|
||||
iconst 128
|
||||
sconst "outerZoomLimit"
|
||||
runelite_callback
|
||||
iload 0
|
||||
invoke 1045
|
||||
istore 0
|
||||
load_int 896
|
||||
load_string "innerZoomLimit"
|
||||
iconst 896
|
||||
sconst "innerZoomLimit"
|
||||
runelite_callback
|
||||
iload 1
|
||||
invoke 1046
|
||||
istore 1
|
||||
load_int 128
|
||||
load_string "outerZoomLimit"
|
||||
runelite_callback
|
||||
iconst 128
|
||||
sconst "outerZoomLimit"
|
||||
runelite_callback
|
||||
iload 1
|
||||
invoke 1045
|
||||
istore 1
|
||||
iload 0
|
||||
iload 1
|
||||
6200
|
||||
load_int 0
|
||||
viewport_setfov
|
||||
iconst 0
|
||||
istore 2
|
||||
load_int 0
|
||||
iconst 0
|
||||
istore 3
|
||||
get_viewport_size
|
||||
viewport_geteffectivesize
|
||||
istore 3
|
||||
istore 2
|
||||
iload 3
|
||||
load_int 334
|
||||
isub
|
||||
iconst 334
|
||||
sub
|
||||
istore 4
|
||||
iload 4
|
||||
load_int 0
|
||||
iconst 0
|
||||
if_icmplt LABEL39
|
||||
jump LABEL42
|
||||
LABEL39:
|
||||
load_int 0
|
||||
iconst 0
|
||||
istore 4
|
||||
jump LABEL48
|
||||
LABEL42:
|
||||
iload 4
|
||||
load_int 100
|
||||
iconst 100
|
||||
if_icmpgt LABEL46
|
||||
jump LABEL48
|
||||
LABEL46:
|
||||
load_int 100
|
||||
iconst 100
|
||||
istore 4
|
||||
LABEL48:
|
||||
iload 0
|
||||
iload 1
|
||||
iload 0
|
||||
isub
|
||||
sub
|
||||
iload 4
|
||||
imul
|
||||
load_int 100
|
||||
idiv
|
||||
iadd
|
||||
multiply
|
||||
iconst 100
|
||||
div
|
||||
add
|
||||
istore 5
|
||||
load_int 25
|
||||
load_int 25
|
||||
iconst 25
|
||||
iconst 25
|
||||
iload 5
|
||||
imul
|
||||
load_int 256
|
||||
idiv
|
||||
iadd
|
||||
set_camera_focal_point_height
|
||||
multiply
|
||||
iconst 256
|
||||
div
|
||||
add
|
||||
cam_setfollowheight
|
||||
iload 0
|
||||
iload 1
|
||||
put_varc 74
|
||||
put_varc 73
|
||||
set_varc_int 74
|
||||
set_varc_int 73
|
||||
invoke 1049
|
||||
return
|
||||
|
||||
@@ -34,4 +34,4 @@
|
||||
.int_var_count 0
|
||||
.string_var_count 0
|
||||
|
||||
return
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user