just add 6570 after you delete 6570 ..if that makes sense
|
So im not sure as to how i would go about this. I'm pretty sure its the giveLife method in playerassistant.java. and this is what i came up with so far which i know is wrong.
i did wat lil str kid posted but when u die, the firecape stays on the ground and it adds another to your inv. so it needs to check if you have a firecape. then it needs to delete it so i change it to this but it cant find the method for deleting.
boolean hasFireCape = false;
if(c.playerEquipment[c.playerCape] == 6570 || c.getItems().playerHasItem(6570)) {
c.getItems().deleteItem(6570);
hasFireCape = true;
}
how would i change this?
just add 6570 after you delete 6570 ..if that makes sense
Um... You could try actually adding it so it isn't droppable. In your config.java. Or try this code:
Code:boolean hasFireCape = false; if(c.playerEquipment[c.playerCape] == 6570 || c.getItems().playerHasItem(6570)) { c.getItems().deleteItem(6570); c.getItems().addItem(6570, 1); hasFireCape = true; }
Thats the correct way to do it, then on death make a if statement sayingCode:private boolean hasFCape() { if (c.playerEquipment[c.playerCape] == 6570 || c.getItems().playHasItem(6570)) return true; return false; }
Code:if (c.hasFCape) { c.getItems().deleteItem(6570)); c.getItems().addItem(6570, 1)); }
why the fuck would you delete an item and then re add on the next line.
Idk lol, its justhow the code above it was. I modified it a bit.
Why would you even do this? Just make it untradeable and it will drop on the ground.. Why would you want your server to be like Delta?
Omg I have this in my server its so simple...
Find the method that drops all your items when you die then add an if statement that bypasses the firecape...
« Previous Thread | Next Thread » |
Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |