Opticraft Community

Discussion forum => Legacy => Archives => Suggestions => Topic started by: Chief149 on June 29, 2012, 01:55:04 am

Title: New type of protection system!
Post by: Chief149 on June 29, 2012, 01:55:04 am
Ok so here is a proposal for a new way to protect areas!

So first off, for those who do not know how to use worldedit here is the info:

The basic way to edit a large area is to use the selected worldedit tool (wooden axe). You left click block 1, and right click block 2. When you do this you select two coordinates, and these coordinates become the opposite corners of a cube. When the //set command is used all blocks in this cube are changed to whatever the set command says.

Now lets talk protection stone!
Lets say we have a new ore for a protection stone. Lets say, redstone ore. Now the redstone ores themselves wouldn't be very expensive at all. Maybe like 100 bucks each. The real magic is in placing these stones. First off, the user would require two of these stones. Upon placing stone 1 (block 1) and stone 2 (block 2) a cube is created, and a glass wall will surround the area (restrictors would be made to make it so no matter how large an area is selected, the glass wall will be formed at a rate that won't lag the server). As this glass wall is made the player gets the following message in chat:

Code: [Select]
"Protection of an area this size will cost: " + (int cost) + ". To purchase respond with /yes or /no to not purchase"or
Code: [Select]
"The selected area overlaps another protected area. Cannot protect!" (this shows before the glass wall is made if necessary)
or
Code: [Select]
"The selected area is larger than the largest allowed area protection!" (opti can set a max area)

if the user responds with
Code: [Select]
"/no" then the glass wall disappears at a slow rate which will not cause server lag
if the user responds with
Code: [Select]
"/yes" then either the price will be subtracted from the users balance, or if there is not enough money in the bank the wall disappears and the following message shows up:

Code: [Select]
"You do not have enough money to buy protection for this area!"
Now if an area is protected and the owner of the area breaks one of the stones then it will break the protection completely, and the user will receive a 75% refund on what was paid for the area protection. Note the user will have to manually go and retrieve their redstone ores in the event that something prevents a successfull protection, or in the event that the area owner breaks the protection for some reason.

Also I will now calculate the price of protection:

1 diamond PS stone protects a volume of 41x41x41 blocks = 68921 blocks
This comes out to be 68921/$55000 = $1.25 per block, or $1 per block if you round to the nearest whole number.
Therefore if a player selects an area that is 20x20x10 blocks = 4000 blocks total, then the cost @ $1/block would be $4000, and the player would see:
Code: [Select]
"Protection of an area this size will cost: $4000. To purchase respond with /yes or /no to not purchase"
Title: Re: New type of protection system!
Post by: Nick3306 on June 29, 2012, 02:14:41 am
I suggested this a few months ago but opti did not seem to into the idea.
Title: Re: New type of protection system!
Post by: Chief149 on June 29, 2012, 02:25:42 am
I mean, this could easily be programmed into the current protection system most likely. I haven't seen any source code for smp plugins, but I would assume it wouldn't be that hard to program.

I would know if I could program in the procedure for this idea if I had the source code of the opticraft ps system, but I doubt that's meant to be available to anyone outside of the opticraft administration.
Title: Re: New type of protection system!
Post by: Nick3306 on June 29, 2012, 02:28:22 am
I mean, this could easily be programmed into the current protection system most likely. I haven't seen any source code for smp plugins, but I would assume it wouldn't be that hard to program.

I would know if I could program in the procedure for this idea if I had the source code of the opticraft ps system, but I doubt that's meant to be available to anyone outside of the opticraft administration.
We use the precious stones plugin for our protection. As far as I am aware it is open source.
Title: Re: New type of protection system!
Post by: ☣2crzy4uall☣ on June 29, 2012, 04:12:49 am
Wow this is pretty damn cool sounding, im buying up diamond ps like candy and it sucks lol two ps and im done lol thatd be nice
Title: Re: New type of protection system!
Post by: Chief149 on June 29, 2012, 08:09:14 am
If it's open source then any chance I could see the source code? Is this plugin modified for Opticraft, or is it an unmodified plugin from the bukkit list? I might be able to pick up on it and try coding in a bit of the protection stone addition I was talking about in my original post.
Title: Re: New type of protection system!
Post by: optical on June 29, 2012, 11:10:54 am
If it's open source then any chance I could see the source code? Is this plugin modified for Opticraft, or is it an unmodified plugin from the bukkit list? I might be able to pick up on it and try coding in a bit of the protection stone addition I was talking about in my original post.

