|
||
|
|||||||
| 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 |
|
|
#176 (permalink) |
|
Forum Novice
Join Date: May 2005
Location: Canada
Age: 24
Posts: 543
|
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));
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));
__________________
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. |
|
|
|
|
|
#177 (permalink) |
|
Newbie
|
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?) |
|
|
|
|
|
#178 (permalink) | |
|
Forum Novice
|
Quote:
|
|
|
|
|
|
|
#180 (permalink) | |
|
Forum Novice
|
Quote:
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
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. |
|
|
|
|
|
|
#184 (permalink) |
|
Newbie
Join Date: Mar 2008
Age: 23
Posts: 18
|
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.
|
|
|
|
|
|
#185 (permalink) | ||
|
Forum Expert
Join Date: Mar 2004
Location: NorthCentral IL, USA
Age: 35
Posts: 3,848
|
Quote:
__________________
Quote:
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." |
||
|
|
|
|
|
#187 (permalink) | |
|
Forum Expert
Join Date: Mar 2004
Location: NorthCentral IL, USA
Age: 35
Posts: 3,848
|
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:
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." |
|
|
|
|
|
|
#189 (permalink) | |
|
Forum Expert
|
Quote:
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.
Code:
// List<Gump> gumps = state.Gumps;
List<Gump> gumps = ((List<Gump>)state.Gumps);
__________________
In some cases stupid makes you win-Radwen |
|
|
|
|
|
|
#190 (permalink) | |
|
Forum Expert
Join Date: Mar 2004
Location: NorthCentral IL, USA
Age: 35
Posts: 3,848
|
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:
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." |
|
|
|
|
|
|
#193 (permalink) | |
|
Forum Expert
Join Date: Mar 2004
Location: NorthCentral IL, USA
Age: 35
Posts: 3,848
|
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:
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." |
|
|
|
|
|
|
#195 (permalink) | |
|
Forum Expert
Join Date: Mar 2004
Location: NorthCentral IL, USA
Age: 35
Posts: 3,848
|
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:
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." |
|
|
|
|
|
|
#197 (permalink) |
|
Newbie
Join Date: Sep 2006
Age: 19
Posts: 38
|
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? |
|
|
|
|
|
#199 (permalink) | |
|
Forum Expert
|
Quote:
__________________
In some cases stupid makes you win-Radwen |
|
|
|
|