so if you don't know what this is read more about it
Charming imp - The RuneScape Wiki
so basically this collects charms before they hit the ground giving you experience
please pm me any errors.
first go to npchandler.java
search for
Code:
public void dropItems(int i) {
above ^ Add
Code:
public boolean isCharm (int item) {
switch (item) {
case 12160://crimson
case 12163://blue
case 12158://gold
case 12159://green
return true;
default:
return false;
}
}
This makes sure that the item been dropped is a charm
Code:
default:
return false;
this means that any other item id's are determined as non charm id's
scroll down a few lines of text
find
Code:
if (NPCDrops.constantDrops.get(npcs[i].npcType) != null) {
for (int item : NPCDrops.constantDrops.get(npcs[i].npcType)) {
underneath
Code:
for (int item : NPCDrops.constantDrops.get(npcs[i].npcType)) {
replace
Code:
Server.itemHandler.createGroundItem(c, item, npcs[i].absX, npcs[i].absY, 1, c.playerId);
with
Code:
if (c.getItems().playerHasItem(****,1) && IsCharm(item))
c.getPA().addSkillXP(c.getSummoning().getExp(item)*Config.SUMMONING_EXPERIENCE,22);
else
Server.itemHandler.createGroundItem(c, item, npcs[i].absX, npcs[i].absY, 1, c.playerId);
the **** = the item id of the item you want to collect the charms
eg if you wanted dragon claws for instance to collect the charms add
Code:
if (c.getItems().playerHasItem(14484,1) && IsCharm(item))
c.getPA().addSkillXP(c.getSummoning().getExp(item)*Config.SUMMONING_EXPERIENCE,22);
else
Server.itemHandler.createGroundItem(c, item, npcs[i].absX, npcs[i].absY, 1, c.playerId);
credits to http://www.rune-server.org/runescape...600-items.html
I converted this to a charming imp and deleted some useless code.
Do not trash talk this as you don't have to use it if you don't want to.