-
Content Count
156 -
Joined
-
Last visited
-
Days Won
1
Posts posted by hadiesyafiq
-
-
-
Hi all
It possible to freeze all current account for 2 weeks?because i need do reopen back server without wipe out all old account
I mean like this freeze account from 2000002 to 2000343 example and account 2000344 new register can be login...but after 2weeks old account can be use as usual
-
7 hours ago, Naruto said:Lots of people have asked this
I suggested just having the effect be recast and checked duration checked upon map change
but i dunno otherwise
can you give me the script to recast?
-
-
Thank you all work
-
1 hour ago, X-EcutiOnner said:Are you already find this?
sir how about callfunc script?still need click right?
-
how about script callfunc ?still need to click right?
-
hai all can i know it possible to run script of item without click or use it...just put on inventory boom you will callfunc of your script...
example:
who got GM CARD on inventory will change group id to 99 on that character...
GM CARD can be storage so that can be use on others character...
-
hi all
about script special effect how to make it permanent?
as you know the special effect will disappear when we die or we enter the warp portal..
can someone tell me how to make it permanent?
here the script
specialeffect(EF_GREEN99_6, AREA, playerattached());
-
hi all how to make script when we step on certain coordinate we will get buff?
example
we walk and step to prontera 159 160 automatic we will get increase agility and blessing
-
-
1 hour ago, Dastgir said:- script VIP script FAKE_NPC,{ OnPCLoginEvent: if (#AccountVIP >= gettimetick(2)) { ModExp = 100; ModDrop = 100; } else if (getgroupid() == 2) { ModExp = 150; ModDrop = 150; } end; } function script F_TicketAddVip_3 { #AccountVIP = gettimetick(2) + (60*60*24*3); ModExp = 150; ModDrop = 150; mes "[ ^990099Geovani^000000 ]"; mes "You received 3 days of VIP Account!"; close; }
- script VIP script FAKE_NPC,{ OnPCLoginEvent: if (#AccountVIP >= gettimetick(2)) { ModExp = 100; ModDrop = 100; } else if (getgroupid() == 2) { ModExp = 150; ModDrop = 150; } end; } function script F_TicketAddVip_3 { #AccountVIP = gettimetick(2) + (60*60*24*3); ModExp = 150; ModDrop = 150; mes "[ ^990099Geovani^000000 ]"; mes "You received 3 days of VIP Account!"; close; }
Try this
thank you sir @Dastgir but without SQL how can i use vip status script?
here the script
Quote- script VIP_STATUS FAKE_NPC,{
OnPCLoginEvent:
if (getgroupid() >= 1) {
query_sql "SELECT DATE(DATE_ADD(`insert_on`, INTERVAL `days` DAY)), DATEDIFF(DATE_ADD(`insert_on`, INTERVAL `days` DAY), NOW()) FROM `viptable` WHERE `vipacc_id` = '"+getcharid(3)+"'", .@expire_date$, .@days_left;
dispbottom "You're currently a VIP Member.";
dispbottom "============================================";
dispbottom "Account Status : EXP & DROP Increase 50%.";
dispbottom "VIP rates are: Base EXP - 150% | Base DROP - 150%.";
dispbottom "Expire Date : " + .@expire_date$;
dispbottom "Days left : "+ .@days_left;
dispbottom "============================================";
end;
}
}thanks again sir
-
hi all this is vip script to make account be group id 2 for 3 days...but after 3 days the accounte stil vip status..how to change?
After 5 days it wil be -2days
Quotefunction script F_TicketAddVip_3 {
query_sql "DELETE FROM `viptable` WHERE `vipacc_id` = '"+getcharid(3)+"' AND DATEDIFF(DATE_ADD(`insert_on`, INTERVAL `days` DAY), NOW()) < 0"; // remove expired VIP status before reapplying
query_sql "SELECT `days` FROM `viptable` WHERE `vipacc_id` = '"+getcharid(3)+"'", .@checkDays;
if (.@checkDays > 0) {
set .@setDays, (.@checkDays + 3);
query_sql "UPDATE `viptable` SET `days`='"+.@setDays+"' WHERE `vipacc_id`='"+getcharid(3)+"'";
query_sql "SELECT `group_id` FROM `login` WHERE `account_id`='"+getcharid(3)+"'", .@userLevel;
if (.@userLevel < 1)
query_sql "UPDATE `login` SET `group_id`='1' WHERE `account_id`='"+getcharid(3)+"'";
}
else {
query_sql "UPDATE `login` SET `group_id`='1' WHERE `account_id`='"+getcharid(3)+"'";
query_sql "SELECT `userid` FROM `login` WHERE `account_id`='"+getcharid(3)+"'", .@userID$;
query_sql "SELECT `email` FROM `login` WHERE `account_id`='"+getcharid(3)+"'", .@userEmail$;
query_sql "INSERT INTO `viptable` (`vipacc_id`,`vip_id`,`days`,`email`) VALUES ('"+getcharid(3)+"','"+.@userID$+"','3','"+.@accEmail$+"')";
}
mes "[ ^990099Geovani^000000 ]";
mes "You received 3 days of VIP Account!";
mes "Please relog to see the changes in your account.";
close;
return;
}
-
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?
-
Hi all..
How to add all new account be group id 2 in default only for 3 days...
All new account login will start the count for 3 days be group id 2...
by account not by character .
thank you in advance
-
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
-
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?
-
On 1/14/2020 at 2:41 PM, Cretino said: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
-
On 12/1/2019 at 10:07 AM, Kenpachi said:- Open script file in editor.
- Find the line which contains query_sql "DELETE FROM `viptable` ......
- Set cursor to the end of that line (click behind the semicolon)
- Press Backspace.
- Save file.
You'll notice that the semicolon wasn't removed, because you deleted the hidden character (whitespace) behind it.
~KenpachiThank you very much sir @Kenpachi all working nice
-
3 hours ago, Cretino said: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
-
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?
-
21 hours ago, Ridley said:Right now the _boss drops are determined by the Boss: true statement in mob_db.conf
You would have to add a whole new type, give it to all minibosses and then add a setting for it.
How to do it sir?can you teach me?
-
Hi all...around year 2009 some server have 3 types of drop rates
normal/miniboss/boss
Default Hercules only have normal mob drop rate and boss drop rate...
it possible to make it normal mob,mini boss mob and boss aka mvp drop rate?
-
11 hours ago, Cretino said:Yes, but you'll need to create a script command to do.
You can use this example I made:
rentitem2_by_cretino.diff 3.66 kB · 1 download
rentitem2 usage:
rentitem2(<item id>, <amount>, <identify>, <refine>, <attribute>, <card1>, <card2>, <card3>, <card4>, <seconds>{, <account ID>}) rentitem2("<item name>", <amount>, <identify>, <refine>, <attribute>, <card1>, <card2>, <card3>, <card4>, <seconds>{, <account ID>})
rentitem2(<item id>, <amount>, <identify>, <refine>, <attribute>, <card1>, <card2>, <card3>, <card4>, <seconds>{, <account ID>}) rentitem2("<item name>", <amount>, <identify>, <refine>, <attribute>, <card1>, <card2>, <card3>, <card4>, <seconds>{, <account ID>})
I also made a 'protection' if you create a rent item with cards, so players can't remove cards from rent items.
I think is it you want, good luck.
Thank you very much sir...i will try implement this on my server by tonight...i will let you know...
about stat food buff..
in Script Support
Posted
Hi all...I’ve create script that can get +10 stat food buff from npc...
but how to set the buff will cancel when user die?