Re: [Release] Earn NX by killing mobs
Quote:
Originally Posted by
tensyume
Nice !! but can I make it like this, so it can be earned by specific monster?
Code:
int addnx;
addnx = meso*2;
if (addnx > 0) {
dropOwner.modifyCSPoints(0, addnx) && dropOwner=100100; // Dropowner=monster=100100=snail
dropOwner.getClient().getSession().write(MaplePacketCreator.serverNotice(5, "You have gained NX Cash (+" + addnx +")."));
}
dropOwner is a maplecharacter not a maplemonster
Re: [Release] Earn NX by killing mobs
Quote:
Originally Posted by
mmavipc
dropOwner is a maplecharacter not a maplemonster
then How do u make specific monster to drop NX?
Re: [Release] Earn NX by killing mobs
Do you mean Monsters will DROP nx cash?? or NX items?
Re: [Release] Earn NX by killing mobs
Quote:
Originally Posted by
Wilsongb10
Do you mean Monsters will DROP nx cash?? or NX items?
They dont drop anything. they give you nx cash
Re: [Release] Earn NX by killing mobs
then How do u make specific monster to give NX? (Fixed drop -> give)
Re: [Release] Earn NX by killing mobs
Quote:
Originally Posted by
tensyume
then How do u make specific monster to give NX? (Fixed drop -> give)
i want something like that.
my idea is if someone got hmm... 100 event ticket[or what you want]
he go to npc and for his event tickets he get like 25k nx..
so what is the command to give player nx for the tickets
if (cm.haveItem(event ticket id, 100)) {
cm.whatthef**k(nx id :|, 25000);
}
wtf is the command i need :|
Re: [Release] Earn NX by killing mobs
Is it possible to set a Percentage.. So like its a 10% chance that you can get nx cash?
Re: [Release] Earn NX by killing mobs
Isnt there a cap for how much NX you can get? Like 99k is the cap?
Re: [Release] Earn NX by killing mobs
Quote:
Originally Posted by
KiraL
it could work but dcs everything when i go cash shop
oh okay, then im not gonna use it x[
Re: [Release] Earn NX by killing mobs
i can post here the giftnx command...
you can try to work with it :|
else if (splitted[0].equals("!giftnx")) {
MapleCharacter victim1 = cserv.getPlayerStorage().getCharacterByName(splitted[1]);
int points = Integer.parseInt(splitted[2]);
victim1.modifyCSPoints(0, points);
mc.dropMessage("Yah!");
}
i dunno why i post this here maybe you can do something with it...
Re: [Release] Earn NX by killing mobs
Quote:
Originally Posted by
tensyume
Nice !! but can I make it like this, so it can be earned by specific monster?
Code:
int addnx;
addnx = meso*2;
if (addnx > 0) {
dropOwner.modifyCSPoints(0, addnx) && dropOwner=100100; // Dropowner=monster=100100=snail
dropOwner.getClient().getSession().write(MaplePacketCreator.serverNotice(5, "You have gained NX Cash (+" + addnx +")."));
}
Use monster.getID()
Re: [Release] Earn NX by killing mobs
So can anyone tell me this actually works?
Re: [Release] Earn NX by killing mobs
Quote:
Originally Posted by
TerkeyDerkey
Isnt there a cap for how much NX you can get? Like 99k is the cap?
2.147 bil something is the cap.
Re: [Release] Earn NX by killing mobs
thanks for the release. and yes using blahblahblah=x will give x NX i just tested it.
(x being a number)
Re: [Release] Earn NX by killing mobs
Quote:
Originally Posted by
eternalms
whats the variable to check level of player?
c.GetLevel
Re: [Release] Earn NX by killing mobs
Man this has gotten very inactive
Re: [Release] Earn NX by killing mobs
lt's supposed to be, to bad you bumped it.