Ok, So i built a shop, The Grand Exchange Plugin, it is up and running great, shop is built. I built it outsdie a crest zone, I turned decay off i belive, but if i hit the blocks with a weapon it does damage. like 1000 damage hit each hit. so it will only take 1 player, to come through and just wreck the shop. Any way I can mark this area as a no damage zone so my shop stays put?
I don't want to put my crest there. i have a castle.
also anyway for admin to have more then 1 crest to fix this situation?
Protecting blocks in a specific area, no crest?
Discussion in 'Reign of Kings Discussion' started by 370HSSV(Timbo_Slice), Mar 3, 2016.
-
no the crest problem for admins is known and no fix yet.
Can help with the damage part but it only works if the players are in the GE area.
[DOUBLEPOST=1457031443][/DOUBLEPOST]No, the crest for admin is a known problem with no fix yet.
About the damage, there is a part in the script that has been commented since it didn't function right.
Can give you my part but it only works if the player who's dealing the damage is in a shop area. -
[DOUBLEPOST=1457035119][/DOUBLEPOST]Googled it, GE Area = Grand Exchange Area... got it... but what part to modify to effect block damage in the GE Area? -
you can mod some block what cant damage or craft.i have plugins what shield raiding.but then need to build shop over water or place where players cant set crest and collect block
-
1. Open the plugin with your favorite editor.
2. Scroll down till you see "Private Methods" then open it with the +.
3. Scroll down till you see "PLAYER CREATURE AND OBJECT DAMAGE" then open it with the +.
4. Scroll down to the very bottom of that expanded region.
5. You see a bit of code with // in front of each line. Delete all this.
6. After that, paste the code below at the place where you removed the previous code.
7. Save the file and place it in your plugin map on the server.
8. Have fun playing with a bit more safety.
EDIT:
Code:private void OnCubeTakeDamage(CubeDamageEvent cubeDamageEvent) { if (cubeDamageEvent.Damage.DamageSource.Owner is Player) { var player = cubeDamageEvent.Damage.DamageSource.Owner; if (PlayerIsInTheRightTradeArea(player)) { cubeDamageEvent.Damage.Amount = 0f; var message = "[FF0000]Grand Exchange : [00FF00]" + player.DisplayName + "[FFFFFF]! Attacking the Grand Exchange is ill-advised! Decist immediately!"; PrintToChat(message); Log(message); } } }
With this code the damage will be nullified if the player who's dealing damage is in the Grand Exchange/shop area.
If they're outside this area and hitting a block it will still do damage but it's a bit more secure then first.Last edited by a moderator: Mar 4, 2016 -
[DOUBLEPOST=1457121025,1457085535][/DOUBLEPOST]Ok so the results were. Every Block on the map, when struck, would say it was not wise to attack the grand exchange. Even on a castle on the other side of the map. I don't think this will work for me. 1 rogue player can sit there and hit a block anywhere on the map, and flood the chat with so and so is attacking the Grand exchange etc. etc messages.
I will save this for a future use, if we go PVE on the server.
I have since, gotten a friend that no longer plays, to come on, and join my guild and place his crests in the Store, I then I then built next door a Tavern upstairs and Black smith shop down stairs, under same sheilf protection as well as a Jail...
DragonFireGaming -
I edited my last post if you look at that you see why.
I forgot to check if the player was in the GE area and it's added now. -
[DOUBLEPOST=1457121249][/DOUBLEPOST] -
The GE area is the main shop (/store) you put markers for and player shops. If you haven't placed the marks for the main shop then it will only count for the player shops.
-
Just modified the file again, and in Note++ starts on line 2674 to 2688
[DOUBLEPOST=1457121700][/DOUBLEPOST]
[DOUBLEPOST=1457122028][/DOUBLEPOST] -
Like I said. it won't give protection if the damager is outside of the marked areas but for closeby it's good.
-
I appreciate your input, you have helped me greatly.
Does exactly what I needed now.
[DOUBLEPOST=1457168731][/DOUBLEPOST]If you'd like to check out what I have done, DragonFireGaming is our server name. -
Looks nice though I suggest the HelpText for Reign of Kings | Oxide plugin to show people what commands they can use.
-
This does work. But is there a way to stop the block giving salvage? We don't want people sitting there all day getting free salvage from these blocks.
-
need plugis what make no siege area
Last edited by a moderator: Jul 5, 2016 -
Attached Files:
-
-
-
keep in mind that the current code of the grand exchange doesn't function well if there is no crest protecting the grand exchange. For example if you don't crest it someone else can crest it and take the blocks. if you crest it the salvage should be gone too.
I am working on a crest replacement plugin but that will take some time. -
-
easy way when we dont have plugins against trep or no no crest area.you can mod some block what players not use.mayby sod block.that i do my server.that block cant break or craft.but still you need to set crest that area or players can set crest there and collect block.i have plugins against ballista and trep but its take full map.i use that when its a build event.i plan to make 1 plugins what cancel collect.i have also plugins what chancel set block.so i can build base and active plucins,after that there cant build more when plugins its up.so this moment need plugins what make no crest area or cancel items collection.then its no point to set crest that area any players.after all its hard to make base without crest if you want any players cant take that base block or items or trep that down.
Last edited by a moderator: Jul 7, 2016