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 02-06-2008, 12:01 PM   #176 (permalink)
Forum Novice
 
Mideon's Avatar
 
Join Date: May 2005
Location: Canada
Age: 24
Posts: 543
Default

I think I fixed the issue. Haven't tested it a whole lot yet, but pretty sure I got it.

Turns out the system was setting the timer properly, and then making a shotgun call to restart the timer.

Essentially in TownHouseSign.cs I changed

Code:
if (c_RentTime > DateTime.Now)
            {
                BeginRentTimer(c_RentTime - DateTime.Now);
            }
            
            Timer.DelayCall(TimeSpan.Zero, new TimerCallback(StartTimers));
to

Code:
bool flag = true;
            if (c_RentTime > DateTime.Now)
            {
                flag = false;
                BeginRentTimer(c_RentTime - DateTime.Now);
            }

            if(flag) //aka hasn't already started the timer for rent....
                Timer.DelayCall(TimeSpan.Zero, new TimerCallback(StartTimers));
All I did was add in a small flag to see if the timer had actually attempted to persist over the worldsave, if so, then the sweeping timer start call is not triggered.
__________________
A sense of community is the lifeblood of RunUO.
http://www.runuo.com/forums/announcements/67400-something-all-you-chew.html

Satire, man's greatest weapon (Flame Wars!)

The darkness is patient and in the end it always wins...but even the smallest light can overcome the blackest shadow.
Mideon is offline   Reply With Quote
Old 02-08-2008, 08:47 PM   #177 (permalink)
Newbie
 
Join Date: Jun 2003
Location: Nowhere,Tennessee
Age: 23
Posts: 34
Send a message via ICQ to earthandskyruler
Default Incompatible with RunUO 2.0 RC2

I'm using build 2.0 RC2 and I the following error with GumpResponse.cs
Code:
    
CS0266: Line 28: Cannot implicitly convert type 'System.Collections.Generic.
IEnumerable<Server.Gumps.Gump>' to 'System.Collections.Generic.List<Server.Gumps
.Gump>'. An explicit conversion exists (are you missing a cast?)
earthandskyruler is offline   Reply With Quote
Old 02-13-2008, 01:39 PM   #178 (permalink)
Forum Novice
 
Join Date: Jun 2003
Location: Kalkaska, MI
Age: 23
Posts: 104
Send a message via Yahoo to TalRave
Default

Quote:
Originally Posted by earthandskyruler View Post
I'm using build 2.0 RC2 and I the following error with GumpResponse.cs
Code:
    
CS0266: Line 28: Cannot implicitly convert type 'System.Collections.Generic.
IEnumerable<Server.Gumps.Gump>' to 'System.Collections.Generic.List<Server.Gumps
.Gump>'. An explicit conversion exists (are you missing a cast?)
Yep, same error here with clean install, so it's very likely an RC2 compatability issue.
TalRave is offline   Reply With Quote
Old 02-13-2008, 07:37 PM   #179 (permalink)
Forum Novice
 
Join Date: Feb 2008
Age: 27
Posts: 139
Default

Quote:
Originally Posted by TalRave View Post
Yep, same error here with clean install, so it's very likely an RC2 compatability issue.
That issue is addressed and a fix is given on page 7 of this thread.
Miller. is offline   Reply With Quote
Old 02-14-2008, 12:16 AM   #180 (permalink)
Forum Novice
 
Join Date: Jun 2003
Location: Kalkaska, MI
Age: 23
Posts: 104
Send a message via Yahoo to TalRave
Default

Quote:
Originally Posted by Miller. View Post
That issue is addressed and a fix is given on page 7 of this thread.
thanks. I should know by now to dig deeper than last page. Hmm... doing exactly as it said, i get:

Code:
Errors:
 + Customs/Town Houses v2.01/Gumps/Gumps Plus Light/GumpPlusLight.cs:
    CS0115: Line 49: 'Knives.TownHouses.GumpPlusLight.Clear()': no suitable meth
od found to override
I get rid of the override and get

Code:
Errors:
 + Customs/Town Houses v2.01/Gumps/Gumps Plus Light/GumpPlusLight.cs:
    CS0117: Line 55: 'Server.Gumps.Gump' does not contain a definition for 'Clea
r'

Last edited by TalRave; 02-14-2008 at 12:25 AM.
TalRave is offline   Reply With Quote
Old 02-20-2008, 11:20 PM   #181 (permalink)
Forum Novice
 
Join Date: Feb 2008
Age: 27
Posts: 139
Default

