ProjectX V3.2 Source

11/13/2013 15:56 L1nk1n*P4rK#46
Ahhh and I had so much interest on this :)
Well gonna change it to MySQl cuz I know it better, and I don't need other "unklown" like MSSql to fark with me.

Great release none the less.
11/13/2013 19:27 Super Aids#47
Quote:
Originally Posted by L1nk1n*P4rK View Post
Ahhh and I had so much interest on this :)
Well gonna change it to MySQl cuz I know it better, and I don't need other "unklown" like MSSql to fark with me.

Great release none the less.
Better? Not really.
11/14/2013 00:28 L1nk1n*P4rK#48
I mean, I know it better and I did it already x3
Fooling around with TQ's client at the moment. Hopefuly I'll make it to work with 5803 (lattest patch) just for the lulz
11/14/2013 00:45 Super Aids#49
If you need any help or got questions just hit me up.
11/22/2013 13:35 Rooocky#50
Code:
public static void script_150002(GameClient client, byte option) // script_ before the id is necessary!
{
    switch (option)
	{
		case 0:
		{
			NPCHandler.SendDialog(client, "Would you like to upgrade your items?");
            NPCHandler.SendOption(client, "Yes please.", 1);
            NPCHandler.SendOption(client, "No thanks.", 255);
            NPCHandler.Finish(client);
            break;
        }
        case 1:
        {
            NPCHandler.SendDialog(client, "Which equipment do you want to upgrade?");
            NPCHandler.SendDialog(client, "<Head, Necklace, WeaponL, WeaponR, Armor, Boots, Ring, Garment, Bottle>");
			NPCHandler.SendInput(client, 2);
            NPCHandler.Finish(client);
            break;
        }
        case 2:
        {
            NPCHandler.SendDialog(client, "Please choose how you want your item to be upgraded?");
            NPCHandler.SendOption(client, "Sockets", 3);
            NPCHandler.SendOption(client, "Plus", 4);
            NPCHandler.SendOption(client, "Bless", 5);
            NPCHandler.SendOption(client, "Enchant", 6);
            NPCHandler.Finish(client);
            break;
        }
        case 3:
        {
        }
        case 4:
        {
                for (byte i = 1; i < 12; i++)
				{
                    item.Plus = Plus + i++;
        }
        case 5:
        {
            NPCHandler.SendDialog(client, "Please choose an option from below, here you can upgrade your bless.");
            NPCHandler.SendOption(client, "-1 Damage", 7);
            NPCHandler.SendOption(client, "-3 Damage", 8);
            NPCHandler.SendOption(client, "-5 Damage", 9);
            NPCHandler.SendOption(client, "-7 Damage", 10);
            NPCHandler.Finish(client);
            break;
        }
        case 6:
        {
                    if (Enchant > 250)
                    {
                        return;
                    }
                    item.Enchant = 50;
        }
        case 7:
        {
                    item.Bless = 1;
        }
        case 8:
        {
        if (Bless == 1)
        {
                    item.Bless = 3;
        }
        case 9:
        {
        if (Bless == 3)
        {
                    item.Bless = 5;
        }
        case 10:
        {
        if (Bless == 5)
        {
                    item.Bless = 7;
        }
    }
}
Upgrading Master
-He can upgrade Plus,Bless,Enchant and open sockets.
Plus: To add +1 for your item, Ex: If you have +4 Sword and want to upgrade to +5 for cps
Sockets: I don't know how to open a socket, 1st socket and 2nd socket.
Bless: Upgrade your bless from -1 to -3
Enchant: I want to add 50 HP everytime I add HP max HP is 250.
-Will add the CPS system later.. and was thinking of making it with points.. Like tounry points
The NPC isn't working needs fixing.
Anyone who can code wants to work with me on the source PM
11/22/2013 19:00 turk55#51
Quote:
Originally Posted by Rooocky View Post
Code:
public static void script_150002(GameClient client, byte option) // script_ before the id is necessary!
{
    switch (option)
	{
		case 0:
		{
			NPCHandler.SendDialog(client, "Would you like to upgrade your items?");
            NPCHandler.SendOption(client, "Yes please.", 1);
            NPCHandler.SendOption(client, "No thanks.", 255);
            NPCHandler.Finish(client);
            break;
        }
        case 1:
        {
            NPCHandler.SendDialog(client, "Which equipment do you want to upgrade?");
            NPCHandler.SendDialog(client, "<Head, Necklace, WeaponL, WeaponR, Armor, Boots, Ring, Garment, Bottle>");
			NPCHandler.SendInput(client, 2);
            NPCHandler.Finish(client);
            break;
        }
        case 2:
        {
            NPCHandler.SendDialog(client, "Please choose how you want your item to be upgraded?");
            NPCHandler.SendOption(client, "Sockets", 3);
            NPCHandler.SendOption(client, "Plus", 4);
            NPCHandler.SendOption(client, "Bless", 5);
            NPCHandler.SendOption(client, "Enchant", 6);
            NPCHandler.Finish(client);
            break;
        }
        case 3:
        {
        }
        case 4:
        {
                for (byte i = 1; i < 12; i++)
				{
                    item.Plus = Plus + i++;
        }
        case 5:
        {
            NPCHandler.SendDialog(client, "Please choose an option from below, here you can upgrade your bless.");
            NPCHandler.SendOption(client, "-1 Damage", 7);
            NPCHandler.SendOption(client, "-3 Damage", 8);
            NPCHandler.SendOption(client, "-5 Damage", 9);
            NPCHandler.SendOption(client, "-7 Damage", 10);
            NPCHandler.Finish(client);
            break;
        }
        case 6:
        {
                    if (Enchant > 250)
                    {
                        return;
                    }
                    item.Enchant = 50;
        }
        case 7:
        {
                    item.Bless = 1;
        }
        case 8:
        {
        if (Bless == 1)
        {
                    item.Bless = 3;
        }
        case 9:
        {
        if (Bless == 3)
        {
                    item.Bless = 5;
        }
        case 10:
        {
        if (Bless == 5)
        {
                    item.Bless = 7;
        }
    }
}
Upgrading Master
-He can upgrade Plus,Bless,Enchant and open sockets.
Plus: To add +1 for your item, Ex: If you have +4 Sword and want to upgrade to +5 for cps
Sockets: I don't know how to open a socket, 1st socket and 2nd socket.
Bless: Upgrade your bless from -1 to -3
Enchant: I want to add 50 HP everytime I add HP max HP is 250.
-Will add the CPS system later.. and was thinking of making it with points.. Like tounry points
The NPC isn't working needs fixing.
Anyone who can code wants to work with me on the source PM
This should already been done, not sure tho.
Check wuxingoven in market.
11/23/2013 17:26 Super Aids#52
Quote:
Originally Posted by Rooocky View Post
Code:
public static void script_150002(GameClient client, byte option) // script_ before the id is necessary!
{
    switch (option)
	{
		case 0:
		{
			NPCHandler.SendDialog(client, "Would you like to upgrade your items?");
            NPCHandler.SendOption(client, "Yes please.", 1);
            NPCHandler.SendOption(client, "No thanks.", 255);
            NPCHandler.Finish(client);
            break;
        }
        case 1:
        {
            NPCHandler.SendDialog(client, "Which equipment do you want to upgrade?");
            NPCHandler.SendDialog(client, "<Head, Necklace, WeaponL, WeaponR, Armor, Boots, Ring, Garment, Bottle>");
			NPCHandler.SendInput(client, 2);
            NPCHandler.Finish(client);
            break;
        }
        case 2:
        {
            NPCHandler.SendDialog(client, "Please choose how you want your item to be upgraded?");
            NPCHandler.SendOption(client, "Sockets", 3);
            NPCHandler.SendOption(client, "Plus", 4);
            NPCHandler.SendOption(client, "Bless", 5);
            NPCHandler.SendOption(client, "Enchant", 6);
            NPCHandler.Finish(client);
            break;
        }
        case 3:
        {
        }
        case 4:
        {
                for (byte i = 1; i < 12; i++)
				{
                    item.Plus = Plus + i++;
        }
        case 5:
        {
            NPCHandler.SendDialog(client, "Please choose an option from below, here you can upgrade your bless.");
            NPCHandler.SendOption(client, "-1 Damage", 7);
            NPCHandler.SendOption(client, "-3 Damage", 8);
            NPCHandler.SendOption(client, "-5 Damage", 9);
            NPCHandler.SendOption(client, "-7 Damage", 10);
            NPCHandler.Finish(client);
            break;
        }
        case 6:
        {
                    if (Enchant > 250)
                    {
                        return;
                    }
                    item.Enchant = 50;
        }
        case 7:
        {
                    item.Bless = 1;
        }
        case 8:
        {
        if (Bless == 1)
        {
                    item.Bless = 3;
        }
        case 9:
        {
        if (Bless == 3)
        {
                    item.Bless = 5;
        }
        case 10:
        {
        if (Bless == 5)
        {
                    item.Bless = 7;
        }
    }
}
Upgrading Master
-He can upgrade Plus,Bless,Enchant and open sockets.
Plus: To add +1 for your item, Ex: If you have +4 Sword and want to upgrade to +5 for cps
Sockets: I don't know how to open a socket, 1st socket and 2nd socket.
Bless: Upgrade your bless from -1 to -3
Enchant: I want to add 50 HP everytime I add HP max HP is 250.
-Will add the CPS system later.. and was thinking of making it with points.. Like tounry points
The NPC isn't working needs fixing.
Anyone who can code wants to work with me on the source PM
First of all your brackets are invalid. You open a scope, but forgets to close it, as well some of your cases are not breaking or returning, add a break; or return; to the end of your cases depending on whether you want to do something after the switch or not.

Secondly the plus thing is pretty simple, take a look at weaponmaster or magicartisan (I think that's the name?) and how it shows the gears you can upgrade, then you could simply change it from mets/dbs to cps and instead of upgrading the quality/level you could just upgrade the plus.

About sockets i's very simple, take again the process is the same for selecting gear. The ItemInfo class which is returned from the equipments contains 2 variables called Gem1 and Gem2.

They're of the enum type "ProjectX_V3_Game.Enums.SocketGem".

Set the value of Gem1 to ProjectX_V3_Game.Enums.SocketGem.EmptySocket for first socket.
Set the value of Gem2 to ProjectX_V3_Game.Enums.SocketGem.EmptySocket for the second socket.

Bless is already added, take a look at BlessedGearMaster.cs in the NPCScripts.
If you want this with cps system, it's just the same as above again.

Enchant is basically the same as the rest, same process. The variable name in ItemInfo is Enchant.
11/28/2013 20:58 Rooocky#53
Why when I use the @item command to get JadeHare it doesn't work, JadeHare is in the database and I cannot get it
11/28/2013 21:06 Super Aids#54
Quote:
Originally Posted by Rooocky View Post
Why when I use the @item command to get JadeHare it doesn't work, JadeHare is in the database and I cannot get it
Probably invalid attributes for the command. Debug the item command and see where it doesn't reach. I will look into the issue later, if you haven't figured it out
12/07/2013 13:28 Rooocky#55
I haven't figured it out :s
12/08/2013 00:23 Super Aids#56
You need to make a new item command that does not handle quality, because it will change the itemid based on quality which makes the item invalid with mountarmors.
12/08/2013 01:36 vincentvdb#57
Any way to convert it to MySQL? Can't get MSSQL working on my pc
12/08/2013 02:09 Super Aids#58
Quote:
Originally Posted by vincentvdb View Post
Any way to convert it to MySQL? Can't get MSSQL working on my pc
You'd be on your own converting it to mysql and it will be quite a job changing the parameter usage etc. Since it does not use directly sql queries, but sql parameters. Not sure if the Mysql library for .NET supports that.

Also perhaps you could tell the issue you're having. It could be you don't have the sql service pack maybe? Or a wrong version of mssql?
12/11/2013 08:21 Super Aids#59
Fixed 2 bugs with ArtisanWind. Please view the fixes/optimization spoiler in OP.
12/17/2013 21:51 nushizu#60
I remnoved all previous issues...just to find a new one! Now I can log in on a new account....create a new character but after you pick your class...etc it just hangs up on login and never gets passed that? anyone know what I'm doing wrong or is willing to TV?