Questions about Server Announcements

Post Reply
User avatar
tagban
Posts: 352
Joined: Fri Dec 28, 2012 11:31 am
Location: Pennsylvania, USA

Questions about Server Announcements

Post by tagban » Sun Jun 30, 2013 6:33 pm

Is it possible to flag a server announcement for when someone logs in? I have a server of like 8 people and it'd be nice to know when someone logs in.

User avatar
whasf
Site Admin
Posts: 1312
Joined: Thu Jul 19, 2012 9:11 pm

Re: Questions about Server Announcements

Post by whasf » Sun Jun 30, 2013 7:29 pm

You could write a program to watch the accounts_sessions table and notify you that way, or write something to watch the logfile
-- Whasf

bluekirby0
Developer
Posts: 707
Joined: Sun Jul 22, 2012 12:11 am

Re: Questions about Server Announcements

Post by bluekirby0 » Tue Jul 02, 2013 1:24 am

It would also be fairly trivial to rig a chat packet into the login sequence, but that would be your burden to maintain.

User avatar
tagban
Posts: 352
Joined: Fri Dec 28, 2012 11:31 am
Location: Pennsylvania, USA

Re: Questions about Server Announcements

Post by tagban » Wed Jul 03, 2013 7:19 am

Like, when the charactor zones into their first zone, to have it say something like (forgive me because I know VB and NOT C++ so my "pseudocode" is mainly based on that aspect..)

OnEvent CharactorLogin do
- add to active charactor list in search server
- make them dance like a chicken for 30 seconds
- announce to server & CharName & " has entered the realm.."

I just don't know how the announce command works, or what it is/where to find it. Im pretty sure I could make that work though with the right info as to where it is in the code.

--Edit
I was actually kind of surprised that GMs don't have a command to make general server announcements.

User avatar
kjLotus
Special Guest
Posts: 1813
Joined: Sun Jul 22, 2012 2:16 pm

Re: Questions about Server Announcements

Post by kjLotus » Wed Jul 03, 2013 9:29 am

tagban wrote: I was actually kind of surprised that GMs don't have a command to make general server announcements.
they do, it's just prepending a chat message with a hashtag. it's why every time i try to "#YOLO" on DS Test it makes a server message

(now that you know that, you should be able to find how to make server wide messages :p)

User avatar
tagban
Posts: 352
Joined: Fri Dec 28, 2012 11:31 am
Location: Pennsylvania, USA

Re: Questions about Server Announcements

Post by tagban » Wed Jul 03, 2013 12:17 pm

Thanks! Found it and added to my project. :) Now my friends will know when others are on. :)

User avatar
kjLotus
Special Guest
Posts: 1813
Joined: Sun Jul 22, 2012 2:16 pm

Re: Questions about Server Announcements

Post by kjLotus » Wed Jul 03, 2013 12:32 pm

tagban wrote:Thanks! Found it and added to my project. :) Now my friends will know when others are on. :)
isn't that what linkshells are for? o.O

User avatar
tagban
Posts: 352
Joined: Fri Dec 28, 2012 11:31 am
Location: Pennsylvania, USA

Re: Questions about Server Announcements

Post by tagban » Wed Jul 03, 2013 2:13 pm

I had asked a long time ago, but I wanted to auto-give a linkshell to each person that logged in, and could never figure it out. So meh

Post Reply