RoninGT
Sorceror
FS: Grave Digging System
Version: 0.0.4 beta
Release Date: 7/29/2011
Built On: RunUO 2.1 revision 605
Update 8/1/2011
Update 7/30/2011
Special thanks to Iraq- for his feedback on the system for these updates
Allows players to dig for treasures from a grave. The player uses any shovel to dig in a grave using the skills mining to dig for the treasure and forensics to make sense of what they find and recover the treasure. However depending on their skill they might end up disturbing the dead and have nasty creatures of the underworld attacking them.
Currently i have 2 loot tables setup for this system. 1 is a generic item list that includes basic items such as gems, regs, and bones. I plan to add in more generic loot as the system goes on. The 2nd loot table is for rare items such as artifacts. I have 3 times in that loot table which are Axe Of The Heavens, Armor Of Fortune, and Bracelet Of Health. Feel free to change or add to these as you see fit. Drop rates are set based on the players forensics. The player must have over 80 forensics to even have a chance at a rare drop item. A player with 100 forensics will have a 2% chance at a drop before the tool bonus. A normal shovel does not give the player a tool bonus however a sturdy shovel will give the player a x2 bonus to his or her chance at a rare item drop.
Future Plans
The scripts posted here are for testing only. The drop rates of items have not been fully tested and by be set to high and may over populate items on your server. Please review all drop rates and items dropped to make sure they are suitable for your server before installing these scripts on an active server.
Install
Drop the "FS Grave Digging System" folder into your custom scripts folder.
Only stock file you need to mod is HarvestTarget.cs. Open HarvestTarget.cs and find...
Below add
Then find...
Below add...
Then close and save it and your all done. Restart your server and get a shovel
To install the Grave digger quest just drop the folders in your customs folder and restart. Once restarted say [genGDQ in game to spawn the quest, Start the quest in brit trammel next to the tavern near main bank.
In Closing
First script i have done in like... 6-7 years so please report any bugs, questions, comments, suggestions and ill get to them asap.
Hope you enjoy!
RoninGT
Version: 0.0.4 beta
Release Date: 7/29/2011
Built On: RunUO 2.1 revision 605
Update 8/1/2011
- Fixed spelling mistakes
- Removed unused code that was causing double multi times amounts on stack-able items.
- Changed found treasure maps to randomly choose a level between 1-7, You may mod if you dont have level 7 maps.
- Added a range check when digging, Can no longer dig from max range.
- Removed the "You finish digging" message.
- Special shovels now spawn with random charges between 5-20 decreasing with the power of the shovel.
- Added my original grave digger quest back into system as an optional install.
- Added 2 new shovels increasing your bonus by x6 and x8 these shovels are a part of the grave digger quest but can be used without the quest.
Update 7/30/2011
Special thanks to Iraq- for his feedback on the system for these updates
- System now has a 3 second limit between digs. This also comes with dig animation and sound.
- Added new shovel called "a grave diggers shovel" which has 15 uses and x4 bonus this found in the rare loot table of the system.
- Lowered amounts given to stack-able items.
- System now has a significant chance to not find anything regardless of skill (Cant get something in every swing)
- All skill levels now have a chance to disturb the dead (Spawn monsters)
- Added gold to generic loot table instead of chance to get it with and item.
- Added fertile dirt to the generic loot table.
- Fixed problem with monsters z on spawn.
- System now check to see if your using a sturdy shovel and applies correct bonus.
- Tool bonus now effects the amount of items you dig up including gold.
Allows players to dig for treasures from a grave. The player uses any shovel to dig in a grave using the skills mining to dig for the treasure and forensics to make sense of what they find and recover the treasure. However depending on their skill they might end up disturbing the dead and have nasty creatures of the underworld attacking them.
Currently i have 2 loot tables setup for this system. 1 is a generic item list that includes basic items such as gems, regs, and bones. I plan to add in more generic loot as the system goes on. The 2nd loot table is for rare items such as artifacts. I have 3 times in that loot table which are Axe Of The Heavens, Armor Of Fortune, and Bracelet Of Health. Feel free to change or add to these as you see fit. Drop rates are set based on the players forensics. The player must have over 80 forensics to even have a chance at a rare drop item. A player with 100 forensics will have a 2% chance at a drop before the tool bonus. A normal shovel does not give the player a tool bonus however a sturdy shovel will give the player a x2 bonus to his or her chance at a rare item drop.
Future Plans
- Digging has a chance to spawn a mini boss for player to engage in pve combat for other rare items.
- More Custom items and mobiles for system.
The scripts posted here are for testing only. The drop rates of items have not been fully tested and by be set to high and may over populate items on your server. Please review all drop rates and items dropped to make sure they are suitable for your server before installing these scripts on an active server.
Install
Drop the "FS Grave Digging System" folder into your custom scripts folder.
Only stock file you need to mod is HarvestTarget.cs. Open HarvestTarget.cs and find...
Code:
using Server.Engines.Quests.Hag;
Below add
Code:
using Server.FSGraveDiggingSystem;
Then find...
Code:
if ( qs is WitchApprenticeQuest )
{
FindIngredientObjective obj = qs.FindObjective( typeof( FindIngredientObjective ) ) as FindIngredientObjective;
if ( obj != null && !obj.Completed && obj.Ingredient == Ingredient.Bones )
{
player.SendLocalizedMessage( 1055037 ); // You finish your grim work, finding some of the specific bones listed in the Hag's recipe.
obj.Complete();
return;
}
}
Below add...
Code:
else
{
FSGraveSystem.StartDig( m_Tool, from, targeted );
return;
}
Then close and save it and your all done. Restart your server and get a shovel
To install the Grave digger quest just drop the folders in your customs folder and restart. Once restarted say [genGDQ in game to spawn the quest, Start the quest in brit trammel next to the tavern near main bank.
In Closing
First script i have done in like... 6-7 years so please report any bugs, questions, comments, suggestions and ill get to them asap.
Hope you enjoy!
RoninGT