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

Posts 1–11 of 11 · Page 1 of 1
[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!
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 }
                        };
                    }
Wow Thanks Now I Can Stop My Donators From Giving Items Away,

Btw Does It Affect Spawned Vault Chest :/
Quote Originally Posted by Demon 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
Would be nice. I made a basic tut for dropping. Would be easy to stop vault chest dropping from admins.
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
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.
Big bump I see? Well its a mistake. Sorry /shrug not sorry. You do realize this thread is 7 months old?
rigged, can you add me on skype/******* because i need some help with my pserver, thank you
skype: ryan.blott93
di scord: Galaxy#3486
Or you know, just hire trustworthy admins?
Posts 1–11 of 11 · Page 1 of 1

Post a Reply

Similar Threads

Talk with us