Redux v2 - Official 5065 Classic Source

12/25/2013 18:43 !DeX!#556
Quote:
Originally Posted by killersub View Post
Hello there again guys. I am trying to code a few things into the source but since my knowledge of C# has been completely depleted back to level 1(lol) I can't really figure out a couple of things.

I'm recently trying to add the BlackTulip into the source (It makes your armor black), I've got it to turn the Armor black and update the character/spawn but it does not delete the item from the inventory and when you re-log your Armor is back to its original color.

Here is what I've had so far (Don't judge me lol):
Code:
public class Item_723584 : IItem
    {
        public override void Run(Player client, ConquerItem item)
        {
            if (client.TryGetEquipmentByLocation(ItemLocation.Armor, out item))
            {
                item.Color = 2;
                client.SpawnPacket = SpawnEntityPacket.Create(client);
                client.Send(ItemInformationPacket.Create(item, ItemInfoAction.Update));
                client.SendToScreen(client.SpawnPacket);
                client.DeleteItem(item);
                item.Save();
            }
        }
    }
I will post here a couple of bugs I've been finding since the live server is offline and whether I plan to do a couple of fixes on them as well.
Hey, Try use BlackTuilp Then drop the Black Armor in the Ground and pickit up again and Re-login , did That SAVE IT
12/25/2013 19:35 mujake#557
Quote:
Originally Posted by !DeX! View Post
Hey, Try use BlackTuilp Then drop the Black Armor in the Ground and pickit up again and Re-login , did That SAVE IT

Try using _client.Send(ItemInformationPacket.Create(armor)); and define armor as var armor = _client.Equipment.GetItemBySlot(Enum.ItemLocation. Armor);

i works on socketing, i mean i used it on sockets npcs
12/25/2013 21:07 killersub#558
Quote:
Originally Posted by mujake View Post
Try using _client.Send(ItemInformationPacket.Create(armor)); and define armor as var armor = _client.Equipment.GetItemBySlot(Enum.ItemLocation. Armor);

i works on socketing, i mean i used it on sockets npcs
Awesome! that works but now I'm having the problem of the character saving it on re-login; It just goes back to orange after a character spawns back into the game, I'm presuming it has something to do with the Equipment Saving/Loading?
12/25/2013 21:13 mujake#559
i suppose, for socketing works perfect, for the whole npcs see pages 43 up to 46 or 47 i have posted there the whole code for npcs.
12/25/2013 22:37 !DeX!#560
i got MAD about blackTuilp my last Code

Code:
using Redux.Enum;
using Redux.Game_Server;
using Redux.Packets.Game;
using Redux.Structures;
using System;
using Redux.Network;
using Redux.Managers;
using Redux.Database.Domain;
using System.Collections.Generic;

