Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting > New Scripting Engine (GS2)
FAQ Members List Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 02-04-2006, 05:26 AM
Warcaptain Warcaptain is offline
Banned
Warcaptain's Avatar
Join Date: Jun 2001
Location: Virginia, USA
Posts: 2,086
Warcaptain is on a distinguished road
Send a message via ICQ to Warcaptain Send a message via AIM to Warcaptain Send a message via Yahoo to Warcaptain
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!!
Reply With Quote
  #2  
Old 02-04-2006, 06:01 AM
napo_p2p napo_p2p is offline
oh snaps
napo_p2p's Avatar
Join Date: Sep 2003
Location: Pismo Beach, California
Posts: 2,118
napo_p2p has a spectacular aura aboutnapo_p2p has a spectacular aura about
Send a message via AIM to napo_p2p Send a message via MSN to napo_p2p
GuiPMEditCtrl brances off of GuiMLTextEditCtrl, which branches off of GuiMLTextCtrl. GuiMLTextCtrl has the text field.
__________________
Scito hoc super omnia.
Haec vita est tua una sola.
Dum vita superest, utere maxime quoque puncto, momento, et hora quae habes.
Tempus neminem non manet.
Noli manere tempus.
Carpe Diem

Seize the Day.
Reply With Quote
  #3  
Old 02-04-2006, 06:02 AM
Warcaptain Warcaptain is offline
Banned
Warcaptain's Avatar
Join Date: Jun 2001
Location: Virginia, USA
Posts: 2,086
Warcaptain is on a distinguished road
Send a message via ICQ to Warcaptain Send a message via AIM to Warcaptain Send a message via Yahoo to Warcaptain
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
Reply With Quote
  #4  
Old 02-05-2006, 11:12 AM
ApothiX ApothiX is offline
Okiesmokie
Join Date: May 2004
Posts: 1,447
ApothiX is on a distinguished road
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.
__________________


[06:24:19] * Parts: Skyld (i=silent@unaffiliated/skyld) ("Perhaps Okiesmokie did not realise that I like the boys. ")
Reply With Quote
  #5  
Old 02-06-2006, 03:46 AM
Warcaptain Warcaptain is offline
Banned
Warcaptain's Avatar
Join Date: Jun 2001
Location: Virginia, USA
Posts: 2,086
Warcaptain is on a distinguished road
Send a message via ICQ to Warcaptain Send a message via AIM to Warcaptain Send a message via Yahoo to Warcaptain
No settext() and gettext() do not work.

:-\ make it work
Reply With Quote
  #6  
Old 02-06-2006, 03:58 AM
napo_p2p napo_p2p is offline
oh snaps
napo_p2p's Avatar
Join Date: Sep 2003
Location: Pismo Beach, California
Posts: 2,118
napo_p2p has a spectacular aura aboutnapo_p2p has a spectacular aura about
Send a message via AIM to napo_p2p Send a message via MSN to napo_p2p
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.
__________________
Scito hoc super omnia.
Haec vita est tua una sola.
Dum vita superest, utere maxime quoque puncto, momento, et hora quae habes.
Tempus neminem non manet.
Noli manere tempus.
Carpe Diem

Seize the Day.
Reply With Quote
  #7  
Old 02-06-2006, 05:41 AM
Warcaptain Warcaptain is offline
Banned
Warcaptain's Avatar
Join Date: Jun 2001
Location: Virginia, USA
Posts: 2,086
Warcaptain is on a distinguished road
Send a message via ICQ to Warcaptain Send a message via AIM to Warcaptain Send a message via Yahoo to Warcaptain
Grr... I see why that is.. but still.

Should be serveroption: rwpm=true
Reply With Quote
  #8  
Old 02-06-2006, 06:49 AM
ApothiX ApothiX is offline
Okiesmokie
Join Date: May 2004
Posts: 1,447
ApothiX is on a distinguished road
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?
__________________


