Jump to content
  • 0

Special Guild Room Please Help


Chickz

Question


  • Group:  Members
  • Topic Count:  8
  • Topics Per Day:  0.00
  • Content Count:  36
  • Reputation:   0
  • Joined:  03/18/12
  • Last Seen:  

this npc will allow u to warp if you own certain castle e.g kriemhild/prtg_cas01...

if the guild owner change and u still in that room e.g quiz_02 than u will be kick from that room

all guild member of castle owner can enter this room...

i try to make it but it's too difficult for me >.<

Link to comment
Share on other sites

3 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  72
  • Topics Per Day:  0.02
  • Content Count:  2997
  • Reputation:   1130
  • Joined:  05/27/12
  • Last Seen:  

<header> {
   set .@Room$, "<your_map>";
   set .@Castle$, "prtg_cas01";

   mes "[special Guild Room]";
   mes "Would you like to warp to the special guild room?";
   mes "It's only available to the conquerors of "+getcastlename(.@Castle$)+", though.";
   next;
   if(select("Warp me!:Cancel")==2) close;
   mes "[special Guild Room]";
   set .@i, getcastledata(.@Castle$,1);
   if (!.@i) {
    mes "Oh, nobody has conquered that castle, actually... so no one is allowed in!";
    close; }
   if (!getcharid(2)) {
    mes "You aren't even in a guild!";
    close; }
   if (getcharid(2) != .@i) {
    mes "Your guild doesn't own "+getcastlename(.@Castle$)+".";
    mes "^0055FF"+getguildname(.@i)+"^000000 does.";
    close; }
   mes "Alright, here we go!";
   close2;
   warp .@Room$,0,0;
   end;
}

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  9
  • Topics Per Day:  0.00
  • Content Count:  69
  • Reputation:   4
  • Joined:  07/02/12
  • Last Seen:  

edited: i completely misread the first post. lol

Edited by mofo
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  8
  • Topics Per Day:  0.00
  • Content Count:  36
  • Reputation:   0
  • Joined:  03/18/12
  • Last Seen:  

@Euphy: Sorry For The late reply.. thank you very much ^^ it work smoothly no errors :D

Link to comment
Share on other sites

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...