Advertisement
Guest User

Untitled

a guest
Jan 23rd, 2017
145
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.58 KB | None | 0 0
  1. local mod = RegisterMod("Finn's Ipecac",1)
  2. local smbmode = Isaac.GetItemIdByName("SMB Mode")
  3. local collecteditem = false
  4. function mod:convertCoins()
  5. local player = Isaac.GetPlayer(0)
  6. if player:HasCollectible(smbmode) and collecteditem == false then
  7. local smbcostume = Isaac.GetCostumeIdByPath("gfx/characters/smbmode.anm2")
  8. player:AddNullCostume(smbcostume)
  9. collecteditem = true
  10. end
  11. if player:GetNumCoins() >= 99 and player:HasCollectible(smbmode) then
  12. player:AddCoins(-99)
  13. player:AddCollectible(CollectibleType.COLLECTIBLE_ONE_UP,0,true)
  14. end
  15. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement