Jump to content
  • 0

Base Team Warper


PapaZola

Question


  • Group:  Members
  • Topic Count:  318
  • Topics Per Day:  0.07
  • Content Count:  925
  • Reputation:   32
  • Joined:  12/05/11
  • Last Seen:  

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

Link to comment
Share on other sites

11 answers to this question

Recommended Posts


  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10015
  • Reputation:   2348
  • Joined:  10/28/11
  • Last Seen:  

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

Link to comment
Share on other sites


  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10015
  • Reputation:   2348
  • Joined:  10/28/11
  • Last Seen:  

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 ?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  318
  • Topics Per Day:  0.07
  • Content Count:  925
  • Reputation:   32
  • Joined:  12/05/11
  • Last Seen:  

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

Link to comment
Share on other sites


  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10015
  • Reputation:   2348
  • Joined:  10/28/11
  • Last Seen:  

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
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  318
  • Topics Per Day:  0.07
  • Content Count:  925
  • Reputation:   32
  • Joined:  12/05/11
  • Last Seen:  

sir emistry

become like this

1st name guild same

wqee8rj327.png

2nd not detect guild name

87dxd3epyr.png

3rd looks like become spam

kjvp9s9ovl.png

Link to comment
Share on other sites


  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10015
  • Reputation:   2348
  • Joined:  10/28/11
  • Last Seen:  

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
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  318
  • Topics Per Day:  0.07
  • Content Count:  925
  • Reputation:   32
  • Joined:  12/05/11
  • Last Seen:  

emistry

still same NPC said you are not in this guild

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  318
  • Topics Per Day:  0.07
  • Content Count:  925
  • Reputation:   32
  • Joined:  12/05/11
  • Last Seen:  

wow

its work now sir emistry

and how if i want add more guild and base?

Link to comment
Share on other sites


  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10015
  • Reputation:   2348
  • Joined:  10/28/11
  • Last Seen:  

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

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  18
  • Topics Per Day:  0.00
  • Content Count:  94
  • Reputation:   0
  • Joined:  11/26/11
  • Last Seen:  

Nice script . btw i got question about guild base .

can we put " Must in guild to use healer inside guild base ?

Link to comment
Share on other sites


  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10015
  • Reputation:   2348
  • Joined:  10/28/11
  • Last Seen:  

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

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