[Release] !droprandomstatsitem command.
Lol. Did this one cause zakum helmet was undroppable in the server im playing. And my noob can't survive zakum so this was the only way to transfer an above average helm over :P
In CommandProcessor.java :
Add this import :
Code:
import net.sf.odinms.client.Equip;
Search :
Code:
} else if (splitted[0].equals("!level")) {
Above, add :
Code:
} else if (splitted[0].equals("!droprandomstatsitem")) {
int id = Integer.parseInt(splitted[1]);
IItem toDrop;
if (!MapleItemInformationProvider.getInstance().getInventoryType(id).equals(MapleInventoryType.EQUIP)) {
mc.dropMessage("Command can only be used for equips.");
}
else if (splitted.length != 2) {
mc.dropMessage("Check your parameters.");
}
else {
toDrop = MapleItemInformationProvider.getInstance().randomizeStats((Equip) MapleItemInformationProvider.getInstance().getEquipById(id));
c.getPlayer().getMap().spawnItemDrop(c.getPlayer(), c.getPlayer(), toDrop, c.getPlayer().getPosition(), true, true);
}
Compile and you're done. Credits to me.
Re: [Release] !droprandomstatsitem command.
Re: [Release] !droprandomstatsitem command.
Re: [Release] !droprandomstatsitem command.
Re: [Release] !droprandomstatsitem command.
nice but i am dont use odin -.-
Re: [Release] !droprandomstatsitem command.
Looking good.
You used the lolcastle event to create this right?
Re: [Release] !droprandomstatsitem command.
Quote:
Originally Posted by
Kars
Looking good.
You used the lolcastle event to create this right?
no.
Re: [Release] !droprandomstatsitem command.
Nice job! I'll add this later =)
Re: [Release] !droprandomstatsitem command.
the 'true, true' defines random stats?
edit: nub lol, soz, didnt see the randomizestats =]
Re: [Release] !droprandomstatsitem command.
Re: [Release] !droprandomstatsitem command.
Quote:
Originally Posted by
acEvolution
Lol. Did this one cause zakum helmet was undroppable in the server im playing. And my noob can't survive zakum so this was the only way to transfer an above average helm over :P
In CommandProcessor.java :
Add this import :
Code:
import net.sf.odinms.client.Equip;
Search :
Code:
} else if (splitted[0].equals("!level")) {
Above, add :
Code:
} else if (splitted[0].equals("!droprandomstatsitem")) {
int id = Integer.parseInt(splitted[1]);
IItem toDrop;
if (!MapleItemInformationProvider.getInstance().getInventoryType(id).equals(MapleInventoryType.EQUIP)) {
mc.dropMessage("Command can only be used for equips.");
}
else if (splitted.length != 2) {
mc.dropMessage("Check your parameters.");
}
else {
toDrop = MapleItemInformationProvider.getInstance().randomizeStats((Equip) MapleItemInformationProvider.getInstance().getEquipById(id));
c.getPlayer().getMap().spawnItemDrop(c.getPlayer(), c.getPlayer(), toDrop, c.getPlayer().getPosition(), true, true);
}
Compile and you're done. Credits to me.
Lols , u released it here as well ;x
Off-topic : LOL cant survive zak =p lmaooo.
Re: [Release] !droprandomstatsitem command.
Re: [Release] !droprandomstatsitem command.
good job
sorta usefull for events especialy
Re: [Release] !droprandomstatsitem command.
nice release :o
im adding this in.
Re: [Release] !droprandomstatsitem command.
Quote:
Originally Posted by
ihatehaxor
nice release :o
im adding this in.
Yes, nice release i'm adding this in too.