examine: fix item examine message recolor

This commit is contained in:
Adam
2022-04-21 09:24:31 -04:00
parent d533285a32
commit f8e754b62f
3 changed files with 51 additions and 3 deletions

View File

@@ -162,9 +162,6 @@ public class ExaminePlugin extends Plugin
ExamineType type;
switch (event.getType())
{
case ITEM_EXAMINE:
type = ExamineType.ITEM;
break;
case OBJECT_EXAMINE:
type = ExamineType.OBJECT;
break;
@@ -172,6 +169,7 @@ public class ExaminePlugin extends Plugin
type = ExamineType.NPC;
break;
case GAMEMESSAGE:
case ITEM_EXAMINE: // these are spoofed by us from a [proc,examine_item] script edit
type = ExamineType.IF3_ITEM;
break;
default:

View File

@@ -0,0 +1 @@
DEC91CFC6FBA0B927EE291A372CFE618232170A27CF96EEADAD29D1D4B761A82

View File

@@ -0,0 +1,49 @@
.id 6004
.int_stack_count 7
.string_stack_count 1
.int_var_count 7
.string_var_count 1
iload 1
iconst 100000
if_icmpge LABEL4
jump LABEL23
LABEL4:
iload 1
sconst ","
invoke 46
sconst " x "
iload 0
oc_name
sconst "."
join_string 4
iconst 27 ; ITEM_EXAMINE
sconst "mes"
runelite_callback
; ehc examine info
;iload 0
;iload 1
;iconst 0
;iload 2
;iload 3
;iload 4
;iload 5
;iload 6
;invoke 6005
jump LABEL34
LABEL23:
sload 0
iconst 27 ; ITEM_EXAMINE
sconst "mes"
runelite_callback
; ehc examine info
;iload 0
;iload 1
;iconst 1
;iload 2
;iload 3
;iload 4
;iload 5
;iload 6
;invoke 6005
LABEL34:
return