Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Server (https://forums.graalonline.com/forums/forumdisplay.php?f=14)
-   -   disable sendpm (https://forums.graalonline.com/forums/showthread.php?t=35150)

voicedcow6666 08-06-2002 02:23 AM

disable sendpm
 
Is there something in server options I can add to disable sendpm in scripts?

Kyle_2002 08-06-2002 07:04 AM

You mean like editing grawl? Uhh I don't belive so. Unless you want some kind of jail thing.

Python523 08-06-2002 07:15 AM

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

Andor_RC14 08-06-2002 07:58 AM

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

voicedcow6666 08-06-2002 08:00 AM

yeah, I'm talking about the sendpm script command. I don't want my NAT's using it.

adam 08-06-2002 10:31 AM

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.

zorakid2001 08-07-2002 12:35 AM

ummmm i think you cant for reasons of possible abuse.. Like, What if some1 wanted to not let their nats send pms!

emortylone 08-25-2002 12:14 AM

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

bigkow44 09-08-2002 08:20 PM

Ok I forgot, how do you use sendpm?

Torankusu 09-09-2002 02:56 AM

Quote:

Originally posted by bigkow44
Ok I forgot, how do you use sendpm?
with (getplayer(#a,account)){
sendpm PM message;
}

I think.

emortylone 09-09-2002 10:24 AM

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

Torankusu 09-09-2002 11:32 AM

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.

Torankusu 09-09-2002 11:32 AM

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.

bigkow44 09-09-2002 08:45 PM

Yeah I thought NPC server sent them. Thanks.

emortylone 09-09-2002 11:23 PM

*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

bigkow44 09-10-2002 04:42 AM

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

emortylone 09-10-2002 05:15 AM

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

bigkow44 09-15-2002 01:00 AM

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?

bigkow44 09-15-2002 09:27 AM

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.

Torankusu 09-15-2002 09:52 AM

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.

bigkow44 09-15-2002 11:29 AM

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

Torankusu 09-15-2002 11:48 PM

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.

R0b1n-NPC 09-16-2002 01:51 AM

Wow this thread got waay off topic :P

Disabling sendpm is a good idea but it depends, you might need it :P

bigkow44 09-16-2002 03:44 AM

I still think 1 string would be best

osrs 10-08-2002 06:39 AM

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

R0bin 10-08-2002 06:56 AM

right teh first time osrs


All times are GMT +2. The time now is 06:14 PM.

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