1. The forums will be archived and moved to a read only mode in about 2 weeks (mid march).

Getting item lore and setting it on another item

Discussion in 'Facepalm' started by RoyalMCPE, May 31, 2017.

  1. RoyalMCPE

    RoyalMCPE Slime

    Messages:
    87
    How would I be able to get the lore on $item1 and set it on $item2?
     
  2. robske_110 (Tim)

    robske_110 (Tim) Wither Skeleton Poggit Reviewer

    Messages:
    1,342
    GitHub:
    robske110
  3. RoyalMCPE

    RoyalMCPE Slime

    Messages:
    87
    Yes, but getLore() has to be instance of array, I don't know how many lines $item's lore has.
     
  4. robske_110 (Tim)

    robske_110 (Tim) Wither Skeleton Poggit Reviewer

    Messages:
    1,342
    GitHub:
    robske110
    ?????
    what are you talking about
     
  5. RoyalMCPE

    RoyalMCPE Slime

    Messages:
    87
    Nvm, but I get this when I do that

    Code:
    Notice: Array to string conversion in /home/mca/mca-factions/plugins/ApocalypseSkyBlockCore/src/RoyalMCPE/ApocalypseSkyBlock/API/AuctionHouseAPI.php on line 191
    
     
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.