Test: Difference between revisions

From MassiveCraft Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 1: Line 1:
<table style="width: 90%; margin: auto"><tr><td style="width: 50%; vertical-align: top">
'''Instructions:''' Fill out the form and copy the code it gives you.
{{Info lore
*If you're using it '''in-game''', you can use the following to implement it:
|Heading1 = Races
**Take the whole code generated below, make it into a new paste on [http://pastebin.com/ PasteBin], then click 'Raw'. From there, use the in-game command '''/cmdurl [Pastebin URL]'''.
|List1 =
**Omit the '/' at the beginning of the code below and copy it chunks at a time. Use '''/buffer s [Chunk 1]''' and from there, use '''/buffer a [Chunk 2+]'''. It's recommended to copy and paste chunks mid-word instead of during a space, as this is the easiest method to use the buffer commands.
*[[Human]]
**Copy and paste the full code into a book (if it fits), then sign the book and use '''/book pt'''. Left click with the book and it'll execute the command.
*[[Elf]]
*If you're using it for a '''quest''':
*[[Kleinfolk]]
**Replace '''/i''' with '''/give {p}''' and insert it into your quest document.
*[[Tigran]]


|Heading2 = Vampires
'''NOTE:''' This doesn't yet support enchants, custom or vanilla, so you'll have to add those in manually. You can edit the code below as you please.
|List2 =
*[[Qul'Ess Bloodline]]
*[[Chyga Bloodline]]
*[[Fallisma Bloodline]]
*[[Te'suik Bloodline]]


|Heading3 = People
<html>
|List3 =
<script>
*[[Behaesal]]
        function format()
*[[Grand Vigil Nicholas]]
        {
*[[Emperor Medui]]
            var holder = document.item.iName.value;
*[[Ts'a Na]]
            var itemid = document.item.iID.value;
            var amount = document.item.iAmount.value;


|Heading4 = History
            var holder2 = desc(holder);
|List4 =
            var namespace = holder2.join("");
*[[Cataclysm]]
*[[Elven Empire]]
*[[Chrysant War]]
*[[Vampire History]]


|Heading5 = Flora
            var holder = color();
|List5 =
            var iColor = holder;
*[[Magebane]]
            var name = iColor + namespace;
*[[Emperor's Pride]]
*[[Fireweed]]
*[[Ice Root]]
}}


</td><td style="vertical-align: top;">
            holder = document.item.iDesc.value;
{{Info lore
            var description = desc(holder);
|Heading1 = Magic
            var d = description.join("");
|List1 =
*[[Fire Magic]]
*[[Hex Magic]]
*[[Evergrowth Magic]]
*[[Light Magic]]


|Heading2 = Geography
            var final =  
|List2 =
                    "/i " + itemid + " " + amount + " name:" + name + " lore:" + d;
*[[Regalia]]
         
*[[Ithania]]
        document.item.endres.value = final;
*[[New Ceardia]]
        }
*[[Ellador]]


|Heading3 = Orders
        function color()
|List3 =
        {
*[[Azure Order]]
            var holder = document.item.iRarity.value;
*[[Violet Order]]
            var color = "";
*[[Viridian Order]]
            if (holder === "common")
*[[Witch Hunter Order]]
                color = "&r";
            else if (holder === "enchanted")
                color = "&b";
            else if (holder === "uncommon")
                color = "&a";
            else if (holder === "rare")
                color = "&e";
            else if (holder === "epic")
                color = "&d";
            else
                color = "&c";
            return color;
        }


|Heading4 = Religions
        function desc(d)
|List4 =
        {
*[[Unionism]]
            var desc = d.split('');
*[[Faith of Estel]]
            for (var i = 0; i < desc.length; i++)
*[[Old Gods]]
                if (desc[i] === " ")
*[[Shama-Abdala]]
                    desc[i] = "_";


|Heading5 = Fauna
            var counter = 40;
|List5 =
            for (var x = 0; x < desc.length; x++)
*[[Great Jungle Cat]]
                if (desc[x] === "_" && x >= counter)
*[[A'evol]]
                {
*[[Ogre]]
                    desc[x] = "|";
*[[Dragon]]
                    counter = counter + 40;
}}
                }
</tr></table>
            return desc;
        }
 
    </script>
 
<form name="item" id="item">
                Minecraft Item <i>(<a href="http://minecraft-ids.grahamedgecombe.com/">Item List</a>)</i>
                <input name="list" id="iID"></input><br>
                Item Amount: <input type="text" id="iAmount"></input><br><br>
                Item Name: <input type="text" id="iName" value="Fush"></input><br>
                Rarity Tier <i>(See <a href="http://www.massivecraft.com/how-to-design-a-custom-item#rarity-tiers">Rarity Tiers</a>)</i>
                <select id="iRarity">
                    <option value="common">Common</option>
                    <option value="enchanted">Enchanted</option>
                    <option value="uncommon">Uncommon</option>
                    <option value="rare">Rare</option>
                    <option value="epic">Epic</option>
                    <option value="legendary">Legendary</option>
                </select><br>
                Item Description: <input type="text" id="iDesc"></inpit><br>
<input type="button" value="Submit" onClick="format()"></input><br><br>
                <textarea name="endres" id="endres" rows="5" cols="40">Item here.</textarea>
            </form>
               
</html>

Revision as of 00:31, 29 December 2015

Instructions: Fill out the form and copy the code it gives you.

  • If you're using it in-game, you can use the following to implement it:
    • Take the whole code generated below, make it into a new paste on PasteBin, then click 'Raw'. From there, use the in-game command /cmdurl [Pastebin URL].
    • Omit the '/' at the beginning of the code below and copy it chunks at a time. Use /buffer s [Chunk 1] and from there, use /buffer a [Chunk 2+]. It's recommended to copy and paste chunks mid-word instead of during a space, as this is the easiest method to use the buffer commands.
    • Copy and paste the full code into a book (if it fits), then sign the book and use /book pt. Left click with the book and it'll execute the command.
  • If you're using it for a quest:
    • Replace /i with /give {p} and insert it into your quest document.

NOTE: This doesn't yet support enchants, custom or vanilla, so you'll have to add those in manually. You can edit the code below as you please.

Minecraft Item (Item List)
Item Amount:

Item Name:
Rarity Tier (See Rarity Tiers)
Item Description: