Welcome!

Join our community of MMO enthusiasts and game developers! By registering, you'll gain access to discussions on the latest developments in MMO server files and collaborate with like-minded individuals. Join us today and unlock the potential of MMO server development!

Join Today!

:marry Command BcStorm

Ask me about Daoism
Member
Joined
Nov 6, 2010
Messages
1,560
Reaction score
393
Hey!

I've been working with this C# command from Holo.
Code:
#region :marry 
	case "marry": 
                 { 
                  virtualUser User = userManager.getUser(args[1]); 
                  using (DatabaseClient dbClient = Eucalypt.dbManager.GetClient()) 
                  if (int.Parse(dbClient.getString("SELECT married FROM married WHERE name = '" + _Username + "'")) == 1) 
                  { 
                  sendData("BK" + "You cannot marry " + User + " cause you are already married"); 
                  } 
                  else 
                  { 
                  DataRow dRow = dbClient.getRow("SELECT married,partner FROM married WHERE name = '" + User + "'"); 
                  { 
                  if (int.Parse(Convert.ToString(dRow["name"])) == 1) 
                  { 
                  sendData("BK" + "Sorry but " + User + " is married to " + Convert.ToString(dRow["partner"])); 
                  } 
                  if (int.Parse(Convert.ToString(dRow["name"])) == 0) 
                  { 
                  } 
                  } 
                  } 
                  break; 
                  } 
                  #endregion

I tried converting it to BcStorm, but it wouldn't work. Could someone help me out? I don't even think this works, either way, because it doesn't insert anything.

Thanks in advance for the help!
 
Experienced Elementalist
Joined
Aug 28, 2012
Messages
214
Reaction score
137
I'll try to setup BcStorm on localhost and help. But, I'm not making any promises.
 
Upvote 0
Back
Top