[Holograph] Phoenix Emulator BBJ Arena [Addon]

Results 1 to 23 of 23
  1. #1
    Banned RockStar7 is offline
    BannedRank
    Aug 2008 Join Date
    IndianaLocation
    379Posts

    [Holograph] Phoenix Emulator BBJ Arena [Addon]

    Overview

    I've been coding some quick addons for my server, and I'll also resolve issues that come to my attention. But this is a simple feature I coded, didn't take me much longer than 10 minutes, but I'm sure hotels will find it useful in some way, so here it is.

    Feature

    A new BubbleJuice Arena system coded so two users can fight it out in a small arena created by the hotel owner. The coordinates are already set for the rooms of Phoenix Emulator's database, so no coordinates or roomID's need to be changed. Your user must type :arena, and it will put them ingame. If a user is dead, they will not be sent to hospital, and just poof out of game, and the winner will win 20 credits, but each must pay 10 credits to play.

    Improvements are needed!

    Never really tested it much, but for the most part looked like it worked. But test for yourself, and work on any glitches needed. But below are the codes needed.

    Code:
    #region :arena
                        case "arena":
                            {
                                string credits;
                                credits = DB.runRead("SELECT credits FROM users WHERE id = '" + userID + "'");
                                string amount;
                                amount = "0";
                                int credits_int = int.Parse(credits);
                                int amount_int = int.Parse(amount);
                                if (credits_int <= amount_int)
                                {
                                    Room.sendWhisper(roomUser, _Username, "Not enough money to perform this action.");
                                }
                                else
                                {
                                    virtualUser Target = userManager.getUser(args[1]);
                                    if (_Mission == "[BBJ] Red Team")
                                    {
                                        
                                    }
                                    else
                                       
                                        if (_Mission == "[BBJ] Blue Team")
                                        {
                                          
                                        }
                                        else
                                            
                                            if (_roomID == 353 && roomUser.Y == 10 && roomUser.X == 4)
                                            {
    
                                                Room.sendWhisper(roomUser, _Username, "BubbleJuice Arena: Fight!");
                                                _Mission = "[BBJ] Red Team";
                                                _Figure = _hr + _hd + _sh + "lg-696-100";
                                                DB.runQuery("UPDATE users SET credits = credits + '-10' WHERE name = '" + _Username + "'");
                                                refreshAppearance(false, true, true);
                                                
                                                
    
    
                                            }
                                }
                                if (credits_int <= amount_int)
                                {
                                    Room.sendWhisper(roomUser, _Username, "Not enough money to perform this action.");
                                }
                                else
                                {
                                    if (_Mission == "[BBJ] Blue Team")
                                    {
                                        
                                    }
                                    else
    
                                        if (_Mission == "[BBJ] Red Team")
                                        {
                                            
                                        }
                                        else
    
    
                                            if (_roomID == 353 && roomUser.Y == 10 && roomUser.X == 11)
                                            {
                                                Room.sendWhisper(roomUser, _Username, "BubbleJuice Arena: Begin!");
                                                _Mission = "[BBJ] Blue Team";
                                                _Figure = _hr + _hd + _sh + "lg-696-107";
                                                refreshAppearance(false, true, true);
                                                DB.runQuery("UPDATE users SET credits = credits + '-10' WHERE name = '" + _Username + "'");
                                            }
    
                                }
                            }
                            break;
                        #endregion
    Next you need to add this into the punch command, so if a user dies from the game, they aren't sent to the hospital.

    Code:
     if (User._Mission == "[BBJ] Red Team")
                                                                        {
                                                                            DB.runQuery("UPDATE users SET game_arena = game_arena + '1' WHERE name = '" + _Username + "'");
                                                                            DB.runQuery("UPDATE users SET credits +20 = credits + '20' WHERE name '" + _Username + "'");
                                                                            Room.sendShout(roomUser, "*Swings at " + args[1] + ", knocking them out and winning the fight*", true);
                                                                            
                                                                        }
    Code:
     if (User._Mission == "[BBJ] Blue Team")
                                                                        {
                                                                            DB.runQuery("UPDATE users SET game_arena = game_arena + '1' WHERE name = '" + _Username + "'");
                                                                            DB.runQuery("UPDATE users SET credits +20 = credits + '20' WHERE name '" + _Username + "'");
                                                                            Room.sendShout(roomUser, "*Swings at " + args[1] + ", knocking them out and winning the fight*", true);
                                                                            
                                                                        }
    Also in the database, you need to add a column in the users table. Which is game_arena with a int of 2 and defined as 0.

    Credits to me for this, enjoy!


  2. #2
    Proficient Member swimoTheBig is offline
    MemberRank
    Aug 2008 Join Date
    Essex, UKLocation
    194Posts

    Re: [Holograph] Phoenix Emulator BBJ Arena [Addon]

    Nice release.

  3. #3
    Banned RockStar7 is offline
    BannedRank
    Aug 2008 Join Date
    IndianaLocation
    379Posts

    Re: [Holograph] Phoenix Emulator BBJ Arena [Addon]

    Thank you, more to come soon!

  4. #4
    Enthusiast FreshKickzCobe is offline
    MemberRank
    Mar 2009 Join Date
    34Posts

    Re: [Holograph] Phoenix Emulator BBJ Arena [Addon]

    Not Really "Secure"

    as this could easily become a 2 on 3/6 fight.

    I may release mine..

  5. #5
    Enthusiast Oturen is offline
    MemberRank
    Oct 2010 Join Date
    29Posts

    Re: [Holograph] Phoenix Emulator BBJ Arena [Addon]

    Thanks, you are a good coder?

  6. #6
    Account Upgraded | Title Enabled! No0b is offline
    MemberRank
    Jul 2010 Join Date
    Michigan, USLocation
    1,426Posts

    Re: [Holograph] Phoenix Emulator BBJ Arena [Addon]

    Great release mate. :D

  7. #7
    Account Upgraded | Title Enabled! StrongFaith is offline
    MemberRank
    Aug 2010 Join Date
    .PHP filesLocation
    268Posts

    Re: [Holograph] Phoenix Emulator BBJ Arena [Addon]

    great 7/10

  8. #8
    Member Armando95 is offline
    MemberRank
    Jun 2010 Join Date
    Catania, ItaliaLocation
    65Posts

    Re: [Holograph] Phoenix Emulator BBJ Arena [Addon]

    Screeen please :S

  9. #9
    Account Upgraded | Title Enabled! StrongFaith is offline
    MemberRank
    Aug 2010 Join Date
    .PHP filesLocation
    268Posts

    Re: [Holograph] Phoenix Emulator BBJ Arena [Addon]

    Quote Originally Posted by Armando95 View Post
    Screeen please :S
    Thats C# coding , dont need screenies..

  10. #10
    Member Armando95 is offline
    MemberRank
    Jun 2010 Join Date
    Catania, ItaliaLocation
    65Posts

    Re: [Holograph] Phoenix Emulator BBJ Arena [Addon]

    opss, sorry I was wrong topic xDD

  11. #11
    Alpha Member Zak© is offline
    MemberRank
    Oct 2007 Join Date
    2,693Posts

    Re: [Holograph] Phoenix Emulator BBJ Arena [Addon]

    He Means Screenie of it in Action plus what the point of this

  12. #12
    Enthusiast FreshKickzCobe is offline
    MemberRank
    Mar 2009 Join Date
    34Posts

    Re: [Holograph] Phoenix Emulator BBJ Arena [Addon]

    Quote Originally Posted by ŽÄK View Post
    He Means Screenie of it in Action plus what the point of this
    Habbo RP has this system
    its like a 1 v 1 Brawl :)

    But when i release i'll release page too

  13. #13
    Account Upgraded | Title Enabled! Sledmore is offline
    MemberRank
    Jun 2009 Join Date
    1,133Posts

    Re: [Holograph] Phoenix Emulator BBJ Arena [Addon]

    Hmm,

    Code:
     if (User._Mission == "[BBJ] Blue Team")
                                                                        {
                                                                            DB.runQuery("UPDATE users SET game_arena = game_arena + '1' WHERE name = '" + _Username + "'");
                                                                            DB.runQuery("UPDATE users SET credits + 20 = credits + '20' WHERE name '" + _Username + "'");
                                                                            Room.sendShout(roomUser, "*Swings at " + args[1] + ", knocking them out and winning the fight*", true);
                                                                            
                                                                        }
    Spaced ;). - Also, Nice release, ;P, Wouldn't use it my self.

  14. #14
    Account Upgraded | Title Enabled! Mikehunt is offline
    MemberRank
    Jun 2010 Join Date
    Look behind YouLocation
    332Posts

    Re: [Holograph] Phoenix Emulator BBJ Arena [Addon]

    Instead of Worrying about people Ganging up on someone.
    Wouldnt it be possible to code in a limit for the amount of people on a team?

  15. #15

    me ridez bykes

    Sean is offline

    LegendRank
    Jun 2007 Join Date
    JerseyLocation
    4,098Posts

    Re: [Holograph] Phoenix Emulator BBJ Arena [Addon]

    Nice release here, if I had a v26 I would ass this :P

    OFT: BBJ actually stands for "Belly Button Job" ;)

  16. #16
    Banned RockStar7 is offline
    BannedRank
    Aug 2008 Join Date
    IndianaLocation
    379Posts

    Re: [Holograph] Phoenix Emulator BBJ Arena [Addon]

    Thanks for comments. And no sean it stands for Blow Job lol. Kidding.

  17. #17
    Account Upgraded | Title Enabled! GrandCoder is offline
    MemberRank
    Jul 2010 Join Date
    BramptonLocation
    413Posts

    Re: [Holograph] Phoenix Emulator BBJ Arena [Addon]

    Great Addon bro 8/10 ;)

  18. #18
    Banned RockStar7 is offline
    BannedRank
    Aug 2008 Join Date
    IndianaLocation
    379Posts

    Re: [Holograph] Phoenix Emulator BBJ Arena [Addon]

    Thank you. Phoenix 3.0 under development // R35. ;)

  19. #19
    Proficient Member CJRP is offline
    MemberRank
    Jan 2010 Join Date
    160Posts

    Re: [Holograph] Phoenix Emulator BBJ Arena [Addon]

    You need to help me fix 2.0 Please? Teamviewer me or msn?

  20. #20
    Enthusiast Pix is offline
    MemberRank
    Sep 2010 Join Date
    Toronto,OntarioLocation
    49Posts

    Re: [Holograph] Phoenix Emulator BBJ Arena [Addon]

    Good Release.

  21. #21
    Valued Member Fag is offline
    MemberRank
    Oct 2010 Join Date
    United StatesLocation
    129Posts

    Re: [Holograph] Phoenix Emulator BBJ Arena [Addon]

    Thanks for this.

  22. #22
    Enthusiast Pix is offline
    MemberRank
    Sep 2010 Join Date
    Toronto,OntarioLocation
    49Posts

    Re: [Holograph] Phoenix Emulator BBJ Arena [Addon]

    Double Posted :P
    Last edited by Pix; 16-10-10 at 04:40 PM. Reason: -

  23. #23
    Member ILitex is offline
    MemberRank
    Oct 2010 Join Date
    TorontoLocation
    91Posts

    Re: [Holograph] Phoenix Emulator BBJ Arena [Addon]

    Nice Release! :)



Advertisement