Graal Forums  

Go Back   Graal Forums > Development Forums > Future Improvements
FAQ Members List Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 09-24-2002, 11:19 PM
emortylone emortylone is offline
Registered User
Join Date: Apr 2002
Location: Control-NPC
Posts: 834
emortylone is on a distinguished road
New Commands Needed!

There need to be two new things I believe added to RC and the NPC Server. It needs to have detection for things typed in RC. Like if (playerchatsinrc) or something. That way you can add your own little commands and such, and you can shorten things by like sendtorc /disconnect #p(0); and such, making /discconect add a weapon clientsided, he he. Ebil little things, but it has many uses. Also, the NPC Server should have support for when certain things are PM"ed to it. Or change it so that you don't get a message back or what not. Like set it so that it goes into a 'poll' mode and like if (messagerecieved && strequals(#C,0)) and such so that #C would be received message code, and it would be able to show results and cool things.
---Shifter
__________________
Quote:
*Stefan: it seems sometimes they hire newbie scripters everywhere x-x
*Stefan: scripters are sometimes like people that draw paintings
*Stefan: all that counts is that it looks nice
Reply With Quote
  #2  
Old 09-25-2002, 12:52 AM
Kaimetsu Kaimetsu is offline
Script Monkey
Kaimetsu's Avatar
Join Date: May 2001
Posts: 18,222
Kaimetsu will become famous soon enough
Re: New Commands Needed!

Quote:
Originally posted by emortylone
There need to be two new things I believe added to RC and the NPC Server. It needs to have detection for things typed in RC. Like if (playerchatsinrc) or something. That way you can add your own little commands and such, and you can shorten things by like sendtorc /disconnect #p(0); and such, making /discconect add a weapon clientsided, he he. Ebil little things, but it has many uses.
Maybe... It has merit, I suppose, but I'm having trouble thinking of many possible uses.

Quote:
Also, the NPC Server should have support for when certain things are PM"ed to it. Or change it so that you don't get a message back or what not. Like set it so that it goes into a 'poll' mode and like if (messagerecieved && strequals(#C,0)) and such so that #C would be received message code, and it would be able to show results and cool things.
---Shifter
I dunno, what would it be used for?
__________________
Reply With Quote
  #3  
Old 09-25-2002, 04:02 AM
emortylone emortylone is offline
Registered User
Join Date: Apr 2002
Location: Control-NPC
Posts: 834
emortylone is on a distinguished road
The first thing is has merit? He he. I'd say that it has it's uses. Like when you want to be able to use NPC's that require player text to use and such. Like setting events or what not you have on the server, it would be easier. Sometimes depending on where I am at, the computers let me get on RC, but I can't get on a player. It eleminates the need to be on a player account.

The second one can have MANY uses. Like you can have it reply with certain things if 'help' is what it gets sent. Make it like a help system, and you could do polls as I mentioned. Make things a bit more automated than using bland things. It would also encourage people to un-ignore the NPC server, heh.
---Shifter
__________________
Quote:
*Stefan: it seems sometimes they hire newbie scripters everywhere x-x
*Stefan: scripters are sometimes like people that draw paintings
*Stefan: all that counts is that it looks nice
Reply With Quote
  #4  
Old 09-25-2002, 04:14 AM
Graal2001_NAT Graal2001_NAT is offline
Registered User
Join Date: Sep 2002
Posts: 241
Graal2001_NAT is on a distinguished road
I remember SK telling me about asking stefan for almost the exact same thing (playerchatsinrc and customizable RC commands)
__________________
GONE, BAI
Reply With Quote
  #5  
Old 09-25-2002, 04:43 AM
emortylone emortylone is offline
Registered User
Join Date: Apr 2002
Location: Control-NPC
Posts: 834
emortylone is on a distinguished road
o_O! You think it'd be nice? I see MANY uses for it too.
---Shifter
__________________
Quote:
*Stefan: it seems sometimes they hire newbie scripters everywhere x-x
*Stefan: scripters are sometimes like people that draw paintings
*Stefan: all that counts is that it looks nice
Reply With Quote
  #6  
Old 09-25-2002, 04:49 AM
Graal2001_NAT Graal2001_NAT is offline
Registered User
Join Date: Sep 2002
Posts: 241
Graal2001_NAT is on a distinguished road
I would rather have this for the client

if(actionpm)
#p(0) would be the person who PMed you, #p(1)-#p(1+tokenscount of message) would be the message they sent
__________________
GONE, BAI
Reply With Quote
  #7  
Old 09-25-2002, 06:56 AM
R0b1n-NPC R0b1n-NPC is offline
Registered User
Join Date: Sep 2002
Posts: 397
R0b1n-NPC is on a distinguished road
or just #p(1) would be the message and you tokenize it yourself? :P
__________________
- R0bin
Reply With Quote
  #8  
