Difference between revisions of "API CanUseMerchandise"

From Vendetta Lua
Jump to: navigation, search
(split)
 
 
Line 1: Line 1:
=== CanUseMerchandise ===
+
{{Function
'''Definition:''' <br>
+
| name        = CanUseMerchandise
CanUseMerchandise(table ''iteminfo'') -> bool ''ret1'', {string l1 ..}
+
| desc        = check if the player can use the item ''iteminfo''
<br>
+
| arg1_name    = iteminfo
'''Description:'''<br>
+
| arg1_type    = table
check if the player can use the item ''iteminfo''
+
| arg1_desc    = iteminfo of item to check
<br>
+
| ret1_name    = ret1
'''Arguments:'''<br>
+
| ret1_type    = boolean
''iteminfo'' iteminfo of item to check
+
| ret1_desc    = can use
<br>
+
| ret2_name    = {string l1 ...}
'''Returns:'''<br>
+
| ret2_type    = table
''ret1'' can use<br>
+
| ret2_desc    = ''l1'' license requirements of the item
''l1'' license requirements of the item<br>
+
| notes        =
<br>
+
}}

Latest revision as of 08:29, 5 April 2011

CanUseMerchandise

Definition

CanUseMerchandise( table  iteminfo) ->  boolean  ret1,  table  {string l1 ...}
Description

check if the player can use the item iteminfo
Arguments

Type Name Description
table iteminfo iteminfo of item to check
Returns

Type Name Description
boolean ret1 can use
table {string l1 ...} l1 license requirements of the item