Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting
FAQ Members List Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 02-18-2006, 10:18 AM
Warcaptain Warcaptain is offline
Banned
Warcaptain's Avatar
Join Date: Jun 2001
Location: Virginia, USA
Posts: 2,086
Warcaptain is on a distinguished road
Send a message via ICQ to Warcaptain Send a message via AIM to Warcaptain Send a message via Yahoo to Warcaptain
Chat Script

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.
Attached Thumbnails
Click image for larger version

Name:	graalchat.png
Views:	276
Size:	53.7 KB
ID:	35602   Click image for larger version

Name:	graalchat2.png
Views:	229
Size:	52.0 KB
ID:	35603  
Reply With Quote
  #2  
Old 02-18-2006, 12:47 PM
projectigi projectigi is offline
Registered User
Join Date: Jan 2004
Posts: 403
projectigi is an unknown quantity at this point
hmm thats nice, does NC chat is shown under RC tab?
Reply With Quote
  #3  
Old 02-18-2006, 07:39 PM
Warcaptain Warcaptain is offline
Banned
Warcaptain's Avatar
Join Date: Jun 2001
Location: Virginia, USA
Posts: 2,086
Warcaptain is on a distinguished road
Send a message via ICQ to Warcaptain Send a message via AIM to Warcaptain Send a message via Yahoo to Warcaptain
No, we are including NC in another admin tool, this only logs onto RC.
Reply With Quote
  #4  
Old 02-19-2006, 02:30 PM
Skyld Skyld is offline
Script-fu
Skyld's Avatar
Join Date: Jan 2002
Location: United Kingdom
Posts: 3,914
Skyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud of
Send a message via AIM to Skyld
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.
__________________
Skyld
Reply With Quote
  #5  
Old 02-19-2006, 05:25 PM
Warcaptain Warcaptain is offline
Banned
Warcaptain's Avatar
Join Date: Jun 2001
Location: Virginia, USA
Posts: 2,086
Warcaptain is on a distinguished road
Send a message via ICQ to Warcaptain Send a message via AIM to Warcaptain Send a message via Yahoo to Warcaptain
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()
Reply With Quote
  #6  
Old 02-19-2006, 06:44 PM
Ajira Ajira is offline
Poont.
Join Date: Oct 2004
Location: NY, USA
Posts: 477
Ajira is on a distinguished road
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.
__________________
Liek omigosh.

Reply With Quote
  #7  
Old 02-20-2006, 05:57 AM
ApothiX ApothiX is offline
Okiesmokie
Join Date: May 2004
Posts: 1,447
ApothiX is on a distinguished road
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
__________________


[06:24:19] * Parts: Skyld (i=silent@unaffiliated/skyld) ("Perhaps Okiesmokie did not realise that I like the boys. ")
Reply With Quote
  #8  
Old 02-20-2006, 06:10 AM
Warcaptain Warcaptain is offline
Banned
Warcaptain's Avatar
Join Date: Jun 2001
Location: Virginia, USA
Posts: 2,086
Warcaptain is on a distinguished road
Send a message via ICQ to Warcaptain Send a message via AIM to Warcaptain Send a message via Yahoo to Warcaptain
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
Reply With Quote
  #9  
Old 02-20-2006, 06:17 AM
ApothiX ApothiX is offline
Okiesmokie
Join Date: May 2004
Posts: 1,447
ApothiX is on a distinguished road
How exactly are you going to go about including NC echoing and all that?
__________________


[06:24:19] * Parts: Skyld (i=silent@unaffiliated/skyld) ("Perhaps Okiesmokie did not realise that I like the boys. ")
Reply With Quote
  #10  
Old 02-20-2006, 06:23 AM
Warcaptain Warcaptain is offline
Banned
Warcaptain's Avatar
Join Date: Jun 2001
Location: Virginia, USA
Posts: 2,086
Warcaptain is on a distinguished road
Send a message via ICQ to Warcaptain Send a message via AIM to Warcaptain Send a message via Yahoo to 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.
Reply With Quote
  #11  