https://github.com/SacredCoding/PreciousStones
Let me know once you have made the proposed changes, and I will review them and make use if satisfactory.
Title: Re: New type of protection system!
Post by: DeeKay on June 29, 2012, 11:22:50 am
Pretty sure PreciousStones has a cuboid flag that can be set to a block. Not sure how that would work with money.
Sounds good though.
Title: Re: New type of protection system!
Post by: Victor1261 on June 29, 2012, 01:30:01 pm
This seems like a pretty cool idea! I'd love to see this implemented.
Title: Re: New type of protection system!
Post by: Chief149 on June 29, 2012, 02:08:52 pm
If it's open source then any chance I could see the source code? Is this plugin modified for Opticraft, or is it an unmodified plugin from the bukkit list? I might be able to pick up on it and try coding in a bit of the protection stone addition I was talking about in my original post.

https://github.com/SacredCoding/PreciousStones
Let me know once you have made the proposed changes, and I will review them and make use if satisfactory.

I'm not promising you anything here lol. I've never coded plugins for a bukkit server, but I am a java programmer so I might be able to figure things out.
Title: Re: New type of protection system!
Post by: ☣2crzy4uall☣ on June 29, 2012, 02:57:26 pm
I'm not promising you anything here lol. I've never coded plugins for a bukkit server, but I am a java programmer so I might be able to figure things out.

Yes please do this and you will be an opticraft god lol
Title: Re: New type of protection system!
Post by: DiamondKnight629 on June 29, 2012, 03:32:02 pm
Meh I think protection stones are fine
Title: Re: New type of protection system!
Post by: Chief149 on June 30, 2012, 01:23:15 am
Meh I think protection stones are fine

I mean I think they are ok, but the thing I don't like is having to place so many of them because even the diamond ps stones aren't going to cover a whole big area (such as the giant manmade island and castle I built on it).

I got the project file, and I am trying to get the damn ide to use the bukkit API, but the developer of the plugin used IntelliJ ide which seems to be the dumbest ide because I can't find the part of the program where I tell it where the bukkit api is located......
Title: Re: New type of protection system!
Post by: cschurz on June 30, 2012, 04:17:11 am
Meh I think protection stones are fine

I mean I think they are ok, but the thing I don't like is having to place so many of them because even the diamond ps stones aren't going to cover a whole big area (such as the giant manmade island and castle I built on it).

I got the project file, and I am trying to get the damn ide to use the bukkit API, but the developer of the plugin used IntelliJ ide which seems to be the dumbest ide because I can't find the part of the program where I tell it where the bukkit api is located......

check out eclipse IDE, yo.
Title: Re: New type of protection system!
Post by: Chief149 on June 30, 2012, 04:50:06 am
I'm used to JCreator LOL

