- Joined
- Dec 13, 2010
- Messages
- 649
- Reaction score
- 140
Alright, this is a very simple simple release. You can edit the chair id's however you wish.
Side Note: DominoStory, ignore that. its a server I do some side scripting for .
Also let me know if there are any errorz
PHP:
/****************************************\
* Made by Soulfist for DominoStory *
\****************************************/
chairs = [3010000, 3010001, 3010002, 3010003, 3010004, 3010005, 3010006, 3010007, 3010008,
3010009, 3010010, 3010011, 3010012, 3010013, 3010014, 3010015, 3010016, 3010017, 3010018,
3010019, 3010020, 3010021, 3010022, 3010023, 3010024, 3010025, 3010026, 3010027, 3010028,
3010029, 3010030, 3010031, 3010032, 3010033, 3010034, 3010035, 3010036, 3010037, 3010038,
3010039, 3010040, 3010041, 3010042, 3010043, 3010044, 3010045, 3010046, 3010047, 3010048,
3010049, 3010050];
function start() {
var talk = "Welcome to DominoStory #g#h ##k, I sell chairs for\r\n 5 #i4030002#. Would you like to buy one?";
for(var i = 0; i < chairs.length; i++) {
talk += "\r\n#L"+"##i"+chairs[i]+"##l";
cm.sendSimple(talk);
}
function action(m, t, s) {
if (m < 1) {
cm.dispose();
return;
} else {
status++;
}
if (status == 1) {
if (cm.haveItem(4030002, 5) {
cm.sendOk("Enjoy your new #rChair#k!");
cm.gainItem(chairs[s], 1);
cm.gainItem(4030002, -5);
cm.dispose();
} else {
cm.sendOk("You do not have enough #i4030002#");
cm.dispose();
}
}
}
Side Note: DominoStory, ignore that. its a server I do some side scripting for .
Also let me know if there are any errorz
Last edited: