hadiesyafiq 7 Posted January 14, 2020 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? Quote Share this post Link to post Share on other sites
0 Cretino 48 Posted January 14, 2020 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: Spoiler exp_manager_v1.0.txt Quote Share this post Link to post Share on other sites
0 hadiesyafiq 7 Posted January 14, 2020 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: Hide contents exp_manager_v1.0.txt 1.57 kB · 1 download Thanks sir...i will try and let you know Quote Share this post Link to post Share on other sites
0 hadiesyafiq 7 Posted January 16, 2020 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: Reveal hidden contents exp_manager_v1.0.txt 1.57 kB · 5 downloads Hi sir your script is to get base/job exp right?can add double drop rate too sir Quote Share this post Link to post Share on other sites
0 Cretino 48 Posted January 16, 2020 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. Quote Share this post Link to post Share on other sites
0 hadiesyafiq 7 Posted January 16, 2020 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? Quote Share this post Link to post Share on other sites
0 Cretino 48 Posted January 16, 2020 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. Spoiler exp_manager_v1.1.txt Quote Share this post Link to post Share on other sites
0 hadiesyafiq 7 Posted January 16, 2020 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. Reveal hidden contents exp_manager_v1.1.txt 1.34 kB · 2 downloads Thank you very much sir...I really appreciated your help Quote Share this post Link to post Share on other sites
0 hadiesyafiq 7 Posted January 18, 2020 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. Reveal hidden contents exp_manager_v1.1.txt 1.34 kB · 3 downloads hi sir @Cretino i got this error...how can i fix this sir? Quote Share this post Link to post Share on other sites
0 Cretino 48 Posted January 18, 2020 31 minutes ago, hadiesyafiq said: hi sir @Cretino i got this error...how can i fix this sir? Try to update your Hercules emulator to the latest version. Quote Share this post Link to post Share on other sites
hai all is this correct i edit this script?
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