E c + + code, the code translation have not learned E consult bosses how to translate
Subroutine to generate items call
. The parameter item id, integer
. The parameter item number, integer
. The parameter type, integer, and 0 days number 1
. Effect of parameters of forging, the integer, nullable, 1-5 head forging, 6-10 body forging, forging, 11 to 15 back 16-20 sugar bubble forging
Forging color parameters, integer, nullable, 0 white, 1 black, 2 blue, orange, green 4, 5 purple
. Local variable data, the integer, static
If true (data=0)
Data=application memory (100, true)
. If the end of the
If (type=0)
Memory. Write section sets (data, {159, 153, 181, 31, 187, 227, 131, 95, 159, 153, 181, 31, 122, 4, 0, 0, 1, 0, 122, 4, 1, 0, 0, 0, 0, 0, 0, 0, 187, 227, 131, 95, 132, 3, 0, 0})//36 bytes
Memory. Write section sets (data + 32, to bytes (item number))
. Otherwise,
Memory. Write section sets (data, {159, 153, 181, 31, 132, 238, 131, 95, 159, 153, 181, 31, 53, 4, 0, 0, 1, 0, 53, 4, 3, 0, 0, 0, 0, 0, 0, 0, 132, 238, 131, 95, 255, 255, 255, 255})
Memory. Write section sets (data + 2, to bytes (item number))
If end
Memory. Write section sets (data + 12, to bytes set items (id))
Memory. Write section sets (data + 18, to byte set items (id))
Memory. Write section sets (data + 26, to bytes (forging))
Memory. Write section sets (data + 27, to bytes (forging color))
Items to generate the call (data, QQTSECTION)
Subroutine items generated call
Parameter data, integer
QQTSection. Parameters, integer
In code ({161, 4, 175, 127, 0, 139, 64, 8, 139, 64, 8, 139, 128, 8, 1, 0, 0, 61, 168, 21, 128, 0, 116, 15, 255, 117, 8, 80, 139, 85, 12, 129, 194, 54, 55, 2, 0, 255, 210})