Jump to content
  • 0

Restrict Job Below 3rd Job.


Yoona

Question


  • Group:  Members
  • Topic Count:  153
  • Topics Per Day:  0.04
  • Content Count:  567
  • Reputation:   18
  • Joined:  04/15/13
  • Last Seen:  

Hey Guys! How's everything going here at rAthena!  /lv

 

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 !  /no1

Link to comment
Share on other sites

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

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


  • Group:  Members
  • Topic Count:  50
  • Topics Per Day:  0.01
  • Content Count:  1702
  • Reputation:   238
  • Joined:  09/05/12
  • Last Seen:  

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.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  153
  • Topics Per Day:  0.04
  • Content Count:  567
  • Reputation:   18
  • Joined:  04/15/13
  • Last Seen:  

@Patskie sorry but still new with scripting. where should i add those?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  50
  • Topics Per Day:  0.01
  • Content Count:  1702
  • Reputation:   238
  • Joined:  09/05/12
  • Last Seen:  

Most likely if you create a script and put those. They will do the work.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  153
  • Topics Per Day:  0.04
  • Content Count:  567
  • Reputation:   18
  • Joined:  04/15/13
  • Last Seen:  

@Patskie so im just gonna paste it on my Endless Tower script?

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:  

@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 understanding

for no.3 .... has lots of point currency shop lying around ...

Edited by AnnieRuru
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  153
  • Topics Per Day:  0.04
  • Content Count:  567
  • Reputation:   18
  • Joined:  04/15/13
  • Last Seen:  

 

@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 understanding

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

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