2018-12-22 11:39:00 +01:00
|
|
|
package com.eu.habbo.habbohotel.items.interactions;
|
|
|
|
|
|
|
|
import com.eu.habbo.Emulator;
|
|
|
|
import com.eu.habbo.habbohotel.gameclients.GameClient;
|
|
|
|
import com.eu.habbo.habbohotel.items.Item;
|
2020-02-05 19:17:54 +01:00
|
|
|
import com.eu.habbo.habbohotel.rooms.*;
|
2020-02-05 23:56:40 +01:00
|
|
|
import com.eu.habbo.habbohotel.users.Habbo;
|
2018-12-22 11:39:00 +01:00
|
|
|
import com.eu.habbo.habbohotel.users.HabboItem;
|
|
|
|
import com.eu.habbo.messages.outgoing.rooms.items.FloorItemUpdateComposer;
|
|
|
|
import com.eu.habbo.messages.outgoing.rooms.users.RoomUserStatusComposer;
|
|
|
|
import com.eu.habbo.threading.runnables.RoomUnitVendingMachineAction;
|
2020-02-05 19:17:54 +01:00
|
|
|
import com.eu.habbo.threading.runnables.RoomUnitWalkToLocation;
|
2018-12-22 11:39:00 +01:00
|
|
|
import com.eu.habbo.util.pathfinding.Rotation;
|
|
|
|
|
|
|
|
import java.sql.ResultSet;
|
|
|
|
import java.sql.SQLException;
|
2020-02-05 19:17:54 +01:00
|
|
|
import java.util.ArrayList;
|
|
|
|
import java.util.List;
|
2018-12-22 11:39:00 +01:00
|
|
|
|
2020-02-05 23:56:40 +01:00
|
|
|
public class InteractionEffectVendingMachine extends InteractionVendingMachine {
|
2019-05-26 20:14:53 +02:00
|
|
|
public InteractionEffectVendingMachine(ResultSet set, Item baseItem) throws SQLException {
|
2018-12-22 11:39:00 +01:00
|
|
|
super(set, baseItem);
|
|
|
|
this.setExtradata("0");
|
|
|
|
}
|
|
|
|
|
2019-05-26 20:14:53 +02:00
|
|
|
public InteractionEffectVendingMachine(int id, int userId, Item item, String extradata, int limitedStack, int limitedSells) {
|
2018-12-22 11:39:00 +01:00
|
|
|
super(id, userId, item, extradata, limitedStack, limitedSells);
|
|
|
|
this.setExtradata("0");
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
2020-09-03 02:04:41 +02:00
|
|
|
public void giveVendingMachineItem(Room room, RoomUnit unit) {
|
|
|
|
room.giveEffect(unit, this.getBaseItem().getRandomVendingItem(), 30);
|
2018-12-22 11:39:00 +01:00
|
|
|
}
|
|
|
|
}
|