mirror of
https://github.com/2006-Scape/2006Scape.git
synced 2026-07-03 00:31:51 +00:00
Added/Fixed Right Click Banking For Fadli(Duel Arena Banker)
This commit is contained in:
@@ -0,0 +1,17 @@
|
|||||||
|
package plugin.npc.fadli
|
||||||
|
|
||||||
|
import com.rs2.event.EventContext
|
||||||
|
import com.rs2.event.EventSubscriber
|
||||||
|
import com.rs2.event.SubscribesTo
|
||||||
|
import com.rs2.event.impl.NpcSecondClickEvent
|
||||||
|
import com.rs2.game.players.Player
|
||||||
|
|
||||||
|
@SubscribesTo(NpcSecondClickEvent::class)
|
||||||
|
class SecondClick : EventSubscriber<NpcSecondClickEvent> {
|
||||||
|
|
||||||
|
override fun subscribe(context: EventContext, player: Player, event: NpcSecondClickEvent) {
|
||||||
|
if (event.npc == 958) {
|
||||||
|
player.packetSender.openUpBank()
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user