Thread: Objects ...
View Single Post
  #5  
Old 03-04-2007, 03:21 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 Chandler View Post
I don't see why you'd want to use loadvars in this scenario.
HTML Code:
public function onretrieveMessages(playerAccount)
  {
  temp.allAccounts = getstringkeys("this.msg_");
  for (temp.currentAccount: temp.allAccounts)
    if (temp.currentAccount == temp.playerAccount)
      temp.messageList = this.(@"msg_"@ temp.playerAccount);
  return(temp.messageList);
  } 
  //You'd call this part of the code, eg "temp.myMessages = this.retrieveMessages(player.account);"
The flags:
HTML Code:
msg_Chandler="Hiya, how're you?", "Today I have a message"
msg_David="I am St...Dave", "hi Chandler! ;)"
I did that before, and it worked except that the DB NPC deleted strings, as they commonly do.
__________________
Reply With Quote