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 08-13-2008, 08:37 AM
Frankie Frankie is offline
xChugxLifex
Frankie's Avatar
Join Date: Feb 2008
Location: New York
Posts: 1,610
Frankie is a jewel in the roughFrankie is a jewel in the rough
Send a message via AIM to Frankie Send a message via MSN to Frankie
question about a script for the PM window(previously named "question")

is it possible by script to open up a blank pm window?

a long time ago I was bored, made a custom admin list via gui profiles. I was wondering if I could do something so when you double click one of the staff from the gui window, it opens up a PM window for easier communication to RCs.

I don't know what exactly to search for on the wiki so it's not much help right now. thanks.
__________________
*Sum41Freeeeek
*Frankie
Reply With Quote
  #2  
Old 08-13-2008, 09:58 AM
Skyld Skyld is offline
Script-fu
Skyld's Avatar
Join Date: Jan 2002
Location: United Kingdom
Posts: 3,914
Skyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud of
Send a message via AIM to Skyld
PHP Code:
(@ "-Playerlist").openPMWindow(findplayer("accountname"), false); 
... should open a blank PM window to the account name specified in the findplayer. Clientside only, of course.
Reply With Quote
  #3  
Old 08-13-2008, 04:09 PM
cbk1994 cbk1994 is offline
the fake one
cbk1994's Avatar
Join Date: Mar 2003
Location: San Francisco
Posts: 10,718
cbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond repute
Send a message via AIM to cbk1994
Quote:
Originally Posted by Skyld View Post
PHP Code:
(@ "-Playerlist").openPMWindow(findplayer("accountname"), false); 
... should open a blank PM window to the account name specified in the findplayer. Clientside only, of course.
What does the second parameter do?
__________________
Reply With Quote
  #4  
Old 08-13-2008, 04:40 PM
Crow Crow is offline
ǝɔɐɹq ʎןɹnɔ
Crow's Avatar
Join Date: Dec 2006
Location: Germany
Posts: 5,153
Crow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond repute
Quite a good question. I've been using this for quite some time now, and I still don't know. And I also got a question to this one. The thread fits, so I guess I can ask here. Does anybody know if it's possible to pm people on other playerworlds with this? While they are not being listed on your playerlist?
Reply With Quote
  #5  
Old 08-13-2008, 04:57 PM
Demisis_P2P Demisis_P2P is offline
Kanto League Champion
Demisis_P2P's Avatar
Join Date: Jan 2005
Posts: 2,357
Demisis_P2P has much to be proud ofDemisis_P2P has much to be proud ofDemisis_P2P has much to be proud ofDemisis_P2P has much to be proud ofDemisis_P2P has much to be proud ofDemisis_P2P has much to be proud ofDemisis_P2P has much to be proud of
Quote:
Originally Posted by cbk1994 View Post
What does the second parameter do?
Set it to true and find out.

I dare you.
__________________
Reply With Quote
  #6  
Old 08-13-2008, 06:18 PM
Skyld Skyld is offline
Script-fu
Skyld's Avatar
Join Date: Jan 2002
Location: United Kingdom
Posts: 3,914
Skyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud of
Send a message via AIM to Skyld
Quote:
Originally Posted by cbk1994 View Post
What does the second parameter do?
Defines whether the PM is a mass message.
Quote:
Originally Posted by Crow
Quite a good question. I've been using this for quite some time now, and I still don't know. And I also got a question to this one. The thread fits, so I guess I can ask here. Does anybody know if it's possible to pm people on other playerworlds with this? While they are not being listed on your playerlist?
Well, players from other servers should be listed in allplayers[] on clientside as objects, and this function is expecting a player object. Don't see why it wouldn't work.
Reply With Quote
  #7  
Old 08-13-2008, 06:33 PM
Frankie Frankie is offline
xChugxLifex
Frankie's Avatar
Join Date: Feb 2008
Location: New York
Posts: 1,610
Frankie is a jewel in the roughFrankie is a jewel in the rough
Send a message via AIM to Frankie Send a message via MSN to Frankie
blah, can't get it to work.

