Script Path/Name
pkg/items/containers/backpack/onInsert.ecl
Instructions
4.27951e+06
Invocations
8358
Instr/Invoc
512
Percent
34.9738
Code: Select all
const BANK_WEIGHT := 10000;
use uo;
use unicode;
include ":attributes:attributes";
include ":injectioncheck:counter";
program on_insert (who, container, movetype, inserttype, item, amtadded)
if(item.objtype == 0xF021 && !GetObjProperty(who, "#pvp_town_dress"))
AddInjectionCounter(who, 2);
DestroyItem(item);
return 0;
endif
if (!who.cmdlevel)
if (who.backpack.serial == container.serial)
if(!who.isa(POLCLASS_NPC))
setobjproperty(item, "#is_in_pack", who.serial);
endif
endif
endif
eraseobjproperty(container, "#inserting");
endprogram