Would you like to react to this message? Create an account in a few clicks or log in to continue.

人気度販売NPC

Go down

人気度販売NPC Empty 人気度販売NPC

投稿 by 構築さん 2014-05-30, 09:10

Code:
/*
Fame Seller
*/



var status = 0;
var price = 100000;
var fame = 1;

function start() {
action(1, 0, 0);
}

function action(mode, type, selection) {
if (status == 0) {
cm.sendYesNo("私は#r人気度#kを#fUI/UIWindow.img/QuestIcon/6/0##b100000メル#kで販売しています。");
status++;
} else {
if ((status == 1 && type == 1 && selection == -1 && mode == 0) || mode == -1) {
cm.dispose();
} else {
if (status == 1) {
if (cm.getMeso() >= price) {
cm.gainFame(+fame);
cm.gainMeso(-price);
cm.dispose();
} else {
cm.sendOk("#b100000メル#kを所持していません。");
cm.dispose();
}
}
}
}
}
構築さん
構築さん
Admin

Posts : 193
Join date : 2014/05/29

https://maplescience.forumjap.com

トップに戻る Go down

トップに戻る


 
Permissions in this forum:
返信投稿: 不可