Go Back   RunUO - Ultima Online Emulation > RunUO > Custom Script Release Archive

Custom Script Release Archive This is a pre-script database archive of what our users had released.

 
 
Thread Tools Display Modes
Old 05-29-2005, 02:21 AM   #1 (permalink)
Xanthos
Guest
 
Posts: n/a
Lightbulb Safe Res Context - no timers - skill control

SafeResContext by Xanthos

This code provides a way to make players invulnerable for a short time upon resurrection so they will not be killed immediately after. It also allows one or more skills to be disabled while players are invulnerable so they wont exploit their temporary safe status. Players stats are restored to full and the death robe is removed. If a player loses connection or logs out while invulnerable they are made mortal again.

This code is server friendly in that it adds no additional timers to the system. It relys on an already implemented periodically called method to make players vulnerable again once the time limit has been reached. This means that it may not be quite as precise as a Timer based res-kill protection feature, but it wont be far off and this is preferred to increasing server lag by adding additional timers.

This feature consists of two parts. A C# class file that is added to your custom folder, and a few lines of code that must be inserted into your PalyerMobile.cs (see PlayerMobileMods.txt).

You are free to use or modify this code in anyway you see fit. I ask that you leave the orginal header intact if you redistribute it in any way.

- Xan
Attached Files
File Type: zip SafeRes 1.3.zip (2.6 KB, 196 views)
 
Old 05-29-2005, 03:30 AM   #2 (permalink)
Master of the Internet
 
bzk90's Avatar
 
Join Date: Jun 2003
Location: Nevada
Age: 18
Posts: 6,630
Send a message via AIM to bzk90 Send a message via MSN to bzk90 Send a message via Yahoo to bzk90
Default

some more detail on exactly what methods would be appreciated xan
bzk90 is offline  
Old 05-29-2005, 04:11 AM   #3 (permalink)
Xanthos
Guest
 
Posts: n/a
Default

Its in the docs.
 
Old 05-29-2005, 04:29 AM   #4 (permalink)
 
Join Date: Jul 2003
Location: Estonia
Age: 23
Posts: 24
Default

After Installation i get this error:
- Error: Scripts\Mobiles\PlayerMobile.cs: CS0117: (line 352, column 34) 'Xantho
s.SafeResContext' does not contain a definition for 'CheckTimer'.
Surm is offline  
Old 05-29-2005, 09:17 AM   #5 (permalink)
Xanthos
Guest
 
Posts: n/a
Default

Looks like I made a change in my PlayerMobile and forgot to merge it back into the text file. In playerMobile.cs change the line:
Code:
if ( null != m_SafeResContext ) m_SafeResContext.CheckTimer( this );	// <- Xanthos Safe Res change this line only

to

if ( null != m_SafeResContext ) m_SafeResContext.Check();	// <- Xanthos Safe Res change this line only
Sorry about that I will upload a new zip file now.
 
Old 06-01-2005, 10:13 AM   #6 (permalink)
Xanthos
Guest
 
Posts: n/a
Default

I fixed a couple of typos, set the player's hits/mana/stam to full and removed the deathrobe in this update.
 
Old 06-14-2005, 06:59 PM   #7 (permalink)
 
Join Date: Aug 2004
Location: 127.0.0.1
Age: 35
Posts: 234
Send a message via ICQ to Thundar
Default

ok i think i found a prob... srry Big X if u die then rez and then use a nearby Inn to insta log off then back on you are perma invulnerable (yellow) nice scipt otherwise
Thundar is offline  
Old 06-14-2005, 08:50 PM   #8 (permalink)
Forum Expert
 
Greystar's Avatar
 
Join Date: Mar 2004
Location: NorthCentral IL, USA
Age: 35
Posts: 3,848
Default

Quote:
Originally Posted by Thundar
ok i think i found a prob... srry Big X if u die then rez and then use a nearby Inn to insta log off then back on you are perma invulnerable (yellow) nice scipt otherwise
thats easy to fix
just add something in OnLogin if AccessLevel == AccessLevel.Player Blessed = false;
that isnt exactly what you'd need to add but it should get you going in the right direction.
__________________
Quote:
(\__/)
(='.'=)This is Bunny. Copy and paste bunny into your
(")_(")signature to help him gain world domination.
Killable Guards (GS Version)
Just a Simple Staff Tool
You can leave me messages.
Ernest Gary Gygax - Quote "I would like the world to remember me as the guy who really enjoyed playing games and sharing his knowledge and his fun pastimes with everybody else."
Greystar is offline  
Old 06-15-2005, 03:22 AM   #9 (permalink)
Xanthos
Guest
 
Posts: n/a
Default

Quote:
Originally Posted by Thundar
ok i think i found a prob... srry Big X if u die then rez and then use a nearby Inn to insta log off then back on you are perma invulnerable (yellow) nice scipt otherwise
I have a couple ideas on a good fix for this - I will post an update soon.
 
Old 06-17-2005, 02:16 PM   #10 (permalink)
Xanthos
Guest
 
Posts: n/a
Default

Quote:
Originally Posted by Greystar
thats easy to fix
just add something in OnLogin if AccessLevel == AccessLevel.Player Blessed = false;
that isnt exactly what you'd need to add but it should get you going in the right direction.
Greystar, I feel that EventSink_Disconnected is the better place for this, since its is where the design context is handled - it seems to fit the same model as the safe rez context. I would rather catch the user on the way out of the shard than on the way in. Comments?
 
Old 06-18-2005, 02:06 AM   #11 (permalink)
Forum Expert
 
Greystar's Avatar
 
Join Date: Mar 2004
Location: NorthCentral IL, USA
Age: 35
Posts: 3,848
Default

Quote:
Originally Posted by Xanthos
Greystar, I feel that EventSink_Disconnected is the better place for this, since its is where the design context is handled - it seems to fit the same model as the safe rez context. I would rather catch the user on the way out of the shard than on the way in. Comments?

I was only offering a suggestion. It was where i had my check, since I have something that offers 2 minutes invuln so they can get back to there corpse and get their stuff... but your method would be fine. It is your script afterall.
__________________
Quote:
(\__/)
(='.'=)This is Bunny. Copy and paste bunny into your
(")_(")signature to help him gain world domination.
Killable Guards (GS Version)
Just a Simple Staff Tool
You can leave me messages.
Ernest Gary Gygax - Quote "I would like the world to remember me as the guy who really enjoyed playing games and sharing his knowledge and his fun pastimes with everybody else."
Greystar is offline  
Old 06-18-2005, 03:32 PM   #12 (permalink)
Xanthos
Guest
 
Posts: n/a
Default

I appreciate your feedback. I added the check to make the player mortal again if they log out or lose connection - version 1.3 above.
 
Old 12-02-2005, 06:19 AM   #13 (permalink)
Forum Expert
 
Sparkin's Avatar
 
Join Date: Dec 2005
Location: Missouri , USA
Age: 38
Posts: 256
Default Smooth Upgrade

Installed the new version and went off with out a hitch,,... once again another Smooth Script
Great Job Xanthos, Keep up the good work

Sparkin
Sparkin is offline  
Old 12-06-2005, 04:30 PM   #14 (permalink)
Forum Novice
 
Ryan_2005's Avatar
 
Join Date: Nov 2005
Location: North Carolina
Age: 20
Posts: 195
Default

Nice script man really helped my server thier is No more reskilling now
Ryan_2005 is offline  
 

Bookmarks


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

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off



Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0 RC5