-
Posts
10015 -
Joined
-
Days Won
405
Content Type
Profiles
Forums
Downloads
Jobs Available
Server Database
Third-Party Services
Top Guides
Store
Crowdfunding
Posts posted by Emistry
-
-
use these script command instead.
*plagiarizeskill <skill_id>,<level>; Enable the player to plagiarize specific skills that are copyable. Return 1 on success, 0 otherwise. Note: - Plagiarism only able to copy skill while SC_PRESERVE is not active and skill is copyable by Plagiarism. - Reproduce can copy skill if SC__REPRODUCE is active and the skill is copyable by Reproduce. --------------------------------------- *plagiarizeskillreset <flag>; Remove a plagiarized skill from the player. Return 1 on success, 0 otherwise. Flag constants: 1 - Use for Plagiarism Skill 2 - Use for Reproduce Skill
-
On 11/19/2023 at 10:04 AM, GM Winter said:
hello how to add mvp id here
from the sample code above
.@array[UMOB_CLASS]
is your monster id
-
1
-
-
web support is deprecated, all fluxcp issue may post here https://github.com/rathena/FluxCP/issues
-
you may try something like this
OnHour00: OnHour03: OnHour06: OnHour09: OnHour12: OnHour15: OnHour18: OnHour21: .rotd_start_time = gettimetick(2); .today_rotd = rand( .rotd_size ); .rotd_exp_bonus = rand( 10,100 ); announce "[Race of the Day] : "+.rotd$[.today_rotd]+" +"+.rotd_exp_bonus+"% exp",bc_all; delwaitingroom; waitingroom .rotd$[.today_rotd]+" +"+.rotd_exp_bonus+"% exp",0; end; OnPCLoginEvent: if (!.rotd_start_time) end; .@time_passed = gettimetick(2) - .rotd_start_time; fakeIcon(getcharid(0), .rotdicon[.today_rotd], (.timer - (.@time_passed * 1000)), 1); end;
-
add this to your npc script
OnBloodyBranch: dispbottom "MVP from bloody branch aren't included as part of mvp rank"; end;
update your item_db
Script: | monster "this",-1,-1,"--ja--",-1-MOBG_BLOODY_DEAD_BRANCH,1,"#mvp_kill::OnBloodyBranch";
-
1
-
-
for (.@d = 0; .@d < .@len; .@d++) { if (!isloggedin(.@a[.@d])) continue; if (!getmapxy(.@map$, .@x, .@y, BL_PC, rid2name(.@a[.@d])) && .@charmap$ == .@map$) set .@c, .@c + 1; }
you can try add something like this to skip offline players
-
-
- script buff_cmd -1,{ OnInit: bindatcmd "buffs", strnpcinfo(0)+"::OnCommand",0,99; end; OnCommand: if(getgroupid() <= 4) { message strcharinfo(0),"No, VIP."; end; } .@stone_time = getstatus(SC_STONE, 5); .@curse_time = getstatus(SC_CURSE, 5); skilleffect 34,0; sc_start SC_BLESSING,360000,10; skilleffect 29,0; sc_start SC_INCREASEAGI,360000,10; sc_start SC_ASPDPOTION2,360000,0; sc_start SC_STRFood,360000,10; sc_start SC_AGIFood,360000,10; sc_start SC_VITFood,360000,10; sc_start SC_INTFood,360000,10; sc_start SC_DEXFood,360000,10; sc_start SC_LUKFood,360000,10; sc_start SC_HitFood,1200000,30; sc_start SC_FleeFood,1200000,30; sc_start SC_BATKFood,1200000,10; sc_start SC_MATKFood,120000,10; if (.@stone_time > 0) sc_start SC_STONE, .@stone_time, 0; if (.@curse_time > 0) sc_start SC_CURSE, .@curse_time, 0; end; }
or you could also try tricks like this to reapply the debuffs
-
1
-
-
try item_db ?
Flags: DropAnnounce: true
-
1
-
-
On 1/9/2022 at 6:29 PM, rayhanalka said:
hi @Emistry
thank you for your great work, could you make it support 4th job version for this script?
currently supported, may use version 4.0
On 8/25/2019 at 6:17 AM, Emistry said:use bindatcmd ....
On 8/14/2019 at 10:06 AM, PsyOps said:Is it possible to add an atcommand for this? I've tried to add one but i can't seem to make it work? Any thoughts on this?
version 4.0 support bindatcmd
-
1
-
-
-
-
This topic has been moved to the "Abandoned Projects" sub-forum.
If the author is still working on this project, they may request that a moderator moves the topic back and removes this post.
-
5 hours ago, MyNoobScriptz said:
Please update this script!! Thank you
updated it to refer to configuration in db/[pre-]re/job_noenter_map.txt
-
1
-
-
OnPCLoginEvent: if (readparam(bAgi)>=150) bonus_script "{ bonus bDelayRate,-90; }", 86400, 8; end;
-
monitor it from your map-server console would be the most ideal way.
checking it from online tool aren't ideal because the version of source code from the online tool and your current source code may not match, and warn you with unnecessary errors or warnings.
Hercules script checker only work up to certain extend, both emulator have a lot of different of script commands nowadays.
if you just need some syntax highlight validation that help you in scripting, you can try those IDE that allow you to implement the syntax highlight or syntax validation, like notepad++, or visual studio code.
-
acc_reg_num
its stored in this table.
however to reset it, its a bit tricky
- if there are no player online, you can safely execute the sql script to remove it from database
-
if there are player currently online, you have to manually select each user to reset their points (of course this can be done is numerous ways)
then run SQL script to remove points from those who aren't online.
-
you can also try
if (!isequippedcnt(32071,...,32128)) { mes "Lastima que no tienes ningunas Alas Quest..."; close; }
or
another trick that you could try
- script sample -1,{ OnInit: for (.@i = 32071; .@i <= 32128; .@i++) { setitemscript .@i, "{ @eq_32071_32128++; }", 1; setitemscript .@i, "{ @eq_32071_32128--; }", 2; } end; }
everytime when you equipped one of these items, it will increase a counter, when unequipped it will decrease the counter.
when you want to check if a user equipped it, then do this
if (!@eq_32071_32128) { mes "Lastima que no tienes ningunas Alas Quest..."; close; }
-
1
-
-
perhaps start with this ? https://git-scm.com/docs/git-apply
-
On 6/29/2023 at 11:03 PM, rizsu0107 said:
but it is still 100.
you claim you changed it to 200, but from the code snippet above, its still 100, and if you changed it, did you recompile the server too?
-
-
there exists a default script for unjail if you are interested with it
-
1
-
-
On 6/22/2023 at 7:39 PM, GarudaRO123 said:
i cant use the conf because my drop card is 0,5 %
u can just configure it announce if its 0.50% drop rate. if you afraid other etc items will be announced, then set the minimum drop rate of other item type to 0.51% or above.
On 6/22/2023 at 7:39 PM, GarudaRO123 said:i just want to make it specific to cards only
u can update the item_db
Flags: DropAnnounce: true
-
OnMinute00: OnMinute20: OnMinute40: if (getmapusers("prontera") == 0) killmonsterall "prontera"; end;
run every 00th, 20th, 40th minutes
Correct Use of Gettimetick(2) HELP!!
in Scripting Support
Posted
it return your server time tick, not your npc time