Quantcast
Channel: RaGEZONE - MMO Development Forums
Viewing all articles
Browse latest Browse all 15425

What's wrong with this script?

$
0
0
Yes, i know... i'm shit... but i literally can't find anything wrong with this script
PHP Code:

var status

function 
start() { 
    
status = -1
    
action(100); 


function 
action(modetypeselection) { 
    if (
mode == 1) { 
        
status++; 
    }else{ 
        
status--; 
    } 
    if (
status == 0) { 
        
cm.sendSimple("Hello and welcome to MapleTaste! \r\n Would you like to trade ONE Karma for 10000 NX Cash?\r\n #L0# Yes \r\n #L1# No);
    } else if (status == 2) {
        if (selection == 0) {
            cm.gainKarma(-1);
            cm.gainNX(10000);
            cm.sendOk("
Have a nice day!");
            cm.dispose();
        } else if (selection == 1) {
            cm.sendOk("
Okay thenHave a nice day!");
            cm.dispose();
        }            
    }            



Viewing all articles
Browse latest Browse all 15425

Latest Images

Trending Articles



Latest Images