hello rangezone ive codeed a zombie game
and one off the commands is bite for the zombie
works perfectly but i want to make a store where you can get addons to the game ect ect and one off the addons is bite someone 2 spaces in front off you i have no clue how get point works so any help? i would be greatfulPHP Code:internal void bite()
{
Room room = ButterflyEnvironment.GetGame().GetRoomManager().GetRoom(this.Session.GetHabbo().CurrentRoomId);
Room roomowner = ButterflyEnvironment.GetGame().GetRoomManager().GetRoom(this.Session.GetHabbo().CurrentRoomId);
RoomUser roomuser = room.GetRoomUserManager().GetRoomUserByHabbo(Session.GetHabbo().Id);
GameClient clientByUsername = null;
clientByUsername = ButterflyEnvironment.GetGame().GetClientManager().GetClientByUsername(this.Params[1]);
if (Session.GetHabbo().Look == "lg-3058-110.hd-3102-26.he-3239-62.ch-3203-92.cc-3007-62-62")
{
RoomUser roomuserTarget = room.GetRoomUserManager().GetRoomUserByHabbo(Params[1]);
if (roomuserTarget == null)
return;
Point squareInfront = CoordinationUtil.GetPointInFront(roomuser.Coordinate, roomuser.RotBody);
List<RoomUser> users = room.GetGameMap().GetRoomUsers(squareInfront);
Point squareInFrontOfUserInFront = CoordinationUtil.GetPointInFront(squareInfront, roomuser.RotBody);
if (room.GetGameMap().CanWalk(squareInFrontOfUserInFront.X, squareInFrontOfUserInFront.Y, false) == false)
{
Session.SendNotif("You can only bite people in front off you!");
return;
}
foreach (RoomUser user in users)
{
clientByUsername.GetHabbo().Look = "lg-3058-110.hd-3102-26.he-3239-62.ch-3203-92.cc-3007-62-62";
clientByUsername.GetMessageHandler().GetResponse().Init(Outgoing.UpdateUserInformation);
clientByUsername.GetMessageHandler().GetResponse().AppendInt32(-1);
clientByUsername.GetMessageHandler().GetResponse().AppendString(Session.GetHabbo().Look);
clientByUsername.GetMessageHandler().GetResponse().AppendString(Session.GetHabbo().Gender.ToLower());
clientByUsername.GetMessageHandler().GetResponse().AppendString(Session.GetHabbo().Motto);
clientByUsername.GetMessageHandler().GetResponse().AppendInt32(Session.GetHabbo().AchievementPoints);
clientByUsername.GetMessageHandler().SendResponse();
ServerMessage RoomUpdate = new ServerMessage(Outgoing.UpdateUserInformation);
Room Room = clientByUsername.GetHabbo().CurrentRoom;
RoomUser User = Room.GetRoomUserManager().GetRoomUserByHabbo(clientByUsername.GetHabbo().Id);
RoomUpdate.AppendInt32(User.VirtualId);
RoomUpdate.AppendString(clientByUsername.GetHabbo().Look);
RoomUpdate.AppendString(clientByUsername.GetHabbo().Gender.ToLower());
RoomUpdate.AppendString(clientByUsername.GetHabbo().Motto);
RoomUpdate.AppendInt32(clientByUsername.GetHabbo().AchievementPoints);
Room.SendMessage(RoomUpdate);
clientByUsername.SendNotif("you are a zombie now bite people in front off you!");
roomuser.zombie = true;
}
}
else
{
Session.SendNotif("Your not a zombie?");
}
}
@AKllX you might have good idea ;3



Reply With Quote![[swift command] bite user](http://ragezone.com/hyper728.png)


