mirror of
https://git.krews.org/morningstar/Arcturus-Community.git
synced 2025-01-31 12:22:36 +01:00
Merge branch 'dev' of https://git.krews.org/morningstar/Arcturus-Community into dev
This commit is contained in:
commit
10f1606919
@ -12,7 +12,7 @@ import com.eu.habbo.messages.ServerMessage;
|
|||||||
import java.sql.ResultSet;
|
import java.sql.ResultSet;
|
||||||
import java.sql.SQLException;
|
import java.sql.SQLException;
|
||||||
|
|
||||||
public class InteractionGuildFurni extends HabboItem
|
public class InteractionGuildFurni extends InteractionDefault
|
||||||
{
|
{
|
||||||
private int guildId;
|
private int guildId;
|
||||||
|
|
||||||
@ -70,45 +70,6 @@ public class InteractionGuildFurni extends HabboItem
|
|||||||
return this.getBaseItem().allowWalk();
|
return this.getBaseItem().allowWalk();
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
|
||||||
public void onClick(GameClient client, Room room, Object[] objects) throws Exception
|
|
||||||
{
|
|
||||||
super.onClick(client, room, objects);
|
|
||||||
|
|
||||||
if (objects.length > 0)
|
|
||||||
{
|
|
||||||
if (objects[0] instanceof Integer && room != null)
|
|
||||||
{
|
|
||||||
if(this.getExtradata().length() == 0)
|
|
||||||
this.setExtradata("0");
|
|
||||||
|
|
||||||
if(this.getBaseItem().getStateCount() > 1)
|
|
||||||
{
|
|
||||||
this.setExtradata("" + (Integer.valueOf(this.getExtradata()) + 1) % this.getBaseItem().getStateCount());
|
|
||||||
this.needsUpdate(true);
|
|
||||||
room.updateItemState(this);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public void onWalk(RoomUnit roomUnit, Room room, Object[] objects) throws Exception
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public void onWalkOn(RoomUnit roomUnit, Room room, Object[] objects) throws Exception
|
|
||||||
{
|
|
||||||
super.onWalkOn(roomUnit, room, objects);
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public void onWalkOff(RoomUnit roomUnit, Room room, Object[] objects) throws Exception
|
|
||||||
{
|
|
||||||
super.onWalkOff(roomUnit, room, objects);
|
|
||||||
}
|
|
||||||
|
|
||||||
public int getGuildId()
|
public int getGuildId()
|
||||||
{
|
{
|
||||||
return this.guildId;
|
return this.guildId;
|
||||||
|
@ -131,7 +131,7 @@ public class WiredEffectTeleport extends InteractionWiredEffect
|
|||||||
|
|
||||||
// makes a temporary effect
|
// makes a temporary effect
|
||||||
room.sendComposer(new RoomUserEffectComposer(roomUnit, 4).compose());
|
room.sendComposer(new RoomUserEffectComposer(roomUnit, 4).compose());
|
||||||
Emulator.getThreading().run(new SendRoomUnitEffectComposer(room, roomUnit), WiredHandler.TELEPORT_DELAY);
|
Emulator.getThreading().run(new SendRoomUnitEffectComposer(room, roomUnit), WiredHandler.TELEPORT_DELAY + 1000);
|
||||||
|
|
||||||
if (tile.state == RoomTileState.INVALID || tile.state == RoomTileState.BLOCKED) {
|
if (tile.state == RoomTileState.INVALID || tile.state == RoomTileState.BLOCKED) {
|
||||||
RoomTile alternativeTile = null;
|
RoomTile alternativeTile = null;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user