and yeah Ive used Eclipse a little bit, but meh.
Title: Re: New type of protection system!
Post by: ☣2crzy4uall☣ on June 30, 2012, 05:10:14 am
(https://lh5.googleusercontent.com/-w0tn7as4QCI/T-6JJhF0MtI/AAAAAAAAAI8/0D_olUztxjc/s300/tumblr_lmputme3co1qa6q7k_large.png)

THEN MAKE THIS PLUGIN AND

(https://www.opticraft.net/proxy.php?request=http%3A%2F%2Fchakru.com%2Fwp-content%2Fuploads%2F2012%2F05%2Fshut-up-money.jpg&hash=6278ea78cf969540ef89c7000aeb2a01)
Title: Re: New type of protection system!
Post by: Chief149 on June 30, 2012, 05:18:06 am
Ok, now that post made me LOL!

That's funny!

(https://www.opticraft.net/proxy.php?request=http%3A%2F%2Fimages4.wikia.nocookie.net%2F__cb20110330074454%2Fevil1888%2Fimages%2Farchive%2F7%2F78%2F20110330075559%21Trollface.svg&hash=24107f9a76caca7a99790cf3946e2ee6)
Title: Re: New type of protection system!
Post by: jettman23 on June 30, 2012, 07:20:44 am
Sooooo supported! this would be awesome! so much easier than figuring all the dimensions for diamond or coal etc. all i have to say is yes yes yes!
Title: Re: New type of protection system!
Post by: Chief149 on June 30, 2012, 02:23:41 pm
Not sure if should make a whole new plugin, or attempt to add this to the current plugin now that I have the sourcecode. I think my first attempt will be to add this on to the current plugin though since the current plugin I think has methods for charging the player, and different methods for database access and what not. I haven't looked at the whole source code yet so I don't know the extent of the plugins features.
Title: Re: New type of protection system!
Post by: cschurz on June 30, 2012, 02:38:32 pm
Not sure if should make a whole new plugin, or attempt to add this to the current plugin now that I have the sourcecode. I think my first attempt will be to add this on to the current plugin though since the current plugin I think has methods for charging the player, and different methods for database access and what not. I haven't looked at the whole source code yet so I don't know the extent of the plugins features.

keep us updated!
Title: Re: New type of protection system!
Post by: Victor1261 on June 30, 2012, 03:11:43 pm
Meh I think protection stones are fine

Completely off-topic, but why did you copy my saying in your signature? I'm cool with you using the same type of signature, but not with my saying. Even though you changed it, you still copied it from me.
Title: Re: New type of protection system!
Post by: Weirauch on June 30, 2012, 06:27:09 pm
I believe your math has a slight hiccup. You flipped the equation for figuring out how much each single block would cost.
The math works out to $0.80 a block (rounded up from $0.798015) If you keep it as you stated you would be paying about 86k for a diamond protection stone.
Altho a higher payment for each block could be implemented as a cost for custom fields.
Title: Re: New type of protection system!
Post by: Chief149 on July 01, 2012, 02:24:45 am
Well I think this coding is going to be heavily delayed. A person who works for Microsoft is giving me a free Windows Phone, and not the low end shitty type of Windows phone either. This is a really good phone that normally would cost a lot of money to buy. Anyways the only catch is the person wants me to develop apps for Windows phone. I don't need to develop apps for Microsoft, or for this person to sell, but he just wants to see that I am using the phone for something constructive as well as using it for personal reasons which in my case is a really good push to develop stuff, and put my programming knowledge to use. Therefore I will be starting right away on this!
Title: Re: New type of protection system!
Post by: Nick3306 on July 01, 2012, 06:29:29 pm
Well I think this coding is going to be heavily delayed. A person who works for Microsoft is giving me a free Windows Phone, and not the low end shitty type of Windows phone either. This is a really good phone that normally would cost a lot of money to buy. Anyways the only catch is the person wants me to develop apps for Windows phone. I don't need to develop apps for Microsoft, or for this person to sell, but he just wants to see that I am using the phone for something constructive as well as using it for personal reasons which in my case is a really good push to develop stuff, and put my programming knowledge to use. Therefore I will be starting right away on this!
imo there is no "shitty type of windows phone" all the one I have tried are pretty good.
Title: Re: New type of protection system!
Post by: ironjack9899 on July 02, 2012, 07:14:05 am
If you do this I will love you forever (No homo) :o
Title: Re: New type of protection system!
Post by: Solarpandas on July 06, 2012, 05:53:45 am
That would be perfectly awesome and there should be an ability to let more players pitch in to protect a larger area.
Title: Re: New type of protection system!
Post by: Chief149 on July 06, 2012, 02:25:51 pm
That would be perfectly awesome and there should be an ability to let more players pitch in to protect a larger area.

That's simple. Player A /pay 1000 --> Player B
Player B makes the protected area be 1000 blocks larger. Nuff said.
Title: Re: New type of protection system!
Post by: Flamefirre! on July 19, 2012, 01:21:52 am
This is an amazing idea. Fully supported; I'd love to see this happen. It's free on another server though. I'm just wondering, why do we even pay for protection? Is it because newbies who grief will like protect the whole world or something?
Title: Re: New type of protection system!
Post by: Chief149 on July 19, 2012, 02:00:28 am
Yeah. Well for two reasons. One: It balances the economy with the high prices. Secondly: It restricts the amount of land one person can have entirely to themselves with the "Don't build what you can't protect motto" although of course if your build is griefed you can have it saved by a moderator, but that is beside the point.
Title: Re: New type of protection system!
Post by: NatanylJames (N8MATTHEWS) on July 19, 2012, 12:54:16 pm
Love the idea
Title: Re: New type of protection system!
Post by: JellyFlynn on July 20, 2012, 10:16:05 pm
I like the sound of that idea I have tons of coal
Ore but with the red stone ps it would be easier
To protect everything rather than having a lot of coal ores or
Lapis ores
Title: Re: New type of protection system!
Post by: Matty585 on July 21, 2012, 01:34:30 am
I love this idea! It's great!

BUT

I'm not sure how PreciousStones (if that's what we were going to use) would "work with" Essentials (money plugin)
The plugin that does this new idea might have to have it's own money system.
Title: Re: New type of protection system!
Post by: <>LavaEvan<> on July 31, 2012, 03:53:25 pm
Another thing is... We wouldn't have to bother Optical about city protection. All the members of the city can chip in for their amount of blocks, and they own that space.
Title: Re: New type of protection system!
Post by: Chief149 on July 31, 2012, 07:31:30 pm
Well also remember that such an implementation would have the same cost per block as a diamond ps, so it would be just like covering the whole city with diamond protection stones, but simply with a little more efficiency than the actual diamon ps.
Title: Re: New type of protection system!
Post by: iGenerator on July 31, 2012, 07:53:38 pm
Another thing is... We wouldn't have to bother Optical about city protection. All the members of the city can chip in for their amount of blocks, and they own that space.

Its not optical who zones cities. Nick does for the most part and Relkeb helps out sometimes too but its part of their job, one of their responsibilities i dont think they mind it too much.