-
Battleball Banzai - 85% coded! - UberEMU
I updated the Battleball Banzai code a bit :P
And the best thing is, you don't need to add interactions!
You only need to add the new battleball furniture and this code under the roller interaction code :P
Battleball Gates = 100%
Batlleball Patch = 50% ( Lighting is a not completed :P )
Battleball Puck = 50% if you change the interaction to ball and click on it 2 times :P
YOU MUST CHECK YOUR CODE 3 TIMES BEFORE ADDING ANOTHER ONE! OR ELSE YOU MIGHT ADD IT WRONG!
----------------------------------------------------------------
Find
Code:
public List<uint> HasWaterEffect;
And add this under it:
Code:
public List<uint> HasBlueBattleBallEffect;
public List<uint> HasYellowBattleBallEffect;
public List<uint> HasGreenBattleBallEffect;
public List<uint> HasRedBattleBallEffect;
----------------------------------------------------------------
Find
Code:
this.HasWaterEffect = new List<uint>();
And add this under it:
Code:
this.HasBlueBattleBallEffect = new List<uint>();
this.HasYellowBattleBallEffect = new List<uint>();
this.HasGreenBattleBallEffect = new List<uint>();
this.HasRedBattleBallEffect = new List<uint>();
----------------------------------------------------------------
Find
Code:
if (ItemsOnSquare == null)
{
ItemsOnSquare = new List<RoomItem>();
if (HasWaterEffect.Contains(User.HabboId))
{
ServerMessage Message = new ServerMessage(485);
Message.AppendInt32(User.VirtualId);
Message.AppendInt32(0);
SendMessage(Message);
HasWaterEffect.Remove(User.HabboId);
User.UPDATENeeded = true;
}
}
And CHANGE it to:
Code:
if (ItemsOnSquare == null)
{
ItemsOnSquare = new List<RoomItem>();
if (HasWaterEffect.Contains(User.HabboId))
{
ServerMessage Message = new ServerMessage(485);
Message.AppendInt32(User.VirtualId);
Message.AppendInt32(0);
SendMessage(Message);
HasWaterEffect.Remove(User.HabboId);
User.UPDATENeeded = true;
}
if (HasBlueBattleBallEffect.Contains(User.HabboId))
{
ServerMessage Message = new ServerMessage(485);
Message.AppendInt32(User.VirtualId);
Message.AppendInt32(0);
SendMessage(Message);
HasBlueBattleBallEffect.Remove(User.HabboId);
User.UPDATENeeded = true;
}
if (HasRedBattleBallEffect.Contains(User.HabboId))
{
ServerMessage Message = new ServerMessage(485);
Message.AppendInt32(User.VirtualId);
Message.AppendInt32(0);
SendMessage(Message);
HasRedBattleBallEffect.Remove(User.HabboId);
User.UPDATENeeded = true;
}
if (HasYellowBattleBallEffect.Contains(User.HabboId))
{
ServerMessage Message = new ServerMessage(485);
Message.AppendInt32(User.VirtualId);
Message.AppendInt32(0);
SendMessage(Message);
HasYellowBattleBallEffect.Remove(User.HabboId);
User.UPDATENeeded = true;
}
if (HasGreenBattleBallEffect.Contains(User.HabboId))
{
ServerMessage Message = new ServerMessage(485);
Message.AppendInt32(User.VirtualId);
Message.AppendInt32(0);
SendMessage(Message);
HasGreenBattleBallEffect.Remove(User.HabboId);
User.UPDATENeeded = true;
}
}
----------------------------------------------------------------
Find
Code:
if (Item.GetBaseItem().InteractionType.ToLower() == "roller")
{
try
{
Thread Roller = new Thread(delegate() { RollerProcess(Item, User); });
Roller.Start();
HasThread.Add(User.HabboId, Roller);
}
catch { }
}
And add this under it:
Code:
// Battleball Gates
if (Item.GetBaseItem().InteractionType.ToLower() == "bb_blue_gate")
{
if (!User.IsPet)
{
if (!HasBlueBattleBallEffect.Contains(User.HabboId) && !HasRedBattleBallEffect.Contains(User.HabboId) && !HasYellowBattleBallEffect.Contains(User.HabboId) && !HasGreenBattleBallEffect.Contains(User.HabboId))
{
int EffectId = 35;
ServerMessage Message = new ServerMessage(485);
Message.AppendInt32(User.VirtualId);
Message.AppendInt32(EffectId);
SendMessage(Message);
User.UPDATENeeded = true;
HasBlueBattleBallEffect.Add(User.HabboId);
}
}
}
if (Item.GetBaseItem().InteractionType.ToLower() == "bb_red_gate")
{
if (!User.IsPet)
{
if (!HasBlueBattleBallEffect.Contains(User.HabboId) && !HasRedBattleBallEffect.Contains(User.HabboId) && !HasYellowBattleBallEffect.Contains(User.HabboId) && !HasGreenBattleBallEffect.Contains(User.HabboId))
{
int EffectId = 33;
ServerMessage Message = new ServerMessage(485);
Message.AppendInt32(User.VirtualId);
Message.AppendInt32(EffectId);
SendMessage(Message);
User.UPDATENeeded = true;
HasRedBattleBallEffect.Add(User.HabboId);
}
}
}
if (Item.GetBaseItem().InteractionType.ToLower() == "bb_yellow_gate")
{
if (!User.IsPet)
{
if (!HasBlueBattleBallEffect.Contains(User.HabboId) && !HasRedBattleBallEffect.Contains(User.HabboId) && !HasYellowBattleBallEffect.Contains(User.HabboId) && !HasGreenBattleBallEffect.Contains(User.HabboId))
{
int EffectId = 36;
ServerMessage Message = new ServerMessage(485);
Message.AppendInt32(User.VirtualId);
Message.AppendInt32(EffectId);
SendMessage(Message);
User.UPDATENeeded = true;
HasYellowBattleBallEffect.Add(User.HabboId);
}
}
}
if (Item.GetBaseItem().InteractionType.ToLower() == "bb_green_gate")
{
if (!User.IsPet)
{
if (!HasBlueBattleBallEffect.Contains(User.HabboId) && !HasRedBattleBallEffect.Contains(User.HabboId) && !HasYellowBattleBallEffect.Contains(User.HabboId) && !HasGreenBattleBallEffect.Contains(User.HabboId))
{
int EffectId = 34;
ServerMessage Message = new ServerMessage(485);
Message.AppendInt32(User.VirtualId);
Message.AppendInt32(EffectId);
SendMessage(Message);
User.UPDATENeeded = true;
HasGreenBattleBallEffect.Add(User.HabboId);
}
}
}
// Battleball Patch
if (Item.GetBaseItem().InteractionType.ToLower() == "bb_plate")
{
if (!User.IsPet)
{
if (HasRedBattleBallEffect.Contains(User.HabboId))
{
if (Item.ExtraData != "5" && Item.ExtraData != "14" && Item.ExtraData != "8" && Item.ExtraData != "11")
{
Item.ExtraData = "5";
Item.UPDATEState(true, true);
}
}
if (HasYellowBattleBallEffect.Contains(User.HabboId))
{
if (Item.ExtraData != "5" && Item.ExtraData != "14" && Item.ExtraData != "8" && Item.ExtraData != "11")
{
Item.ExtraData = "14";
Item.UPDATEState(true, true);
}
}
if (HasGreenBattleBallEffect.Contains(User.HabboId))
{
if (Item.ExtraData != "5" && Item.ExtraData != "14" && Item.ExtraData != "8" && Item.ExtraData != "11")
{
Item.ExtraData = "8";
Item.UPDATEState(true, true);
}
}
if (HasBlueBattleBallEffect.Contains(User.HabboId))
{
if (Item.ExtraData != "5" && Item.ExtraData != "14" && Item.ExtraData != "8" && Item.ExtraData != "11")
{
Item.ExtraData = "11";
Item.UPDATEState(true, true);
}
}
if (!HasRedBattleBallEffect.Contains(User.HabboId) && !HasYellowBattleBallEffect.Contains(User.HabboId) && !HasGreenBattleBallEffect.Contains(User.HabboId) && !HasBlueBattleBallEffect.Contains(User.HabboId))
{
if (Item.ExtraData != "0")
{
Item.ExtraData = "0";
Item.UPDATEState(true, true);
}
}
}
}
Printscreen
http://iaza.com/work/100924C/85battleball29839.png
Credits
Me, Getloose, =dj.matias=, Spazz, ACADEMiC
Still having problems?
It should work in Spazz's SVN :P
-
Re: Battle Banzai - 80% coded!
-
Re: Battle Banzai - 80% coded!
-
Re: Battle Banzai - 80% coded!
PeJump, why do not you launch your emulator and place for download?
-
Re: Battle Banzai - 80% coded!
Quote:
Originally Posted by
LucasReis
PeJump, why do not you launch your emulator and place for download?
My UberEMU edit is only for license holders :P
-
Re: Battle Banzai - 80% coded!
He wont release it because he thinks hes to cool :l
-
Re: Battle Banzai - 80% coded!
Wtf? So you sell uberEmu and make money on it?
-
Re: Battle Banzai - 80% coded!
Does this one actually work?
-
Re: Battle Banzai - 80% coded!
Quote:
Originally Posted by
Milw0rm
Wtf? So you sell uberEmu and make money on it?
Nope, i just protected it so other's can't use it :P
---------- Post added at 03:48 PM ---------- Previous post was at 03:48 PM ----------
Quote:
Originally Posted by
MikeDavies
Does this one actually work?
Yewp, this one works! :D
-
Re: Battle Banzai - 80% coded!
Quote:
Originally Posted by
PEjump2
Nope, i just protected it so other's can't use it :P
---------- Post added at 03:48 PM ---------- Previous post was at 03:48 PM ----------
Yewp, this one works! :D
How do you obtain an licence then?
Sorry for offtopic here
-
Re: Battle Banzai - 80% coded!
Quote:
Originally Posted by
Milw0rm
How do you obtain an licence then?
Sorry for offtopic here
You have to insert it in the config or else it won't work :P
-
Re: Battle Banzai - 80% coded!
Quote:
Originally Posted by
PEjump2
You have to insert it in the config or else it won't work :P
I wasn't asking about how you do it, i was asking about WHERE i can obtain a licence
-
Re: Battle Banzai - 80% coded!
Quote:
Originally Posted by
Milw0rm
I wasn't asking about how you do it, i was asking about WHERE i can obtain a licence
You've to be a good friend of me or else you won't get it :P
-
Re: Battle Banzai - 80% coded! - UberEMU
Right
Works perfectly except Blue. Blue gate does not effect the blue effect and if
Teleports work fine.
-
Re: Battle Banzai - 80% coded! - UberEMU
Uh, blue works for me?
And i updated code :P
And dude, you'r crappy staff team is the whole time banning me and calling me a ragezone newb :/
And you've deleted the mus thingies in the config? That's bad you must set it to true, not delete the whole code ._.
-
Re: Battle Banzai - 80% coded! - UberEMU
Dude, in your code your setting the bb_ball as none, but most people have there sql as a enum, with just "b","r","y","g"
-
Re: Battle Banzai - 80% coded! - UberEMU
:o yeah you'r right, forgetted about that.
UPDATE: Fixed.
-
Re: Battle Banzai - 80% coded! - UberEMU
Its a nice release,
By the way, PEjump2 check ur pm's
-
Re: Battle Banzai - 80% coded! - UberEMU
What sql do i need to change?
-
Re: Battle Banzai - 80% coded! - UberEMU
Users table you need to add this:
Code:
`bb_ball` enum('y','b','g','r','none') NOT NULL default 'y'
-
Re: Battle Banzai - 80% coded! - UberEMU
;o Nice Dude your really getting good at flash well maybe already good ;] nice hope you can make battle Banzai 100%
-
Re: Battle Banzai - 80% coded! - UberEMU
If you wanna know a secret, im coding a flash emulator :P
-
Re: Battle Banzai - 80% coded! - UberEMU
Quote:
Originally Posted by
PEjump2
Uh, blue works for me?
And i updated code :P
And dude, you'r crappy staff team is the whole time banning me and calling me a ragezone newb :/
And you've deleted the mus thingies in the config? That's bad you must set it to true, not delete the whole code ._.
Sorry about them :(
Anyway, mus is deleted so people cant exploit it
-
Re: Battle Banzai - 80% coded! - UberEMU
execute in phpmyadmin : alter table users add `bb_ball` enum('y','b','g','r','none') NOT NULL default 'y';
¬¬
-
Re: Battle Banzai - 80% coded! - UberEMU
Anyone got the sql for BB?