• Unfortunately, we have experienced significant hard drive damage that requires urgent maintenance and rebuilding. The forum will be a state of read only until we install our new drives and rebuild all the configurations needed. Please follow our Facebook page for updates, we will be back up shortly! (The forum could go offline at any given time due to the nature of the failed drives whilst awaiting the upgrades.) When you see an Incapsula error, you know we are in the process of migration.

Fun NPC

^^^

Junior Spellweaver
Joined
Aug 7, 2009
Messages
104
Reaction score
23
Code:
day = ["monday", "tuesday", "wednesday", "thursday", "friday"];
status = 0;
function start(){
    if (status > 6)
        cm.getPlayer().ban();
    else
        cm.sendYesNo("Today is " + day[status] + "?");
}

function action (moo, says, cow) {
    if (moo > 0){
        status++;
        start();
    } else{
        cm.getPlayer().ban();
        cm.dispose();
    }
}

add in maplecharacter
PHP:
public void ban() {
    ban("NPC");
}
 
Last edited:
Junior Spellweaver
Joined
Jan 8, 2010
Messages
140
Reaction score
48
On Saturday we are banned. post2short
 
Newbie Spellweaver
Joined
Jan 21, 2009
Messages
10
Reaction score
0
function action (moo, says, cow) {

Epic coding too! =]
 
Back
Top