Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   Future Improvements (https://forums.graalonline.com/forums/forumdisplay.php?f=10)
-   -   New Commands Needed! (https://forums.graalonline.com/forums/showthread.php?t=38495)

emortylone 09-24-2002 11:19 PM

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

Kaimetsu 09-25-2002 12:52 AM

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?

emortylone 09-25-2002 04:02 AM

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

Graal2001_NAT 09-25-2002 04:14 AM

I remember SK telling me about asking stefan for almost the exact same thing (playerchatsinrc and customizable RC commands)

emortylone 09-25-2002 04:43 AM

o_O! You think it'd be nice? I see MANY uses for it too.
---Shifter

Graal2001_NAT 09-25-2002 04:49 AM

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

R0b1n-NPC 09-25-2002 06:56 AM

or just #p(1) would be the message and you tokenize it yourself? :P

Kaimetsu 09-25-2002 02:31 PM

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.

Dach 09-25-2002 06:45 PM

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?

Kaimetsu 09-25-2002 07:27 PM

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.

emortylone 09-25-2002 10:48 PM

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

Graal2001_NAT 09-26-2002 02:44 AM

Quote:

Originally posted by emortylone

snip

I clearly said #p(0) would be the person who PMed you

emortylone 09-26-2002 05:12 AM

Yes, I know you did. I was saying that you were absolutely correct :P
---Shifter

Dach 09-26-2002 05:19 AM

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.

Graal2001_NAT 09-30-2002 04:10 AM

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>;

Com013 09-30-2002 04:21 AM

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?

Graal2001_NAT 09-30-2002 04:24 AM

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;

CheeToS2 09-30-2002 08:09 AM

would be nice to have sendpm2 acct,message; too.. although it'd be abused :(

aylad 09-30-2002 08:54 AM

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......

emortylone 09-30-2002 11:12 PM

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

Graal2001_NAT 10-01-2002 03:50 AM

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

CheeToS2 10-01-2002 08:02 AM

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.


All times are GMT +2. The time now is 10:02 AM.

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