mirror of
https://github.com/2006-Scape/2006Scape.git
synced 2026-07-03 08:39:04 +00:00
Plugins System (#510)
* Started Ripping Plugin System From Astraeus
*Currently only ClickingButtons Support
*Also Started Using The Logout Button Plugin From Astraeus
* NpcFirstClickEvent setup for plugins
also made Man & Women chat work through this
* Server: Add Google Collect Lib
* Server: NpcSecondClickEvent setup for plugins
also handle pickpocketing npc clicking through plugin
* Server: NpcThirdClickEvent setup for plugins
* Server: Remove conflicting action for Secondclicking npc id 3
* Server: ItemFirstClickEvent setup for plugins
Also Handle Yo-Yo First Click Through This
* Server: ItemOnItemEvent setup for plugins
Also Handle Black Candle Lighting With Tinderbox Through this
* Server: ItemOnNpcEvent setup for plugins
* Server: ItemOnObjectEvent setup for plugins
Also Handle Fillable Items Through This
* Server: ItemSecondClickEvent & ItemThirdClickEvent setup for plugins
Also Handle Yo-Yo Actions Through This
* Server: ObjectFirstClickEvent setup for plugins
Also Handle FirstClick Mining Actions Through This
* Server: ObjectSecondClickEvent setup for plugins
Also Handle Stall Thieving Actions Through This
* Server: ObjectThirdClickEvent setup for plugins
* Server: ObjectFourthClickEvent setup for plugins
Also Handle Fourth Click Farming Object Actions Through This
* Server: MagicOnItemEvent setup for plugins
Also Handle SuperHeat Through This
* More mage training arena (#509)
* Fixup points display
* Only allow players to deposit up to 12k at one time
* Apple damage and play animation
* Update order or prices
* Update Telekinetic.java
(cherry picked from commit ab3b1e9731)
Co-authored-by: RedSparr0w <RedSparr0w@users.noreply.github.com>
Co-authored-by: Danial <admin@redsparr0w.com>
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
package com.rs2.game.items;
|
||||
|
||||
import com.rs2.event.impl.ItemOnItemEvent;
|
||||
import com.rs2.GameConstants;
|
||||
import com.rs2.game.content.skills.cooking.Cooking;
|
||||
import com.rs2.game.content.skills.crafting.BattleStaffs;
|
||||
@@ -121,6 +122,8 @@ public class UseItem {
|
||||
}
|
||||
|
||||
public static void itemOnItem(Player player, int itemUsed, int useWith) {
|
||||
player.post(new ItemOnItemEvent(itemUsed, useWith));
|
||||
player.post(new ItemOnItemEvent(useWith, itemUsed));
|
||||
LogCuttingInterface.handleItemOnItem(player, itemUsed, useWith);
|
||||
ArrowMaking.makeArrow(player, itemUsed, useWith);
|
||||
Stringing.StringBow(player, itemUsed, useWith);
|
||||
@@ -218,11 +221,11 @@ public class UseItem {
|
||||
player.getItemAssistant().deleteItem(327, 1);
|
||||
player.getItemAssistant().addItem(1552, 1);
|
||||
}
|
||||
if (itemUsed == 38 && useWith == 590 || useWith == 38
|
||||
/*f (itemUsed == 38 && useWith == 590 || useWith == 38
|
||||
&& itemUsed == 590) {//
|
||||
player.getItemAssistant().addItem(32, 1);
|
||||
player.getItemAssistant().deleteItem(38, 1);
|
||||
}
|
||||
}*/
|
||||
if (itemUsed == 36 && useWith == 590 || useWith == 36
|
||||
&& itemUsed == 590) {
|
||||
player.getItemAssistant().addItem(33, 1);
|
||||
|
||||
Reference in New Issue
Block a user