PapaZola Posted January 8, 2012 Posted January 8, 2012 can i request script like this -choose guild name example draco guild and diablo guild -will warp guild member to base -if not in guild and other guild cant enter the base Quote
Emistry Posted January 8, 2012 Posted January 8, 2012 re-copy and paste the script....i have re-edit my original posts right after 2 minutes i post it.... prontera,155,181,5 script Sample 757,{ setarray .Guild$,"Diabloz","Draco"; mes "Back to Base according to your Guild."; next; for( set .@i,0; .@i < getarraysize( .Guild$ ); set .@i,.@i + 1 ){ set .@Menu$,.@Menu$ + .Guild$[.@i] +":"; } set .@i,select( .@Menu$ ) - 1; if( getguildname( getcharid(2) ) != .Guild$[.@i] ){ mes "You are not in this Guild."; close; } switch( .@i ){ Case 0: warp "prontera",123,45; end; Case 1: warp "payon",123,45; end; // Case 3: blablabla if there is more guild default: mes "Wrong Selection."; close; } end; } Quote
Emistry Posted January 8, 2012 Posted January 8, 2012 Explain further please... ?? how the Guild Name is choose ? When it will warp users to the base ? upon Guild Name is assigned ? or they can go whenever they want ? Quote
PapaZola Posted January 8, 2012 Author Posted January 8, 2012 ok sir emistry sorry for my bad english when the player click on the NPC NPC will ask the name Guild and the player must choose name example Draco Guild Guild Diablo Base and Base Base Draco sample in izlude 126.109 and base Diablo in morocc 156.93 they can warp time, but in the name of their Guild Quote
Emistry Posted January 8, 2012 Posted January 8, 2012 (edited) try this prontera,155,181,5 script Sample 757,{ setarray .Guild$,"Diabloz","Draco"; mes "Back to Base according to your Guild."; next; for( set .@i,0; .@i < getarraysize( .Guild$ ); set .@i,.@i + 1 ){ set .@Menu$,.@Menu$ + .Guild$[.@i] +":"; } set .@i,select( .@Menu$ )-1; if( getguildname( getcharid(2) ) != .Guild$[.@i] ){ mes "You are not in this Guild."; close; } switch( .@i ){ Case 0: warp "prontera",123,45; end; Case 1: warp "payon",123,45; end; // Case 3: blablabla if there is more guild default: mes "Wrong Selection."; close; } end; } Edited January 8, 2012 by Emistry Quote
PapaZola Posted January 8, 2012 Author Posted January 8, 2012 sir emistry become like this 1st name guild same 2nd not detect guild name 3rd looks like become spam Quote
Emistry Posted January 8, 2012 Posted January 8, 2012 (edited) Ops.... try this prontera,155,181,5 script Sample 757,{ setarray .Guild$,"Diabloz","Draco"; mes "Back to Base according to your Guild."; next; for( set .@i,0; .@i < getarraysize( .Guild$ ); set .@i,.@i + 1 ){ set .@Menu$,.@Menu$ + .Guild$[.@i] +":"; } set .@i,select( .@Menu$ ) - 1; if( getguildname( getcharid(2) ) != .Guild$[.@i] ){ mes "You are not in this Guild."; close; } switch( .@i ){ Case 0: warp "prontera",123,45; end; Case 1: warp "payon",123,45; end; // Case 3: blablabla if there is more guild default: mes "Wrong Selection."; close; } end; } Edited January 8, 2012 by Emistry Quote
PapaZola Posted January 8, 2012 Author Posted January 8, 2012 emistry still same NPC said you are not in this guild Quote
PapaZola Posted January 8, 2012 Author Posted January 8, 2012 wow its work now sir emistry and how if i want add more guild and base? Quote
Emistry Posted January 8, 2012 Posted January 8, 2012 add in more Guild Name here setarray .Guild$,"Diabloz","Draco"; add in more Cases according to your Guild Number..... switch( .@i ){ Case 0: warp "prontera",123,45; end; // Guild 1 Case 1: warp "payon",123,45; end; // Guild 2 //etc...add more here..... Quote
iSkiddo Posted May 24, 2012 Posted May 24, 2012 Nice script . btw i got question about guild base . can we put " Must in guild to use healer inside guild base ? Quote
Emistry Posted May 25, 2012 Posted May 25, 2012 the current 1 didnt work for Guild Checking ? i though it would work... change if( getguildname( getcharid(2) ) != .Guild$[.@i] ){ into if( getguildname( getcharid(2) ) != .Guild$[.@i] || !getcharid(2) ){ Quote
Question
PapaZola
can i request script like this
-choose guild name example draco guild and diablo guild
-will warp guild member to base
-if not in guild and other guild cant enter the base
11 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.