Make the change to GumpResponse.cs but do not make the change to GumpPlusLight.cs. If you made the change to GumpPlusLight.cs, revert it back to original. No problems that way, and I'm running SVN 286.
Miller. is offline   Reply With Quote
Old 02-21-2008, 08:50 PM   #182 (permalink)
Forum Novice
 
Join Date: Jun 2003
Location: Kalkaska, MI
Age: 23
Posts: 104
Send a message via Yahoo to TalRave
Default

Quote:
Originally Posted by Miller. View Post
Make the change to GumpResponse.cs but do not make the change to GumpPlusLight.cs. If you made the change to GumpPlusLight.cs, revert it back to original. No problems that way, and I'm running SVN 286.
Works like a charm. You have my thanks.
TalRave is offline   Reply With Quote
Old 02-22-2008, 12:13 AM   #183 (permalink)
Forum Novice
 
Join Date: Feb 2008
Age: 27
Posts: 139
Default

No problem whatsoever. Glad I could help!
Miller. is offline   Reply With Quote
Old 03-16-2008, 01:14 PM   #184 (permalink)
Newbie
 
Join Date: Mar 2008
Age: 23
Posts: 18
Default

Hi, im running RunUO 2.0 RC2 with additional scripts Knives Chat 3.0 Beta 9, TMSS v4.0.7.

when i install the Town Houses v2.01 i get this warnings and errors.

Code:
RunUO - [www.runuo.com] Version 2.0, Build 2959.20979
Core: Running on .NET Framework Version 2.0.50727
Scripts: Compiling C# scripts...failed (1 errors, 3 warnings)
Warnings:
 + Costums/Knives Chat 3.0 Beta 9/Knives Chat 3.0 Beta 9/General/MultiConnection
.cs:
    CS0168: Line 65: The variable 'e' is declared but never used
    CS0168: Line 134: The variable 'e' is declared but never used
    CS0168: Line 165: The variable 'e' is declared but never used
    CS0168: Line 184: The variable 'e' is declared but never used
    CS0168: Line 201: The variable 'e' is declared but never used
    CS0168: Line 252: The variable 'e' is declared but never used
 + Costums/Knives Chat 3.0 Beta 9/Knives Chat 3.0 Beta 9/Gumps/Error Reporting/E
rrors.cs:
    CS0618: Line 91: 'System.Web.Mail.MailMessage' is obsolete: 'The recommended
 alternative is System.Net.Mail.MailMessage. http://go.microsoft.com/fwlink/?lin
kid=14202'
    CS0618: Line 91: 'System.Web.Mail.MailMessage' is obsolete: 'The recommended
 alternative is System.Net.Mail.MailMessage. http://go.microsoft.com/fwlink/?lin
kid=14202'
    CS0618: Line 102: 'System.Web.Mail.SmtpMail' is obsolete: 'The recommended a
lternative is System.Net.Mail.SmtpClient. http://go.microsoft.com/fwlink/?linkid
=14202'
 + Costums/TMSS v4.0.7/Control/SkillReplacement.cs:
    CS0429: Line 12: Unreachable expression code detected
    CS0162: Line 14: Unreachable code detected
Errors:
 + Costums/Town Houses v2.01/Misc/GumpResponse.cs:
    CS0266: Line 28: Cannot implicitly convert type 'System.Collections.Generic.
IEnumerable<Server.Gumps.Gump>' to 'System.Collections.Generic.List<Server.Gumps
.Gump>'. An explicit conversion exists (are you missing a cast?)
Scripts: One or more scripts failed to compile or no script files were found.
 - Press return to exit, or R to try again.
This does not happen when i remove Town Houses v2.01, no warnings or errors.
Calidor is offline   Reply With Quote
Old 03-16-2008, 01:26 PM   #185 (permalink)
Forum Expert
 
Greystar's Avatar
 
Join Date: Mar 2004
Location: NorthCentral IL, USA
Age: 35
Posts: 3,848
Default

Quote:
Originally Posted by Calidor View Post
Hi, im running RunUO 2.0 RC2 with additional scripts Knives Chat 3.0 Beta 9, TMSS v4.0.7.

when i install the Town Houses v2.01 i get this warnings and errors.

Code:
RunUO - [www.runuo.com] Version 2.0, Build 2959.20979
Core: Running on .NET Framework Version 2.0.50727
Scripts: Compiling C# scripts...failed (1 errors, 3 warnings)
Warnings:
 + Costums/Knives Chat 3.0 Beta 9/Knives Chat 3.0 Beta 9/General/MultiConnection
