/* var hp = cm.getPlayer().getMaxHp();
cm.getPlayer().setMaxHp(hp+100);
var mp = cm.getPlayer().getMaxMp();
cm.getPlayer().setMaxMp(mp+1000) */
//金币换血
function start() {
status = -1;
action(1, 0, 0);
}
function action(mode, type, selection) {
if (mode == -1) {
cm.dispose();
} else {
if (status >= 0 && mode == 0) {
cm.sendOk("想好了再来吧~");
cm.dispose();
return;
}
if (mode == 1) {
status++;
}
else {
status--;
}
if (status == 0) {
var text = "";
text += "金币换血:\r\n";
text += "\t\t#b40000金币 = 1 HP上限\r\n\t\t#k最高可以洗到30,000 HP上限。\r\n\r\n";
text += "金币余额:#b" + cm.getPlayer().getCSPoints(1) + "#k\r\n";
text += "请输入您要兑换的#rHP#k数值:";
cm.sendGetNumber(text, 1, 1, 9999999);