Demon (10-23-2016),GravitySpy (10-09-2016),LollyBumBum (10-15-2016),Orbit (10-09-2016),Twont (10-25-2016),Wojtasowy1234 (03-17-2017)
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
and under there you would add;Code:if (item.Soulbound) { 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 >= *rank*) { 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.Code:if (Client.Account.Rank >= 80) { container = new Container(client.Player.Manager, SOUL_BAG, 1000 * 30, true) { BagOwners = new string[1] { client.Player.AccountId } }; }
[IMG][/IMG]
Simple as that. Basic yet useful.
Hope you enjoy!
Demon (10-23-2016),GravitySpy (10-09-2016),LollyBumBum (10-15-2016),Orbit (10-09-2016),Twont (10-25-2016),Wojtasowy1234 (03-17-2017)
I was gonna make a tutorial on this myself but saw this, here is a little bit cleaner way.
Just replace
withCode: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 } }; }
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.
Demon (10-23-2016),Wojtasowy1234 (03-17-2017)
Wow Thanks Now I Can Stop My Donators From Giving Items Away,
Btw Does It Affect Spawned Vault Chest :/
Would be nice. I made a basic tut for dropping. Would be easy to stop vault chest dropping from admins.
Cool tut nigboi
faaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaaaaaaaaaaargraarg
Big bump I see? Well its a mistake. Sorry /shrug not sorry. You do realize this thread is 7 months old?
Demon (05-24-2017)
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?
"There is no higher form of user validation than having customers support your product with their wallets." ~ Google