The actual script is as followsprocedureXianshi_ptck (NPC:TNORMNPC; Player:tplayobject);procedureCWPRPTCK_QWP (NPC:TNORMNPC; Player:tplayobject; Args:targs); beginplayer. Takebackstorageitem (args.int[0]); CANGKU.XIANSHI_PTCK (Npc,player);End;procedureXianshi_ptck (NPC:TNORMNPC; Player:tplayobject);varS:string; Csitem:tuseritem; I:integer; //Item PositioningIii:integer;//number of row anchor lines up to 7X:integer;//x-coordinateY:integer;//y-coordinatebeginX:= the; y:= -; III:=0; For I:=0 to - DobeginIF III<7Then BEGIN Csitem:=Player.storageitem[i]; IF Csitem<>NIL ThenbeginS:= S +'<{u='+ Player.storageitem[i]. Makestring +'; x='+ INTTOSTR (X) +'; y='+ INTTOSTR (Y) +'; h=40; w=42}/@CWPRPTCK_QWP ('+ INTTOSTR (I) +') >' ; X:=x + the; III:=III +1; End; IF III=7Then BEGIN X:= the; Y:=y + +; III:=0; End; End; End; Npc. Sayex (player,'Visual General Warehouse', s); EndThis script does not come with a function to add UI when setting a custom UI at UI design the command to deposit is player.additemtostorage (player.customitem[0]); Display interface UI See attachments
Normal warehouse for display interface