Normal warehouse for display interface

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.