Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   Minimap trouble (https://forums.graalonline.com/forums/showthread.php?t=62164)

petro1212 11-09-2005 07:49 PM

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?

ApothiX 11-10-2005 06:20 PM

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?

petro1212 11-10-2005 06:38 PM

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 :confused:

Admins 11-10-2005 07:14 PM

Correct would be this i guess:
PHP Code:

function checkForPMs() {
  for (
plallplayers) {
    if (
pl.pmswaiting())
      return 
true;
  }
  return 
false;



Yen 11-11-2005 09:46 PM

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

Skyld 11-11-2005 10:30 PM

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.

ApothiX 11-15-2005 04:53 PM

Stefan uses the style that Skyld wanted to diminish before his edit to his SSI-GS2 :P


All times are GMT +2. The time now is 03:20 PM.

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