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-12-2003, 09:13 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
Pming the npc server.

Is there not an event that is triggered when the npc server recieves a pm? And perhaps params that say the message and who sent it. And dare I say, a way to change the default message.

I can't find any of this. If any of you know please tell me. :-(

Somehow I think there is a way, but im not sure.
__________________
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
  #2  
Old 02-12-2003, 09:27 PM
osrs osrs is offline
Graalian since 1998
osrs's Avatar
Join Date: Mar 2002
Location: Brazil
Posts: 2,724
osrs is on a distinguished road
Send a message via ICQ to osrs Send a message via AIM to osrs Send a message via MSN to osrs Send a message via Yahoo to osrs
Using setpm,you are allowed to change the message of the NPC-Server,but the original message 'I'm the NPC-Server..blablabla' wont back.

Quote:
setpm;
if(pm){
sendpm Welcome to 'Playerworld' #n!;
}
or

Quote:
if(actionplayeronline){
sendpm Welcome #n!;
}
  • if(pm) means if you send a pm to NPC-Server.
  • if(actionplayeronline) means if you entered the server.
  • #n means your nickname.


Edit:These scripts must be added at Control-NPC.
__________________
"Ability is what you are capable of doing. Motivation determines what you do. Attitude determines how well you do it."
Facebook: facebook.com/raysilvadotnet /
Reply With Quote
  #3  
Old 02-12-2003, 10:16 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
Quote:
Originally posted by osrs
Using setpm,you are allowed to change the message of the NPC-Server,but the original message 'I'm the NPC-Server..blablabla' wont back.



or


  • if(pm) means if you send a pm to NPC-Server.
  • if(actionplayeronline) means if you entered the server.
  • #n means your nickname.


Edit:These scripts must be added at Control-NPC.

Well, I haven't gotten if (pm) to work. if I pm it. nothing inside if (pm) runs. It is serverside, it is in the control npc.

The rest of that stuff I knew already.
__________________
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
  #4  
Old 02-13-2003, 12:40 AM
Python523 Python523 is offline
Banned
Join Date: Aug 2001
Location: Illinois
Posts: 3,498
Python523 is on a distinguished road
do
setpm;
if(pm) sendpm test;
and reset the Control-NPC
Reply With Quote
  #5  
Old 02-13-2003, 07:02 AM
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
Quote:
Originally posted by Python523
do
setpm;
if(pm) sendpm test;
and reset the Control-NPC
Thanx, it works. but now im being warned about it lagging for no reason becouse of that. >.< I don't get it. Aw well.

#p(1) seems to be the message,

but there doesn't seem to be a #p(0)

why not put setpm; inside if (created) { } so it doesn't run all the time. >.<
__________________
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

Last edited by adam; 02-13-2003 at 07:24 AM..
Reply With Quote
  #6  
Old 02-13-2003, 11:52 PM
Python523 Python523 is offline
Banned
Join Date: Aug 2001
Location: Illinois
Posts: 3,498
Python523 is on a distinguished road
Quote:
Originally posted by adam


Thanx, it works. but now im being warned about it lagging for no reason becouse of that. >.< I don't get it. Aw well.

#p(1) seems to be the message,

but there doesn't seem to be a #p(0)

why not put setpm; inside if (created) { } so it doesn't run all the time. >.<
#p(0) would be the advertisement URL (currently empty), and #p(1) is only the first line
Reply With Quote
  #7  
Old 03-02-2003, 02:22 AM
middo middo is offline
VHE Monkey
middo's Avatar
Join Date: Aug 2002
Location: California
Posts: 327
middo is on a distinguished road
Send a message via AIM to middo
its not working for me!
The npc server just keeps sending the same PM i programmed it to by using setpm [message];

i tried
if (pm) sendpm test;
-reset npc server
NOTHING
its not working!
someonme please help!
Reply With Quote
  #8  
Old 03-02-2003, 02:55 AM
Knuckles Knuckles is offline
Registered User
Join Date: Sep 2002
Location: New York
Posts: 580
Knuckles is on a distinguished road
Send a message via AIM to Knuckles
Quote:
its not working for me!
The npc server just keeps sending the same PM i programmed it to by using setpm [message];

i tried
if (pm) sendpm test;
-reset npc server
NOTHING
its not working!
someonme please help!
Are you putting your script inside the control NPC?
And your missing: setpm;

NPC Code:

setpm;
if (pm) sendpm Hey#K(44) i'r an uber NPC Server!;



#K(44) is just a comma.
__________________
Knuckles
"They say 60% of the time, it works everytime!"
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 01:18 AM.


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