Old 09-25-2002, 02:31 PM
Kaimetsu Kaimetsu is offline
Script Monkey
Kaimetsu's Avatar
Join Date: May 2001
Posts: 18,222
Kaimetsu will become famous soon enough
Quote:
Originally posted by emortylone
The second one can have MANY uses. Like you can have it reply with certain things if 'help' is what it gets sent. Make it like a help system, and you could do polls as I mentioned. Make things a bit more automated than using bland things. It would also encourage people to un-ignore the NPC server, heh.
---Shifter
Surely a chat command would be equivalent. Saying "/help", for example.
__________________
Reply With Quote
  #9  
Old 09-25-2002, 06:45 PM
Dach Dach is offline
call me Chad, it's cooler
Dach's Avatar
Join Date: Aug 2002
Posts: 1,899
Dach is on a distinguished road
Quote:
Originally posted by Kaimetsu


Surely a chat command would be equivalent. Saying "/help", for example.
Of course, but wouldn't it be neater to talk to the npc-server itself?
__________________
Scripting Documents:Old Script Documentation-Movement Tutorial
Reply With Quote
  #10  
Old 09-25-2002, 07:27 PM
Kaimetsu Kaimetsu is offline
Script Monkey
Kaimetsu's Avatar
Join Date: May 2001
Posts: 18,222
Kaimetsu will become famous soon enough
Quote:
Originally posted by Dach


Of course, but wouldn't it be neater to talk to the npc-server itself?
Not in my eyes. You'd need to open the server list, go to the NPC Server etc. Typing a chat command is so much simpler.
__________________
Reply With Quote
  #11  
Old 09-25-2002, 10:48 PM
emortylone emortylone is offline
Registered User
Join Date: Apr 2002
Location: Control-NPC
Posts: 834
emortylone is on a distinguished road
It is easier SOMEWHAT to do /help which was my original idea, but I think making the NPC Server more interactive is a good way to do things. Maybe not for help, but for polls and FAQ questions and such. Perhaps though you're right, and /help could sendpm the message to you.

Jagen:
The whole #p(0) person and such... why though? If (actionpm) would be cool I guess, and #p(0) and #p(1) WOULD have to be seperate to make it more efficient otherwise to check to see if I sent you a pm:
NPC Code:

