Results 1 to 11 of 11
  1. #1
    USARotMG's Avatar
    Join Date
    Feb 2016
    Gender
    male
    Location
    USA
    Posts
    59
    Reputation
    10
    Thanks
    23
    My Mood
    Amazed

    [FSOD] How to make admins unable to drop items!

    Guys your lucky day has come. I am gonna make a stop to some of the admin abuse ;3 xD

    This tutorial would be used to stop admins from dropping items, and ruining the economy!

    This will make all items dropped by admins drop in a soulbound bag!

    So, what you would do is go to InvDrop Handler.cs
    Then you would find the code


    Code:
                        if (item.Soulbound)
                        {
                            container = new Container(client.Player.Manager, SOUL_BAG, 1000*30, true)
                            {
                                BagOwners = new string[1] { client.Player.AccountId }
                            };
                        }
                }
    and under there you would add;

    Code:
                        if (Client.Account.Rank >= *rank*)
                        {
                            container = new Container(client.Player.Manager, SOUL_BAG, 1000 * 30, true)
                            {
                                BagOwners = new string[1] { client.Player.AccountId }
                            };
                        }
                }
    Then you would change the *rank* for a number. Let's say 80.

    Code:
                        if (Client.Account.Rank >= 80)
                        {
                            container = new Container(client.Player.Manager, SOUL_BAG, 1000 * 30, true)
                            {
                                BagOwners = new string[1] { client.Player.AccountId }
                            };
                        }
    This would stop anyone whos rank 80 and up from dropping items. Even if they aren't soubound.

    [IMG][/IMG]

    Simple as that. Basic yet useful.



    Hope you enjoy!

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

    Demon (10-23-2016),GravitySpy (10-09-2016),LollyBumBum (10-15-2016),Orbit (10-09-2016),Twont (10-25-2016),Wojtasowy1234 (03-17-2017)

  3. #2
    Spectre11's Avatar
    Join Date
    May 2016
    Gender
    male
    Posts
    40
    Reputation
    10
    Thanks
    203
    My Mood
    Blah
    I was gonna make a tutorial on this myself but saw this, here is a little bit cleaner way.
    Just replace
    Code:
                    if (item != null)
                    {
                        Container container;
                        if (item.Soulbound)
                        {
                            container = new Container(client.Player.Manager, SOUL_BAG, 1000*30, true)
                            {
                                BagOwners = new string[1] { client.Player.AccountId }
                            };
                        }
    with
    Code:
                    if (item != null)
                    {
                        Container container;
                        if (((item.Soulbound) || Client.Account.Rank == 5) || Client.Account.Rank == 6)
                        {
                            container = new Container(client.Player.Manager, SOUL_BAG, 1000*30, true)
                            {
                                BagOwners = new string[1] { client.Player.AccountId }
                            };
                        }
    Last edited by Spectre11; 10-23-2016 at 07:13 PM.

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

    Demon (10-23-2016),Wojtasowy1234 (03-17-2017)

  5. #3
    Demon's Avatar
    Join Date
    Jul 2015
    Gender
    male
    Location
    Lost
    Posts
    1,095
    Reputation
    86
    Thanks
    316
    My Mood
    Angelic
    Wow Thanks Now I Can Stop My Donators From Giving Items Away,

    Btw Does It Affect Spawned Vault Chest :/

  6. #4
    Spectre11's Avatar
    Join Date
    May 2016
    Gender
    male
    Posts
    40
    Reputation
    10
    Thanks
    203
    My Mood
    Blah
    Quote Originally Posted by DemonLives View Post
    Wow Thanks Now I Can Stop My Donators From Giving Items Away,

    Btw Does It Affect Spawned Vault Chest :/
    ill make a tutorial to stop spawning of vault chests ect

  7. #5
    USARotMG's Avatar
    Join Date
    Feb 2016
    Gender
    male
    Location
    USA
    Posts
    59
    Reputation
    10
    Thanks
    23
    My Mood
    Amazed
    Would be nice. I made a basic tut for dropping. Would be easy to stop vault chest dropping from admins.

  8. #6
    coolguy950's Avatar
    Join Date
    Oct 2013
    Gender
    male
    Location
    rrrrrrrrrrrrrrrrr
    Posts
    146
    Reputation
    10
    Thanks
    30
    My Mood
    Paranoid
    Cool tut nigboi
    faaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaaaaaaaaaaargraarg

  9. #7
    LiveDEMI's Avatar
    Join Date
    Jan 2017
    Gender
    male
    Location
    Finland
    Posts
    55
    Reputation
    10
    Thanks
    13
    My Mood
    Sneaky
    Quote Originally Posted by USARotMG View Post
    This would stop anyone whos rank 80 and up from dropping items. Even if they aren't soubound.

    Simple as that. Basic yet useful.



    Hope you enjoy!
    Look soubound u are supposed to write soulbound
    Welcome to my signature make sure you don't get lost in here.
     
    Quote Originally Posted by Eden View Post
    CONTACT ME TO GET UR PRICE IF U WON!
    WINNERS ARE: @rmoghadikri @adamhender @SimDalek @Damn Da Wei @LiveDEMI @Juankrlosx10 @Akane* @Damn Da Wei @Pirate Galaxy @hejfrede
     
    3N7dMrETJt7SXpbJEkVdtzFJGGq8qNjyuY
     
    Sword art Online
     
    Sweden - Stockholm
    20.7-21.7 Estonia - Tallinn

  10. #8
    USARotMG's Avatar
    Join Date
    Feb 2016
    Gender
    male
    Location
    USA
    Posts
    59
    Reputation
    10
    Thanks
    23
    My Mood
    Amazed
    Big bump I see? Well its a mistake. Sorry /shrug not sorry. You do realize this thread is 7 months old?

  11. #9
    Riigged's Avatar
    Join Date
    Jan 2013
    Gender
    male
    Location
    no
    Posts
    3,846
    Reputation
    401
    Thanks
    10,254
    My Mood
    Devilish
    Quote Originally Posted by LiveDEMI View Post
    Look soubound u are supposed to write soulbound
    Thanks for the notice. You're ticket has been received and is being thoroughly looked over by the Grammar Nazi Squad of 2017. We will get back to you in 3-5 business days. MPGH.

     








  12. The Following User Says Thank You to Riigged For This Useful Post:

    Demon (05-24-2017)

  13. #10
    ImTomRotmg's Avatar
    Join Date
    Jan 2017
    Gender
    male
    Posts
    7
    Reputation
    10
    Thanks
    1
    My Mood
    Brooding
    rigged, can you add me on skype/******* because i need some help with my pserver, thank you
    skype: ryan.blott93
    di scord: Galaxy#3486

  14. #11
    Kushala Daora's Avatar
    Join Date
    Oct 2013
    Gender
    male
    Location
    RealmSupply
    Posts
    1,075
    Reputation
    73
    Thanks
    642
    My Mood
    Angelic
    Or you know, just hire trustworthy admins?

    "There is no higher form of user validation than having customers support your product with their wallets." ~ Google


Similar Threads

  1. [FSOD] How to make admins unnable to trade!
    By USARotMG in forum Realm of the Mad God Private Servers Tutorials/Source Code
    Replies: 8
    Last Post: 10-22-2016, 04:51 PM
  2. [Help Request] [FSoD] How to make Editor available to everyone?
    By SwitchBot in forum Realm of the Mad God Private Servers Help
    Replies: 1
    Last Post: 07-20-2016, 10:45 PM
  3. [Help Request] How to make enemy chest with drop?
    By tamas0821 in forum Realm of the Mad God Private Servers Help
    Replies: 11
    Last Post: 08-24-2015, 05:00 AM
  4. How To Make Care Pacages Ks Drop % Higher Or Lower (No Dvars) !
    By justas1234 in forum Call of Duty Modern Warfare 2 GSC Modding Help/Discussion
    Replies: 2
    Last Post: 10-03-2010, 11:26 AM
  5. [TuT]How to make something run only as Admin
    By Invidus in forum Visual Basic Programming
    Replies: 2
    Last Post: 03-07-2010, 07:15 PM