Graal Forums  

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

 
 
Thread Tools Search this Thread Rate Thread Display Modes
  #1  
Old 08-06-2002, 02:23 AM
voicedcow6666 voicedcow6666 is offline
Registered User
Join Date: May 2002
Location: Texas
Posts: 182
voicedcow6666 is on a distinguished road
disable sendpm

Is there something in server options I can add to disable sendpm in scripts?
  #2  
Old 08-06-2002, 07:04 AM
Kyle_2002 Kyle_2002 is offline
Banned
Join Date: Aug 2002
Location: Where do you think?
Posts: 160
Kyle_2002 is on a distinguished road
You mean like editing grawl? Uhh I don't belive so. Unless you want some kind of jail thing.
  #3  
Old 08-06-2002, 07:15 AM
Python523 Python523 is offline
Banned
Join Date: Aug 2001
Location: Illinois
Posts: 3,498
Python523 is on a distinguished road
Quote:
Originally posted by Kyle_2002
You mean like editing grawl? Uhh I don't belive so. Unless you want some kind of jail thing.
no................................................ ....................
he means a serveroption
  #4  
Old 08-06-2002, 07:58 AM
Andor_RC14 Andor_RC14 is offline
Registered User
Join Date: Jan 2002
Location: U.S.A - Ohio
Posts: 101
Andor_RC14 is on a distinguished road
Send a message via ICQ to Andor_RC14 Send a message via AIM to Andor_RC14 Send a message via Yahoo to Andor_RC14
There is none that I am aware of. The only restricion is jaillevels= but you can still send PMs to staff with rcs and putting levels in there disables you from leaving the level via in game links
__________________


Statistics show that 60% of all statistics are made-up
Manager of Norin.
EX Co-Manager of Bravo Online.
  #5  
Old 08-06-2002, 08:00 AM
voicedcow6666 voicedcow6666 is offline
Registered User
Join Date: May 2002
Location: Texas
Posts: 182
voicedcow6666 is on a distinguished road
yeah, I'm talking about the sendpm script command. I don't want my NAT's using it.
  #6  
Old 08-06-2002, 10:31 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 voicedcow6666
yeah, I'm talking about the sendpm script command. I don't want my NAT's using it.
If thier your NAT's lay down the law and tell them not to use it...

If they dont' comply too bad.... Do what you will with them.
__________________
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
  #7  
Old 08-07-2002, 12:35 AM
zorakid2001 zorakid2001 is offline
Banned
Join Date: Jul 2002
Location: Oregon USA <-- this place sux0rs
Posts: 113
zorakid2001 is on a distinguished road
Send a message via ICQ to zorakid2001 Send a message via AIM to zorakid2001
Talking

ummmm i think you cant for reasons of possible abuse.. Like, What if some1 wanted to not let their nats send pms!
  #8  
Old 08-25-2002, 12:14 AM
emortylone emortylone is offline
Registered User
Join Date: Apr 2002
Location: Control-NPC
Posts: 834
emortylone is on a distinguished road
Zega, it isn't a big deal. Majority of the servers now actually use it w/ if (actionplayeronline) now... let your NATs play w/ it a bit, it is healthy to learn new things =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
  #9  
Old 09-08-2002, 08:20 PM
bigkow44 bigkow44 is offline
Registered User
bigkow44's Avatar
Join Date: Dec 2001
Location: Inside my head.
Posts: 610
bigkow44 is on a distinguished road
Ok I forgot, how do you use sendpm?
__________________
  #10  
