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 04-30-2002, 10:58 PM
Saga2001 Saga2001 is offline
Wishing he had 3 feet
Join Date: Aug 2001
Location: Basement
Posts: 1,565
Saga2001 is on a distinguished road
Send a message via ICQ to Saga2001 Send a message via AIM to Saga2001 Send a message via Yahoo to Saga2001
Unknown Commands! :)

Well I have been using these because I know of them from people on the "inside" however I thought it was quite unfair of me to keep them all for myself, so here they are. These commands all seem to work on upgraded servers on the serverside section of the npc, since it requires to be serverside, it cannot be used on servers that are not upgraded, sorry.
NPC Code:

sendtorc text;


- This will send the specified text to the rc chat sent by npc server, commands like: sendtorc /open accountname; work and open the account, however its probably not a good idea to open multifarious accounts, because they stay open so if you open the rights, account, attributes and other stuff, etc then it could possibly lag your npc server. I had a thought that this could be used to make something that many npc scripters have worked on, a level updater npc for non staff accounts, sendtorc /updatelevels #L; so that could be useful. Hope so.
NPC Code:

sendtonc text;


- This will send the specified text to the nc chat and anyone on nc can see it, I believe it can also be used with /clearnpcs levelname; so who knows, fun experimenting with.
NPC Code:

sendpm text;


- This is used in a with, for example:
NPC Code:

with (getplayer(Saga2001)) sendpm Hello PastAustin!;


Also if you wish to send mass messages with it, you can used it in an allplayers[i] with like so:
NPC Code:

for (i=0; i<allplayerscount; i++) {
with (allplayers[i]) sendpm Hello #a;
}


I have found this command to be useful for announcing events, etc. The pm comes from npc server, so it looks like NPC-Server is sending a private message to you. I have failed to remember how, but you need to make sure that you have no commas unless you use a replacement type loop to replace commas with their correct #K() or ascii(). Also mass messages can lag the npc server quite badly (obviously), so watch out, and have fun.
__________________

!Wan ( 11:27:55 AM):
can i c ur scripts please?
Zorg (RC): If I hear NPC Server call Ne0, Past Austin or Brent sexy one more time im disconnecting it
Reply With Quote
  #2  
Old 05-01-2002, 04:29 AM
LilNiglet LilNiglet is offline
Registered User
Join Date: Jun 2001
Posts: 3,178
LilNiglet is on a distinguished road
Quote:
Originally posted by Kaimetsu
I was the one that suggested sendtorc and sendtonc ^_^
That could be very useful for stuff like

"Player #a has more than 5 hearts. Action taken: power surge sent through computer."
Reply With Quote
  #3  
Old 05-01-2002, 05:58 AM
Saga2001 Saga2001 is offline
Wishing he had 3 feet
Join Date: Aug 2001
Location: Basement
Posts: 1,565
Saga2001 is on a distinguished road
Send a message via ICQ to Saga2001 Send a message via AIM to Saga2001 Send a message via Yahoo to Saga2001
Yesh it is quite useful, especially when you want to flood rc, not that I have ever done that, well maybe, when I was doing testing. Yay thanks Kai, it has been a useful command.
__________________

!Wan ( 11:27:55 AM):
can i c ur scripts please?
Zorg (RC): If I hear NPC Server call Ne0, Past Austin or Brent sexy one more time im disconnecting it
Reply With Quote
  #4  
Old 05-01-2002, 07:20 AM
SaijinGohan SaijinGohan is offline
Registered User
SaijinGohan's Avatar
Join Date: Jul 2001
Location: U.S.A - Ohio
Posts: 536
SaijinGohan is on a distinguished road
Send a message via AIM to SaijinGohan Send a message via MSN to SaijinGohan
u and ur stupid testing stuff PA. Ne0 constantly pms me from npcserver with ur script. x.x
Reply With Quote
  #5  
Old 05-01-2002, 01:02 PM
adam adam is offline
http://wiki.graal.us/
adam's Avatar
Join Date: Nov 2001
Posts: 2,247
adam has a spectacular aura aboutadam has a spectacular aura about
Send a message via AIM to adam
way 2 go for suggesting that kai
__________________
Rogue Shadow (TCN)(NAT)(Global Development Team)

For development help, contact the patrons of the #graaldt irc channel below, I am usually there.
Click Here to Join IRC Chat Now! -- irc.freenode.net Channel: #graaldt
Quote:
<Dustyshouri> no, RogueShadow is always talking about scripts lol
<Dustyshouri> in fact, he pretty much brought Graal back as a topic single-handedly
Reply With Quote
  #6  
