|
You last visited: Today at 18:59
Advertisement
[FAQ] HellmouthSource
Discussion on [FAQ] HellmouthSource within the CO2 PServer Guides & Releases forum part of the CO2 Private Server category.
04/05/2011, 04:49
|
#226
|
elite*gold: 0
Join Date: May 2009
Posts: 9
Received Thanks: 0
|
Last Question Do i Still Need To Edit Server.dat
|
|
|
04/05/2011, 05:10
|
#227
|
elite*gold: 21
Join Date: Jul 2005
Posts: 9,193
Received Thanks: 5,380
|
No, the whole point of conquerloader is to bypass server.dat entirely.
|
|
|
04/05/2011, 05:32
|
#228
|
elite*gold: 0
Join Date: May 2009
Posts: 9
Received Thanks: 0
|
Ohh Thanks
|
|
|
04/11/2011, 14:40
|
#229
|
elite*gold: 0
Join Date: Aug 2010
Posts: 5
Received Thanks: 0
|
how to make accounts ??? pleaseee talk me
|
|
|
04/11/2011, 16:34
|
#230
|
elite*gold: 0
Join Date: Nov 2009
Posts: 785
Received Thanks: 422
|
Quote:
Originally Posted by batman01
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.
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
|
#231
|
elite*gold: 0
Join Date: Aug 2004
Posts: 26
Received Thanks: 4
|
or just type in your account name and password when logging in to create one automatically for you >.>
|
|
|
04/15/2011, 06:14
|
#232
|
elite*gold: 0
Join Date: Sep 2010
Posts: 1
Received Thanks: 0
|
I need code creat monter in Source HellMouth. Who can help me plz.
|
|
|
04/15/2011, 06:41
|
#233
|
elite*gold: 21
Join Date: Jul 2005
Posts: 9,193
Received Thanks: 5,380
|
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
|
#234
|
elite*gold: 0
Join Date: Jul 2007
Posts: 10
Received Thanks: 0
|
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.
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
|
#235
|
elite*gold: 0
Join Date: Aug 2010
Posts: 992
Received Thanks: 1,110
|
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<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
on send
PHP Code:
scope.SetVariable("Send", new Func<byte[], int>(delegate(byte[] Data) { Send(Data, Client); return 0; }));
PHP Code:
public static void Send(byte[] Data, Character Client) { Contacts.Send(Data, Client); }
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
|
#236
|
elite*gold: 0
Join Date: Oct 2008
Posts: 7
Received Thanks: 0
|
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
|
#237
|
elite*gold: 0
Join Date: Aug 2010
Posts: 112
Received Thanks: 12
|
check out your auth system or try another acc :P
|
|
|
04/22/2011, 20:03
|
#238
|
elite*gold: 0
Join Date: Jun 2009
Posts: 143
Received Thanks: 155
|
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
|
#239
|
elite*gold: 0
Join Date: Mar 2011
Posts: 4
Received Thanks: 0
|
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
|
#240
|
elite*gold: 21
Join Date: Jul 2005
Posts: 9,193
Received Thanks: 5,380
|
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: ***... use python external scripts k? Far better.
|
|
|
All times are GMT +1. The time now is 19:00.
|
|