|
||
|
|||||||
| Custom Script Releases This forum is where you can release your custom scripts for other users to use. Please note: By releasing your scripts here you are submitting them to the public and as such agree to make them public domain. The RunUO Team has made its software GPL for you to use and enjoy you should do the same for anything based off of RunUO. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 (permalink) |
|
Forum Expert
Join Date: Mar 2004
Location: AR
Age: 18
Posts: 272
|
Corpse Retrieval System 3.0 ![]() Supported Versions: RunUO 2.0 [RC1 & RC2] Updated to Drag and Drop Installation - Previous Users need not Reinstall *Special thanks to Vorspire for showing me the death delegate. Summary Do players complain about spending countless hours running to their corpse? The solution has arrived with the interactive corpse summoner. With an adjustable price, the summoner will list the last five corpses with loot for the player to choose from. The readout gives Time Life | Items Present | Gold Present, to help the player choose the best corpse. When selected, the corpse will be brought to the player's location. Features *Requires no core modifications *Remembers the last five corpses with loot *Through [props - becomes banker, healer, priced healer *Cleans empty corpses to improve server performance *Provides 'role-play' like summons for RP servers Installation Two Choices: CorpseRetrievalPackage - Without those with XML spawner, however an invisible item is added to player's backpack to keep track of corpses. CorpseRetrievalPackage_UsingXMLSpawner - An invisible item will not be added to player's backpack, but XML Spawner is required. - Thanks to datguy [add corpsesummoner
__________________
<Moo>krazeykow</Moo> I learned C# with RunUO. Last edited by krazeykow; 08-13-2008 at 05:16 PM. |
|
|
|
|
|
#3 (permalink) |
|
Forum Expert
|
This looks great! Nice idea! I will try it out tonight.
Thanks for the submission. +Karma Lia
__________________
;)My C# Bookshelf (carpented by Soultaker);) BTW: Please ask questions in the adequat forum and not on a private message! Otherwise nobody can learn from it!
|
|
|
|
|
|
#5 (permalink) |
|
Forum Expert
|
These zip file problems are starting to annoy me. Could you please attach the file as a .cs? I cannot access the .zip.
Thanks a lot! Lia
__________________
;)My C# Bookshelf (carpented by Soultaker);) BTW: Please ask questions in the adequat forum and not on a private message! Otherwise nobody can learn from it!
|
|
|
|
|
|
#9 (permalink) |
|
Forum Expert
Join Date: Mar 2004
Location: AR
Age: 18
Posts: 272
|
UPDATED to version 2.0.1
***Note to users upgrading from 2.0 - Remove all files associated with version 2.0 AND *A slight modification has been made from older PlayerMobile.cs Modification (This is due to packaging the program)
__________________
<Moo>krazeykow</Moo> I learned C# with RunUO. |
|
|
|
|
|
#12 (permalink) |
|
Forum Expert
Join Date: Mar 2004
Location: AR
Age: 18
Posts: 272
|
You can access 'revival' options through the mobs properties... I think I may need to clear that up, the mob (CorpseSummoner) itself is the 'revival center'
Updated the information, thanks : )
__________________
<Moo>krazeykow</Moo> I learned C# with RunUO. Last edited by krazeykow; 05-26-2008 at 07:12 PM. |
|
|
|
|
|
#13 (permalink) |
|
Forum Novice
|
I love this!!!! the option for retrieving 1 of 5 corpses is great!!! and i really like the part that shows you if you actually have anything on the corpse in the first place.
Thanks again for the awesome Submission Soultaker
__________________
:eek: Custom Script Databaseor C# Script Cache :eek: Special Thanks to Liacs for Scripts & Modero for Sig
|
|
|
|
|
|
#15 (permalink) |
|
Account Terminated
Join Date: Jul 2006
Age: 29
Posts: 240
|
been attempting to alter the price a bit differently.. maybe you can help me out alittle
I am trying to get the price to basically scale with the players Fame.. there for new players wouldnt be charge as much as some richer players. and i like this idea alot. |
|
|
|
|
|
#16 (permalink) | |
|
Forum Expert
Join Date: Mar 2004
Location: AR
Age: 18
Posts: 272
|
Quote:
If you're going to do this fame idea //Line 399 Code:
public void GetCorpse(Mobile m)
{
m.CloseGump(typeof(CorpseMenu));
m.SendGump(new CorpseMenu(m, m_CorpsePrice, this));
}
**Edit** I like the idea of varying price based on fame/accnt age ... I'm trying to think how to make this user editable. I"m thinking: It will cost less based on player skills (the script will automatically find max skills of server then let Admin choose increment of price by amount of skill.)
__________________
<Moo>krazeykow</Moo> I learned C# with RunUO. Last edited by krazeykow; 05-27-2008 at 06:22 PM. |
|
|
|
|
|
|
#17 (permalink) |
|
Account Terminated
Join Date: Jul 2006
Age: 29
Posts: 240
|
ok this is what i did bud.. with this code you can still adjust the price. just set it low for example
setting the corpse price at 5 would result in a 5k corpse retrieval for a Lord or lady. but for a new player very low.. say 500 fame would be 5 * 500 / 10 = 250g Code:
public void GetCorpse(Mobile m)
{
m.CloseGump(typeof(CorpseMenu));
m.SendGump(new CorpseMenu(m, (m_CorpsePrice * m.Fame / 10), this));
}
This is what i am trying to get to work.. but i am a bit rusty and dont know how to make it work to playermobile for the Young check Code:
public void GetCorpse(Mobile m)
{
pm = (PlayerMobile)m;
if ( pm.Young = true )
{
m.CloseGump(typeof(CorpseMenu));
m.SendGump(new CorpseMenu(m, m_CorpsePrice * 0, this));
m.SendMessage( "Young one, I shall retrieve your corpse free of charge.");
}
else
{
m.CloseGump(typeof(CorpseMenu));
m.SendGump(new CorpseMenu(m, (m_CorpsePrice * m.Fame / 10), this));
}
}
|
|
|
|
|
|
#18 (permalink) |
|
Forum Expert
Join Date: Mar 2004
Location: AR
Age: 18
Posts: 272
|
You would want to create a local variable using as operator.. I'm not super familiar with C#
Code:
PlayerMobile pm = m as PlayerMobile; Also updated picture to show more of the summoner and his minion in action... (I love to see reaction of players when the minion morphs) : -)
__________________
<Moo>krazeykow</Moo> I learned C# with RunUO. Last edited by krazeykow; 05-28-2008 at 07:03 PM. |
|
|
|
|
|
#19 (permalink) |
|
Newbie
Join Date: Mar 2006
Location: In a Hole
Age: 37
Posts: 46
|
Love this system but I have a question concerning the corpse books. I have been watching the people who use them and the corpse books that drop where they die don't seem to decay. Is this intentional and if yes could the purpose be explained a bit so I can set a timer for their decay without disrupting the rest of the system.
Thanks ![]() |
|
|
|
|
|
#20 (permalink) | |
|
Account Terminated
Join Date: Jul 2006
Age: 29
Posts: 240
|
Quote:
|
|
|
|
|
|
|
#21 (permalink) |
|
Forum Expert
Join Date: Mar 2004
Location: AR
Age: 18
Posts: 272
|
migzilla, please make sure you have the latest version installed... the books are blessed and should not be dropping from corpse. Make sure you don't have a conflicting script either.. that would set everything to regular loottype.
__________________
<Moo>krazeykow</Moo> I learned C# with RunUO. |
|
|
|
|
|
#24 (permalink) |
|
Forum Expert
Join Date: Mar 2004
Location: AR
Age: 18
Posts: 272
|
For those hesitant to modify core RunUO Files, I have now made this installation drag and drop. - Thanks Vorspire for showing me the death delegate
Previous users need not reinstall
__________________
<Moo>krazeykow</Moo> I learned C# with RunUO. |
|
|
|
![]() |
| Bookmarks |
| Tags |
| corpse, dead, resurrection, revive, system |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|