*Are you using Navicat?
If so,go to your database in Navicat , click on "Tables" after that , there should be a field called "accounts" double click it,now you should see the "username" tab and "password" tab,type in,your account and password,save and voila!
*Or you may use the register page thesamuraivega released,you can find it here.
P.S: If you are using Hellmouth Source you don't need to register,you can directly login with any account & password,the characters are auto created by when you are login with any random account & password.
That's something you need to code yourself. I've provided far, far too much information on how to go about it (releases, step by step instructions, theory of how, etc).
Sorry about not reading through all the comments (if this was already asked). I am getting this error:
Code:
MySql.Data.MySqlClient.MySqlException (0x80004005): Unable to connect to any of the specified MySQL hosts.
at MySql.Data.MySqlClient.NativeDriver.Open()
at MySql.Data.MySqlClient.Driver.Open()
at MySql.Data.MySqlClient.Driver.Create(MySqlConnectionStringBuilder settings)
at MySql.Data.MySqlClient.MySqlPool.GetPooledConnection()
at MySql.Data.MySqlClient.MySqlPool.TryToGetDriver()
at MySql.Data.MySqlClient.MySqlPool.GetConnection()
at MySql.Data.MySqlClient.MySqlConnection.Open()
at MySqlHandler.MySqlReader.TryFill(MySqlCommand command)
at MySqlHandler.MySqlReader..ctor(MySqlCommand command)
at Hellmouth.Database.LoadNpcs() in C:\Users\Chris\Dropbox\Release Hellmouth\Database\Database.cs:line 750
at Hellmouth.Program.LoadDB() in C:\Users\Chris\Dropbox\Release Hellmouth\Program.cs:line 359
I have already taken the .dlls from elitecoemu because I am 32bit, the project is set to 32bit, and the Settings.txt file is setup properly.
Client.Packets = new Packets(); var Test = scope.GetVariable<Func<Character, Packets, uint, int>>("npc"); Test(Client, Client.Packets, LinkBack); runtime.Shutdown();
and than in the .npc files
PHP Code:
def npc(Client, Packets, Option): if(Option == 0): Text("If you are level 20 or above, you may train in the training ground. Would you like me to teleport you there for 1000 silver.") Link("Yes, Please.", 1) Link("NO, I'll Stay.", 255) Face(67) Finish() if(Option == 1): Client.Money -= 1000 Send(Packets.Teleport(Client, Client.X, Client.Y, Client.Map)) return 0
I tried to place test mobs in tc but failed. I added a line to mobspawns in the database but it didnt work. The guards that were supposed to be added arent there either?
Also how would i go about Giving an item and taking an item? Ex. giving 1 DBscroll for 10 DBs? If i new how to do that i could use it as refference to do a bunch of other shit. I looked for stuff already in there to use to kinda teach myself but i had no luck, its just too bare atm :P
I did one NPC but im stuck on one part where cpntrol cant fall through from one case label to the next. In this case its "case 2:"
Code:
#region CPAdmin2
case 2071:
{
switch (LinkBack)
{
case 0:
{
Text("Ahh, hello " + Client.Name + ". Come to trade me Gold for CPs?", Client);
Link("Yep.", 1, Client);
Link("Nope.", 255, Client);
Finish(Client);
return;
}
case 1:
{
Text("Are you sure you want to trade 50000000 Gold for 2150CPs", Client);
Link("Yep.", 2, Client);
Link("Nope.", 255, Client);
Finish(Client);
return;
}
[COLOR="Red"]case[/COLOR] 2:
{
if (Client.Money >= 50000000)
{
Client.Money -= 50000000;
Client.CP += 5000;
return;
}
}
[COLOR="Blue"]return[/COLOR];
}
[COLOR="Blue"]return[/COLOR];
}
#endregion
I made the error go away by adding the lines which you see in blue. IS THIS THE RIGHT SOLUTION TO THE PROBLEM? :3
Sorry nick, I've never been able to replicate that error... EVER. I've seen a few people have it and I've never been able to cause it to happen with a properly set up source.
I'd suggest downloading a fresh copy of the source, configuring all the correct areas (including the conquerloader) and then try again. Assuming everything is set up it should work just fine.
@Jay ANYTHING involving a switch statement MUST have a break; or return; statement to break that loop. That's why the error was showing up.
break; exits the current loop while return; exits the entire method
As for checking items there are methods in the source for that already... I forget what I labeled them but it's along the lines of..