[FAQ] HellmouthSource

04/05/2011 04:49 conquer22#226
Last Question Do i Still Need To Edit Server.dat
04/05/2011 05:10 pro4never#227
No, the whole point of conquerloader is to bypass server.dat entirely.
04/05/2011 05:32 conquer22#228
Ohh Thanks :D
04/11/2011 14:40 batman01#229
how to make accounts ??? pleaseee talk me
04/11/2011 16:34 F i n c h i#230
Quote:
Originally Posted by batman01 View Post
how to make accounts ??? pleaseee talk me
*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.
[Only registered and activated users can see links. Click Here To Register...]

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.

Hope I helped you.
04/11/2011 18:07 Yaksha#231
or just type in your account name and password when logging in to create one automatically for you >.>
04/15/2011 06:14 rasu1412#232
I need code creat monter in Source HellMouth. Who can help me plz.
04/15/2011 06:41 pro4never#233
YOU can help you.

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).
04/17/2011 01:34 pendo324#234
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.

.dlls I took:
  • MySqlHandler.dll
  • mysql.data.dll
  • libeay32.dll
  • ManagedOpenSsl.dll

Settings.txt file:
Code:
IP=MyIP
USERNAME=root
PASSWORD=MySQL Password
DATABASE=hell
DMGREDUCT=80
As far as I know, the database is fine.
[Only registered and activated users can see links. Click Here To Register...]

I really hope someone can help me out with this as I really want to mess around with this source.
04/17/2011 11:23 { Angelius }#235
so i have this question .

i added a reference to the client class which is
PHP Code:
public Packets Packets
and on the Script Execution
PHP Code:
Client.Packets = new Packets();
var 
Test scope.GetVariable<Func<CharacterPacketsuintint>>("npc");
Test(ClientClient.PacketsLinkBack);
runtime.Shutdown(); 
and than in the .npc files
PHP Code:
def npc(ClientPacketsOption):
    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(ClientClient.XClient.YClient.Map))
    return 

on send
PHP Code:
scope.SetVariable("Send", new Func<byte[],  int>(delegate(byte[] Data)
{
Send(DataClient);
return 
0;
})); 
PHP Code:
public static void Send(byte[] DataCharacter Client)
{
  
Contacts.Send(DataClient);

is there any easier way to send the packets from the .npc files with out the need to code a .cs dialog ?
04/18/2011 07:14 rockin33#236
I have just one problem. I try to login, but it can't get past "Logging into account server."
Any suggestions?

EDIT: Nvm, I figured it out.
04/18/2011 08:47 hyperco#237
check out your auth system or try another acc :P
04/22/2011 20:03 Jay10291#238
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
04/23/2011 06:15 nickeee2#239
its always stuck at loggin into the game server dunno whats wrong did i do or even how to fix dis =(
04/23/2011 06:33 pro4never#240
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..

if(Client.HasItems(ID, Amount))
{
Client.RemoveItems(ID, Amount);
Client.AddItem(ID);
}


Those are prob not fully correct but you get the idea, just find where the methods are and write your code accordingly.


PS: god... use python external scripts k? Far better.