Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting
FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 02-16-2007, 10:25 PM
Chandler Chandler is offline
Banned
Join Date: Jan 2007
Posts: 656
Chandler will become famous soon enough
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
Reply With Quote
  #2  
Old 02-16-2007, 10:33 PM
Riot Riot is offline
Delteria Management
Join Date: Nov 2003
Location: Seminole County, Florida
Posts: 280
Riot is on a distinguished road
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".
Reply With Quote
  #3  
Old 02-16-2007, 10:47 PM
Chandler Chandler is offline
Banned
Join Date: Jan 2007
Posts: 656
Chandler will become famous soon enough
Quote:
Originally Posted by Riot View Post
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))
  {
    //
  }
}
Reply With Quote
  #4  
Old 02-16-2007, 11:02 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
You would need to do it recursive yes
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 09:47 PM.


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