Jump to content
  • 0

Help with this script


Erba

Question


  • Group:  Members
  • Topic Count:  84
  • Topics Per Day:  0.02
  • Content Count:  550
  • Reputation:   9
  • Joined:  11/06/12
  • Last Seen:  

//===== rAthena Script =======================================
//=HouseWarper
//===== By ===================================================
//= AnnieRuru
//===== Version ==============================================
//= 0.1
//===== Compatible With ======================================
//= rAthena
//===== Description ==========================================
//=
//===== Comments =============================================
//=
//============================================================
new_1-4,130,178,6 script GuildBaseWarper 777,{
.@npcname$ = strnpcinfo(1);
mes .@npcname$;
mes "Hi "+strcharinfo(0)+",";
mes "Do you want to go in your Guild Base?";
next;
if ( select( "guild 1's Base", "guild2's Base", "No" ) == 3 ) close;
.@s = @menu;
mes .@npcname$;
mes "Hi "+strcharinfo(0)+",";
mes "Please enter your guild password";
next;
if ( input( .@tmp$, 2, 70 ) ) close;
if ( .@tmp$ != .password$[.@s] ) {
 mes .@npcname$;
 mes "Invalid password. Try again.";
 close;
}
announce strcharinfo(0) +": "+ strcharinfo(0), 0; // LOL ? I'm just replicating -> atcommand "@broadcast "+strcharinfo(0);
warp getd( ".guildbase"+ .@s +"$[0]" ), atoi( getd( ".guildbase"+ .@s +"$[1]" ) ), atoi( getd( ".guildbase"+ .@s +"$[2]" ) );
close;
OnInit:
setarray .password$[1], "1234", "4321";
setarray .guildbase1$, "lou_fild01", "180", "180";
setarray .guildbase2$, "lou_fild01", "180", "180" ;
end;
}

can i make the 2 maps be different from others if they are warp in with different password?

for exmple a member in guild1 enter the password for guild1's base and be warped in lou_fild01 180 180 while the member from guild2 enter the password for guild2's base be warp in lou_fild01 180 180 but they will not meet in the same place.. the npc will just be copied but not the players..

>>>> if 3 members insert a password in guild1's base they will meet in lou_fild01 same with the members from guild2's base but the members from guild1 and guild2 will not meet even they are in the same map...

^^ help if my imagination can be done!

thanks in advance

Link to comment
Share on other sites

4 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  18
  • Topics Per Day:  0.00
  • Content Count:  2044
  • Reputation:   682
  • Joined:  10/09/12
  • Last Seen:  

this script is extremely screw up lol

that script was done in this topic

... hmm ... wait ... seems like same user, perhaps I should merge topic ?

anyways,

if I'm going to do this correctly, I'll do something similar to this ...

http://rathena.org/board/topic/73112-room-rental-a-little-help/#entry150523

which can let user input their password ... and it can auto-reset on empty rooms ...

just have to turn this password-based script into a guild-based script

so, try that script and thinks what are the kinds of feature you want me to add from that script

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  84
  • Topics Per Day:  0.02
  • Content Count:  550
  • Reputation:   9
  • Joined:  11/06/12
  • Last Seen:  

this script is extremely screw up lol

that script was done in this topic

... hmm ... wait ... seems like same user, perhaps I should merge topic ?

anyways,

if I'm going to do this correctly, I'll do something similar to this ...

http://rathena.org/b...lp/#entry150523

which can let user input their password ... and it can auto-reset on empty rooms ...

just have to turn this password-based script into a guild-based script

so, try that script and thinks what are the kinds of feature you want me to add from that script

yea same poster.^^ I place your name in the maker of the script.. ^^ thanks for your help..

now my concern now is to make 1 map to be use by all guilds but a guildmember of the same guild will only meet and will not meet other member from other guilds ^^

does instances have something to do with my idea?^^,

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  18
  • Topics Per Day:  0.00
  • Content Count:  2044
  • Reputation:   682
  • Joined:  10/09/12
  • Last Seen:  

if I understand correctly, instancing in rathena is only meant for party use

And instanced map applies for only a single party and it's members. Using this system, a party can have exclusive access to one map, where no-one else can access it unless in the party.

if a guild base need to be instance, with current rathena system needs the guild member to be in a party in order to create an instance map

and it can create some unwanted situation ...

however I play perfect world before and I actually understand that game can create instance for guild base

( which the instance_id is attach to guild ID instead of party ID )

perhaps your idea need some source modification ...

just read instance.c ... found out might be possible to do it by source modification ...

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  84
  • Topics Per Day:  0.02
  • Content Count:  550
  • Reputation:   9
  • Joined:  11/06/12
  • Last Seen:  

okay thanks.. ^^, i better make a different guild house for every guild in my server T_T hehe..

or can i reproduce that map? for example the izlude

can i reproduce izlude and just change the name of izlude? so that i can use the same design for all guild houses? ^^

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