Thread: Basic Bank
View Single Post
  #4  
Old 04-08-2007, 08:32 AM
Chandler Chandler is offline
Banned
Join Date: Jan 2007
Posts: 656
Chandler will become famous soon enough
Quote:
Originally Posted by killerogue View Post
Another useful script Chandler!

But, might I suggest something that can be used in a class bankwise?
HTML Code:
function onPlayerChats()
  {
  temp.actionNames = {"deposit", "withdraw", "statistics"};
  temp.realNames = {"depositMoney", "withdrawMoney", "bankStatistics"};
  for (temp.currentAction: temp.actionNames)
    if (player.chat.starts(":"@ temp.currentAction))
      temp.sendServer = temp.realNames[temp.actionNames.index(temp.currentAction)];
  if (temp.sendServer)
    ("Bank Control").(@ temp.sendServer)(player.chat.substring(temp.sendServer.pos("Money") + 1));
  } 


Quote:
Originally Posted by Gambet View Post
I still think people should use the gui functions more with GS2 :/
I'd rather not. Hence the word "Basic" being in this thread name.
Reply With Quote