WinkPrivate Server : Modify the Drop Rates

Posts 115 of 31 · Page 1 of 3
Private Server : Modify the Drop Rates
Hi again, MPGH !
Now i will learn you to modify the drop rates !

First choose an exemple monsters !
And second you need Microsoft Visual Studio C# (My best friend )
I have choose the cube good

Open : wServer/logic/db/BehaviorDb.CubeGod.cs

U can see this code : (Mine is modified)
Code:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using wServer.realm;
using wServer.logic.attack;
using wServer.logic.movement;
using wServer.logic.loot;
using wServer.logic.taunt;
using wServer.logic.cond;

namespace wServer.logic
{
    partial class BehaviorDb
    {
        static _ CubeGod = Behav()
            .Init(0x0d59, Behaves("Cube God",
                    SimpleWandering.Instance(1, .5f),
                    new RunBehaviors(
                        Cooldown.Instance(750, PredictiveMultiAttack.Instance(25, 10 * (float)Math.PI / 180, 9, 1, projectileIndex: 0)),
                        Cooldown.Instance(1500, PredictiveMultiAttack.Instance(25, 10 * (float)Math.PI / 180, 4, 1, projectileIndex: 1)),
                        If.Instance(
                            IsEntityPresent.Instance(15, null),
                            OrderGroup.Instance(20, "Cube Minions", new SetKey(-1, 0)),
                            If.Instance(
                                IsEntityNotPresent.Instance(20, null),
                                OrderGroup.Instance(20, "Cube Minions", new SetKey(-1, 1))
                            )
                        )
                    ),
                    IfNot.Instance(
                        Once.Instance(
                            new RunBehaviors(
                                SpawnMinionImmediate.Instance(0x0d5a, 5, 3, 4),
                                SpawnMinionImmediate.Instance(0x0d5b, 5, 5, 10),
                                SpawnMinionImmediate.Instance(0x0d5c, 5, 5, 10)
                            )
                        ),
                        Rand.Instance(
                            Reproduce.Instance(0x0d5a, 4, 5000, 20),
                            Reproduce.Instance(0x0d5b, 20, 1000, 20),
                            Reproduce.Instance(0x0d5c, 20, 1000, 20)
                        )
                    ),
                    loot: new LootBehavior(LootDef.Empty,
                        Tuple.Create(100, new LootDef(0, 5, 0, 8,
                            Tuple.Create(0.05, (ILoot)new ItemLoot("Dirk of Cronus")), //5% de chance de loot Cronus
                            Tuple.Create(0.05, (ILoot)new ItemLoot("Amulet of Resurrection")), //5% de chance de loot Ammy

                            Tuple.Create(0.05, (ILoot)new TierLoot(11, ItemType.Weapon)),
                            Tuple.Create(0.05, (ILoot)new TierLoot(12, ItemType.Armor)),
                            Tuple.Create(0.05, (ILoot)new TierLoot(5, ItemType.Ring)),

                            Tuple.Create(1.0, (ILoot)new StatPotionsLoot(1, 2))
                        ))
                    )
                ))
            .Init(0x0d5a, Behaves("Cube Overseer",
                    IfNot.Instance(
                        Circling.Instance(5, 25, 4, 0x0d59),
                        SimpleWandering.Instance(2)
                    ),
                    new RunBehaviors(
                        Cooldown.Instance(1000, PredictiveMultiAttack.Instance(10, 5 * (float)Math.PI / 180, 4, 1, projectileIndex: 0)),
                        Cooldown.Instance(2000, PredictiveAttack.Instance(10, 1, projectileIndex: 1))
                    )
                ))
            .Init(0x0d5b, Behaves("Cube Defender",
                    IfNot.Instance(
                        IfEqual.Instance(-1, 0,
                            Chasing.Instance(7, 20, 1, null),
                            IfNot.Instance(
                                Chasing.Instance(7, 25, 7.5f, 0x0d5a),
                                Circling.Instance(7.5f, 25, 7, 0x0d59)
                            )
                        ),
                        SimpleWandering.Instance(5)
                    ),
                    Cooldown.Instance(500, SimpleAttack.Instance(10))
                ))
            .Init(0x0d5c, Behaves("Cube Blaster",
                    IfNot.Instance(
                        IfEqual.Instance(-1, 0,
                            Chasing.Instance(7, 20, 1, null),
                            IfNot.Instance(
                                Chasing.Instance(7, 25, 7.5f, 0x0d5a),
                                Circling.Instance(7.5f, 25, 7, 0x0d59)
                            )
                        ),
                        SimpleWandering.Instance(5)
                    ),
                    Cooldown.Instance(1000, new RunBehaviors(
                        SimpleAttack.Instance(10, projectileIndex: 1),
                        MultiAttack.Instance(10, 5 * (float)Math.PI / 180, 2, projectileIndex: 0)
                    ))
                ));
    }
}
We'll take only this part :

Code:
 loot: new LootBehavior(LootDef.Empty,
    Tuple.Create(100, new LootDef(0, 5, 0, 8,
    Tuple.Create(0.05, (ILoot)new ItemLoot("Dirk of Cronus")), //5% de chance de loot Cronus
    Tuple.Create(0.05, (ILoot)new ItemLoot("Amulet of Resurrection")), //5% de chance de loot Ammy

    Tuple.Create(0.05, (ILoot)new TierLoot(11, ItemType.Weapon)),
    Tuple.Create(0.05, (ILoot)new TierLoot(12, ItemType.Armor)),
    Tuple.Create(0.05, (ILoot)new TierLoot(5, ItemType.Ring)),

    Tuple.Create(1.0, (ILoot)new StatPotionsLoot(1, 2))
This line is For Cronus:

Code:
Tuple.Create(0.05, (ILoot)new ItemLoot("Dirk of Cronus")), //5% loot Cronus
0.05 is for the drop rates.
1.0 = 100%
0.001 = 0.1%

Modify how you want, u can make Cube God loot Ammy (like as me)
Save the file, and Rebuild wServer

Press Thanks
1365852972-rebuild.png180 KB · 30 downloads
Sorry for being a noob, but my solution explorer doesn't show any of the folders like wserver and such, it only shows "Solution 'Solution1' (0 Projects)"
Care to help me?
EDIT : Lol nevermind, I'm really stupid.
How do i enable the Solution Explorer? :/
Quote Originally Posted by The_En|D View Post
How do i enable the Solution Explorer? :/
Same problem, any help? :P
eh when i try to rebuild it says i have 119 errors and 9 warnings? im confused:s
Quote Originally Posted by somith View Post
eh when i try to rebuild it says i have 119 errors and 9 warnings? im confused:s
u make a thing wrong, you don't close the wServer ? u miss a ";" idk
Quote Originally Posted by Drowlys View Post
u make a thing wrong, you don't close the wServer ? u miss a ";" idk
oh maan im well confused ahah which is the best programme? visual studio
I cant rebuild it please help :/
How do you download Microsoft Visual Studio C# at Windows 7 ?? I got an error installing it :/ ??
after a while i got it see. ty man. btw i did it by opening wServer.csproj and the open the view to the Solution Explorer then finding the BehaviorDb.CubeGod.cs in the exporer




name blanked out cuz i dont want to have it here atm
Huh, looks pretty dandy.
How do i enable the Solution Explorer? :/ -ZBORNOX
On quick launch, type in Solution Explorer
Posts 115 of 31 · Page 1 of 3
This thread is closed for replies.

Similar Threads

Tags for this Thread

None

Need help?