@joexv, what scripting programming are you using?? Apparently, you're missing the implementation of items label recognition or whatever what that can be called, either you need to enable some option in the program you're using or the program file is missing the file that is used to recognise items.
If you can't find how to fix it, try to replace items names by their respective ID in hexadecimal.
f.e.: EONTICKET's ID in Emerald is 275 which is 0x113 in hexadecimal.
checkitem EONTICKET 1 becomes checkitem 0x113 0x1
P.S.: Use Item Editor to get the ID (index) of an Item.
Use FFS or Windows' calculator to convert the ID from decimal to hexadecimal.
@Kurapika Im using pksvui, and i figured out what i did wrong, in the storeitem line i put the 0 before the item. Once i fixed that it compiled just fine. Now hopefully it doesnt give me a white screen.
Edit:
Turns out it does give me a white screen. Ill try it on a fresh rom to see if thats whats causing it. Ok so it was something else causing the white screen this script works! Yay!