Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   Minor bug? (https://forums.graalonline.com/forums/showthread.php?t=72225)

Chandler 02-16-2007 10:25 PM

Minor bug?
 
HTML Code:

for (temp.curPlayer: allplayers)
{
  if (!temp.curPlayer.account)
  {
    continue;
  }
  makevar("this.curV" @ temp.curPlayer.graalversion) += 1;
}
for (temp.curVersion: getstringkeys("this.curV"))
{
  echo(temp.curVersion);
  this.informOthers("Version:" SPC temp.curVersion @ "," SPC this.("curV" @ temp.curVersion));
}

returns:
Quote:

V2
Classic (Server): Version: V2,
V4
Classic (Server): Version: V4,
However, the flags from the database return:
Quote:

curV2.01=4
curV4.2=25
However, I decided to make the graal version an integer which fixed this problem, however if the graal version is greater than 0.6, it would equal to 1... :s

Riot 02-16-2007 10:33 PM

getstringkeys("this.curV") is not returning the period and after since the 2 is considered a variable of "curV4". The same for the "this.curV2.01".

Chandler 02-16-2007 10:47 PM

Quote:

Originally Posted by Riot (Post 1278297)
getstringkeys("this.curV") is not returning the period and after since the 2 is considered a variable of "curV4". The same for the "this.curV2.01".

Shouldn't getstringkeys detect this though? Or would I then need to do something like
HTML Code:

for (temp.currentVersion: getstringkeys("this.curV"))
{
  for (temp.currentGVersion: getstringkeys("this.curV" @ temp.currentVersion))
  {
    //
  }
}


Admins 02-16-2007 11:02 PM

You would need to do it recursive yes


All times are GMT +2. The time now is 05:10 PM.

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