[06:24:19] * Parts: Skyld (i=silent@unaffiliated/skyld) ("Perhaps Okiesmokie did not realise that I like the boys. ")
Reply With Quote
  #9  
Old 02-06-2006, 07:56 PM
Warcaptain Warcaptain is offline
Banned
Warcaptain's Avatar
Join Date: Jun 2001
Location: Virginia, USA
Posts: 2,086
Warcaptain is on a distinguished road
Send a message via ICQ to Warcaptain Send a message via AIM to Warcaptain Send a message via Yahoo to 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.
Reply With Quote
  #10  
Old 02-06-2006, 09:02 PM
ApothiX ApothiX is offline
Okiesmokie
Join Date: May 2004
Posts: 1,447
ApothiX is on a distinguished road
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?
__________________


[06:24:19] * Parts: Skyld (i=silent@unaffiliated/skyld) ("Perhaps Okiesmokie did not realise that I like the boys. ")
Reply With Quote
  #11  
Old 02-06-2006, 09:29 PM
Warcaptain Warcaptain is offline
Banned
Warcaptain's Avatar
Join Date: Jun 2001
Location: Virginia, USA
Posts: 2,086
Warcaptain is on a distinguished road
Send a message via ICQ to Warcaptain Send a message via AIM to Warcaptain Send a message via Yahoo to Warcaptain
I was making an 'away message' type system for starters...
Reply With Quote
  #12  
Old 02-06-2006, 09:30 PM
Rick Rick is offline
PipBoy Extraordinaire!
Rick's Avatar
Join Date: Jul 2004
Location: Long Beach, California.
Posts: 831
Rick is on a distinguished road
Quote:
Originally Posted by Warcaptain
I was making an 'away message' type system for starters...
So use something other than PMs?
Reply With Quote
  #13  
Old 02-06-2006, 10:28 PM
napo_p2p napo_p2p is offline
oh snaps
napo_p2p's Avatar
Join Date: Sep 2003
Location: Pismo Beach, California
Posts: 2,118
napo_p2p has a spectacular aura aboutnapo_p2p has a spectacular aura about
Send a message via AIM to napo_p2p Send a message via MSN to napo_p2p
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.
__________________
Scito hoc super omnia.
Haec vita est tua una sola.
Dum vita superest, utere maxime quoque puncto, momento, et hora quae habes.
Tempus neminem non manet.
Noli manere tempus.
Carpe Diem

Seize the Day.
Reply With Quote
  #14  
Old 02-06-2006, 10:39 PM
Warcaptain Warcaptain is offline
Banned
Warcaptain's Avatar
Join Date: Jun 2001
Location: Virginia, USA
Posts: 2,086
Warcaptain is on a distinguished road
Send a message via ICQ to Warcaptain Send a message via AIM to Warcaptain Send a message via Yahoo to Warcaptain
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.
Reply With Quote
  #15  
Old 02-07-2006, 06:22 AM
ApothiX ApothiX is offline
Okiesmokie
Join Date: May 2004
Posts: 1,447
ApothiX is on a distinguished road
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.)
__________________


[06:24:19] * Parts: Skyld (i=silent@unaffiliated/skyld) ("Perhaps Okiesmokie did not realise that I like the boys. ")
Reply With Quote
  #16  
Old 02-07-2006, 07:01 AM
Rick Rick is offline
PipBoy Extraordinaire!
Rick's Avatar
Join Date: Jul 2004
Location: Long Beach, California.
Posts: 831
Rick is on a distinguished road
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:".
Reply With Quote
  #17  
Old 02-07-2006, 06:59 PM
ApothiX ApothiX is offline
Okiesmokie
Join Date: May 2004
Posts: 1,447
ApothiX is on a distinguished road
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
__________________


[06:24:19] * Parts: Skyld (i=silent@unaffiliated/skyld) ("Perhaps Okiesmokie did not realise that I like the boys. ")
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 12:17 PM.


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