Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   New Scripting Engine (GS2) (https://forums.graalonline.com/forums/forumdisplay.php?f=153)
-   -   GuiPMEditCtrl Problem (https://forums.graalonline.com/forums/showthread.php?t=63905)

Warcaptain 02-04-2006 05:26 AM

GuiPMEditCtrl Problem
 
there is no text variable for this text edit GUI... which sucks.. because i cant read or modify the value of this text box (for sending pm's)

please.. stefan if you read this fix this!!

napo_p2p 02-04-2006 06:01 AM

GuiPMEditCtrl brances off of GuiMLTextEditCtrl, which branches off of GuiMLTextCtrl. GuiMLTextCtrl has the text field.

Warcaptain 02-04-2006 06:02 AM

Unfortunately not :(

I dumped getvarnames and it didnt show up...

I also tried NAME.text="" and it wouldnt work :( Sadly.. text is NOT a variable on GuiPMEditCtrl :(

ApothiX 02-05-2006 11:12 AM

Maybe this was done on purpose to stop people from attempting to log PMs? Try to use NAME.getText() and see if that works, though.

Warcaptain 02-06-2006 03:46 AM

No settext() and gettext() do not work.

:-\ make it work

napo_p2p 02-06-2006 03:58 AM

Hmm, you're right. I think it is because the GuiPMEditCtrl is meant for the players to edit the text field. I guess it is partly to prevent irresponsible staff members from sending false PMs from other accounts.

Warcaptain 02-06-2006 05:41 AM

Grr... I see why that is.. but still.

Should be serveroption: rwpm=true :(

ApothiX 02-06-2006 06:49 AM

Quote:

Originally Posted by Warcaptain
Grr... I see why that is.. but still.

Should be serveroption: rwpm=true :(

I don't really see how a serveroption would change the fact that staff would try to log/send false PMs?

Warcaptain 02-06-2006 07:56 PM

It wouldnt try and stop them... but it would make it so servers that wanted the ability do to that can. IE: putnpc enabled or something like that... commands that might be dangerous can be enabled if the manager things its okay.

If a dangerous script gets created.. maybe the GST can get off their butts and find it and have the staff remove it. But dont disable features just because it MIGHT be used in a bad way.

ApothiX 02-06-2006 09:02 PM

Quote:

Originally Posted by Warcaptain
It wouldnt try and stop them... but it would make it so servers that wanted the ability do to that can. IE: putnpc enabled or something like that... commands that might be dangerous can be enabled if the manager things its okay.

If a dangerous script gets created.. maybe the GST can get off their butts and find it and have the staff remove it. But dont disable features just because it MIGHT be used in a bad way.

How exactly would you use the manipulation of player's private messages in a 'good' way?

Warcaptain 02-06-2006 09:29 PM

I was making an 'away message' type system for starters...

Rick 02-06-2006 09:30 PM

Quote:

Originally Posted by Warcaptain
I was making an 'away message' type system for starters...

So use something other than PMs?

napo_p2p 02-06-2006 10:28 PM

Quote:

Originally Posted by Warcaptain
I was making an 'away message' type system for starters...

You can probably make use of onPM() then.

I am not sure, but I think the syntax is:

PHP Code:

function onPM(pl) {



Where pl is the player that pmed you.

Warcaptain 02-06-2006 10:39 PM

I know that.. but the thing is its supposed to send a PM back saying, "Im away right now, so leave me a message" or something like that (whatever the player says)

And while its 100% possible to have it sent from the NPC-Server ie: NPC-Server messages you back and says, "So and so is away, leave a message for him" thats dumb.. and since the capabilities ARE THERE.. I should be able to use them.

ApothiX 02-07-2006 06:22 AM

Quote:

Originally Posted by Warcaptain
and since the capabilities ARE THERE.. I should be able to use them.

But they are NOT there, and I agree with them being not there. Personally, I would not like scripts to be able to send PMs to players under my name, without my knowledge (and I'm pretty sure I'm not the only one who feels this way.)

Rick 02-07-2006 07:01 AM

Perhaps Stefan could allow some sort of message system where it distinctly marks the sent message with text saying it's not actually from that player.

Like the "Mass Message:" prefix on mass messages. Maybe "Automated Message:" or "Script Message:".

ApothiX 02-07-2006 06:59 PM

Quote:

Originally Posted by Rick
Perhaps Stefan could allow some sort of message system where it distinctly marks the sent message with text saying it's not actually from that player.

Like the "Mass Message:" prefix on mass messages. Maybe "Automated Message:" or "Script Message:".

That could work :)


All times are GMT +2. The time now is 06:58 AM.

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