Old 09-09-2002, 02:56 AM
Torankusu Torankusu is offline
Elite Member
Torankusu's Avatar
Join Date: Jun 2001
Posts: 10,065
Torankusu is a jewel in the roughTorankusu is a jewel in the rough
Quote:
Originally posted by bigkow44
Ok I forgot, how do you use sendpm?
with (getplayer(#a,account)){
sendpm PM message;
}

I think.
__________________
Quote:
Originally posted by Spark910
Think befreo you type.

Last edited by Torankusu; 09-09-2002 at 11:31 AM..
  #11  
Old 09-09-2002, 10:24 AM
emortylone emortylone is offline
Registered User
Join Date: Apr 2002
Location: Control-NPC
Posts: 834
emortylone is on a distinguished road
It's most GENERAL use is:
NPC Code:

if (actionplayeronline)
{ sendpm Message;}


or to send to all players that are online:
NPC Code:

if (created)
{ for (i=0;i<allplayerscount;i++)
{ with (allplayers[i])
{ sendpm Message;}
}
}


---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
  #12  
Old 09-09-2002, 11:32 AM
Torankusu Torankusu is offline
Elite Member
Torankusu's Avatar
Join Date: Jun 2001
Posts: 10,065
Torankusu is a jewel in the roughTorankusu is a jewel in the rough
Quote:
Originally posted by emortylone
It's most GENERAL use is:
NPC Code:

if (actionplayeronline)
{ sendpm Message;}


---Shifter
That's good to annoy the hell out of players when they log online.
I advise not using it though.
__________________
Quote:
Originally posted by Spark910
Think befreo you type.
  #13  
Old 09-09-2002, 11:32 AM
Torankusu Torankusu is offline
Elite Member
Torankusu's Avatar
Join Date: Jun 2001
Posts: 10,065
Torankusu is a jewel in the roughTorankusu is a jewel in the rough
Oh, and, the NPCserver sends these PMs, so if the player has the NPCserver ignored, they WILL send, but the player won't receive them.
__________________
Quote:
Originally posted by Spark910
Think befreo you type.
  #14  
Old 09-09-2002, 08:45 PM
bigkow44 bigkow44 is offline
Registered User
bigkow44's Avatar
Join Date: Dec 2001
Location: Inside my head.
Posts: 610
bigkow44 is on a distinguished road
Yeah I thought NPC server sent them. Thanks.
__________________
  #15  
Old 09-09-2002, 11:23 PM
emortylone emortylone is offline
Registered User
Join Date: Apr 2002
Location: Control-NPC
Posts: 834
emortylone is on a distinguished road
*agrees fully with Toranksu's explanation*

And yes, if you put actionplayeronline in conjunction with sendpm, it ANNOYS people SO SO SO SO MUCH! I usually make it set a flag like hasreadpm or something, so it means they only see it one time.
---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
  #16  
Old 09-10-2002, 04:42 AM
bigkow44 bigkow44 is offline
Registered User
bigkow44's Avatar
Join Date: Dec 2001
Location: Inside my head.
Posts: 610
bigkow44 is on a distinguished road
Quote:
Originally posted by emortylone
*agrees fully with Toranksu's explanation*

And yes, if you put actionplayeronline in conjunction with sendpm, it ANNOYS people SO SO SO SO MUCH! I usually make it set a flag like hasreadpm or something, so it means they only see it one time.
---Shifter
Never thought of a flag. Good idea
__________________
  #17  
Old 09-10-2002, 05:15 AM
emortylone emortylone is offline
Registered User
Join Date: Apr 2002
Location: Control-NPC
Posts: 834
emortylone is on a distinguished road
Here's what I've done b/4:
NPC Code:

if (actionplayeronline)
{ if (!hasread)
{ sendpm Welcome to [servername] and blah blah!;
set hasread;
}
}


Makes it so you see it ONE time... UN should try it x.x
---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
  #18  
Old 09-15-2002, 01:00 AM
bigkow44 bigkow44 is offline
Registered User
bigkow44's Avatar
Join Date: Dec 2001
Location: Inside my head.
Posts: 610
bigkow44 is on a distinguished road
Quote:
Originally posted by emortylone
Here's what I've done b/4:
NPC Code:

if (actionplayeronline)
{ if (!hasread)
{ sendpm Welcome to [servername] and blah blah!;
set hasread;
}
}


Makes it so you see it ONE time... UN should try it x.x
---Shifter
Every server should have it.
May I use it on Frolic?
__________________
  #19  
Old 09-15-2002, 09:27 AM
bigkow44 bigkow44 is offline
Registered User
bigkow44's Avatar
Join Date: Dec 2001
Location: Inside my head.
Posts: 610
bigkow44 is on a distinguished road
Wait. I need a way to make it updatable. like using a string and checking if its less than the server string. You know what I mean?
Like set the string to a number, and if the string the player has is less than the newer one, send the player the updated one and set the sting to the newest one. Kind ouf like getting outdated news out of the way.
__________________
  #20  
Old 09-15-2002, 09:52 AM
Torankusu Torankusu is offline
Elite Member
Torankusu's Avatar
Join Date: Jun 2001
Posts: 10,065
Torankusu is a jewel in the roughTorankusu is a jewel in the rough
Just have it remove and add flags.
Like:
NPC Code:

if (actionplayeronline){
if (!hasread1){
sendpm blah;
set hasread1;
}
}



And then later check for stuff like:
NPC Code:

if (actionplayeronline)
if (hasread1 && !hasread2){
unset hasread1;
sendpm message;
set hasread2;
}
}



