Go Back   RunUO - Ultima Online Emulation > RunUO > Custom Script Releases

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.

Reply
 
Thread Tools Display Modes
Old 05-26-2008, 03:06 AM   #1 (permalink)
Forum Expert
 
krazeykow's Avatar
 
Join Date: Mar 2004
Location: AR
Age: 18
Posts: 272
Lightbulb Corpse Retrieval System 3.0

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
Attached Files
File Type: cs CorpseRetrievalPackage.cs (26.3 KB, 44 views)
File Type: cs CorpseRetrievalPackage_UsingXMLSpawner.cs (31.7 KB, 23 views)
__________________
<Moo>krazeykow</Moo>
I learned C# with RunUO.

Last edited by krazeykow; 08-13-2008 at 05:16 PM.
krazeykow is offline   Reply With Quote
Old 05-26-2008, 03:07 AM   #2 (permalink)
Forum Expert
 
krazeykow's Avatar
 
Join Date: Mar 2004
Location: AR
Age: 18
Posts: 272
Default

Previous Users need not Reinstall

Version 3.0 - Simple Drag and Drop

Last edited by krazeykow; 08-10-2008 at 05:42 PM.
krazeykow is offline   Reply With Quote
Old 05-26-2008, 06:23 AM   #3 (permalink)
Forum Expert
 
Liacs's Avatar
 
Join Date: Mar 2004
Location: Belgium / Germany
Age: 31
Posts: 1,008
Send a message via MSN to Liacs
Thumbs up

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!
Liacs is offline   Reply With Quote
Old 05-26-2008, 08:20 AM   #4 (permalink)
Newbie
 
Rhionnan's Avatar
 
Join Date: Feb 2004
Location: Canada
Age: 42
Posts: 68
Default

Great script that works well, Thanks for sharing.
Rhionnan is offline   Reply With Quote
Old 05-26-2008, 09:01 AM   #5 (permalink)
Forum Expert
 
Liacs's Avatar
 
Join Date: Mar 2004
Location: Belgium / Germany
Age: 31
Posts: 1,008
Send a message via MSN to Liacs
Default

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!
Liacs is offline   Reply With Quote
Old 05-26-2008, 10:07 AM   #6 (permalink)
Forum Novice
 
Hanse_T_Insane's Avatar
 
Join Date: Jan 2007
Location: Mount Morris New York
Age: 46
Posts: 215
Send a message via Skype™ to Hanse_T_Insane
Default

Same here, the zip is not working.
Hanse_T_Insane is offline   Reply With Quote
Old 05-26-2008, 10:42 AM   #7 (permalink)
Newbie
 
Rhionnan's Avatar
 
Join Date: Feb 2004
Location: Canada
Age: 42
Posts: 68
Default

the steps to fixing this

1. extract file
2. rename extract file and add .zip
3. extract new zip file

all should be good

RunUO forums on occasion double zip uploaded files
Rhionnan is offline   Reply With Quote
Old 05-26-2008, 01:24 PM   #8 (permalink)
Forum Novice
 
Join Date: Jan 2006
Posts: 191
Default

Nice script. I'll definately check this one out. +Karma
razzles is offline   Reply With Quote
Old 05-26-2008, 06:31 PM   #9 (permalink)
Forum Expert
 
krazeykow's Avatar
 
Join Date: Mar 2004
Location: AR
Age: 18
Posts: 272
Default 2.0.1

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.
krazeykow is offline   Reply With Quote
Old 05-26-2008, 06:49 PM   #10 (permalink)
Forum Novice
 
Hanse_T_Insane's Avatar
 
Join Date: Jan 2007
Location: Mount Morris New York
Age: 46
Posts: 215
Send a message via Skype™ to Hanse_T_Insane
Default

I will give it a try and let you know how it goes.
Hanse_T_Insane is offline   Reply With Quote
Old 05-26-2008, 06:58 PM   #11 (permalink)
Forum Novice
 
Hanse_T_Insane's Avatar
 
Join Date: Jan 2007
Location: Mount Morris New York
Age: 46
Posts: 215
Send a message via Skype™ to Hanse_T_Insane
Default

Works fine but where does the 'revival' center show?
Hanse_T_Insane is offline   Reply With Quote
Old 05-26-2008, 07:05 PM   #12 (permalink)
Forum Expert
 
krazeykow's Avatar
 
Join Date: Mar 2004
Location: AR
Age: 18
Posts: 272
Default

Quote:
Originally Posted by Hanse_T_Insane View Post
Works fine but where does the 'revival' center show?
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.
krazeykow is offline   Reply With Quote
Old 05-26-2008, 07:51 PM   #13 (permalink)
Forum Novice
 
