Page 1 of 3 123 LastLast
Results 1 to 15 of 31
  1. #1
    Drowlys's Avatar
    Join Date
    Aug 2012
    Gender
    male
    Location
    The Crawling Depths
    Posts
    196
    Reputation
    10
    Thanks
    2,675

    Wink 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

  2. The Following 26 Users Say Thank You to Drowlys For This Useful Post:

    admin@hotmail.fr (06-11-2013),Alde. (04-22-2013),azaizeh (04-14-2013),Diiogo2000 (11-24-2014),Dragonlord3344 (04-16-2013),Esbail798 (04-20-2013),HairyBallz (07-13-2013),Helzgoth (04-13-2013),HoffHorn (04-13-2013),hunt838 (04-13-2013),jingles8000 (02-16-2018),Jonhy456 (04-23-2013),kadobaskan (03-10-2015),marcomarcassa (04-14-2013),MrOscar (04-18-2013),Norjajetu (11-18-2017),Raple (02-19-2014),RotmgEgg (04-16-2013),Speakbeasy (05-23-2017),spulolol12 (01-08-2017),SquireCarp (02-12-2016),Stellar Spark (06-21-2013),thatrogueofours (01-01-2014),The Real DethStrike (09-29-2014),withwolf (04-30-2013),XDalla (04-21-2013)

  3. #2
    sparzinrotmg's Avatar
    Join Date
    Apr 2013
    Gender
    male
    Posts
    107
    Reputation
    10
    Thanks
    1,026
    My Mood
    Amused
    how to rebuild?

  4. #3
    Drowlys's Avatar
    Join Date
    Aug 2012
    Gender
    male
    Location
    The Crawling Depths
    Posts
    196
    Reputation
    10
    Thanks
    2,675
    Attached Thumbnails Attached Thumbnails
    1365852972-rebuild.png  


  5. The Following User Says Thank You to Drowlys For This Useful Post:

    Boti2 (01-24-2018)

  6. #4
    The_En|D's Avatar
    Join Date
    Jun 2012
    Gender
    male
    Location
    Stark Industries
    Posts
    856
    Reputation
    18
    Thanks
    468
    My Mood
    Innocent
    How do i enable the Solution Explorer? :/

    "They say the best weapon is one you never have to fire.
    I respectfully disagree.
    I prefer the weapon you only have to fire once."

    ~ Tony Stark

  7. The Following User Says Thank You to The_En|D For This Useful Post:

    Xinadamen (10-19-2013)

  8. #5
    somith's Avatar
    Join Date
    Sep 2012
    Gender
    male
    Posts
    47
    Reputation
    10
    Thanks
    4
    My Mood
    Amazed
    eh when i try to rebuild it says i have 119 errors and 9 warnings? im confused:s

  9. #6
    Drowlys's Avatar
    Join Date
    Aug 2012
    Gender
    male
    Location
    The Crawling Depths
    Posts
    196
    Reputation
    10
    Thanks
    2,675
    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

  10. #7
    somith's Avatar
    Join Date
    Sep 2012
    Gender
    male
    Posts
    47
    Reputation
    10
    Thanks
    4
    My Mood
    Amazed
    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

  11. #8
    Boxcarracer's Avatar
    Join Date
    Jan 2013
    Gender
    male
    Posts
    12
    Reputation
    10
    Thanks
    2
    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.
    Last edited by Boxcarracer; 04-13-2013 at 02:55 PM.

  12. #9
    HoffHorn's Avatar
    Join Date
    Sep 2012
    Gender
    male
    Posts
    411
    Reputation
    10
    Thanks
    96
    I cant rebuild it please help :/

  13. #10
    The richest man is not the one who has the most but the one who needs the least.
    MPGH Member
    Alde.'s Avatar
    Join Date
    Oct 2012
    Gender
    male
    Posts
    1,706
    Reputation
    166
    Thanks
    3,627
    My Mood
    Sleepy
    Quote Originally Posted by The_En|D View Post
    How do i enable the Solution Explorer? :/
    Same problem, any help? :P
    Alde is Alde is

  14. #11
    josh9876's Avatar
    Join Date
    May 2013
    Gender
    male
    Posts
    4
    Reputation
    10
    Thanks
    0
    How do you download Microsoft Visual Studio C# at Windows 7 ?? I got an error installing it :/ ??

  15. #12
    ADTwo's Avatar
    Join Date
    May 2013
    Gender
    male
    Location
    Earth
    Posts
    22
    Reputation
    10
    Thanks
    0
    My Mood
    Asleep
    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
    Attached Thumbnails Attached Thumbnails
    XznMxhJ.png  

    Last edited by ADTwo; 06-12-2013 at 06:36 PM.

  16. #13
    TrollToast's Avatar
    Join Date
    Jul 2012
    Gender
    male
    Posts
    178
    Reputation
    10
    Thanks
    575
    My Mood
    Happy
    Huh, looks pretty dandy.

  17. #14
    omgleonboy's Avatar
    Join Date
    Oct 2012
    Gender
    male
    Posts
    190
    Reputation
    10
    Thanks
    19
    My Mood
    Bored
    How to rebuild on notepad++

  18. #15
    decade121's Avatar
    Join Date
    May 2012
    Gender
    male
    Posts
    59
    Reputation
    10
    Thanks
    6
    My Mood
    Inspired
    How do i enable the Solution Explorer? :/ -ZBORNOX
    On quick launch, type in Solution Explorer

Page 1 of 3 123 LastLast

Similar Threads

  1. Actual included commands in the private server code (the C# one)
    By Trapped in forum Realm of the Mad God Private Servers Tutorials/Source Code
    Replies: 96
    Last Post: 02-16-2014, 04:50 PM
  2. Change anvil rates on private servers for ko
    By bosanacxx in forum Knight Online Hacks
    Replies: 3
    Last Post: 07-29-2008, 06:36 PM
  3. The MPGH private servers
    By nnumel5 in forum General
    Replies: 40
    Last Post: 10-27-2007, 11:31 AM