Jump to content
  • 0

Question

Posted

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

Posted

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

Posted

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 ?

Posted

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

Posted (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 by Emistry
Posted (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 by Emistry
Posted

/heh

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

Posted

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) ){

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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...