Old 05-01-2002, 01:24 PM
adam adam is offline
http://wiki.graal.us/
adam's Avatar
Join Date: Nov 2001
Posts: 2,247
adam has a spectacular aura aboutadam has a spectacular aura about
Send a message via AIM to adam
Lol 5 minutes later! Wow man that rox.


Hey he added something for me once =/
although it was taken out. What is so bad about transparent body colors? heh. Maybe it's back I'll have to check lol.

I do recall Galen despised the idea though. I believe it was Galen.
__________________
Rogue Shadow (TCN)(NAT)(Global Development Team)

For development help, contact the patrons of the #graaldt irc channel below, I am usually there.
Click Here to Join IRC Chat Now! -- irc.freenode.net Channel: #graaldt
Quote:
<Dustyshouri> no, RogueShadow is always talking about scripts lol
<Dustyshouri> in fact, he pretty much brought Graal back as a topic single-handedly
Reply With Quote
  #7  
Old 05-01-2002, 08:12 PM
emortylone emortylone is offline
Registered User
Join Date: Apr 2002
Location: Control-NPC
Posts: 834
emortylone is on a distinguished road
The ToRC command can be VERY useful. Like when you give ET's or GP's warpers, have it display in RC that they warped players! I'm going to have to edit my event setter to include torc #a has set event. then the event warper to #a has used event warper. Just to kind of keep tabs on things. This way we can keep on eye on the inferior j/k, staff. Like the cadets and such. Or on servers where the staff don't always have RC's. VERY handy. Thanx a lot m8. NC chat? W/ everything going p2p it seems i should have bothered to understand P2p better!
---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
  #8  
Old 05-01-2002, 09:11 PM
emortylone emortylone is offline
Registered User
Join Date: Apr 2002
Location: Control-NPC
Posts: 834
emortylone is on a distinguished road
o? That isn't cool then Heh. Which would then be like only p2p, can you make certain NPC's straight serverside?
---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
  #9  
Old 05-01-2002, 10:34 PM
Saga2001 Saga2001 is offline
Wishing he had 3 feet
Join Date: Aug 2001
Location: Basement
Posts: 1,565
Saga2001 is on a distinguished road
Send a message via ICQ to Saga2001 Send a message via AIM to Saga2001 Send a message via Yahoo to Saga2001
Yes Stefan has amazed me too. One time he told me he was working on some new code and that he would update Andor's NPC-Server whgen he was finished, and like 5 minutes later he was already updating NPC-Server, which is cool, he must have very organized coding practices. Also Shifter, you should really get someone to teach you about upgraded scripting, it can be usedful, and if you work on server with NPC-Server, you will need help, believe me, it took 4 people (Kaimetsu, Er1c, Stefan, and Shadow Knight) people for me to fully get it, and I learned PHP in about 1 night (www.php.net is my savior).
__________________

!Wan ( 11:27:55 AM):
can i c ur scripts please?
Zorg (RC): If I hear NPC Server call Ne0, Past Austin or Brent sexy one more time im disconnecting it
Reply With Quote
  #10  
Old 05-04-2002, 08:51 AM
BBflat BBflat is offline
Registered User
BBflat's Avatar
Join Date: Apr 2002
Location: United States of America
Posts: 573
BBflat is on a distinguished road
When coding, it doesn't take a whole bunch of code to add a couple of commands. Once you have written the game, updates come easy.
__________________
I am a .sig virus. Please put me in your .sig so I can continue to replicate.
Reply With Quote
  #11  
Old 05-04-2002, 04:49 PM
Spanko Spanko is offline
Squeaker of Soles
Spanko's Avatar
Join Date: Nov 2001
Location: The Netherworl...lands
Posts: 1,366
Spanko is on a distinguished road
Send a message via ICQ to Spanko Send a message via AIM to Spanko Send a message via Yahoo to Spanko
Quote:
Originally posted by Kaimetsu


True, but Stefan usually doesn't respond to such things so quickly. He's mostly too busy.
He was probably in a creative mood, or something.
__________________

ICQ: 125283920
MSN: [email protected]
AIM: Squeax0r
Squeaker seems unable to access the forum using this account.. tis a sad day.
Now with occasional Asuka flavour! Ooops a bit too much...
Asuka should be king of Dustari!

"Y'know, some days even my lucky rocketship underpants don't even help."
Reply With Quote
  #12  