Old 02-20-2006, 02:38 PM
ApothiX ApothiX is offline
Okiesmokie
Join Date: May 2004
Posts: 1,447
ApothiX is on a distinguished road
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?
__________________


[06:24:19] * Parts: Skyld (i=silent@unaffiliated/skyld) ("Perhaps Okiesmokie did not realise that I like the boys. ")
Reply With Quote
  #12  
Old 02-20-2006, 02:42 PM
Skyld Skyld is offline
Script-fu
Skyld's Avatar
Join Date: Jan 2002
Location: United Kingdom
Posts: 3,914
Skyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud of
Send a message via AIM to Skyld
Current IP is not in the attributes, is it?
__________________
Skyld
Reply With Quote
  #13  
Old 02-20-2006, 07:55 PM
ApothiX ApothiX is offline
Okiesmokie
Join Date: May 2004
Posts: 1,447
ApothiX is on a distinguished road
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)
__________________


[06:24:19] * Parts: Skyld (i=silent@unaffiliated/skyld) ("Perhaps Okiesmokie did not realise that I like the boys. ")
Reply With Quote
  #14  
Old 02-20-2006, 08:08 PM
Warcaptain Warcaptain is offline
Banned
Warcaptain's Avatar
Join Date: Jun 2001
Location: Virginia, USA
Posts: 2,086
Warcaptain is on a distinguished road
Send a message via ICQ to Warcaptain Send a message via AIM to Warcaptain Send a message via Yahoo to Warcaptain
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
Reply With Quote
  #15  
Old 02-23-2006, 10:30 PM
Warcaptain Warcaptain is offline
Banned
Warcaptain's Avatar
Join Date: Jun 2001
Location: Virginia, USA
Posts: 2,086
Warcaptain is on a distinguished road
Send a message via ICQ to Warcaptain Send a message via AIM to Warcaptain Send a message via Yahoo to Warcaptain
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?
Attached Thumbnails
Click image for larger version

Name:	graalchat3.png
Views:	153
Size:	59.8 KB
ID:	35659   Click image for larger version

Name:	graalchat4.png
Views:	156
Size:	55.9 KB
ID:	35660  
Reply With Quote
  #16  
Old 02-23-2006, 11:58 PM
Skyld Skyld is offline
Script-fu
Skyld's Avatar
Join Date: Jan 2002
Location: United Kingdom
Posts: 3,914
Skyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud of
Send a message via AIM to Skyld
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.
__________________
Skyld
Reply With Quote
  #17  
Old 02-24-2006, 12:01 AM
Ajira Ajira is offline
Poont.
Join Date: Oct 2004
Location: NY, USA
Posts: 477
Ajira is on a distinguished road
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.
__________________
Liek omigosh.

Reply With Quote
  #18  
Old 02-24-2006, 12:04 AM
Skyld Skyld is offline
Script-fu
Skyld's Avatar
Join Date: Jan 2002
Location: United Kingdom
Posts: 3,914
Skyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud of
Send a message via AIM to Skyld
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!
__________________
Skyld
Reply With Quote
  #19  
Old 02-24-2006, 12:04 AM
Warcaptain Warcaptain is offline
Banned
Warcaptain's Avatar
Join Date: Jun 2001
Location: Virginia, USA
Posts: 2,086
Warcaptain is on a distinguished road
Send a message via ICQ to Warcaptain Send a message via AIM to Warcaptain Send a message via Yahoo to Warcaptain
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.
Attached Thumbnails
Click image for larger version

Name:	biggertabs.png
Views:	128
Size:	48.6 KB
ID:	35661  
Reply With Quote
  #20  
Old 02-24-2006, 12:05 AM
Skyld Skyld is offline
Script-fu
Skyld's Avatar
Join Date: Jan 2002
Location: United Kingdom
Posts: 3,914
Skyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud of
Send a message via AIM to Skyld
Looking a bit better. Tabs should scroll if you run out of space for them, so I wouldn't worry about that.
__________________
Skyld
Reply With Quote
Reply


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

Forum Jump


All times are GMT +2. The time now is 11:18 PM.


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