violy 0 Posted October 19, 2014 How areawarp only party member to run the warp? myscript.txt Quote Share this post Link to post Share on other sites
0 GmOcean 92 Posted October 19, 2014 Well, i'm assuming you meant, how to make it so only party leader can run the warp. Since there was a line of code having to deal with @leader and such. prontera,192,176,5 script Çöó½Ã¾ÆÀÇ Àü·É 4_M_SAKRAYROYAL,{ if (getareausers("prontera",197,178,207,167) < 2) {// if (getareausers("prontera",197,178,207,167) < 2) { mes "[ºí·¹µå]"; mes "Àü Çöó½Ã¾ÆÀÇ Àü·ÉÀ¸·Î"; mes "¿ëÀÇ ´øÀü Åä¹ú´ë¸¦ ¸ðÁý ÇÏ°í ÀÖ½À´Ï´Ù."; mes "Çöó½Ã¾ÆÀÇ ±àÁö·Î"; mes "4´ë ¿ëµéÀ» ¹°¸®ÃÄ ÁֽʽÿÀ."; next; menu "Åä¹ú´ë ±¸¼º ¹× Ãâ¹ß",D_go,"Ãë¼Ò",Cancel;Cancel: mes "[ºí·¹µå]"; mes "¾î¿¼ö ¾ø±º¿ä."; close; D_go: mes "[ºí·¹µå]"; mes "µå·¡°ï µÕÁö·Î °¡±âÀ§Çؼ´Â 20¸í ÀÌ»óÀÇ Åä¹ú´ë°¡ ÀÖ¾î¾ß ÇÕ´Ï´Ù."; mes "ÇöÀç ½ÅÀü¿¡ "+getareausers("prontera",197,178,207,167)+ " ¸íÀÌ ´ë±âÁßÀ̱º¿ä.."; next; mes "[ºí·¹µå]"; mes "ÀοøÀ» ´õ ¸ðÁý ÇϽðųª"; mes "½ÅÀüÀ¸·Î ÀοøÀ» ¸ð¾Æ ÁֽʽÿÀ."; close; } mes "[ºí·¹µå]"; mes "Ãâ¹ß ÇϽðڽÀ´Ï±î?"; next; switch(select("Ãâ¹ß ÇÏ°Ú½À´Ï´Ù.:Ãë¼Ò")) { case 1: mes "[ºí·¹µå]"; mes "¹«¿îÀ» º÷´Ï´Ù."; close2; if( getpartyleader(getcharid(3),1) == -1){ mes "Only party leader can use this."; close; } areawarp "prontera",197,178,207,167,"1@eom",95,123,101,117; warp "1@eom",93,120; case 2: close; } }} Quote Share this post Link to post Share on other sites
How areawarp only party member to run the warp?
myscript.txt
Share this post
Link to post
Share on other sites