Jump to content

kenxkach

Members
  • Posts

    2
  • Joined

  • Last visited

Posts posted by kenxkach

  1. Im trying to make a donor room. There's an error. only gm accounts can enter here. I want to make it gm level 1 and above can enter or access in this room. i need you help guys. thanks. this is my codes - 
    prontera,164,171,4    script    Donor Room    899,{
    //Settings
        set .@map$, "job_ko"; // Change to wherever your gm post is
        set .@mapx, 123; // X coords
        set .@mapy, 123; // Y coords
       
        if (getgmlevel() >= 1) { goto requested; end; }
        else { goto nondonor; end; }
    OnInit:
        waitingroom "Donor Room",0; // Uncomment to enable a waiting room
        end;
    gmwarp:
        mes "[^0000FFDonor Room^000000]";
        mes "Hello "+strcharinfo(0)+".";
        mes "Do you wish to go to the Donor Room?";
        menu "Take me there.",yes,"Maybe later.",no;
    yes:
        warp .@map$,.@mapx,.@mapy;
        end;
    no:
        next;
        mes "[^0000FFDonor Room^000000]";
        mes "Alright, take care.";
        close;
        end;
    nondonor:
        mes "[^0000FFDonor Room^000000]";
        mes "I'm sorry but only Premium Accounts can enter here.";
        close;
        end;
    requested:
        mes "[^0000FFDonor Room^000000]";
        mes "Welcome to Donor Room!";
        next;
        mes "[^0000FFDonor Room^000000]";
        mes "You may go in now.";
        close2;
        warp .@map$,.@mapx,.@mapy;
        mapannounce .@map$,strcharinfo(0)+" has entered the Donor Room upon request.",0;
        end;
    }
    

     

×
×
  • Create New...