Jump to content
Rebel

[atcommand] @aura

Recommended Posts

@aura , by Zeph

I updated the @aura command, you can now add new aura using a /db/aura_db.txt without editing the source.
Also aura will be disabled if you're in PVP and WOE.

Here's the diff file.
Working with the Latest Commit 7f9f185

aura_2.4.diff

Credits to Zephyrus

Edited by Rebel
Updates.
  • Upvote 2
Link to comment
Share on other sites

this is just like the @aura command of eAmod,

 

 

 

@aura , by Zeph
 

Credits to Zephyrus

Link to comment
Share on other sites

Hello, I applied this on my server and it works fine, but there is a little problem to it, when I use @aura 5, it will say "Current Aura: 0", maybe it should be "Previous Aura" or there is a problem with the code, somehow its harmless, and can I request that when I use @hide the aura will disappear too, thanks for sharing

Link to comment
Share on other sites

the 

 

Hello, I applied this on my server and it works fine, but there is a little problem to it, when I use @aura 5, it will say "Current Aura: 0", maybe it should be "Previous Aura" or there is a problem with the code, somehow its harmless, and can I request that when I use @hide the aura will disappear too, thanks for sharing

yeah, the msg show before the aura is set, maybe better "Your aura is set: %d. (Previous: %d)"

Link to comment
Share on other sites

How to auto disable this on woe to prevent lag? Thanks!

 

just dont show effect when your on woe.. /effect will do..

Link to comment
Share on other sites

So theres no way disabling it, but /effect. Some players liked to see skill effect on woes like land protect and stuff. Anyways, thank you very much!

Edited by Fresh prince
Link to comment
Share on other sites

@Yahiko, is attached file from codebox above?

 

 

So theres no way disabling it, but /effect. Some players liked to see skill effect on woes like land protect and stuff. Anyways, thank you very much!

if you use code form this post, just add agit_flag and agit2_flag exception like works for SC_HIDING, chasewalk and cloaking

 

Index: status.c
===================================================================
--- status.c    (revision 17181)
+++ status.c    (working copy)
@@ -7210,6 +7210,7 @@
     vd = status_get_viewdata(bl);
     calc_flag = StatusChangeFlagTable[type];
     if(!(flag&4)) //&4 - Do not parse val settings when loading SCs
+    {
     switch(type)
     {
         case SC_DECREASEAGI:
@@ -8653,6 +8654,15 @@
                 return 0;
             }
     }
+    // @aura
+    if (sd && sd->status.aura > 0 &&
+            (type == SC_HIDING || type == SC_CLOAKING || type == SC_CHASEWALK || agit_flag || agit2_flag))
+       {
+            sd->status.aura *= -1;
+            clif_clearunit_area(&sd->bl, 0);
+            clif_getareachar_char(&sd->bl, 0);
+       }
+    }
     else //Special considerations when loading SC data.
     switch( type )
     {
@@ -9781,6 +9791,14 @@
         opt_flag = 0;
     }
 
+    // @auras
+       if (sd && sd->status.aura < 0 &&
+               (type == SC_HIDING || type == SC_CLOAKING || type == SC_CHASEWALK || agit_flag || agit2_flag))
+       {
+               sd->status.aura *= -1;
+               clif_sendauras(sd, AREA_WOS);
+       }
+
     if (calc_flag&SCB_DYE)
     {    //Restore DYE color
         if (vd && !vd->cloth_color && sce->val4)

PS: Not tested yet

Edited by Cydh
Link to comment
Share on other sites

I will post here later the last mod I did about aura system, using a /db/aura_db.txt to create your own auras without editing source.

  • Upvote 1
Link to comment
Share on other sites

makes @specialeffect becomes permanent (additional) aura (beside of official lvl aura) for your char.

 

]so does the extra aura have any effect in woe ,pvp etc? do we get extra stats or sm thing?

Link to comment
Share on other sites

so does the extra aura have any effect in woe ,pvp etc? do we get extra stats or sm thing?

no, it's only visual effect.

But, I'm going to make aura with additional effect for specified aura number. :D

Link to comment
Share on other sites

I will post here later the last mod I did about aura system, using a /db/aura_db.txt to create your own auras without editing source.

any news dude?

Edited by miczster
Link to comment
Share on other sites

Theres a bug on this thing. You can spam this kn woe and you wont get killed. I have not trried cydh's mod preventing the use of these, other than that, needs to be disable the ise of this command in woe

Or a delay on using it please. Like 3 secs delay kn selectjng another aura

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
Reply to this topic...

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

Important Information

By using this site, you agree to our Terms of Use and Privacy Policy.