GiveItem::1; Give player quantity c of item b,2; and copy the item's name to wStringBuffer.3; Return carry on success.4ld a, b5ld [wNamedObjectIndex], a6ld [wCurItem], a7ld a, c8ld [wItemQuantity], a9ld hl, wNumBagItems10call AddItemToInventory11ret nc12call GetItemName13call CopyToStringBuffer14scf15ret1617GivePokemon::18; Give the player monster b at level c.19ld a, b20ld [wCurPartySpecies], a21ld a, c22ld [wCurEnemyLevel], a23xor a ; PLAYER_PARTY_DATA24ld [wMonDataLocation], a25farjp _GivePokemon262728