if (actionpm)
{ tokenize #p(0);
if (strequals(#t(0),Projectshifter))
{ action;}
}


vs.
NPC Code:

if (actionpm && strequals(#p(0),Projectshifter))
{ action;}


see the difference?
---Shifter
__________________
Quote:
*Stefan: it seems sometimes they hire newbie scripters everywhere x-x
*Stefan: scripters are sometimes like people that draw paintings
*Stefan: all that counts is that it looks nice
Reply With Quote
  #12  
Old 09-26-2002, 02:44 AM
Graal2001_NAT Graal2001_NAT is offline
Registered User
Join Date: Sep 2002
Posts: 241
Graal2001_NAT is on a distinguished road
Quote:
Originally posted by emortylone

snip
I clearly said #p(0) would be the person who PMed you
__________________
GONE, BAI
Reply With Quote
  #13  
Old 09-26-2002, 05:12 AM
emortylone emortylone is offline
Registered User
Join Date: Apr 2002
Location: Control-NPC
Posts: 834
emortylone is on a distinguished road
Yes, I know you did. I was saying that you were absolutely correct :P
---Shifter
__________________
Quote:
*Stefan: it seems sometimes they hire newbie scripters everywhere x-x
*Stefan: scripters are sometimes like people that draw paintings
*Stefan: all that counts is that it looks nice
Reply With Quote
  #14  
Old 09-26-2002, 05:19 AM
Dach Dach is offline
call me Chad, it's cooler
Dach's Avatar
Join Date: Aug 2002
Posts: 1,899
Dach is on a distinguished road
Quote:
Originally posted by Kaimetsu


Not in my eyes. You'd need to open the server list, go to the NPC Server etc. Typing a chat command is so much simpler.
I guess that is to the eye of the beholder. I always have my playerlist open when playing graal, whereas you suggest that you don't. Aslong as there is a way for the npcserver to give you advice through pms I'll be a happy camper.
__________________
Scripting Documents:Old Script Documentation-Movement Tutorial
Reply With Quote
  #15  
Old 09-30-2002, 04:10 AM
Graal2001_NAT Graal2001_NAT is offline
Registered User
Join Date: Sep 2002
Posts: 241
Graal2001_NAT is on a distinguished road
Quote:
Originally posted by Dach


I guess that is to the eye of the beholder. I always have my playerlist open when playing graal, whereas you suggest that you don't. Aslong as there is a way for the npcserver to give you advice through pms I'll be a happy camper.
sendpm <text>;
__________________
GONE, BAI
Reply With Quote
  #16  
Old 09-30-2002, 04:21 AM
Com013 Com013 is offline
Registered User
Join Date: Aug 2002
Location: GMT+1
Posts: 381
Com013 is on a distinguished road
Quote:
Originally posted by Graal2001_NAT

sendpm <text>;
I have zero exp. concerning the NPC server. Can I use message codes like #b and #s(..) in the text? So is sendpm like say2?
__________________
Com013
Former Admin of the LAT on Graal The Adventure

e-mail: [email protected]
Reply With Quote
  #17  
Old 09-30-2002, 04:24 AM
Graal2001_NAT Graal2001_NAT is offline
Registered User
Join Date: Sep 2002
Posts: 241
Graal2001_NAT is on a distinguished road
Quote:
Originally posted by Com013

I have zero exp. concerning the NPC server. Can I use message codes like #b and #s(..) in the text? So is sendpm like say2?
yes, sendpm #s(clientr.hp) #b #a;
__________________
GONE, BAI
Reply With Quote
  #18  
Old 09-30-2002, 08:09 AM
CheeToS2 CheeToS2 is offline
That Guy
CheeToS2's Avatar
Join Date: Dec 2001
Location: Seattle, WA
Posts: 2,528
CheeToS2 will become famous soon enough
Send a message via AIM to CheeToS2
would be nice to have sendpm2 acct,message; too.. although it'd be abused
__________________

Reply With Quote
  #19  
Old 09-30-2002, 08:54 AM
aylad aylad is offline
Elven Pride
aylad's Avatar
Join Date: Aug 2002
Location: backwoods, Georgia
Posts: 657
aylad is on a distinguished road
Would sending a PM command to the NPCserver be more efficient than having a chat command for every possible command? Like you could have the more common commands done through chat, but less commonly-used commands through the NPCserver and maybe make it more efficient? Just asking, the emortylone's idea seemed cool......
__________________
Green text is IC | http://www.aylad.com/graal/

Don't ask more than once, k?


GK Guides
Reply With Quote
  #20  
Old 09-30-2002, 11:12 PM
emortylone emortylone is offline
Registered User
Join Date: Apr 2002
Location: Control-NPC
Posts: 834
emortylone is on a distinguished road
Quote:
Originally posted by CheeToS2
would be nice to have sendpm2 acct,message; too.. although it'd be abused
Sorry Cheetos, but there's two ways to do this...
NPC Code:

if (actionserverside)
{ with (getplayer(#p(0)))
{ sendpm #p(1);}
}


That sends it via triggeraction, #p(0) = acc, #p(1) = message
NPC Code:

if (actionserverside)
{ for (i=0;i<allplayerscount;i++)
{ with (allplayers[i])
{ if (strequals(#a,#p(0)))
{ sendpm #p(1);}
}
}
}


Does the same thing, but in a different way.
---Shifter
__________________
Quote:
*Stefan: it seems sometimes they hire newbie scripters everywhere x-x
*Stefan: scripters are sometimes like people that draw paintings
*Stefan: all that counts is that it looks nice
Reply With Quote
  #21  
Old 10-01-2002, 03:50 AM
Graal2001_NAT Graal2001_NAT is offline
Registered User
Join Date: Sep 2002
Posts: 241
Graal2001_NAT is on a distinguished road
Quote:
Originally posted by emortylone

Sorry Cheetos, but there's two ways to do this...
NPC Code:

if (actionserverside)
{ with (getplayer(#p(0)))
{ sendpm #p(1);}
}


That sends it via triggeraction, #p(0) = acc, #p(1) = message
NPC Code:

if (actionserverside)
{ for (i=0;i<allplayerscount;i++)
{ with (allplayers[i])
{ if (strequals(#a,#p(0)))
{ sendpm #p(1);}
}
}
}


Does the same thing, but in a different way.
---Shifter
THINK -> POST
he's talking about having an account send the pm, using sendpm has the npc server send the pm, he wants it to look like a person is sending it, not the npc server
__________________
GONE, BAI
Reply With Quote
  #22  
Old 10-01-2002, 08:02 AM
CheeToS2 CheeToS2 is offline
That Guy
CheeToS2's Avatar
Join Date: Dec 2001
Location: Seattle, WA
Posts: 2,528
CheeToS2 will become famous soon enough
Send a message via AIM to CheeToS2
Quote:
Originally posted by Graal2001_NAT

THINK -> POST
he's talking about having an account send the pm, using sendpm has the npc server send the pm, he wants it to look like a person is sending it, not the npc server
yeah.
__________________

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 05:44 AM.


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