Jump to content
  • 0

Donor Room script help


kenxkach

Question


  • Group:  Members
  • Topic Count:  1
  • Topics Per Day:  0.00
  • Content Count:  2
  • Reputation:   0
  • Joined:  12/30/12
  • Last Seen:  

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;
}

 

Edited by Capuche
Past script in Code
Link to comment
Share on other sites

0 answers to this question

Recommended Posts

There have been no answers to this question yet

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...