|
||
|
|||||||
| Custom Script Release Archive This is a pre-script database archive of what our users had released. |
|
|
Thread Tools | Display Modes |
|
|
#1 (permalink) |
|
Forum Newbie
|
Installation:
Throw is in your customs folder, Then make a file in your /data/ dir called motd.html and put your message of the day in that file. They can use [motd to bring up the MOTD now. If you would like for it to pop up on login goto the script in /scripts/misc/ and open loginstats. Making it open motd on login: If you would like for it to pop up on login goto the script in /scripts/misc/ and open loginstats. find this: Code:
m.SendMessage( "There {1} currently {2} user{3} online, and {6} NPC{7}.",
args.Mobile.Name,
userCount == 1 ? "is" : "are",
userCount, userCount == 1 ? "" : "s",
itemCount, itemCount == 1 ? "" : "s",
mobileCount, mobileCount == 1 ? "" : "s" );
Code:
m.SendGump ( new motdg() ); Code:
using Server.Gumps; Last edited by stevend; 12-28-2005 at 09:01 PM. |
|
|
|
|
#6 (permalink) | |
|
Forum Expert
Join Date: Feb 2004
Age: 27
Posts: 1,834
|
Quote:
![]() Didn't test it, but I know from another motd script, that it crashed on button response Razor macros. Can you confirm, that this one won't crash in that case? |
|
|
|
|
|
#7 (permalink) |
|
Newbie
|
I try to add this script and edit the loginstats.cs as you directed, and i get an error:
Code:
The type or namespace name "motdg" could not be found Looks like im not the only one with this problem. Thx. ![]() |
|
|
|
|
#10 (permalink) |
|
Newbie
|
Now the MOTD works, but when it comes up it says MOTD.html not found or something along those lines..
I put a text file in my Data Dir, called motd.html , and wrote my motd in that file, and its not working. How do i create a filetype .html? Do you mean, type the motd using html tags? Thx again. ![]() |
|
|
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|