mirror of
https://github.com/2006-Scape/2006Scape.git
synced 2026-07-02 16:49:03 +00:00
81e6344dd8
* Update Boundary.java * fix xp to level up * tomato shop * fix longsword attack anim * Update MeleeData.java * fix dagger/longsword/shortsword anims * Update MeleeData.java * obby maul and warhammer interfaces and halberd anims * Pickaxe anims randomly uses the anim for either stab str or crush str. Cheaphax before system redesign * adds razmires builder shop * pom.xml update
27 lines
974 B
Java
27 lines
974 B
Java
package plugin.click.npc;
|
|
|
|
import com.rs2.event.EventContext;
|
|
import com.rs2.event.EventSubscriber;
|
|
import com.rs2.event.SubscribesTo;
|
|
import com.rs2.event.impl.NpcThirdClickEvent;
|
|
import com.rs2.game.content.StaticNpcList;
|
|
import com.rs2.game.content.StaticObjectList;
|
|
import com.rs2.game.players.Player;
|
|
|
|
@SubscribesTo(NpcThirdClickEvent.class)
|
|
public final class NpcThirdClick implements EventSubscriber<NpcThirdClickEvent> {
|
|
|
|
@Override
|
|
public void subscribe(EventContext context, Player player, NpcThirdClickEvent event) {
|
|
if (player.playerRights == 3) {
|
|
player.getPacketSender().sendMessage("[click= npc], [type = third], [id= " + event.getNpc() + "], [Type= " + event.getNpc() + "]");
|
|
}
|
|
|
|
//TODO when plugins occur, move the handling of this to the specific plugin for those map areas.
|
|
if(event.getNpc() == StaticNpcList.RAZMIRE_KEELGAN) {
|
|
player.getShopAssistant().openShop(283);
|
|
}
|
|
}
|
|
|
|
}
|