Files
2006Scape/2006Scape Server/plugins/plugin/click/npc/NpcThirdClick.java
T
MatthewBishop 81e6344dd8 Bug fixes (#603)
* 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
2023-02-06 18:43:27 +00:00

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);
}
}
}