PHP Code:
function Admin_TextList1.onDblClick()
{
  
temp.toks params[1].tokenize(":");
  (@ 
"-Playerlist").openPMWindow(findplayer(temp.toks[0]), false);  

temp.toks[0] returns the account in this case. tested that, it works.
also tried changing temp.toks[0] to my account to see if it was a tokenize problem, still couldn't get it.

do you need to be using the scripted or something? I tried it again with the scripted playerlist, still nothing.
__________________
*Sum41Freeeeek
*Frankie
Reply With Quote
  #8  
Old 08-13-2008, 06:39 PM
Chompy Chompy is offline
¯\(º_o)/¯
Chompy's Avatar
Join Date: Sep 2006
Location: Norway
Posts: 2,815
Chompy is just really niceChompy is just really niceChompy is just really nice
Send a message via MSN to Chompy
Quote:
Originally Posted by Frankie View Post
blah, can't get it to work.

PHP Code:
function Admin_TextList1.onDblClick()
{
  
temp.toks params[1].tokenize(":");
  (@ 
"-Playerlist").openPMWindow(findplayer(temp.toks[0]), false);  

temp.toks[0] returns the account in this case. tested that, it works.
also tried changing temp.toks[0] to my account to see if it was a tokenize problem, still couldn't get it.

do you need to be using the scripted or something? I tried it again with the scripted playerlist, still nothing.
Try get the player object from allplayers[] or players[] ;o (Clientside)
__________________
Reply With Quote
  #9  
Old 08-13-2008, 06:40 PM
Crow Crow is offline
ǝɔɐɹq ʎןɹnɔ
Crow's Avatar
Join Date: Dec 2006
Location: Germany
Posts: 5,153
Crow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond repute
Try it without using findPlayer()? Also, Skyld, if people are not listed in the playerlist (e.g.: they are in your buddylist and you have the option to display all your buddies turned on), they don't seem to appear in allplayers.
Reply With Quote
  #10  
Old 08-13-2008, 06:43 PM
Skyld Skyld is offline
Script-fu
Skyld's Avatar
Join Date: Jan 2002
Location: United Kingdom
Posts: 3,914
Skyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud of
Send a message via AIM to Skyld
Quote:
Originally Posted by Crow View Post
Try it without using findPlayer()? Also, Skyld, if people are not listed in the playerlist (e.g.: they are in your buddylist and you have the option to display all your buddies turned on), they don't seem to appear in allplayers.
Well, they will only be in the allplayers[] array if you can see them in the playerlist because the playerlist is making requests to the serverlister to download buddies/servers/guilds only when they're needed.
Reply With Quote
  #11  
Old 08-13-2008, 06:45 PM
Frankie Frankie is offline
xChugxLifex
Frankie's Avatar
Join Date: Feb 2008
Location: New York
Posts: 1,610
Frankie is a jewel in the roughFrankie is a jewel in the rough
Send a message via AIM to Frankie Send a message via MSN to Frankie
Quote:
Originally Posted by Chompy View Post
Try get the player object from allplayers[] or players[] ;o (Clientside)
I don't understand what you mean :[

@ Crow - I tried it, sill nothing.
__________________
*Sum41Freeeeek
*Frankie
Reply With Quote
  #12  
Old 08-13-2008, 06:47 PM
Skyld Skyld is offline
Script-fu
Skyld's Avatar
Join Date: Jan 2002
Location: United Kingdom
Posts: 3,914
Skyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud of
Send a message via AIM to Skyld
Quote:
Originally Posted by Frankie View Post
I don't understand what you mean :[

@ Crow - I tried it, sill nothing.
Seems I misinterpreted the playerlist code before, it is always expecting an array:
PHP Code:
(@ "-Playerlist").openPMWindow({findPlayer("Skyld")}, false); 
Reply With Quote
  #13  
Old 08-13-2008, 07:01 PM
Frankie Frankie is offline
xChugxLifex
Frankie's Avatar
Join Date: Feb 2008
Location: New York
Posts: 1,610
Frankie is a jewel in the roughFrankie is a jewel in the rough
Send a message via AIM to Frankie Send a message via MSN to Frankie
I can't get it -.-

PHP Code:
function Admin_TextList1.onDblClick()
{
  
temp.toks params[1].tokenize(":");
  for (
temp.plallplayers)
  {
    if (
pl == temp.toks[0] && pl.headimg == "era_head-remotecontrol.png")
    {
      
this.pmAccount pl;
    }
  }
  (@ 
"-Playerlist").openPMWindow({findPlayer(this.pmAccount)}, false); 

it's supposed to PM the RCs but if you have player and RC open it will try PMing the player.

so I'm using the allplayers so I can get the ID of the RC and not the player, but I can't get it to work right.
__________________
*Sum41Freeeeek
*Frankie
Reply With Quote
  #14  
Old 08-13-2008, 07:08 PM
PrinceOfKenshin PrinceOfKenshin is offline
That guy with a beard
PrinceOfKenshin's Avatar
Join Date: May 2004
Location: Ontario, Canada
Posts: 819
PrinceOfKenshin has a spectacular aura aboutPrinceOfKenshin has a spectacular aura about
That function is under the clientside of the code right?
__________________


Quote:
Game Master (Server): Greetings PrinceOfKenshin, there are new posts on the forums that demand your urgent attention! God speed, the fate of the world is in your hands. If you fail, middle earth will forever be in the darkness and your children will be enslaved by McKain.
Reply With Quote
  #15  
Old 08-13-2008, 07:09 PM
Frankie Frankie is offline
xChugxLifex
Frankie's Avatar
Join Date: Feb 2008
Location: New York
Posts: 1,610
Frankie is a jewel in the roughFrankie is a jewel in the rough
Send a message via AIM to Frankie Send a message via MSN to Frankie
yes.
it works fine when I don't use the allplayers stuff but the thing is, I need to make sure it's pming the RC and not the player.
__________________
*Sum41Freeeeek
*Frankie
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 10:26 PM.


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