Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   Chat Script (https://forums.graalonline.com/forums/showthread.php?t=64185)

Warcaptain 02-18-2006 10:18 AM

Chat Script
 
2 Attachment(s)
I have been working on a pretty snazzy chat script for Mana Realms.. tonight I finished the RC chat support.

Staff are able to access RC chat via the chat script in-game.

The cool thing to me is.. that you can still use player.chat as the players chat (even though it doesnt show up above their head)

Since the custom chat bar still only sets the value of player.chat you can easily do player.chat="boop" and it will send boop to whatever chat is selected.

I want to add gIRC support, maybe it would have more people using gIRC if they can do it in-game.

Anyways.. comments, suggestions? Stop by and check it out if you want.

projectigi 02-18-2006 12:47 PM

hmm thats nice, does NC chat is shown under RC tab?

Warcaptain 02-18-2006 07:39 PM

No, we are including NC in another admin tool, this only logs onto RC.

Skyld 02-19-2006 02:30 PM

Hmm, I do hope that you plan to allow RC chat using clientrc for staff only. Not to mention, clientrc will only work if you have sufficient staff rights on the server.

Although, interesting.

Warcaptain 02-19-2006 05:25 PM

of course.. uses requesttext() to get options and checks the staff= list to see if you are staff (since that all it really requires for you to access RC chat anyway.

I tried to do an IP range check but didnt know how to retrieve the players IP on client.

Like I said.. I really like that it replaces standard chat (above the player) without getting rid of player.chat usage and function onPlayerChats()

Ajira 02-19-2006 06:44 PM

Quote:

Originally Posted by Warcaptain
I tried to do an IP range check but didnt know how to retrieve the players IP on client.

requesttext("rights", player.account)
iprange is in there.

EDIT: Whoops misread you. I don't think there's any way to get the players current IP =x.

ApothiX 02-20-2006 05:57 AM

checking the rights would get extremely annoying, because it would say the player is loading their rights every time someone logged in.

Thamhic has a simliar chat system to this, but no RC Chat (we have client-rc for that :P)

Screenshot Here

Warcaptain 02-20-2006 06:10 AM

no need to do that on mana realms.. the online level editor will include NC capabilities.. so no odd windows need to be opened at all time to be on client-rc

ApothiX 02-20-2006 06:17 AM

How exactly are you going to go about including NC echoing and all that?

Warcaptain 02-20-2006 06:23 AM

havent messed around too much with client-nc but whatever isnt included i will have stefan include. the editor we are working on is going to be the one released to all graal as the online level editor so hes trying to make it work as well as possible.

ApothiX 02-20-2006 02:38 PM

Quote:

Originally Posted by Warcaptain
havent messed around too much with client-nc but whatever isnt included i will have stefan include. the editor we are working on is going to be the one released to all graal as the online level editor so hes trying to make it work as well as possible.

Hm, Maniaman was working on a level editor, perhaps you should collaborate with him?

Skyld 02-20-2006 02:42 PM

Current IP is not in the attributes, is it?

ApothiX 02-20-2006 07:55 PM

Quote:

Originally Posted by Skyld
Current IP is not in the attributes, is it?

if you mean a member of the 'player' object, then no I don't think it is. But it should be (or atleast serverside)

Warcaptain 02-20-2006 08:08 PM

Quote:

Originally Posted by ApothiX
Hm, Maniaman was working on a level editor, perhaps you should collaborate with him?

we talked to him about it.. he wont work with us/let us use his script unless we give him access to tile layes. so.. we have to do it on our own :(

Warcaptain 02-23-2006 10:30 PM

2 Attachment(s)
Update:

I added 2 new tabs:

Global and Guild.

Global is the Mana Realms IRC chat so players can talk to everyone.. players from other servers (if they are in the chat) and all the players on the server.

Also the Guild chat loads up when you have a guild tag on so that you can talk with all the members of your guild in the chat. I was going to make the guild chat an IRC chat too (so I didnt have to use allplayers) but theres no current way (that im aware) to moderate gralIRC (ie: to kick someone out or set a password for the chat)

So again.. comments? suggestions?

Skyld 02-23-2006 11:58 PM

Quote:

Originally Posted by warcaptain
So again.. comments? suggestions?

Nice, but the tabs could do with being a little bigger.
Quote:

Originally Posted by ApothiX
if you mean a member of the 'player' object, then no I don't think it is. But it should be (or atleast serverside)

No, I mean if you use clientrc to get the player's attributes.

Ajira 02-24-2006 12:01 AM

Quote:

Originally Posted by Skyld
No, I mean if you use clientrc to get the player's attributes.

How do you requesttext() the player's attributes? I tried requesttext("attributes","Ajira"), attrs, stats, a buncha crap. Blah.

Skyld 02-24-2006 12:04 AM

Quote:

Originally Posted by Ajira
How do you requesttext() the player's attributes? I tried requesttext("attributes","Ajira"), attrs, stats, a buncha crap. Blah.

I don't remember, but I'm sure I've done it before!

Warcaptain 02-24-2006 12:04 AM

1 Attachment(s)
Here we go, I made the tabs bigger.

I made them so small because I wasnt so sure how many I'd use... but now I will make them big enough to fit on the size setting I prefer to use.

This way also we can see the names of all the tabs, even the ones not selected. :)

Skyld 02-24-2006 12:05 AM

Looking a bit better. Tabs should scroll if you run out of space for them, so I wouldn't worry about that.


All times are GMT +2. The time now is 07:46 PM.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.