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 11-09-2005, 07:49 PM
petro1212 petro1212 is offline
Angelus
petro1212's Avatar
Join Date: Mar 2003
Location: The Moon
Posts: 445
petro1212 is on a distinguished road
Send a message via AIM to petro1212 Send a message via MSN to petro1212
Minimap trouble

I was busy playing with my minimap script and found out that I was missing personal messages (indication clouds). Since its part of graal i'd basicly like to continue using them in the map.


Quote:
Originally Posted by Skyld
function checkForPMs()
{
for (pl: allplayers)
{
return pl.pmswaiting() ? pl.account : FALSE;
}
}
However this will only display the most recent personal message.

Couldn't find anything else in scriptfunctions_clientside.txt to get me started either.

So my question is: Are there any methodes to check for pm's?
__________________
Reply With Quote
  #2  
Old 11-10-2005, 06:20 PM
ApothiX ApothiX is offline
Okiesmokie
Join Date: May 2004
Posts: 1,447
ApothiX is on a distinguished road
Quote:
Originally Posted by petro1212
I was busy playing with my minimap script and found out that I was missing personal messages (indication clouds). Since its part of graal i'd basicly like to continue using them in the map.



However this will only display the most recent personal message.

Couldn't find anything else in scriptfunctions_clientside.txt to get me started either.

So my question is: Are there any methodes to check for pm's?
I'm not really familiar with the pmswaiting function, but couldn't you add it to an array as opposed to returning it, and it would give all the PMs?
__________________


[06:24:19] * Parts: Skyld (i=silent@unaffiliated/skyld) ("Perhaps Okiesmokie did not realise that I like the boys. ")
Reply With Quote
  #3  
Old 11-10-2005, 06:38 PM
petro1212 petro1212 is offline
Angelus
petro1212's Avatar
Join Date: Mar 2003
Location: The Moon
Posts: 445
petro1212 is on a distinguished road
Send a message via AIM to petro1212 Send a message via MSN to petro1212
Quote:
Originally Posted by ApothiX
I'm not really familiar with the pmswaiting function, but couldn't you add it to an array as opposed to returning it, and it would give all the PMs?
Correct me if i'm wrong but pmswaiting() is a return boolean, By checking it with each player it would only display the most recent pm (flaw in the function itself?)

If i'd put it in an array wouldn't I just get the same outcome
__________________
Reply With Quote
  #4  
Old 11-10-2005, 07:14 PM
Admins Admins is offline
Graal Administration
Join Date: Jan 2000
Location: Admins
Posts: 11,693
Admins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud of
Correct would be this i guess:
PHP Code:
function checkForPMs() {
  for (
plallplayers) {
    if (
pl.pmswaiting())
      return 
true;
  }
  return 
false;

Reply With Quote
  #5  
Old 11-11-2005, 09:46 PM
Yen Yen is offline
Banned
Yen's Avatar
Join Date: Oct 2005
Location: Nova Scotia, Canada
Posts: 1,085
Yen is an unknown quantity at this point
Send a message via AIM to Yen Send a message via MSN to Yen
Oooh! Look at how Stefan scripts!
He's all
PHP Code:
function onCreated() {
  
chat "LAWL WTFPWNT!";

Take that, all you
PHP Code:
function onCreated()
{
  
chat "Haha I sux0rz";

nubs!

This is totally off topic. <3
Reply With Quote
  #6  
Old 11-11-2005, 10:30 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 Yen
Oooh! Look at how Stefan scripts!
He's all
PHP Code:
function onCreated() {
  
chat "LAWL WTFPWNT!";

Take that, all you
PHP Code:
function onCreated()
{
  
chat "Haha I sux0rz";

nubs!

This is totally off topic. <3
Thank you for this post that has absolutely zero relevance to this thread!

Please remind me later to give you candy or so.
__________________
Skyld
Reply With Quote
  #7  
Old 11-15-2005, 04:53 PM
ApothiX ApothiX is offline
Okiesmokie
Join Date: May 2004
Posts: 1,447
ApothiX is on a distinguished road
Stefan uses the style that Skyld wanted to diminish before his edit to his SSI-GS2 :P
__________________


[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 03:42 PM.


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