Scrolling Lore!!!!

Discussion in 'Archived: Plugin Requests' started by Mysticate, Jan 27, 2014.

  1. Offline

    Mysticate

    What I want; On hypixel they have this thing where the lore of an item is a picture, with multiple frames. It rotates through these creating a sort of animation. I would like a plugin that would give me the option to add lore like this to ANY item.

    Commands; None
    Permissions; Lore.create
    When I would like it by; u decide :p

    Sorry if this is a bit vague; i'm not really sure about how to do this.
     
    GrandmaJam likes this.
  2. Offline

    JellybeanPrince

    can you post a picture? I'm interested to see what this is.
     
  3. Offline

    Mysticate

    JellybeanPrince just go on mc.hypixel.net and look at the things in the compass
     
    GrandmaJam likes this.
  4. Online

    timtower Administrator Administrator Moderator

    Mysticate And how do you create the lore?
     
  5. Offline

    Gamecube762

    Interesting, they aren't using a picture, they are just using colored characters that keeps on changing. It looks like they are constantly updating the item's lore to play the next frame. Bigger servers can handle this stuff easier, but smaller servers, this could slow them down.
    Pictures (open)

    [​IMG][​IMG]
     
  6. Offline

    darkness1999

    GrandmaJam likes this.
  7. Offline

    Garris0n

    GrandmaJam likes this.
  8. Offline

    bobacadodl

    darkness1999
    No, they aren't using my library. I was inspired to add the animations to mine after seeing it on hypixel.
     
    GrandmaJam likes this.
  9. Offline

    Mysticate

    bobacadodl
    I have to do a plugin with this feature now, and I think i have to do it frame by frame, pixel by pixel :p
     
  10. Offline

    bobacadodl

    What do you mean?
     
  11. Offline

    Commander9292

    Mysticate
    The plugin on Hypixel just reads .gif files and transforms them into these images
     
  12. Offline

    chikenlitle99

    You're wrong, do not read .gif, are animated values ​
     
  13. Offline

    Commander9292

    chikenlitle99 Actually I'm not wrong, I've heard this from codename_B himself (he created it).
     
    GrandmaJam likes this.
  14. Offline

    chikenlitle99


    Wow, really? and sorry
     
  15. Offline

    TimJames

    This is the method i use for this:
    Do this code then just call the openInv(Player); method in whatever ... you can also code in pictures and movement using this repeating task.
    (sorry for the weird names for stuff)

    Code:java
    1. @SuppressWarnings("deprecation")
    2. private void openInv(final Player p) {
    3. final Inventory inv = Bukkit.createInventory(null, 27, ChatColor.AQUA
    4. + "Game Selector");
    5.  
    6. final ItemStack twentyone = new ItemStack(Material.COOKIE);
    7. ItemMeta twentyonemeta = twentyone.getItemMeta();
    8. final ItemStack twentytwo = new ItemStack(Material.COOKIE);
    9. ItemMeta twentytwometa = twentytwo.getItemMeta();
    10. final ItemStack twentythree = new ItemStack(Material.COOKIE);
    11. ItemMeta twentythreemeta = twentythree.getItemMeta();
    12. final ItemStack twentyfour = new ItemStack(Material.COOKIE);
    13. ItemMeta twentyfourmeta = twentyfour.getItemMeta();
    14. final ItemStack twentyfive = new ItemStack(Material.COOKIE);
    15. ItemMeta twentyfivemeta = twentyfive.getItemMeta();
    16. final ItemStack twentysix = new ItemStack(Material.COOKIE);
    17. ItemMeta twentysixmeta = twentysix.getItemMeta();
    18. final ItemStack twentyseven = new ItemStack(Material.COOKIE);
    19. ItemMeta twentysevenmeta = twentyseven.getItemMeta();
    20. final ItemStack twentyeight = new ItemStack(Material.COOKIE);
    21. ItemMeta twentyeightmeta = twentyeight.getItemMeta();
    22. final ItemStack twentynine = new ItemStack(Material.COOKIE);
    23. ItemMeta twentyninemeta = twentynine.getItemMeta();
    24. final ItemStack thirty = new ItemStack(Material.COOKIE);
    25. ItemMeta thirtymeta = thirty.getItemMeta();
    26.  
    27. twentyonemeta.setDisplayName(" §1Donation Info! ");
    28. twentyonemeta.setLore(Arrays.asList(""));
    29. twentyone.setItemMeta(twentyonemeta);
    30.  
    31. twentytwometa.setDisplayName(" §1onation Info! D");
    32. twentytwometa.setLore(Arrays.asList(""));
    33. twentytwo.setItemMeta(twentytwometa);
    34.  
    35. twentythreemeta.setDisplayName(" §1nation Info! Do");
    36. twentythreemeta.setLore(Arrays.asList(""));
    37. twentythree.setItemMeta(twentythreemeta);
    38.  
    39. twentyfourmeta.setDisplayName(" §1ation Info! Don");
    40. twentyfourmeta.setLore(Arrays.asList(""));
    41. twentyfour.setItemMeta(twentyfourmeta);
    42.  
    43. twentyfivemeta.setDisplayName(" §1tion Info! Dona");
    44. twentyfivemeta.setLore(Arrays.asList(""));
    45. twentyfive.setItemMeta(twentyfivemeta);
    46.  
    47. twentysixmeta.setDisplayName(" §1ion Info! Donat");
    48. twentysixmeta.setLore(Arrays.asList(""));
    49. twentysix.setItemMeta(twentysixmeta);
    50.  
    51. twentysevenmeta.setDisplayName(" §1on Info! Donati");
    52. twentysevenmeta.setLore(Arrays.asList(""));
    53. twentyseven.setItemMeta(twentysevenmeta);
    54.  
    55. twentyeightmeta.setDisplayName(" §1n Info! Donatio");
    56. twentyeightmeta.setLore(Arrays.asList(""));
    57. twentyeight.setItemMeta(twentyeightmeta);
    58.  
    59. twentyninemeta.setDisplayName(" §1 Info! Donation");
    60. twentyninemeta.setLore(Arrays.asList(""));
    61. twentynine.setItemMeta(twentyninemeta);
    62.  
    63. thirtymeta.setDisplayName(" §1Info! Donation ");
    64. thirtymeta.setLore(Arrays.asList(""));
    65. thirty.setItemMeta(thirtymeta);
    66.  
    67. inv.setItem(1, twentyone);
    68.  
    69. number = 10;
    70.  
    71. p.openInventory(inv);
    72.  
    73. this.getServer().getScheduler()
    74. .scheduleAsyncRepeatingTask(this, new Runnable() {
    75. public void run() {
    76.  
    77. if (number == 10) {
    78. inv.setItem(1, twentytwo);
    79. p.updateInventory();
    80. number--;
    81. } else if (number == 9) {
    82. inv.setItem(1, twentythree);
    83. p.updateInventory();
    84. number--;
    85. } else if (number == 8) {
    86. inv.setItem(1, twentyfour);
    87. p.updateInventory();
    88. number--;
    89. } else if (number == 7) {
    90. inv.setItem(1, twentyfive);
    91. p.updateInventory();
    92. number--;
    93. } else if (number == 6) {
    94. inv.setItem(1, twentysix);
    95. p.updateInventory();
    96. number--;
    97. } else if (number == 5) {
    98. inv.setItem(1, twentyseven);
    99. p.updateInventory();
    100. number--;
    101. } else if (number == 4) {
    102. inv.setItem(1, twentyeight);
    103. p.updateInventory();
    104. number--;
    105. } else if (number == 3) {
    106. inv.setItem(1, twentynine);
    107. p.updateInventory();
    108. number--;
    109. } else if (number == 2) {
    110. inv.setItem(1, thirty);
    111. p.updateInventory();
    112. number--;
    113. } else if (number == 1) {
    114. inv.setItem(1, twentyone);
    115. p.updateInventory();
    116. number = 10;
    117. }
    118. }
    119. }, 0L, 10L);
    120. }
     
  16. Online

    timtower Administrator Administrator Moderator

    TimJames Why not use a loop for that? And meta.setLore(null) will also work, or meta.setLore(new ArrayList<String>())
     
    GrandmaJam likes this.
  17. Offline

    Commander9292

    Nah it's fine. And yes that is what I've been told.
     
  18. Offline

    SirJava

    Anyone working on this? looks interesting :O
     
  19. Offline

    wowzersam

    Bump! would really like this plugin
     
    GrandmaJam likes this.
  20. Offline

    SirJava

    Heaps of coding is needed...
     
  21. Offline

    Jentagh

  22. Offline

    tissin

    A bit late, but https://forums.bukkit.org/threads/util-string-scroller-with-colours.184896/
     

Share This Page