Results 1 to 3 of 3
  1. #1
    kgcgods's Avatar
    Join Date
    Nov 2015
    Gender
    male
    Posts
    63
    Reputation
    10
    Thanks
    13
    My Mood
    Bored

    How to add consumable gold & Fame

    i did not make this all the credits goes to
    @lawltron

    i got a tutorial to use : 1. Make a item like this

    <Object id="1000 Fame" ext="true">
    <Class>Equipment</Class>
    <Item/>
    <SlotType>10</SlotType>
    <Texture>
    <File>lofiObj5</File>
    <Index>0xnumber</Index>
    </Texture>
    <Description>This Fame You 1000 Fame</Description>
    <BagType>5</BagType>
    <Consumable/>
    <Activate>Fame</Activate>
    <Sound>spell/fire_nova</Sound>
    <feedPower>1000</feedPower>
    <DisplayId>1000 Fame</DisplayId>
    </Object>
    <Object id="1000 Gold" ext="true">
    <Class>Equipment</Class>
    <Item/>
    <SlotType>10</SlotType>
    <Texture>
    <File>lofiObj5</File>
    <Index>0xnumber</Index>
    </Texture>
    <Description>This Gold Coin Gives You 1000 Gold</Description>
    <BagType>5</BagType>
    <Consumable/>
    <Activate>Gold</Activate>
    <Sound>spell/fire_nova</Sound>
    <feedPower>1000</feedPower>
    <DisplayId>1000 Gold</DisplayId>
    </Object>
    2. go to descriptors.cs and add this to public enum ActiveEffects
    Gold,
    Fame,
    or you could name it whatever just if you rename it rename it in all the steps
    3. go to player.useitem.cs and add this code anywhere under break; (important anywhere under break; if u didnt add this to anywhere under break it aint gonna work)

    case ActivateEffects.Gold:
    {
    int Gold = Random.Next(0, 0);
    switch (Gold)
    {
    case 0:
    {

    var db = new db.Database();

    Credits = db.UpdateCredit(Client.Account, 1000);
    UpdateCount++;
    db.Dispose();
    SendHelp("You have acquired 1000 Gold!");
    }
    break;

    }

    }
    break;

    case ActivateEffects.Fame:
    {
    int Gold = Random.Next(0, 0);
    switch (Fame)
    {
    case 0:
    {

    var db = new db.Database();

    Fame = db.UpdateFame(Client.Account, 1000);
    UpdateCount++;
    db.Dispose();
    SendHelp("You have acquired 1000 Fame!");
    }
    break;

    }

    }
    break;

  2. The Following 2 Users Say Thank You to kgcgods For This Useful Post:

    Yul0627 (02-23-2017),Zxoro (10-14-2016)

  3. #2
    Zxoro's Avatar
    Join Date
    Apr 2013
    Gender
    male
    Location
    Mother Russia
    Posts
    111
    Reputation
    38
    Thanks
    10
    My Mood
    Pensive
    lol, noticed this:
    int Gold = Random.Next(0, 0);
    switch (Gold) - looks okay, but:
    int Gold = Random.Next(0, 0);
    switch (Fame) - looks stupid, needs to be perfected, i fixed your code, check this out (it's for 100 fame, not 1000, nvm), works for me on FSOD:

    case ActivateEffects.Gold:
    {
    int Gold = Random.Next(0, 0);
    switch (Gold)
    {
    case 0:
    {

    var db = new db.Database();

    Credits = db.UpdateCredit(Client.Account, 100);
    UpdateCount++;
    db.Dispose();
    SendHelp("You have acquired 100 Gold!");
    }
    break;

    }

    }
    break;

    case ActivateEffects.Fame:
    {
    int Fame = Random.Next(0, 0);
    switch (Fame)
    {
    case 0:
    {

    var db = new db.Database();

    Fame = db.UpdateFame(Client.Account, 100);
    UpdateCount++;
    db.Dispose();
    SendHelp("You have acquired 100 Fame!");
    }
    break;

    }

    }
    break;

  4. #3
    Hjkiye's Avatar
    Join Date
    Feb 2019
    Gender
    male
    Posts
    2
    Reputation
    10
    Thanks
    0
    umg, nuvur oose additon.xml coz eet socs

Similar Threads

  1. [Solved] How to add consumable fame & gold on fabiano source
    By kgcgods in forum Realm of the Mad God Private Servers Help
    Replies: 9
    Last Post: 10-12-2016, 07:00 PM
  2. [Help Request] Errors when trying to add consumable Fame & Gold ;( help plz
    By kgcgods in forum Realm of the Mad God Private Servers Help
    Replies: 4
    Last Post: 10-10-2016, 02:40 PM
  3. [Solved] [FSoD] Consumable Gold and Fame
    By SwitchBot in forum Realm of the Mad God Private Servers Help
    Replies: 2
    Last Post: 08-21-2016, 06:32 PM
  4. [Solved] How to make consumable fame and gold?/Help with /set command
    By DBFunx in forum Realm of the Mad God Private Servers Help
    Replies: 4
    Last Post: 05-05-2016, 11:41 AM
  5. [Help Request] How to make consumable fame or gold?
    By Matrix1101 in forum Realm of the Mad God Private Servers Help
    Replies: 5
    Last Post: 12-30-2015, 06:20 PM