polserver/testsuite/pol/scripts/misc/unequiptest.src
Kevin Eady 749414715c
Add can clothe capabilities to paperdoll, (un)equip(test) scripts (#782)
* implementation

* add tests, testclient support for wear_item todo

* add UpdateConfiguration to ResourceManager for tests

* add test that can only move equipped items

* add docs, core-changes

* add macro defs for Lord British, Blackthorn, Dupre

* update doc xmls' datemodified

* add test for paperdoll flags

* fix test_equip_npc_dragdrop race condition
2025-06-22 12:01:54 +02:00

13 lines
370 B
Text

use uo;
use os;
program unequiptest( unequipped_on, item, startup, unequipped_by )
var pid := GetObjProperty( item, "#TestPid" );
if ( pid )
var ev := struct{ type := "unequiptest", on_chr := unequipped_on,
item := item, startup := startup, by_chr := unequipped_by };
GetProcess( pid ).SendEvent( ev );
endif
return 1;
endprogram