// Item permission verification function $ Perms has the groupid or FID sequence with permissions, separated by \ t in the middle $ ID: FID or groupid to be verified Checkmagicperm ($ perms, $ id) // Obtain the prop Function $ Magicid item ID, $ Magicnum get quantity $ Weight item weight $ Totalweight total item weight owned by the user $ Uid: Get the UID of the prop user $ Maxmagicsweight maximum weight of the item owned by the user Getmagic ($ magicid, $ magicnum, $ weight, $ totalweight, $ uid, $ maxmagicsweight) // Query the maximum weight function of a user's item $ Uid query user uid $ Magicarray item data array Getmagicweight ($ uid, $ magicarray) // Query the post information function $ Id the post or topic PID or tid $ Type indicates the type of the query. TID indicates the topic PID indicates the post. $ Array of field data types to be queried by colsarray Getpostinfo ($ id, $ type, $ colsarray = '') // User information query function $ Username query Username $ Array of field data types to be queried by colsarray Getuserinfo ($ username, $ colsarray = '') // Present the prop Function $ Username: username of the object to be presented $ Magicid: Present a prop ID $ Magicnum: Number of complimentary items per item $ Totalnum total number of complimentary items $ Totalprice total price of complimentary items Givemagic ($ username, $ magicid, $ magicnum, $ totalnum, $ totalprice) // Prop Random Function $ The probability of odds success, for example, 10 is 10%. Magicrand ($ odds) // Item marketing item operation function $ Magicid item ID $ Marketnum item market item quantity $ Magicnum item quantity Marketmagicnum ($ magicid, $ marketnum, $ magicnum) // Prop operation verification function (the user verifies whether the object used by the prop has been operated by the moderator) $ TID post ID Magicthreadmod ($ tid) // Function generated on the item Page Magicshowsetting ($ setname, $ varname, $ value, $ type = 'Radio ', $ width = '000000 ') Magicshowtips ($ tips, $ title) Magicshowtype ($ name, $ type = '') // Use functions for items $ Magicid item ID $ Totalnum total number of users with items used $ Num usage Usemagic ($ magicid, $ totalnum, $ num = 1) // Use the object log for the item (mainly used when the object topic is used) $ TID topic tid $ Magicid item ID $ Action Action ID $ Expiration item Validity Period $ Extra whether to record username 1 is not recorded, 0 is recorded Updatemagicthreadlog ($ tid, $ magicid, $ action, $ expiration, $ extra = 0) // Prop use Log $ Magicid item ID $ Action Action Id 1: Buy 2: Use 3: Gift 4: sale 5: Purchase $ Amount item operation count $ Price item operation price $ Targettid use object tid $ Targetpid use the object PID $ Targetuid use object uid Updatemagiclog ($ magicid, $ action, $ amount, $ price, $ targettid = 0, $ targetpid = 0, $ targetuid = 0) |