But, you might have to unset every old flag every time, if you want to take up less space.

Your method might work, I didn't put much thought into doing it that way though. If you wish, I'll try to help you do that way.
__________________
Quote:
Originally posted by Spark910
Think befreo you type.
  #21  
Old 09-15-2002, 11:29 AM
bigkow44 bigkow44 is offline
Registered User
bigkow44's Avatar
Join Date: Dec 2001
Location: Inside my head.
Posts: 610
bigkow44 is on a distinguished road
Quote:
Originally posted by Torankusu
Just have it remove and add flags.
Like:
NPC Code:

if (actionplayeronline){
if (!hasread1){
sendpm blah;
set hasread1;
}
}



And then later check for stuff like:
NPC Code:

if (actionplayeronline)
if (hasread1 && !hasread2){
unset hasread1;
sendpm message;
set hasread2;
}
}



But, you might have to unset every old flag every time, if you want to take up less space.

Your method might work, I didn't put much thought into doing it that way though. If you wish, I'll try to help you do that way.
if (!hasreadpm1 and 2)
and so on is bad because what if the player has missed a few news posts? A string would be better. Muuuch better
__________________
  #22  
Old 09-15-2002, 11:48 PM
Torankusu Torankusu is offline
Elite Member
Torankusu's Avatar
Join Date: Jun 2001
Posts: 10,065
Torankusu is a jewel in the roughTorankusu is a jewel in the rough
Quote:
Originally posted by bigkow44


if (!hasreadpm1 and 2)
and so on is bad because what if the player has missed a few news posts? A string would be better. Muuuch better
I thought of this, but if they missed them, why would they be important? Wouldn't they be old and outdated then?

Just check if the player has the most recent one, and have it send if he doesn't.
__________________
Quote:
Originally posted by Spark910
Think befreo you type.
  #23  
Old 09-16-2002, 01:51 AM
R0b1n-NPC R0b1n-NPC is offline
Registered User
Join Date: Sep 2002
Posts: 397
R0b1n-NPC is on a distinguished road
Wow this thread got waay off topic :P

Disabling sendpm is a good idea but it depends, you might need it :P
__________________
- R0bin
  #24  
Old 09-16-2002, 03:44 AM
bigkow44 bigkow44 is offline
Registered User
bigkow44's Avatar
Join Date: Dec 2001
Location: Inside my head.
Posts: 610
bigkow44 is on a distinguished road
I still think 1 string would be best
__________________
  #25  
Old 10-08-2002, 06:39 AM
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
Re: disable sendpm

Quote:
Originally posted by voicedcow6666
Is there something in server options I can add to disable sendpm in scripts?
i think,no..
but I'm not sure..
__________________
"Ability is what you are capable of doing. Motivation determines what you do. Attitude determines how well you do it."
Facebook: facebook.com/raysilvadotnet /
  #26  
Old 10-08-2002, 06:56 AM
R0bin R0bin is offline
Banned
R0bin's Avatar
Join Date: Oct 2002
Location: Wales, UK
Posts: 828
R0bin is on a distinguished road
Send a message via AIM to R0bin
right teh first time osrs
 


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:24 AM.


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