Difference between revisions of "BB get number in pack"
From Unofficial QEdit Wiki Guide
Line 3: | Line 3: | ||
==Format== | ==Format== | ||
* WW (Reg) = Get number of items in inventory and set register to value | * WW (Reg) = Get number of items in inventory and set register to value | ||
+ | |||
+ | ==Use== | ||
+ | Used to count the number of items in your inventory. | ||
==Example== | ==Example== |
Revision as of 08:18, 24 March 2011
Syntax: BB_get_number_in_pack WW
Format
- WW (Reg) = Get number of items in inventory and set register to value
Use
Used to count the number of items in your inventory.
Example
100: BB_get_number_in_pack R10 //Set R10 to number of items in inventory.
jmpi_= R10, 0000001E, 101 //If R10 equals 30 jump to function 101
ret
101: message 00000050, 'Your inventory is full.' //Have NPC with ID 80 dec (00000050 hex) display message
mesend
ret