Jump to content
  • 0

Restrict Job Below 3rd Job.


Question

Posted

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

7 answers to this question

Recommended Posts

Posted

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.

Posted (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 understanding

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

Edited by AnnieRuru
Posted

 

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

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