VIPアイテムランダムNPC

Go down

VIPアイテムランダムNPC

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

Code:
var itemprice = 20;
items = [1302147, 1312062, 1322090, 1332120, 1332125, 1342033, 1372078, 1382099, 1402090, 1412062, 1422063, 1432081, 1442111, 1452106, 1462091, 1472117, 1482079, 1492079];
gl = 4000313;

function start() {
var text = "welcome\r\n";
for (var i = 0;i <items> 0) {
if (cm.haveItem(gl, itemsprice)) {
cm.gainItem(items[selection], 1);
cm.gainItem(gl, -itemsprice);
cm.dispose();
} else {
cm.sendOk("You do not have enough Golden Maple Leaves.");
cm.dispose();
}
}
cm.dispose();
}
avatar
構築さん
Admin

Posts : 193
Join date : 2014/05/29

http://maplescience.forumjap.com

トップに戻る Go down

トップに戻る


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