.cs:
    CS0168: Line 65: The variable 'e' is declared but never used
    CS0168: Line 134: The variable 'e' is declared but never used
    CS0168: Line 165: The variable 'e' is declared but never used
    CS0168: Line 184: The variable 'e' is declared but never used
    CS0168: Line 201: The variable 'e' is declared but never used
    CS0168: Line 252: The variable 'e' is declared but never used
 + Costums/Knives Chat 3.0 Beta 9/Knives Chat 3.0 Beta 9/Gumps/Error Reporting/E
rrors.cs:
    CS0618: Line 91: 'System.Web.Mail.MailMessage' is obsolete: 'The recommended
 alternative is System.Net.Mail.MailMessage. http://go.microsoft.com/fwlink/?lin
kid=14202'
    CS0618: Line 91: 'System.Web.Mail.MailMessage' is obsolete: 'The recommended
 alternative is System.Net.Mail.MailMessage. http://go.microsoft.com/fwlink/?lin
kid=14202'
    CS0618: Line 102: 'System.Web.Mail.SmtpMail' is obsolete: 'The recommended a
lternative is System.Net.Mail.SmtpClient. http://go.microsoft.com/fwlink/?linkid
=14202'
 + Costums/TMSS v4.0.7/Control/SkillReplacement.cs:
    CS0429: Line 12: Unreachable expression code detected
    CS0162: Line 14: Unreachable code detected
Errors:
 + Costums/Town Houses v2.01/Misc/GumpResponse.cs:
    CS0266: Line 28: Cannot implicitly convert type 'System.Collections.Generic.
IEnumerable<Server.Gumps.Gump>' to 'System.Collections.Generic.List<Server.Gumps
.Gump>'. An explicit conversion exists (are you missing a cast?)
Scripts: One or more scripts failed to compile or no script files were found.
 - Press return to exit, or R to try again.
This does not happen when i remove Town Houses v2.01, no warnings or errors.
Just to let you know Warnings are probably there unless its related to the file(s) you just installed. The only time you see warnings is if you have errors. I haven't seen support for this in a while so it may be that you are trying to install this in a version of RunUO that it wasn't written for... Like you are using RC2 and this was written for Runuo 2.0 or RC1 then it may not work without modification.
__________________
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   Reply With Quote
Old 03-16-2008, 01:32 PM   #186 (permalink)
Newbie
 
Join Date: Mar 2008
Age: 23
Posts: 18
Default

Ahh, so that's it. Well i've no idea how to modify the script to run on RC2 so, if you can recomend me a script that would work with RC2?
Calidor is offline   Reply With Quote
Old 03-16-2008, 01:46 PM   #187 (permalink)
Forum Expert
 
Greystar's Avatar
 
Join Date: Mar 2004
Location: NorthCentral IL, USA
Age: 35
Posts: 3,848
Default

Quote:
Originally Posted by Calidor View Post
Ahh, so that's it. Well i've no idea how to modify the script to run on RC2 so, if you can recomend me a script that would work with RC2?
A script like this? Doesn't exist yet. I haven't seen KM around here in a while so who knows IF it will ever get updated.
__________________
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   Reply With Quote
Old 03-16-2008, 02:18 PM   #188 (permalink)
Newbie
 
Join Date: Mar 2008
Age: 23
Posts: 18
Default

Actualy im looking for a script that would allow players to buy static houses, put lockdowns, containers and secures in it, that's all. There's no available script like this?
Calidor is offline   Reply With Quote
Old 03-16-2008, 02:37 PM   #189 (permalink)
Forum Expert
 
Johabius's Avatar
 
Join Date: Dec 2004
Location: Kansas, USA
Age: 38
Posts: 4,964
Send a message via ICQ to Johabius Send a message via Yahoo to Johabius
Default

Quote:
Originally Posted by Calidor View Post
Actualy im looking for a script that would allow players to buy static houses, put lockdowns, containers and secures in it, that's all. There's no available script like this?
There is a fix available for this error: as explained in this post [2.0 RC1, 1.0 Final] Knives' TownHouses 2.0

Errors:
Code:
+ Costums/Town Houses v2.01/Misc/GumpResponse.cs:
    CS0266: Line 28: Cannot implicitly convert type 'System.Collections.Generic.
IEnumerable<Server.Gumps.Gump>' to 'System.Collections.Generic.List<Server.Gumps
.Gump>'. An explicit conversion exists (are you missing a cast?)
Scripts: One or more scripts failed to compile or no script files were found.
 - Press return to exit, or R to try again.
Change line 28 to look like this instead:
Code:
// List<Gump> gumps = state.Gumps;
            List<Gump> gumps = ((List<Gump>)state.Gumps);