namespace Redux.Items
{
    public class Item_723584 : IItem
    {
        public override void Run(Player client,  ConquerItem _mainItem  )
        {
            if (client.TryGetEquipmentByLocation(ItemLocation.Armor, out _mainItem))
            {
                Structures.ConquerItem arm;
                client.TryGetEquipmentByLocation(Enum.ItemLocation.Armor, out arm);

                if (arm != null)
                {
                    arm.Color = 2;
                    arm.Save();
                  client.Send(ItemInformationPacket.Create(arm, Enum.ItemInfoAction.Update));

                    client.SpawnPacket.ArmorColor = 2;
                    client.SendToScreen(client.SpawnPacket);
                }
                _mainItem.Color = 2;
                                                    _mainItem.Color = 2;
                                    PlayerManager.SendToServer(new TalkPacket(ChatType.GM, "WELLDONE, " + client.Name + " Make HIS ARMOR BLACK "));
                                
                                _mainItem.Save();
                            
                            client.Send(ItemInformationPacket.Create(_mainItem, ItemInfoAction.Update));
                _mainItem.Save();
                client.SpawnPacket = SpawnEntityPacket.Create(client);
                SpawnEntityPacket packet = new SpawnEntityPacket();
                packet.ArmorColor = 2;
                _mainItem.Save();
               client.Send(ItemInformationPacket.Create(_mainItem, ItemInfoAction.Update));
               client.SendToScreen(client.SpawnPacket);
                client.DeleteItem(723584);
                
                

            }

        }
    }
}
When u drop it in ground and pickitup it Will Save IT AS Black xD
but When use it and relogin Will not save :(
12/26/2013 02:15 Aceking#561
BlackTulip that works as it should.


Also add this line to ConquerItem.cs under the Save method:
(This is why it wasnt saving when you logout)
Code:
DbItem.Color = Color;








Quote:
Originally Posted by !DeX! View Post
i got MAD about blackTuilp my last Code

Code:
using Redux.Enum;
using Redux.Game_Server;
using Redux.Packets.Game;
using Redux.Structures;
using System;
using Redux.Network;
using Redux.Managers;
using Redux.Database.Domain;
using System.Collections.Generic;

namespace Redux.Items
{
    public class Item_723584 : IItem
    {
        public override void Run(Player client,  ConquerItem _mainItem  )
        {
            if (client.TryGetEquipmentByLocation(ItemLocation.Armor, out _mainItem))
            {
                Structures.ConquerItem arm;
                client.TryGetEquipmentByLocation(Enum.ItemLocation.Armor, out arm);

                if (arm != null)
                {
                    arm.Color = 2;
                    arm.Save();
                  client.Send(ItemInformationPacket.Create(arm, Enum.ItemInfoAction.Update));

                    client.SpawnPacket.ArmorColor = 2;
                    client.SendToScreen(client.SpawnPacket);
                }
                _mainItem.Color = 2;
                                                    _mainItem.Color = 2;
                                    PlayerManager.SendToServer(new TalkPacket(ChatType.GM, "WELLDONE, " + client.Name + " Make HIS ARMOR BLACK "));
                                
                                _mainItem.Save();
                            
                            client.Send(ItemInformationPacket.Create(_mainItem, ItemInfoAction.Update));
                _mainItem.Save();
                client.SpawnPacket = SpawnEntityPacket.Create(client);
                SpawnEntityPacket packet = new SpawnEntityPacket();
                packet.ArmorColor = 2;
                _mainItem.Save();
               client.Send(ItemInformationPacket.Create(_mainItem, ItemInfoAction.Update));
               client.SendToScreen(client.SpawnPacket);
                client.DeleteItem(723584);
                
                

            }

        }
    }
}
When u drop it in ground and pickitup it Will Save IT AS Black xD
but When use it and relogin Will not save :(
Take a look at my black tulip above, it does exactly what it needs to.
The code you posted above, you do the same thing over about 3 times.
You had everything you needed inside your second if statement...
12/26/2013 05:54 killersub#562
Quote:
Originally Posted by Aceking View Post
BlackTulip that works as it should.


Also add this line to ConquerItem.cs under the Save method:
(This is why it wasnt saving when you logout)
Code:
DbItem.Color = Color;










Take a look at my black tulip above, it does exactly what it needs to.
The code you posted above, you do the same thing over about 3 times.
You had everything you needed inside your second if statement...
haha so basically I was missing the save.

Anyways, any idea on when the live server will be up and running again? I'd love to help discover bugs and fixes for them.
12/26/2013 09:12 !DeX!#563
Quote:
Originally Posted by Aceking View Post
BlackTulip that works as it should.


Also add this line to ConquerItem.cs under the Save method:
(This is why it wasnt saving when you logout)
Code:
DbItem.Color = Color;










Take a look at my black tulip above, it does exactly what it needs to.
The code you posted above, you do the same thing over about 3 times.
You had everything you needed inside your second if statement...
yea, i know WORKING FINE NOW thanQ When 2.9 Will COME
12/26/2013 12:45 Aceking#564
Quote:
Originally Posted by killersub View Post
haha so basically I was missing the save.

Anyways, any idea on when the live server will be up and running again? I'd love to help discover bugs and fixes for them.
No sorry, Pro has control over the live server. You will just have to wait for him.

And 2.9 depends largely on the stability of pets.
12/27/2013 04:28 pro4never#565
Live server is on now. We've had non stop power issues due to a massive ice storm in my area + the holidays but we're back online ^^

PS - Pets still don't seem to work at all. They won't attack anything I do. They follow well enough though so it's at least an improvement.
12/27/2013 05:28 LordGragen.#566
if you guys want i can give you one of my old trinity sources i worked like 2 years ago, it have pet system which attacks and everything.
12/27/2013 06:00 mujake#567
also i have some binaries sources 5065/5095 witch has the bluemouse and rest in them.
12/27/2013 12:15 !DeX!#568
Quote:
Originally Posted by mujake View Post
also i have some binaries sources 5065/5095 witch has the bluemouse and rest in them.
i need 5065 BIN Source , upload 1 for ME :D

Quote:
Originally Posted by pro4never View Post
Live server is on now. We've had non stop power issues due to a massive ice storm in my area + the holidays but we're back online ^^

PS - Pets still don't seem to work at all. They won't attack anything I do. They follow well enough though so it's at least an improvement.
I'm testing your Live Server , i found Expotin + heavingstone Working + Garments DONE Teslmains + More Stabilty I'm waiting PRO i done Aloot OF NPC Scripts
Sure Much MORE
--------------------
see me how heavingstone Should Work Then i will do on Expotion
12/27/2013 12:46 Aceking#569
Quote:
Originally Posted by pro4never View Post
Live server is on now. We've had non stop power issues due to a massive ice storm in my area + the holidays but we're back online ^^

PS - Pets still don't seem to work at all. They won't attack anything I do. They follow well enough though so it's at least an improvement.
What exactly wasnt it attacking? They attack everything I do....
I tried BI, and mystic.
I used thunder, and just regular attack.

EDIT: NVM, I figured it out. If the skill didn't have a crime value equate to true then it wasn't adding the target. Updated the source to fix this. Should be good now
[Only registered and activated users can see links. Click Here To Register...]
12/27/2013 13:10 !DeX!#570
Smal Trick :
How to make anyone loggin in game apper to all he is loggin
Code:
PlayerManager.SendToServer(new TalkPacket(ChatType.system, "[" + Character.Name + "] is logging in "));
Add this Line to player.cs under
Code:
Console.WriteLine("{0} is logging in.", Character.Name);
Quote:
Originally Posted by Aceking View Post
What exactly wasnt it attacking? They attack everything I do....
I tried BI, and mystic.
I used thunder, and just regular attack.

EDIT: NVM, I figured it out. If the skill didn't have a crime value equate to true then it wasn't adding the target. Updated the source to fix this. Should be good now
[Only registered and activated users can see links. Click Here To Register...]
i need heavingStone Item use CODE if u have and When the next Version of the source will be public