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 03-18-2007, 10:33 AM   #1 (permalink)
Forum Novice
 
Join Date: Jan 2005
Age: 25
Posts: 125
Send a message via MSN to Kaon
Default [RunUO 2.0RC1 & 1.0] Tip Command Script

Version : 1.1

Description :
Just a little script that allow a GM to notify a player in a "scroll form" of something.

An easy way to notify a player on a Roleplay server, without breaking the game of everybody

Note : the player can answer the GM with a reply button

Usage :
[tip <text> or just [tip

Installation :
Just put the script in your scripts folder

Changelog :
1.0 -> 1.1 :
  • RunUO2.0RC1 & 1.0 compatibility with minor changes
  • For RunUO1.0 : just uncomment the line // #define USE_RUNUO_1
    N.B. : not tested, just compiled...
  • Language support with minor changes (feel free to submit the translation for yours). Currents are French and English
  • Now, if a player get more than one tip "at the same time" (without reading them...), they are all displayed, as a stack of tip scroll in the upper left of the screen (limit of 20 unreaded tips)

Thanks to otimpyre who adapted the script (here) for RunUO2.0 first (I completly forgotted to submit it ^^)
Original post : custom script archives
Attached Images
File Type: jpg Tip_1.jpg (15.8 KB, 174 views)
File Type: jpg Tip_2.jpg (58.2 KB, 224 views)
Attached Files
File Type: cs Tip.cs (11.1 KB, 23 views)
__________________

Last edited by Kaon; 10-04-2008 at 04:56 AM. Reason: Reupload the script
Kaon is offline   Reply With Quote
Old 03-18-2007, 12:37 PM   #2 (permalink)
Forum Novice
 
Twilightal's Avatar
 
Join Date: Jan 2007
Location: Florida
Age: 21
Posts: 132
Send a message via MSN to Twilightal
Default

i have to say this is pretty useful
__________________
Twilightal is offline   Reply With Quote
Old 03-18-2007, 04:14 PM   #3 (permalink)
Forum Expert
 
Liacs's Avatar
 
Join Date: Mar 2004
Location: Belgium / Germany
Age: 31
Posts: 1,036
Send a message via MSN to Liacs
Default

this looks pretty useful! THanks a lot!

Liacs
__________________
;)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 03-18-2007, 07:38 PM   #4 (permalink)
Forum Novice
 
Cheetah2003's Avatar
 
Join Date: Jun 2006
Location: Laramie, Wyoming
Age: 37
Posts: 359
Send a message via ICQ to Cheetah2003 Send a message via AIM to Cheetah2003 Send a message via MSN to Cheetah2003 Send a message via Yahoo to Cheetah2003
Default

I can't get this to compile.

Code:
Error	20	An attribute argument must be a constant expression, typeof expression or array creation expression	C:\source\c#\RunUO Core Scripts\RunUO Core Scripts\Customs\Commands\Tip.cs	81	22	RunUO Core Scripts
Error	21	'System.Collections.Generic.IEnumerable<Server.Gumps.Gump>' does not contain a definition for 'Count'	C:\source\c#\RunUO Core Scripts\RunUO Core Scripts\Customs\Commands\Tip.cs	227	70	RunUO Core Scripts
Error	22	Cannot apply indexing with [] to an expression of type 'System.Collections.Generic.IEnumerable<Server.Gumps.Gump>'	C:\source\c#\RunUO Core Scripts\RunUO Core Scripts\Customs\Commands\Tip.cs	229	33	RunUO Core Scripts
Error	23	Cannot apply indexing with [] to an expression of type 'System.Collections.Generic.IEnumerable<Server.Gumps.Gump>'	C:\source\c#\RunUO Core Scripts\RunUO Core Scripts\Customs\Commands\Tip.cs	230	43	RunUO Core Scripts
__________________
Take a walk on The Wild side.
Cheetah2003 is offline   Reply With Quote
Old 03-18-2007, 11:33 PM   #5 (permalink)
Forum Expert
 
Asmir3's Avatar
 
Join Date: Sep 2005
Location: A-Town Baby
Age: 19
Posts: 620
Default

Ihave the same problem

Quote:
Originally Posted by Cheetah2003 View Post
I can't get this to compile.

Code:
Error	20	An attribute argument must be a constant expression, typeof expression or array creation expression	C:\source\c#\RunUO Core Scripts\RunUO Core Scripts\Customs\Commands\Tip.cs	81	22	RunUO Core Scripts
Error	21	'System.Collections.Generic.IEnumerable<Server.Gumps.Gump>' does not contain a definition for 'Count'	C:\source\c#\RunUO Core Scripts\RunUO Core Scripts\Customs\Commands\Tip.cs	227	70	RunUO Core Scripts
Error	22	Cannot apply indexing with [] to an expression of type 'System.Collections.Generic.IEnumerable<Server.Gumps.Gump>'	C:\source\c#\RunUO Core Scripts\RunUO Core Scripts\Customs\Commands\Tip.cs	229	33	RunUO Core Scripts
Error	23	Cannot apply indexing with [] to an expression of type 'System.Collections.Generic.IEnumerable<Server.Gumps.Gump>'	C:\source\c#\RunUO Core Scripts\RunUO Core Scripts\Customs\Commands\Tip.cs	230	43	RunUO Core Scripts
Asmir3 is offline   Reply With Quote
Old 03-19-2007, 05:45 AM   #6 (permalink)
Forum Novice
 
Join Date: Jan 2005
Age: 25
Posts: 125
Send a message via MSN to Kaon
Default

Are you using RunUO 1.0 or 2.0RC1?

EDIT : I've done a small fix on the english version, I forgot it because it was commented, sorry
For the second problem, System.Collections.Generic.IEnumerable<Server.Gump s.Gump>, I have to get more information of the version of RunUO used...
I compiled it without problem on RunUO2.0RC1, english and french version ...
__________________

Last edited by Kaon; 03-19-2007 at 07:20 AM. Reason: Edit after tests and fix
Kaon is offline   Reply With Quote
Old 03-19-2007, 12:49 PM   #7 (permalink)
Forum Novice
 
Cheetah2003's Avatar
 
Join Date: Jun 2006
Location: Laramie, Wyoming
Age: 37
Posts: 359
Send a message via ICQ to Cheetah2003 Send a message via AIM to Cheetah2003 Send a message via MSN to Cheetah2003 Send a message via Yahoo to Cheetah2003
Default

Quote:
Originally Posted by Kaon View Post
Are you using RunUO 1.0 or 2.0RC1?

EDIT : I've done a small fix on the english version, I forgot it because it was commented, sorry
For the second problem, System.Collections.Generic.IEnumerable<Server.Gump s.Gump>, I have to get more information of the version of RunUO used...
I compiled it without problem on RunUO2.0RC1, english and french version ...
I'm running with RunUO 2.0 SVN 160.
__________________
Take a walk on The Wild side.
Cheetah2003 is offline   Reply With Quote
Old 03-19-2007, 06:44 PM   #8 (permalink)
Forum Novice
 
Join Date: Jan 2005
Age: 25
Posts: 125
Send a message via MSN to Kaon
Default

SVN 160 isn't an official release, isn't it?
Don't know where to find it, and since it's not considered as a stable release (as RC1), the support for this version will be hard

What is the type of Mobile.NetState.Gumps property? In RC1 it is List<Gump>, that's why it works... maybe it has changed :/
__________________
Kaon is offline   Reply With Quote
Old 03-19-2007, 07:37 PM   #9 (permalink)
Forum Novice
 
Cheetah2003's Avatar
 
Join Date: Jun 2006
Location: Laramie, Wyoming
Age: 37
Posts: 359
Send a message via ICQ to Cheetah2003 Send a message via AIM to Cheetah2003 Send a message via MSN to Cheetah2003 Send a message via Yahoo to Cheetah2003
Default

Quote:
Originally Posted by Kaon View Post
SVN 160 isn't an official release, isn't it?
Don't know where to find it, and since it's not considered as a stable release (as RC1), the support for this version will be hard

What is the type of Mobile.NetState.Gumps property? In RC1 it is List<Gump>, that's why it works... maybe it has changed :/
Code:
		public IEnumerable<Gump> Gumps {
			get {
				return m_Gumps;
			}
		}
Full source code of current development branch: Revision 162: /devel

I prefer (as do others) the latest source, as it corrects many problems in RC1. I've never had much issue with it's stability. That is to say, I've never had the core code crash or do something so drastically out of whack to worry about it.

But on another note, I'll probably go about fixing yer code myself. Thanks for the submission!
__________________
Take a walk on The Wild side.
Cheetah2003 is offline   Reply With Quote
Old 03-20-2007, 05:20 AM   #10 (permalink)
Forum Novice
 
Join Date: Jan 2005
Age: 25
Posts: 125
Send a message via MSN to Kaon
Default

I'll fix it, this evening. I was about to do it last evening, but I must keep in mind the RunUO 1.0 compatibility
__________________
Kaon is offline   Reply With Quote
Old 03-20-2007, 04:22 PM   #11 (permalink)
Forum Novice
 
Join Date: Jan 2005
Age: 25
Posts: 125
Send a message via MSN to Kaon
Default

New version of the script, I guess it is now compatible with SVN 160 and still compatible with RunUO1.0 and 2.0RC1
__________________
Kaon is offline   Reply With Quote
Old 04-03-2007, 12:46 AM   #12 (permalink)
Newbie
 
Vash882001's Avatar
 
Join Date: Jan 2006
Posts: 65
Default

nice good job i am trying this
__________________
Lands Of Istan
Alex:Founder/Owner
Server dns/ip:76.183.135.138
port:2593
Vash882001 is offline   Reply With Quote
Old 04-03-2007, 12:21 PM   #13 (permalink)
Forum Novice
 
Join Date: Nov 2006
Posts: 335
Default

Excellent work man. I've been working something like this into my shard for players to communicate. It'll be nice for staff to be able to use! Thanks again.
__________________
cornude-: i wont duel for free for a few reasons and i will list them
Satan-TB: 1. you're a
pussy
Aaron Sithsong is offline   Reply With Quote
Old 10-03-2008, 12:04 AM   #14 (permalink)
Forum Novice
 
Join Date: Jun 2008
Age: 27
Posts: 162
Default

corrupt file please repost it
oldschool-3038 is offline   Reply With Quote
Old 10-03-2008, 11:33 PM   #15 (permalink)
Forum Novice
 
Join Date: Oct 2003
Posts: 153
Default

yea, it's corrupt. please post in .cs form
__________________
Developer BES Oasis
Blessed Items only bag / GetPet
Shard : BES Oasis
datguy is offline   Reply With Quote
Old 10-04-2008, 04:57 AM   #16 (permalink)
Forum Novice
 
Join Date: Jan 2005
Age: 25
Posts: 125
Send a message via MSN to Kaon
Default

reupped

hope it still work :|
__________________
Kaon is offline   Reply With Quote
Reply

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