Jump to content
  • 0
Sign in to follow this  
hadiesyafiq

About Group ID Exp.

Question

hai all is this correct i edit this script?

Quote

-    script    VIP_EXP    FAKE_NPC,{

    // BaseExp
    .base_exp_rate = getbattleflag("base_exp_rate");
    // JobExp
    .job_exp_rate = getbattleflag("job_exp_rate");
    // Drops
    .item_rate_common = getbattleflag("item_rate_common");
    .item_rate_heal = getbattleflag("item_rate_heal");
    .item_rate_use = getbattleflag("item_rate_use");
    .item_rate_equip = getbattleflag("item_rate_equip");
    end;

if (getgroupid() >= 2) {
    callsub(L_rate, 2);
} else {
    callsub(L_rate, 1);
    }
end;


L_rate:
    .@rate = getarg(0);
    .@base_exp_rate = (.@rate * .base_exp_rate);
    .@job_exp_rate = (.@rate * .job_exp_rate);
    .@item_rate_common = (.@rate * .item_rate_common);
    .@item_rate_heal = (.@rate * .item_rate_heal);
    .@item_rate_use = (.@rate * .item_rate_use);
    .@item_rate_equip = (.@rate * .item_rate_equip);

    setbattleflag("base_exp_rate",.@base_exp_rate);
    setbattleflag("job_exp_rate",.@job_exp_rate);
    setbattleflag("item_rate_common",.@item_rate_common);
    setbattleflag("item_rate_heal",.@item_rate_heal);
    setbattleflag("item_rate_use",.@item_rate_use);
    setbattleflag("item_rate_equip",.@item_rate_equip);

    atcommand("@reloadmobdb");
    end;
}
 

group id 2 above will get double exp

if below then 2 just normal exp...

 

i make like this but nothing happen...exp not increase..

can someone make it right?

Share this post


Link to post
Share on other sites

9 answers to this question

Recommended Posts

  • 0

What you want to do is not possible with these script commands.

Spoiler

*setbattleflag("<battle flag>", <value>)
*getbattleflag("<battle flag>")

Sets or gets the value of the given battle flag.
Battle flags are the flags found in the conf/map/battle/*.conf files and is
also used in Lupus' variable rates script.

Examples:

// Will set the base experience rate to 20x (2000%)
	setbattleflag("base_exp_rate", 2000);

// Will return the value of the base experience rate (when used after the
// above example, it would print 2000).
	mes(getbattleflag("base_exp_rate"));

 

Using 'setbattleflag' you'll change the server rate for all when reload.

 

If you only want give 2x EXP to 'VIP' players, you can do this:

 

Share this post


Link to post
Share on other sites
  • 0
3 hours ago, Cretino said:

What you want to do is not possible with these script commands.

  Reveal hidden contents

*setbattleflag("<battle flag>", <value>) *getbattleflag("<battle flag>") Sets or gets the value of the given battle flag. Battle flags are the flags found in the conf/map/battle/*.conf files and is also used in Lupus' variable rates script. Examples: // Will set the base experience rate to 20x (2000%) setbattleflag("base_exp_rate", 2000); // Will return the value of the base experience rate (when used after the // above example, it would print 2000). mes(getbattleflag("base_exp_rate"));



*setbattleflag("<battle flag>", <value>)
*getbattleflag("<battle flag>")

Sets or gets the value of the given battle flag.
Battle flags are the flags found in the conf/map/battle/*.conf files and is
also used in Lupus' variable rates script.

Examples:

// Will set the base experience rate to 20x (2000%)
	setbattleflag("base_exp_rate", 2000);

// Will return the value of the base experience rate (when used after the
// above example, it would print 2000).
	mes(getbattleflag("base_exp_rate"));

 

Using 'setbattleflag' you'll change the server rate for all when reload.

 

If you only want give 2x EXP to 'VIP' players, you can do this:

 

Thanks sir...i will try and let you know

Share this post


Link to post
Share on other sites
  • 0
On 1/14/2020 at 2:41 PM, Cretino said:

What you want to do is not possible with these script commands.

  Reveal hidden contents

*setbattleflag("<battle flag>", <value>) *getbattleflag("<battle flag>") Sets or gets the value of the given battle flag. Battle flags are the flags found in the conf/map/battle/*.conf files and is also used in Lupus' variable rates script. Examples: // Will set the base experience rate to 20x (2000%) setbattleflag("base_exp_rate", 2000); // Will return the value of the base experience rate (when used after the // above example, it would print 2000). mes(getbattleflag("base_exp_rate"));



*setbattleflag("<battle flag>", <value>)
*getbattleflag("<battle flag>")

Sets or gets the value of the given battle flag.
Battle flags are the flags found in the conf/map/battle/*.conf files and is
also used in Lupus' variable rates script.

Examples:

// Will set the base experience rate to 20x (2000%)
	setbattleflag("base_exp_rate", 2000);

// Will return the value of the base experience rate (when used after the
// above example, it would print 2000).
	mes(getbattleflag("base_exp_rate"));

 

Using 'setbattleflag' you'll change the server rate for all when reload.

 

If you only want give 2x EXP to 'VIP' players, you can do this:

 

Hi sir your script is to get base/job exp right?can add double drop rate too sir

Share this post


Link to post
Share on other sites
  • 0
3 minutes ago, hadiesyafiq said:

Hi sir your script is to get base/job exp right?can add double drop rate too sir

This can't be done without source modification.

But you can add a buff for VIPs to improve the drop rate: 'SC_CASH_RECEIVEITEM'.

Search in your 'item_db' for more information.

 

 

Share this post


Link to post
Share on other sites
  • 0
22 minutes ago, Cretino said:

This can't be done without source modification.

But you can add a buff for VIPs to improve the drop rate: 'SC_CASH_RECEIVEITEM'.

Search in your 'item_db' for more information.

 

 

Can you teach me how to put double drop rate script on your script that you give me?

Share this post


Link to post
Share on other sites
  • 0
11 minutes ago, hadiesyafiq said:

Can you teach me how to put double drop rate script on your script that you give me?

I remember a way to do it by script... but I think you need to search and try to make little bit.

This is the last time I 'teach (give)' you something.

If you want help to you make something, I can help you with pleasure.

 

 

Share this post


Link to post
Share on other sites
  • 0
2 hours ago, Cretino said:

I remember a way to do it by script... but I think you need to search and try to make little bit.

This is the last time I 'teach (give)' you something.

If you want help to you make something, I can help you with pleasure.

 

 

Thank you very much sir...I really appreciated your help

Share this post


Link to post
Share on other sites
  • 0
On 1/17/2020 at 3:06 AM, Cretino said:

I remember a way to do it by script... but I think you need to search and try to make little bit.

This is the last time I 'teach (give)' you something.

If you want help to you make something, I can help you with pleasure.

 

 

hi sir @Cretino i got this error...how can i fix this sir?

param.png

Share this post


Link to post
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.   Restore formatting

  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.

Loading...
Sign in to follow this  

×
×
  • Create New...

Important Information

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