Well, this is what happens in the script. You talk to a grunt, who is counting boxes, and he wants you to go to the storage room to find the box code for the Super Potion box. When you talk to the box, and find out the code, a flag activates, and when you talk to him again, he gives you a Super Potion as a reward. Then another flag sets after that dialogue so the game knows he already gave you a super potion. Everything works fine, except this line.
He says that twice, but never gives you the Super Potion. Any help?
The added 8 means the pointer is to the ROM. What you have done is the last parameter should be 0x0 for giveitem because that's what is needed for when a person gives you the item.
You should only ever use 0x0 and 0x1 for the last parameter of giveitem, 0x0 for the case above and 0x1 for item pokeball.
The fix for this is:
#org @start
checkflag 0x1001
if 0x1 goto @end
checkflag 0x1000
if 0x1 goto @next
msgbox @speak 0x2
end
#org @end
msgbox @speak2 0x2
end
#org @next
msgbox @speak3 0x2
giveitem 0x16 0x1 0x0
setflag 0x1001
release
end
#org @speak2
= Sorry, that's all I can give you.\pThank you for your help again!
#org @speak
= Hmm...\pHey!\nYou!\pDo you think you could help me?\pI need you to run to the storage\nroom and find the box code number\lfor the Super Potions.\pSome boxes have codes, but they are\nfor other products. Some boxes have\lno codes at all!\pMake sure to find the Super Potion\nbox!
#org 0@speak3
= Ah...\pSo the box code number for the\nSuper Potions is 78737.\pThank you so much! Here, take one\nof them![/