Read and learn from scripting bible doc/script_commands.txt
Learn basic Variable. it is straightforward and no need big brain to understand.
PS: it should have been :
@set $illusion_mvp 0
to set its value to 0, just a bit of typo on my side.
apparently, it is using a permanent global variable. Try set it to zero first.
@set $illusion_mvp 1
or change all :
`$illusion_mvp` to `$@illusion_mvp` << this method is uncertain because I dunno how the whole script works.
or simply change
if($illusion_mvp == 2){ //= jRO Summons the MVP after 800 kills or so
to
if($illusion_mvp >= 2){ //= jRO Summons the MVP after 800 kills or so
Any of these methods should work.
Look for this on battle.cpp :
static void battle_calc_weapon_final_atk_modifiers(struct Damage* wd, struct block_list *src,struct block_list *target,uint16 skill_id,uint16 skill_lv)
Add this.. ( remove + ) :
// Skill damage adjustment
if ((skill_damage = battle_skill_damage(src, target, skill_id)) != 0)
ATK_ADDRATE(wd->damage, wd->damage2, skill_damage);
+ if (skill_id == MO_EXTREMITYFIST)
+ wd->damage = cap_value(wd->damage, INT_MIN, 999999 ); // capped to 999,999
Do the same to other skills on your list.
That's another issue. But you need the sound files first. Everything should be explanatory after that. Since the script is made to make the sound appear in the first place.
Hi, so, I decided to compile all my releases here for easier view to those who wants to see my works.
Just click on the link to see its description. Enjoy and hope these would help!
================================================================================================================================================
Free Releases :
Event Manager
Reward Function ( Item or Variable )
Event Consumable
@go/@warp delay when hit
Automated GvG
[Updated] +7 and above refined item wont drop
Euphy's Quest Shop with Success Rates
Item Trader with Success Rates
@itemrain command
@giveitem command
Euphy WoE controller + gepard check + minor fix
@market clone patch update [December-2019]
Emperium Breaker + Points + Shop
I am constantly checking both script request and script support. Whichever takes my interest, I will post and release here. If you have cool Event Ideas ( at least cool for me ), don't hesitate to drop me a DM. Or if you have an old event lying around needing some updates, I'd gladly take a look at it.
================================================================================================================================================
Showcase :
[Video] War Arena + Spectator mode
[Video] Punching Bag with Param Setter
[Video] WoE : Longest Def Ranking + Reward
[Video] WoE : Time-based Participation Reward
All of these showcased scripts are found here : https://mabuhay-solution.com/product-category/npc-scripts/
There are also script videos found in my YouTube channel : https://www.youtube.com/channel/UCfGxj9_ifGQoL_Ug0dtHYDg
Here.
I did follow most of it except for reward. I automatically sent the reward to player.
There are instructions in the script if you wish to change some stuff.
Tested and should work on latest client rathena.
I will only support bug fixes, modifications wont be entertained.
This will be added on my Event Manager soon.
poring_hunter.txt
@Mael's thing is correct. No need for src mod and stuff because it is already implemented in rAthena since 2014.
// When a player teleports, changes maps, or logs in, will they face the direction they were facing before warped?
// Official: Disabled, players always face North.
spawn_direction: 0
just set spawn_direction to 1.
If you are using linux, you can use this :
https://www.devroom.io/2009/10/26/how-to-create-and-apply-a-patch-with-git/
If you've done a lot of changes, just do manual instruction instead of creating a patch. This method is very confusing to do if its your first time.
// Shop NPCs -- supplying no argument displays entire menu.
// callfunc "pshop"{,<shop ID>{,<shop ID>{,...}}};
//============================================================
prontera,143,125,6 script Donation Shop#1 564,{ callfunc "pshop"; OnInit: waitingroom "Donate Shop",0; }
I think @reloadnpc is buggy when used to refresh an npc with waiting rooms. Better use @reloadscript.
Alternatively, you may check the players current weight.. like maybe players must have less than 75% of max weight, so add something like :
if ( Weight >= MaxWeight - (MaxWeight / 4) ) {
mes "You must at least 25% of your current weight available.";
close;
}
Edit: Ehh, I'm not sure if the mes implies the correct meaning on what I wanted to say xD
Something like this:
prontera,154,184,0 script Test CountDown 123,{
end;
OnInit: // when npc is initiated..
OnHour00: // resets every 00:00
delwaitingroom;
.@end_day = 20; // 20th day of the month is the end time.
.@time = gettime(DT_DAYOFMONTH);
if ( .@end_day > .@time ) {
waitingroom "Next offer appears in "+(.@end_day-.@time)+"D at 21:00",0; // Before offer day
} else if ( .@end_day == .@time ) {
waitingroom "OFFER DAY!",0; // During offer day
} else {
waitingroom "OFFER EXPIRED!",0; // After offer day
}
end;
}