Join Date: Jun 2004
Location: Mesa, AZ
Age: 40
Posts: 177
Send a message via Yahoo to Soultaker
Thumbs up

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
__________________
Special Thanks to Liacs for Scripts & Modero for Sig
Soultaker is offline   Reply With Quote
Old 05-26-2008, 10:59 PM   #14 (permalink)
Forum Novice
 
Hanse_T_Insane's Avatar
 
Join Date: Jan 2007
Location: Mount Morris New York
Age: 46
Posts: 215
Send a message via Skype™ to Hanse_T_Insane
Default

I agree, its a wounderful script, I mis understood the post, but I am enjoying this alot. I have placed them in the harder area's myself.
Hanse_T_Insane is offline   Reply With Quote
Old 05-27-2008, 06:02 PM   #15 (permalink)
Account Terminated
 
Join Date: Jul 2006
Age: 29
Posts: 240
Default

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.
Zaphieon is offline   Reply With Quote
Old 05-27-2008, 06:08 PM   #16 (permalink)
Forum Expert
 
krazeykow's Avatar
 
Join Date: Mar 2004
Location: AR
Age: 18
Posts: 272
Default

Quote:
Originally Posted by Zaphieon View Post
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.
Brilliant Idea!! Should it be based on fame?? Or increases based on account's age... then maxes at a certain point.

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));
        }
Change (m_CorpsePrice) based on (m)'s fame... if this makes sense.


**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.
krazeykow is offline   Reply With Quote
Old 05-27-2008, 08:19 PM   #17 (permalink)
Account Terminated
 
Join Date: Jul 2006
Age: 29
Posts: 240
Default

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));
		}
        }
Zaphieon is offline   Reply With Quote
Old 05-28-2008, 07:00 PM   #18 (permalink)
Forum Expert
 
krazeykow's Avatar
 
Join Date: Mar 2004
Location: AR
Age: 18
Posts: 272
Default

You would want to create a local variable using as operator.. I'm not super familiar with C#

Code:
PlayerMobile pm = m as PlayerMobile;
If you run into anymore problems, just make a submission in script support ..sorry for the slow response, : )

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.
krazeykow is offline   Reply With Quote
Old 06-09-2008, 08:20 PM   #19 (permalink)
Newbie
 
migzilla's Avatar
 
Join Date: Mar 2006
Location: In a Hole
Age: 37
Posts: 46
Default corpse books

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
migzilla is offline   Reply With Quote
Old 06-09-2008, 10:59 PM   #20 (permalink)
Account Terminated
 
Join Date: Jul 2006
Age: 29
Posts: 240
Default

Quote:
Originally Posted by migzilla View Post
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
corpse books are not visible to players. they hold the info for the players corpses. i personally am not seeing books drop where they die.. maybe something is off in your script.
Zaphieon is offline   Reply With Quote
Old 06-10-2008, 03:10 PM   #21 (permalink)
Forum Expert
 
krazeykow's Avatar
 
Join Date: Mar 2004
Location: AR
Age: 18
Posts: 272
Default Update

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.
krazeykow is offline   Reply With Quote
Old 06-10-2008, 03:11 PM   #22 (permalink)
Forum Expert
 
krazeykow's Avatar
 
Join Date: Mar 2004
Location: AR
Age: 18
Posts: 272
Default Updated to 2.0.2

Updated to 2.0.2

**Protection against backpack removed and player dies, causing crash.
__________________
<Moo>krazeykow</Moo>
I learned C# with RunUO.
krazeykow is offline   Reply With Quote
Old 06-11-2008, 12:44 AM   #23 (permalink)
Forum Expert
 
Join Date: Dec 2006
Location: Southern Utah
Posts: 657
Send a message via Yahoo to greywolf79
Default

Looks cool. I look forward to trying it out. Keep up the good work.

GreyWolf.
greywolf79 is online now   Reply With Quote
Old 08-10-2008, 05:48 PM   #24 (permalink)
Forum Expert
 
krazeykow's Avatar
 
Join Date: Mar 2004
Location: AR
Age: 18
Posts: 272
Default Now simple drag and drop!

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.
krazeykow is offline   Reply With Quote
Old 08-10-2008, 08:37 PM   #25 (permalink)
Forum Expert
 
Erica's Avatar
 
Join Date: Jan 2005
Location: Laramie Wyoming
Age: 43
Posts: 1,256
Send a message via ICQ to Erica Send a message via AIM to Erica Send a message via MSN to Erica Send a message via Yahoo to Erica Send a message via Skype™ to Erica
Default

Question whats the book for are we suppose to give it to players or just add the corpse summoner ?
__________________
Erica is online now   Reply With Quote
Reply

Bookmarks

Tags
corpse, dead, resurrection, revive, system


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes