Yoona Posted December 17, 2013 Posted December 17, 2013 Hey Guys! How's everything going here at rAthena! Can i request something ? What I'm Looking for is : First : Endless Tower Job Restrictions ( Below 3rd Jobs can't enter ) Second : Each Floor they Finish. Party Members will receive 10 Endless Tower Points. Third : A shop that only Endless Tower Points are allowed. Thanks in Advance Have a Safe Day ahead ! Quote
AnnieRuru Posted December 19, 2013 Posted December 19, 2013 http://www.eathena.ws/board/index.php?s=&showtopic=269996&view=findpost&p=1479378 dammit ... I should've search around a little bit before posting it should be if ( upper & 4 == 0 ) { mes "3rd job only"; close; } Quote
Patskie Posted December 17, 2013 Posted December 17, 2013 First : @eac = eaclass(); if( @eac&EAJL_THIRD ) { // allow } else { // deny } Second : getpartymember getcharid(1),2; while ( .@i < $@partymembercount ) { if ( attachrid( $@partymemberaid[.@i] ) ) { // do whatever } .@i++; } Third : Use multi-currency shop by @Emistry (suggested) and set the currency to your custom variable. Quote
Yoona Posted December 17, 2013 Author Posted December 17, 2013 @Patskie sorry but still new with scripting. where should i add those? Quote
Patskie Posted December 18, 2013 Posted December 18, 2013 Most likely if you create a script and put those. They will do the work. Quote
Yoona Posted December 18, 2013 Author Posted December 18, 2013 @Patskie so im just gonna paste it on my Endless Tower script? Quote
AnnieRuru Posted December 18, 2013 Posted December 18, 2013 (edited) @Patskie so im just gonna paste it on my Endless Tower script?yeah ... probably.... npc/instances/EndlessTower.txt | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/npc/instances/EndlessTower.txt b/npc/instances/EndlessTower.txt index ace43e6..0710ad5 100644 --- a/npc/instances/EndlessTower.txt +++ b/npc/instances/EndlessTower.txt @@ -231,6 +231,10 @@ e_tower,81,105,0 script Tower Protection Stone 406,{ mes "After making a reservation, you have to talk to NPC behind and select the menu 'Enter the Dungeon' to enter the dungeon."; close; case 2: + if ( upper != 2 ) { + mes "3rd job only"; + close; + } callsub L_Enter,0,1; case 3: mes "I will move you to Alberta."; @@ -243,6 +247,10 @@ e_tower,81,105,0 script Tower Protection Stone 406,{ } switch(select("Enter the "+.@md_name$+":Return to Alberta:Cancel")) { case 1: + if ( upper != 2 ) { + mes "3rd job only"; + close; + } callsub L_Enter,1,1; case 2: mes "I will move you to Alberta."; @@ -1327,6 +1335,7 @@ OnEnable: OnTouch_: getitem 6000,1; //Dark_Ashes + etower_points += 100; warp instance_mapname("2@tower"),52,354; end; @@ -1482,6 +1491,7 @@ OnEnable: end; OnTouch_: + etower_points += 100; warp instance_mapname("3@tower"),52,354; end; } @@ -1576,6 +1586,7 @@ OnEnable: OnTouch_: getitem 6000,1; //Dark_Ashes + etower_points += 100; warp instance_mapname("4@tower"),52,354; end; @@ -1691,6 +1702,7 @@ OnEnable: OnTouch_: getitem 6000,1; //Dark_Ashes + etower_points += 100; warp instance_mapname("5@tower"),101,72; end; @@ -2172,6 +2184,7 @@ OnMyMobDead: mes "[Lost Souls]"; mes "Farewell, young adventurer. I wish you good luck."; close2; + etower_points += 100; warp "alberta",223,36; end; I didn't test, just based on my understandingfor no.3 .... has lots of point currency shop lying around ... Edited December 18, 2013 by AnnieRuru Quote
Yoona Posted December 19, 2013 Author Posted December 19, 2013 @Patskie so im just gonna paste it on my Endless Tower script?yeah ... probably.... npc/instances/EndlessTower.txt | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/npc/instances/EndlessTower.txt b/npc/instances/EndlessTower.txt index ace43e6..0710ad5 100644 --- a/npc/instances/EndlessTower.txt +++ b/npc/instances/EndlessTower.txt @@ -231,6 +231,10 @@ e_tower,81,105,0 script Tower Protection Stone 406,{ mes "After making a reservation, you have to talk to NPC behind and select the menu 'Enter the Dungeon' to enter the dungeon."; close; case 2: + if ( upper != 2 ) { + mes "3rd job only"; + close; + } callsub L_Enter,0,1; case 3: mes "I will move you to Alberta."; @@ -243,6 +247,10 @@ e_tower,81,105,0 script Tower Protection Stone 406,{ } switch(select("Enter the "+.@md_name$+":Return to Alberta:Cancel")) { case 1: + if ( upper != 2 ) { + mes "3rd job only"; + close; + } callsub L_Enter,1,1; case 2: mes "I will move you to Alberta."; @@ -1327,6 +1335,7 @@ OnEnable: OnTouch_: getitem 6000,1; //Dark_Ashes + etower_points += 100; warp instance_mapname("2@tower"),52,354; end; @@ -1482,6 +1491,7 @@ OnEnable: end; OnTouch_: + etower_points += 100; warp instance_mapname("3@tower"),52,354; end; } @@ -1576,6 +1586,7 @@ OnEnable: OnTouch_: getitem 6000,1; //Dark_Ashes + etower_points += 100; warp instance_mapname("4@tower"),52,354; end; @@ -1691,6 +1702,7 @@ OnEnable: OnTouch_: getitem 6000,1; //Dark_Ashes + etower_points += 100; warp instance_mapname("5@tower"),101,72; end; @@ -2172,6 +2184,7 @@ OnMyMobDead: mes "[Lost Souls]"; mes "Farewell, young adventurer. I wish you good luck."; close2; + etower_points += 100; warp "alberta",223,36; end; I didn't test, just based on my understandingfor no.3 .... has lots of point currency shop lying around ... Annie should i change this one if ( upper != 2 ) { into if ( upper != 3 ) { ? because i tried it and trans can enter but 3rd job class can't. Quote
Question
Yoona
Hey Guys! How's everything going here at rAthena!
Can i request something ?
What I'm Looking for is :
Thanks in Advance
Have a Safe Day ahead ! 
7 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.