About Group ID Exp.

hadiesyafiq

New member
Messages
160
Points
0
Age
35
Location
Malaysia
Github
hadiesyafiq
Emulator
hai all is this correct i edit this script?

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

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

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


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

*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

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

*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

 
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.

 
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?

 
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

 
Back
Top