Jump to content

Source Modifications

Source Mods & Code Snippets located here.

135 files

  1. Free

    OnPCLootEvent

    New NPC Label
    OnPCLootEvent: This label triggers when a player picks up an item from the ground in a map marked with the 'lootevent' mapflag. This works with @autoloot and @alootid, this does not work for items given by script. When in a party with shared loot, only the player who looted the item from the ground will trigger this label. The information of the item picked up will be stored in an array called '@looted_data', check the script_commands.txt for the order of the data stored.
    Usage Sample: lootevent_sample.txt

    344 downloads

    Updated

  2. Free

    Sader Attendance Requirement

    this patch make the player must have a variable true to claim his attendance reward
     
    the variable is
    #Attendance_YYYYMMDD ofc the variable change each day
    this will allow you to create a script to make for example a quest that the player must do every day to claim the attendance
    like for example the player must kill 500 monster before he can claim his attendance
    or must gather items
    or must be x level
    or must player x amount of time in the day so he can claim the reward
    of all the above
    the file include an information script file
    that have 2 function , one to set the variable and one to get the variable value (if you want to use them , just add them to your rathena/npc/other/Global_Functions.txt)
    it also include 2 example quests for you to get some inspiration to create your own script
     
     
    TODO: create function for gepard
     

    591 downloads

    Submitted

  3. Free

    [Mapflag] Mobitemadder

    This mapflag sets more drops for monsters at the map that it's been attached.
    Sintax:

    mapname<TAB>mapflag<TAB>mobitemadder<TAB>mob_id,item_id,drop_per{,item_id,drop_per(...)}
    You can set up to ~50 more items for mobs.
    "drop_per" is the chance of drop, from 1 (0,01%) to 10000 (100%).
    There's an example at the screenshot, I setted a Yggdrasil Berry with 100% of chance for the Poring at prt_fild08 map.
    You can set a lot of mobs, but you have to set more mapflags for your maps.

    366 downloads

    Updated

  4. Free

    @petstats command

    this command will show you the pet stats
    see the screenshot for more info

    you can add it inside /rAthena/src/map/atcommand.cpp or if you use old rathena add it at /rAthena/src/map/atcommand.c file
    add it like you add any new atcommand
    and recompile
     

    420 downloads

    Updated

  5. Free

    Fake Icon Stats

    This commands allow you to add fake icon stats. Right now the command does not clean the effect automatically after the time, cause who order this command want to be like this, so you can add sleep and remove the icon.

    Sample Script:
     
    prontera,150,150,5    Script    FakeIcon    90,{
        mes "[Fake Icon Stats]";
        mes "Hey.";
        switch(select("Receive Fake Icon 1 with 5 seconds (display only)","Receive Icon 2 for 10 seconds (display only)","Disable Icon 1 and 2"))
        {
            case 1:
                fakeIcon(getcharid(0),1,5000,1);
                break;
                
            case 2:
                fakeIcon(getcharid(0),2,10000,1);
                break;
                
            case 3:
                fakeIcon(getcharid(0),1,0,0);
                fakeIcon(getcharid(0),2,0,0);
                break;
        }
        close;
    }

    4496 downloads

    Submitted

  6. Free

    Account bound achievement

    This patch has been made for the June 2018 version of rAthena. It doesn't work with the latest version of rAthena. I do not provide support anymore for it.
    This patch allows you to create account OR character bound achievement instead of only character bound achievement.
    - Rewards are available once per account for account bound achievement
    - All characters and newly created characters on the account will get the unlocked titles from account bound achievement
    I provide you the patch and a README.txt which explains you how to use it. You also need to add a column in the achievement table. I provide you the SQL commands as well.
    BEFORE to apply any patch, make a save of the current state of your server.
    If you have issue applying this patch, I will provide support for free for you to have it working and if your emulator is not too old to handle this (have at least the classic achievement working).
    Exemple of yml achievement account bound (the one in the screen):
      - ID: 200000
        Bound: "Account"
        Group: "AG_GOAL_LEVEL"
        Name: "Acquire the first aura!!!!"
        Condition: " BaseLevel >= 99 "
        Reward:
          ItemID: 12549
          Script: " specialeffect2 EF_BLESSING; sc_start SC_BLESSING,30000,10; "
          TitleID: 1000
        Score: 50
    By buying this patch, you agree to these terms:
    - You are not allowed to redistribute this script in any way, shape, or form.
    - Chargeback scams are not tolerated and will get you punished on rAthena.
    - I still retain all rights to this script.
    - Terms above may be changed or adjusted without prior notification.

    233 downloads

    Updated

  7. Free

    OnPCAttackEvent

    This event triggers when a player character attacks another entity. And it registers the damage and other information about the attack.
    Example usage:
    // @damage holds the amount of damage dealt. // @damagegid holds the GID of the target (account ID if the target is a player). // @damagerid holds the rid of the mob OnPCAttackEvent: dispbottom "You've dealt "+@damage+" to target with GID "+@damagegid+" and RID "+@damagerid;  

    393 downloads

    Updated

  8. Free

    Bg consume

    Recode of Brian's Item consumption mapflag.
    It allows to use BG consumables only in Battleground under bg_consume mapflag.
    More information here:
    http://rathena.org/board/topic/97556-bg-consume-items-tlema-comes-to-rathena/
    Compatible with: 20ff69e

    392 downloads

    Updated

  9. Free

    Broadcast commands with global sound effect

    This is a very simple and little source mod, it consists on the ability to send a sound effect to every player on the server every time you use @brodcast or @localbroadcast or @kami or @kamic or /b
    ? Attention ?
    If you have the Fixed some packets for 2022 clients (#7276) commit on your rAthena, then use broadcastWithSoundEffectLatestRathena.diff, otherwise use the broadcastWithSoundEffectOldRathena.diff 
    Apply the diff and put the .wav file on your data folder/grf
    Command to diff on terminal: git apply --3way broadcastWithSoundEffectLatestRathena.diff
     
    Preview Video: https://cdn.lewd.host/yIVy2fAF.mp4

    449 downloads

    Updated

  10. Free

    Guild Activity Logging

    About This File
    Tested and working with: c212b2ed053d60855ce584a0368d98cff94c5059
    This source edit is intended for my experiments. Feel free to have fun with it but I wouldn't be held accountable for damages that it may create for your server.
    No support will be given other than the specified rAthena version above.
    Purpose
    To improve the Guild Activity Logging of rAthena. 
    It works for the following Guild Logging activities:
    1. Guild Creation
    2. Guild Breakage
    3. Guild Member Addition
    4. Guild Member Removal/Leave
    5. Guild Alliance Formation
    6. Guild Alliance Breakage
    7. Guild Antagonist Formation
    8. Guild Antagonist Breakage
    9. Guild Castle Occupancy
    10. Guild Castle Abandonment
    Usage
    1. Tracking guild activities of a character
    SELECT origin, target, `activity`, COUNT(`activity`) as "Times Done" FROM interlog WHERE origin = "this" or target = "this" GROUP BY `activity`   2. Tracking a guild's WoE Castle occupancy rate SELECT castle_id, COUNT(`activity`) as "Times Done" FROM interlog WHERE `origin` = "ThisGuild" and `activity` like "%Occupied%" GROUP BY castle_id  

    108 downloads

    Updated

  11. Free

    Keitenai Resistance Capping

    File Name: Keitenai_Delay_System
    File Submitter: keitenai
    File Submitted: 27 Nov 2017
    File Category: Src Modification
    Content Author: keitenai
    Information:
          Resistance capping applies to item effects which have "bSubEle, bSubSize, bSubRace2, bSubRace, bSubClass, bNearAtkDef, and bLongAtkDef".
          This modification can be set to less than 100 resistance cap to avoid too resistance heal, or set over 100 upto max of 200 if the dev would like to enable resistance heal.
    Features:
    Configurable Maximum resistance capping. Resistance capping can be applied to different resistance bonus types with different values. Resistance capping is applied to all items with resistance bonus scripts. By buying this scr modification code, you agree to these terms:
    You are not allowed to redistribute this src code modification in any way, shape, or form. Chargeback scams are not tolerated and will get you punished on rAthena. I @Keitenai still retain all rights to this src modification. Terms above may be changed or adjusted without prior notification.  

    285 downloads

    Updated

  12. Free

    Freezemap Script Command

    Information
    This script command will apply a percent chance of freeze the players in the map (no matter what stats or equipment they have) for a duration.
    Syntax

    freezemap "<map name>",<chance>,<tick>;
    Documentation
    Mirror
    [Xantara]_scriptcmd_freezemap.patch
    Credits
    Created by @Xantara
    Requested by @ngek202

    This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported License.
    Do not mirror without my consent.

    125 downloads

    Submitted

  13. Free

    @market clone update patch

    This is my updated @market clone as per this topic:
    Im currently using a sever file from December 2019. But I dont think it would not work on latest server files.
    Enjoy

    467 downloads

    Submitted

  14. Free

    @storeit - Store all Non-Equipped Items

    This is a simple command I've had laying around for a long time, so I figured I'd package it up and send it out. Like the title states, this is like @storeall, except it will ignore equipped items. Meant for the adventurer on the go who needs a quick inventory cleanup when farming. To add it, simple place the files in the src/custom folder If you already use these files, then just copy in the code from these ones into your already populated files. Then do a clean make.

    639 downloads

    Updated

  15. Free

    [Script Command] viewcondition

    This mod allows you to set some conditions to a player can see or interact with a NPC.

    Command:
    viewcondition( npc_name, int_variable_name, compare_method, value_1, { value_2 } );

    Compara Methods Avaiable:
    EVC_LESS - If player variable is < value_1
    EVC_EQUALS - if player variable is == value_1
    EVC_MORE - if player variable is  > value_1
    EVC_BETWEEN - if player variable is  >= value_1 and <= value_2
    EVC_DIFFERENT - if player variable is != value_1

    You can apply more than one condition to a npc, but if one condition fail, the npc will not be seeing by the player.

    Script Sample:

     
    new_1,55,111,5 Script Lupina#1 10078,{ mes "You can see and talk with me because your @teste variable is less than one!"; next; mes "Now, I will set @teste to 2 and you will no longe see me when goes outsight me or if use @refesh!"; close2; @teste = 2; end; OnInit: viewcondition( strnpcinfo(0), "@teste", EVC_LESS, 1 ); end; }  

    146 downloads

    Updated

  16. Free

    No-Drop +7 or higher items

    A small request I responded to from the eAthena forums ages ago, it's very simple and even though the last time it was tested was on eAthena r14410, there shouldn't be any problems.
    I used msg slot "520" but again this can be changed, as well as the refine rate of dropping too. Someone with no src knowledge can easily configure it. Enjoy.

    401 downloads

    Submitted

  17. Free

    Glicko-2 rating system - Now on rAthena

    This source edit provides two script commands for you to get and sets rating of a player, and adjust them relative to another player after two of them battled.
    This implementation uses Glicko-2 rating system, an improvement of Elo system.
    If you still have no idea what you could do with this, this source mod is not for you.
    You can also get the code on GitHub.
    Licenses:
    The rAthena implementation of Glicko2 itself fell under the GNU GPLv3 license that rAthena uses.
    Glicko2 library by Taylor Petrick:
    tldr of the license here.

    251 downloads

    Updated

  18. Free

    [Skill] Call for help

    Guild leader can call all guardian to his here to protect him.
    Preview : http://www.youtube.com/watch?v=mJEXVZlrcSI?hd=1
    .
    skill_db set :

    997,0,6,4,0,0x3,-1,5,1,yes,0,0,0,magic,0, GODD_CALLFORHELP,Call for help
    skill_require_db set :

    997,0,0,10,0,0,0,99,0,0,none,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
    skill_cast_db set :

    997,0,0,0,0,0,300000,0
    Add new skill (Clinet) :
    http://rathena.org/w...ls#XRay_support
    http://rathena.org/w...on-Xray_Support

    159 downloads

    Submitted

  19. Free

    @novendingboards / @novenders

    Request: @nndsl
    Post: http://rathena.org/board/topic/80231-notrade/#entry187456
    See on YouTube:
    @novendingboards
    http://www.youtube.com/watch?v=sHIT1pRSQZU&feature=youtu.be
    @novenders
    http://www.youtube.com/watch?v=1UajUvlzAAc&feature=youtu.be
    Enjoy

    265 downloads

    Updated

  20. Free

    MvP's Tombs with top 3 damage players

    The mvps tombs include the top 3 players with damage.
    tomb_damage.diff

    360 downloads

    Submitted

  21. Free

    @ignorebattle

    When Someone use this command, all player in that map will not be attacked by mobs

    112 downloads

    Submitted

  22. Free

    [Script Command] getskillname

    getskillname
    Useful script command to return a skill name (Skill Description).
    Usage
    Example
    mes "Skill Name: "+getskillname("SM_SWORD"); print ("Skill Name: Sword Mastery")  
    ________________________________________________
    Feel free to Donate If you want to support me.

    ________________________________________________

    544 downloads

    Submitted

  23. Free

    Instakill Mapflag

    Tested and working with: 3e625dfdf9868690e36677701cbebe1b379a7485
    This source edit is intended for my experiments. Feel free to have fun with it but I wouldn't be held accountable for damages that it may create for your server.
    No support will be given other than the specified rAthena version above.
    Purpose
    Create a mapflag for instakill. As it would suggest, all damages done within the map will be amplified to max damage, thus instakilling the target.
    It works both for the following use cases:
    1. Player attacking a Monster
    2. Player attacking another Player
    3. Monster attacking a Player
    4. Monster attacking another monster
    Where "Monster" can be a normal mob or a Homunculus
    Usage
    In-game
    @mapflag instakill [0|1] Script as mapflag
    prontera<tab>mapflag<tab>instakill Script as used in setmapflag
    setmapflag .EventMap$, mf_instakill; Example
    Tag, You're Dead Script
    Source In Action
    Source file
     
    1. I will retain all the rights in all the scripts that I create
    2. Client cannot redistribute nor resell the scripts that I provide
    3. No refunds
    4. Maintenance of scripts does not include modification of the original intended behavior. If the script has been broken due to prior modification of the original behavior then it would mean a new service request
    5. Modification of the original intended behavior would mean a new service request and would go through the process mentioned above
    2. This can be redistributed anywhere in any form.
    3. This shall not be in any way be branded for sale anywhere in any form.
    4. Maintenance will not be provided. Feel free to use the support section.
    5. See #3.
    6. Ninja has the right to post all my free services to the release section and make it available for everybody to use
    7. Maintenance of scripts will be provide free of charge
    8. I will not keep any sensitive information from your server nor any credentials that you lend me
    9. I will backup all my server files before I use this.
    10. Ninja will not be liable in any way at any time.
    11. The moment I use anything from here, I accept all the terms of services stated above.
    Where the script author is Ninja (https://rathena.org/board/profile/7005-ninja/).

    83 downloads

    Updated

  24. Free

    [Skill] Coup de Grace

    When you use this, it will give you 100% critical.
    Preview :
    skill_db set :

    998,0,6,4,0,0x3,-1,5,1,yes,0,0,0,magic,0, DOTA_COUPDEGRACE,Coup de Grace
    skill_require_db set :

    998,0,0,10,0,0,0,99,0,0,none,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
    skill_cast_db set :

    998,0,0,0,5000,0,30000,0
    Add new skill (Clinet) :
    http://rathena.org/wiki/Adding_new_skills#XRay_support
    http://rathena.org/wiki/Adding_new_skills#Renewal.2FNon-Xray_Support

    130 downloads

    Submitted

  25. Free

    Command MesClose

    Command used in the scripts of NPCs whose ultimate goal is to unite the two commands,Mes and Close, an example down:

    prontera,150,150,5<TAB>script<TAB>Testing Command<TAB>748,{ mes "[Testing Command]"; mesclose "Testing command MesClose"; }
    This command will open a window of speech and the Close button appears immediately.

    77 downloads

    Submitted


×
×
  • Create New...