Old 05-04-2002, 09:10 PM
BBflat BBflat is offline
Registered User
BBflat's Avatar
Join Date: Apr 2002
Location: United States of America
Posts: 573
BBflat is on a distinguished road
Quote:
Originally posted by Kaimetsu


True, but Stefan usually doesn't respond to such things so quickly. He's mostly too busy.
That's true. I guess fixing Graal errors and adding cool stuff is high on his priority list, which it definitely should be.
__________________
I am a .sig virus. Please put me in your .sig so I can continue to replicate.
Reply With Quote
  #13  
Old 05-04-2002, 09:15 PM
screen_name screen_name is offline
is watching you
Join Date: Mar 2002
Location: The 3rd Dimension
Posts: 2,160
screen_name is on a distinguished road
Send a message via AIM to screen_name Send a message via MSN to screen_name
Stefan is just great in general

i remember when i asked him for string arrays, but he nevered answered me, then i found it in the next few versions,


he r0x0rs is what i think you people say
__________________
[signature]insert here[/signature]
Reply With Quote
  #14  
Old 05-04-2002, 09:19 PM
screen_name screen_name is offline
is watching you
Join Date: Mar 2002
Location: The 3rd Dimension
Posts: 2,160
screen_name is on a distinguished road
Send a message via AIM to screen_name Send a message via MSN to screen_name
Quote:
Originally posted by BBflat

That's true. I guess fixing Graal errors and adding cool stuff is high on his priority list, which it definitely should be.
sorry about the double post, but he posted while i was replying

anyways, i disagree with you about this point


Stefan is a human being and should have a life just like everyone else, sure, it's great that he spends lots of time updated it, but it shouldn't be his top priority
__________________
[signature]insert here[/signature]
Reply With Quote
  #15  
Old 05-04-2002, 09:19 PM
BBflat BBflat is offline
Registered User
BBflat's Avatar
Join Date: Apr 2002
Location: United States of America
Posts: 573
BBflat is on a distinguished road
String arrays are AWESOME. I wanted those, too, but I get so fed up trying to contact Stefan. I guess he will see it if i post it on the forums, though. I also found a bug where putobject wouldn't work unless you tried to place an object in the current selection in the dropdown menu. In other words, you couldn't do this...

putboject Vase,30,30;

if you currently had the CastleInside list selected. I don't know the object/list off the top of my head, but you get the idea. I was never able to contact him, but I see now that it is fixed. Yay, Stefan. The only thing I don't like is how hard it is to contact him.
__________________
I am a .sig virus. Please put me in your .sig so I can continue to replicate.
Reply With Quote
  #16  
Old 05-04-2002, 10:56 PM
screen_name screen_name is offline
is watching you
Join Date: Mar 2002
Location: The 3rd Dimension
Posts: 2,160
screen_name is on a distinguished road
Send a message via AIM to screen_name Send a message via MSN to screen_name
well, putobject isn't supported online anyways, so it really wouldn't matter
__________________
[signature]insert here[/signature]
Reply With Quote
  #17  
Old 05-04-2002, 11:11 PM
BBflat BBflat is offline
Registered User
BBflat's Avatar
Join Date: Apr 2002
Location: United States of America
Posts: 573
BBflat is on a distinguished road
Quote:
Originally posted by screen_name
well, putobject isn't supported online anyways, so it really wouldn't matter
=( Darnness.
__________________
I am a .sig virus. Please put me in your .sig so I can continue to replicate.
Reply With Quote
  #18  
Old 05-05-2002, 01:52 AM
screen_name screen_name is offline
is watching you
Join Date: Mar 2002
Location: The 3rd Dimension
Posts: 2,160
screen_name is on a distinguished road
Send a message via AIM to screen_name Send a message via MSN to screen_name
well, im not saying that he shouldn't work on graal

we shouldn't expect him to be 110% devoted to graal and nothing else
__________________
[signature]insert here[/signature]
Reply With Quote
  #19  
Old 05-05-2002, 04:20 AM
BBflat BBflat is offline
Registered User
BBflat's Avatar
Join Date: Apr 2002
Location: United States of America
Posts: 573
BBflat is on a distinguished road
Quote:
Originally posted by screen_name
Stefan is a human being and should have a life just like everyone else, sure, it's great that he spends lots of time updated it, but it shouldn't be his top priority
I was talking about his Graal priorities. Sorry for making myself unclear.
__________________
I am a .sig virus. Please put me in your .sig so I can continue to replicate.
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:50 PM.


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