Page 2 of 2 FirstFirst 12
Results 16 to 24 of 24
  1. #16
    LiveDEMI's Avatar
    Join Date
    Jan 2017
    Gender
    male
    Location
    Finland
    Posts
    55
    Reputation
    10
    Thanks
    13
    My Mood
    Sneaky
    Quote Originally Posted by LiveDEMI View Post
    I did exacly what the tutorial said but the fountains shows the +100 mp but it doesen't give any
    And it seems to not give any hp too.
    Welcome to my signature make sure you don't get lost in here.
     
    Quote Originally Posted by Eden View Post
    CONTACT ME TO GET UR PRICE IF U WON!
    WINNERS ARE: @rmoghadikri @adamhender @SimDalek @Damn Da Wei @LiveDEMI @Juankrlosx10 @Akane* @Damn Da Wei @Pirate Galaxy @hejfrede
     
    3N7dMrETJt7SXpbJEkVdtzFJGGq8qNjyuY
     
    Sword art Online
     
    Sweden - Stockholm
    20.7-21.7 Estonia - Tallinn

  2. #17
    LiveDEMI's Avatar
    Join Date
    Jan 2017
    Gender
    male
    Location
    Finland
    Posts
    55
    Reputation
    10
    Thanks
    13
    My Mood
    Sneaky
    Quote Originally Posted by Orbit View Post
    yea that was a long time ago and I didn't even know what Stat[0] and Boost[0] meant. But yea changing it to 1 should fix it.
    Didn't work on me.
    Can someone make me a code that makes connect in nexus max hp and mp
    Last edited by LiveDEMI; 05-03-2017 at 05:14 AM.
    Welcome to my signature make sure you don't get lost in here.
     
    Quote Originally Posted by Eden View Post
    CONTACT ME TO GET UR PRICE IF U WON!
    WINNERS ARE: @rmoghadikri @adamhender @SimDalek @Damn Da Wei @LiveDEMI @Juankrlosx10 @Akane* @Damn Da Wei @Pirate Galaxy @hejfrede
     
    3N7dMrETJt7SXpbJEkVdtzFJGGq8qNjyuY
     
    Sword art Online
     
    Sweden - Stockholm
    20.7-21.7 Estonia - Tallinn

  3. #18
    Orbit's Avatar
    Join Date
    Feb 2014
    Gender
    male
    Location
    In-Orbit
    Posts
    672
    Reputation
    55
    Thanks
    484
    My Mood
    Aggressive
    Quote Originally Posted by LiveDEMI View Post
    Didn't work on me.
    Can someone make me a code that makes connect in nexus max hp and mp
    Why can't you do that

    “If things go wrong, don’t go with them.”

  4. #19
    LiveDEMI's Avatar
    Join Date
    Jan 2017
    Gender
    male
    Location
    Finland
    Posts
    55
    Reputation
    10
    Thanks
    13
    My Mood
    Sneaky
    Quote Originally Posted by Orbit View Post
    Why can't you do that
    Because Im not good coder and I don't even know how to do it.
    Welcome to my signature make sure you don't get lost in here.
     
    Quote Originally Posted by Eden View Post
    CONTACT ME TO GET UR PRICE IF U WON!
    WINNERS ARE: @rmoghadikri @adamhender @SimDalek @Damn Da Wei @LiveDEMI @Juankrlosx10 @Akane* @Damn Da Wei @Pirate Galaxy @hejfrede
     
    3N7dMrETJt7SXpbJEkVdtzFJGGq8qNjyuY
     
    Sword art Online
     
    Sweden - Stockholm
    20.7-21.7 Estonia - Tallinn

  5. #20
    Pinkzombie's Avatar
    Join Date
    Sep 2014
    Gender
    male
    Posts
    38
    Reputation
    10
    Thanks
    0
    My Mood
    Confused
    When ever i use mana near the fountain, instead of giving me mana it take health away. How do I fix this?

    - - - Updated - - -

    My fountains are taking away health, instead of healing mana. Can you help me out?

  6. #21
    WcCrusher's Avatar
    Join Date
    Dec 2015
    Gender
    male
    Location
    127.0.0.1
    Posts
    83
    Reputation
    10
    Thanks
    227
    My Mood
    Twisted
    Quote Originally Posted by Orbit View Post
    First of all go into your server.sln and open up Wserver>Logic>Behaviors


    Then right click the map "Behaviors" and hover over "Add" and press "New Item".


    Then make a new class and name it "NexusHealMp.cs" (Without the quotation marks) and press Add.


    Remove everything in "NexusHealMp.cs" and then copy and paste this:

    Code:
    #region
    
    using System;
    using wServer.networking.svrPackets;
    using wServer.realm;
    using wServer.realm.entities.player;
    
    #endregion
    
    namespace wServer.logic.behaviors
    {
        public class NexusHealMp : Behavior
        {
            //State storage: cooldown timer
    
            private readonly int amount;
            private readonly double range;
            private Cooldown coolDown;
    
            public NexusHealMp(double range, int amount, Cooldown coolDown = new Cooldown())
            {
                this.range = (float)range;
                this.amount = amount;
                this.coolDown = coolDown.Normalize();
            }
    
            protected override void OnStateEntry(Entity host, RealmTime time, ref object state)
            {
                state = 0;
            }
    
            protected override void TickCore(Entity host, RealmTime time, ref object state)
            {
                int cool = (int)state;
    
                if (cool <= 0)
                {
                    if (host.HasConditionEffect(ConditionEffectIndex.Sick)) return;
    
                    Player entity = host.GetNearestEntity(range, null) as Player;
    
                    if (entity != null)
                    {
                        int maxMp = entity.Stats[0] + entity.Boost[0];
                        int newMp = Math.Min(maxMp, entity.Mp + amount);
                        if (newMp != entity.Mp)
                        {
                            int n = newMp - entity.Mp;
                            entity.HP = newMp;
                            entity.UpdateCount++;
                            entity.Owner.BroadcastPacket(new ShowEffectPacket
                            {
                                EffectType = EffectType.Potion,
                                TargetId = entity.Id,
                                Color = new ARGB(0xffffffff)
                            }, null);
                            entity.Owner.BroadcastPacket(new ShowEffectPacket
                            {
                                EffectType = EffectType.Trail,
                                TargetId = host.Id,
                                PosA = new Position { X = entity.X, Y = entity.Y },
                                Color = new ARGB(0xffffffff)
                            }, null);
                            entity.Owner.BroadcastPacket(new NotificationPacket
                            {
                                ObjectId = entity.Id,
                                Text = "{\"key\":\"blank\",\"tokens\":{\"data\":\"+" + n + "\"}}",
                                Color = new ARGB(0xff00ffff)
                            }, null);
                        }
                    }
                    cool = coolDown.Next(Random);
                }
                else
                    cool -= time.thisTickTimes;
    
                state = cool;
            }
        }
    }


    Then go to Wserver>Logic>db>BehaviorDb.Misc.cs and add the following.



    This is how you edit range and how much mp is being given:
    new NexusHealMp(RANGE, MP, TIME),
    Then rebuild your server and the white fountains should heal MP aswell.


    After this line is just customization so if you just want it as it is you can rebuild now and play.
    -----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

    If you want to change the color of the text that sais how much mp that is being given for example:


    Then edit this:


    Here are some colors:

    Code:
    black (0xff000000)
    gray (0xff808080)
    white (0xffffffff)
    aqua (0xff00ffff) (used right now)
    red (0xffff0000)
    green (0xff00ff00)
    blue (0xff0000ff)
    yellow (0xffffff00)
    cyan (0xff00ffff)
    If something is wrong then please comment it so i can change it as soon as possible, Thanks!
    /Mattisism



    fixed the issue

    change from entity.HP = newMp;
    to entity.Mp = newMp;

  7. #22
    Filisha's Avatar
    Join Date
    May 2017
    Gender
    male
    Posts
    26
    Reputation
    10
    Thanks
    0
    Quote Originally Posted by Orbit View Post
    yea that was a long time ago and I didn't even know what Stat[0] and Boost[0] meant. But yea changing it to 1 should fix it.
    Uh i did that but when you test it it only heals hp and when u try to heal mp then it slowly kills your hp...

  8. #23
    smallpig1's Avatar
    Join Date
    Aug 2014
    Gender
    male
    Posts
    36
    Reputation
    10
    Thanks
    3
    My Mood
    Bashful
    yeah, doesn't work. I've tried
    WcCrushers idea = no work
    Tried the one where you change 0 - 1 = no work
    Tried the one where you change 0 - 3 = no work

    can someone just make a code where when you nexus it gives full mp and hp? I'll give you $1 for the code.

  9. #24
    Demon's Avatar
    Join Date
    Jul 2015
    Gender
    male
    Location
    Lost
    Posts
    1,095
    Reputation
    86
    Thanks
    316
    My Mood
    Angelic
    Quote Originally Posted by smallpig1 View Post
    yeah, doesn't work. I've tried
    WcCrushers idea = no work
    Tried the one where you change 0 - 1 = no work
    Tried the one where you change 0 - 3 = no work

    can someone just make a code where when you nexus it gives full mp and hp? I'll give you $1 for the code.
    Sure add me on diskcord will happily take free money. LMAO

    or you can just do this in player.cs

    Code:
    if (Owner.Name == "Nexus")
         Hp = MaximumHp;
    Last edited by Demon; 01-17-2018 at 08:03 PM.
    Nice

Page 2 of 2 FirstFirst 12

Similar Threads

  1. HOW TO make your charcater white in the game
    By LDS3196 in forum Combat Arms Hacks & Cheats
    Replies: 10
    Last Post: 07-31-2009, 01:29 PM
  2. [Tutorial] How to make your own undetected module in VB6
    By markfracasso11 in forum Visual Basic Programming
    Replies: 17
    Last Post: 10-15-2007, 09:34 AM
  3. [Tutorial] How to make your own undetected module in VB6
    By markfracasso11 in forum WarRock - International Hacks
    Replies: 22
    Last Post: 09-25-2007, 05:35 AM
  4. (TUT)how to make your own warrock menu
    By aprill27 in forum WarRock - International Hacks
    Replies: 0
    Last Post: 09-21-2007, 03:46 PM
  5. How to make your own radiostation?
    By nasir91 in forum General
    Replies: 3
    Last Post: 04-30-2007, 07:25 AM