I'm running this on SVN 286 with MLSVN 142 with no problems.
__________________
In some cases stupid makes you win-Radwen
Johabius is offline   Reply With Quote
Old 03-16-2008, 03:57 PM   #190 (permalink)
Forum Expert
 
Greystar's Avatar
 
Join Date: Mar 2004
Location: NorthCentral IL, USA
Age: 35
Posts: 3,848
Default

Quote:
Originally Posted by Calidor View Post
Actualy im looking for a script that would allow players to buy static houses, put lockdowns, containers and secures in it, that's all. There's no available script like this?
Yes this is what you are looking for but none updated to RC2, Johabius' post might hold the answer to the error you where having. Again there hasn't been author support for this for a while.
__________________
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   Reply With Quote
Old 03-16-2008, 04:21 PM   #191 (permalink)
Newbie
 
Join Date: Mar 2008
Age: 23
Posts: 18
Default

i got it to work now, thanks
Calidor is offline   Reply With Quote
Old 03-17-2008, 02:00 PM   #192 (permalink)
Newbie
 
Join Date: Mar 2008
Age: 23
Posts: 18
Default

This is amazing system i like very much! But i seem cant to figure out how to flip the house sign to turn east. The buy sign flips ok tho.
Calidor is offline   Reply With Quote
Old 03-17-2008, 02:18 PM   #193 (permalink)
Forum Expert
 
Greystar's Avatar
 
Join Date: Mar 2004
Location: NorthCentral IL, USA
Age: 35
Posts: 3,848
Default

Quote:
Originally Posted by Calidor View Post
This is amazing system i like very much! But i seem cant to figure out how to flip the house sign to turn east. The buy sign flips ok tho.
What I've done is change the signs actual ItemID. Otherwise I think that was something that KM was working on possibly adding but hasn't done it yet.
__________________
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   Reply With Quote
Old 03-17-2008, 04:22 PM   #194 (permalink)
Newbie
 
Join Date: Mar 2008
Age: 23
Posts: 18
Default

ah, ok, so there's a way , but could you explain a bit more to what i should change itemID to?
Calidor is offline   Reply With Quote
Old 03-17-2008, 04:45 PM   #195 (permalink)
Forum Expert
 
Greystar's Avatar
 
Join Date: Mar 2004
Location: NorthCentral IL, USA
Age: 35
Posts: 3,848
Default

Quote:
Originally Posted by Calidor View Post
ah, ok, so there's a way , but could you explain a bit more to what i should change itemID to?
Just try one less or one higher then it is now. The sign will visibly change so you can see what it looks like.
__________________
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   Reply With Quote
Old 03-17-2008, 05:11 PM   #196 (permalink)
Newbie
 
Join Date: Mar 2008
Age: 23
Posts: 18
Default

ok il try that.
Calidor is offline   Reply With Quote
Old 03-18-2008, 11:52 PM   #197 (permalink)
Newbie
 
Join Date: Sep 2006
Age: 19
Posts: 38
Default

RUNUO RC2 2.0

I make this change to work with the RC2
// List<Gump> gumps = state.Gumps;
List<Gump> gumps = ((List<Gump>)state.Gumps);

Its works fine, but only staff members become allowed to log in... every other clients disconects automatic.... what is hapening?
dotosco is offline   Reply With Quote
Old 03-19-2008, 08:32 AM   #198 (permalink)
Newbie
 
Join Date: Mar 2008
Age: 23
Posts: 18
Default

The ItemID trick worked to turn the sign the other way but, after the house is purchased the sign goes back to default position.
Calidor is offline   Reply With Quote
Old 03-19-2008, 02:54 PM   #199 (permalink)
Forum Expert
 
Johabius's Avatar
 
Join Date: Dec 2004
Location: Kansas, USA
Age: 38
Posts: 4,964
Send a message via ICQ to Johabius Send a message via Yahoo to Johabius
Default

Quote:
Originally Posted by dotosco View Post
RUNUO RC2 2.0

I make this change to work with the RC2
// List<Gump> gumps = state.Gumps;
List<Gump> gumps = ((List<Gump>)state.Gumps);

Its works fine, but only staff members become allowed to log in... every other clients disconects automatic.... what is hapening?
I don't see how these changes could make that happen. Has anything else changed on your server recently like client updates, etc. ?
__________________
In some cases stupid makes you win-Radwen
Johabius is offline   Reply With Quote
Old 03-19-2008, 03:08 PM   #200 (permalink)
Newbie
 
Join Date: Sep 2006
Age: 19
Posts: 38
Default

nops... clean core and clean clients
dotosco is offline   Reply With Quote
Reply