- Joined
- Jul 12, 2008
- Messages
- 303
- Reaction score
- 3
Eeh, just a simple release for NPCConversationManager
^^;;
Not sure if someone released yet >.<
But yeah, I used this for Moople, pretty sure it would work for other sources, I think.
Umm, you use this in your NPC script by
setHp(#);
setMp(#);
addAp(#);
addSp(#);
Sorry, if its useless release >.< But it helped meeee
Ahah
^^;;
Code:
public void setHp ( int hp ) {
getPlayer().setMaxHp(hp);
getPlayer().updateSingleStat(MapleStat.MAXHP, hp);
}
public void setMp ( int mp) {
getPlayer().setMaxMp(mp);
getPlayer().updateSingleStat(MapleStat.MAXMP, mp);
}
public void addAp ( int ap) {
getPlayer().setRemainingAp(ap);
getPlayer().updateSingleStat(MapleStat.AVAILABLEAP, getPlayer().getRemainingAp());
}
public void addSp (int sp){
getPlayer().setRemainingSp(sp);
getPlayer().updateSingleStat(MapleStat.AVAILABLESP, getPlayer().getRemainingSp());
}
Not sure if someone released yet >.<
But yeah, I used this for Moople, pretty sure it would work for other sources, I think.
Umm, you use this in your NPC script by
setHp(#);
setMp(#);
addAp(#);
addSp(#);
Sorry, if its useless release >.< But it helped meeee

