Jump to content

Source Modifications

Source Mods & Code Snippets located here.

135 files

  1. Free

    Inject - Allows running dynamic scripts in running time

    This script commands allow you to "Inject" scripts inside other scripts.
    But Zell, why I want this?

    Well, you can use a script code from a SQL table! Imagine that now you can change scripts code blocks without reloading scripts direct from your database or you can even do like me where I'm building scripts from a API!

    Sample Script:

     
    prontera,150,150,5 Script Inject Test 91,{ .@test = rand(1, 100); mes "Let's test Inject"; mes "I will declare variable .@test as " + .@test + "."; mes "My npc id is " + getnpcid(0), " "; mes "[Inject Code Start]", " "; // This script text coud be loaded from a SQL table! Inject( "mes \"Running NPC is \" + getnpcid(0); " + "mes \"Value of .@test is \" + .@test; " + "next; " + ".@test = rand(200, 500); " + "mes \"Now value of .@test will be \" + .@test;" + "close2; " ); mes "[Inject Code End]", " "; mes "Inject was ok and .@test is now " + .@test; close; }  

    83 downloads

    Updated

  2. 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

  3. Free

    Item "allowed" restriction

    With this mapflag you say where a certain item is allowed
    Example:
    seting:
    prontera mapflag customevent 1
    and
    500,1
    item id 500 just can be used in prontera.
    More info here.
    http://rathena.org/board/topic/97437-item-event-mapflag/
    Compatible with: 20ff69e

    134 downloads

    Updated

  4. 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

  5. Free

    Main Chat Modification

    This modification will allow the user to set a main chat delay (in seconds) for flood protection and a main chat color (in hexadecimal color format).
    The user will apply the patch and re-compile. Then, in /rAthenaroot/conf/battle/client.conf refer to the main_chat_delay and main_chat_color sections.

    401 downloads

    Submitted

  6. Free

    Mapflag gvg_noally

    This is mapflag  gvg_noally  will ignores guild alliances in GVG maps
     
    Compatibility:
    The diff was made for rAthena Git Hash: 55acdb98 / 2018-10-10

    185 downloads

    Updated

  7. Free

    MF_NORECALL (Custom Mapflag)

    MF_NORECALL a custom mapflag that restrict players being recalled via @recall / @recallall command when in special maps.

    In response to:

    56 downloads

    Updated

  8. Free

    Mob Item Adder

    This mapflag sets more drops for monsters at the map that it's been attached.
    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.
    Original mod by @zephyr 
    Example:
    mapname<TAB>mapflag<TAB>mobitemadder<TAB>mob_id,item_id,drop_per{,item_id,drop_per(...)}

    164 downloads

    Submitted

  9. Free

    Multilevel Range

    Tired of multilevel ON and go to level 63 by killing a poring?
    Use this to give a more real levelling experience with multilevel. Useful for highrates and to avoid abuse on Original Quests Exp.

    225 downloads

    Updated

  10. Free

    MvP and Mini-Boss Card Ad & Log System

    Addition/Modification at Source - Announcement and Log system when dropping MvP/Mini-Boss Card 
        -    Advertises globally when dropping a MvP or Mini-Boss Card regardless of the drop_rate and saves a log in the database.
        NOTE1: Announces and saves the log of MvP/Mini-Boss cards only.
        NOTE2: All settings can be accessed in the `conf/battle/drops.conf` file.
    Use
        -    For those who have difficulty placing just to announce the drop of MvP/Mini-Boss cards without having a conflict of drop_rate.
        -    In addition to advertising, you can also save a log each time one of these cards is dropped to use as tracking.
        -    There is also an extensive way of configuring the system, being able to turn it off completely or activate only the advertisement or only the log.
    General System Settings
        -    Enable or disable the entire system.
    MvP Card Settings
        -    Enable or disable MvP card drop and log announcement system only.
        -    Enable or disable MvP card advertising only.
        -    Enable or disable MvP card logging only.
        -    Choose the color of the MvP card drop ad.
    Mini-Boss Card Settings
        -    Enable or disable only the Mini-Boss card drop and log announcement system.
        -    Enable or disable Mini-Boss card advertising only.
        -    Enable or disable Mini-Boss card logging only.
        -    Choose the color of the Mini-Boss card drop announcement.

    NOTE3: Sorry for the English, I used Google Translator and this is my first topic here.

    603 downloads

    Submitted

  11. 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

  12. Free

    No @command while talking NPC

    This mod is inspired by HERE and disable_items
    I made this mod to prevent using @command while talking to NPC.
    The default is prevent @command while talking to NPC
    to allow @command while talking to npc.

    enablecommand; // To allow @command while talking to NPC
    This is first version, Bug is normal.
    My suggestion
    -add setting in conf file

    286 downloads

    Submitted

  13. Free

    no @duel in Prontera

    Information
    This simple modification, players are not allowed to duel in Prontera.
    User may apply the patch and re-compile.
    Note: You may change the "prontera" to your desired map.
    Mirror:
    no @duel in prontera.
    Patch (direct view)

    166 downloads

    Submitted

  14. Free

    No @go when Player died

    Information
    This simple modification that players will not allow to use @go when they died in a battle.
    User may apply the patch and re-compile.
    Mirror
    No @go when players died

    399 downloads

    Submitted

  15. 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

  16. Free

    Normal + VIP Storage

    Enable Account with GM Level 20 and above ( default ) to have extra slot for Storage.
    the GM Level are configurable in the diff..
    Original Post Link
    http://www.eathena.w...dpost&p=1496268
    made by AnnieRuru at eAthena

    571 downloads

    Updated

  17. 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

  18. 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

    343 downloads

    Updated

  19. Free

    Partyinvite Script Command

    Information
    This script command will will add the player attached to the party specified by the id.
    Syntax

    partyinvite(<party id>{,<type>});
    Documentation
    Mirror
    Credits
    Created by @Xantara
    Requested by @Tetsuken

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

    172 downloads

    Updated

  20. Free

    Ping ''IP address''

    Preview :

    !! WARNING !!
    I don't know anything about ping.c (in this patch file)
    and I have no idea what will happen after install this.
    I only know this command will do and return message about ping answer.
    Main function author : http://goo.gl/tZ4fu
    Modify : Goddameit
    .
    This script command will return a string to let you know what is answer
    about this server use 'ping' to specify IP address

    ping("IP adress")
    .
    SAMPLE : http://pastebin.com/download.php?i=tWnafFc9

    449 downloads

    Updated

  21. Free

    PK mode if MVP is alive.

    When a mvp spawns on his natural map, the pk mode goes on, when he dies, off.
    @monster or script commands doesn't trigger.

    821 downloads

    Updated

  22. Free

    Prevent hitting mobs near NPC or Warper

    Hi, 
    It's been a while since I posted anything.. As of now, I want to release this simple src mod that prevents players from hitting MVPs near an NPC/Warper. Purpose of this is to discourage players from going near warpers while hunting MVPs.

    I'm not sure how helpful this be but I just want to do something small for a while .

    I will be lurking around the request section to see some good ideas and might be releasing them here after!

    Cheers!

    118 downloads

    Updated

  23. Free

    Protection System ( @security ) #Free

    This system is already activated in the source of the brAthena.
    It was created by Orce, and with my friend's help, we converted to rA, and it's working perfectly with the last revision
    Language: PT-BR, EN-US
    Ps. Sorry my english 

    988 downloads

    Updated

  24. Free

    PVP on MVP Maps

    When a MVP Spawns PVP is enabled, When this MVP dies PVP is disabled.
    New Mapflag MF_MAPMVP - Disable going to savepoint once you die 2 times in a PVP map.

    420 downloads

    Submitted

  25. Free

    Race AntiSkill

    ======== Compatible ==========
    Compatible With rAthena, other emulator just PM me
    I made this code in purpose to event
    ======== How To Use ==========
    example:
    1002,PORING,Poring,Poring,1,50,0,2,1,1,7,10,0,5,1,1,1,0,6,30,10,12,1,3,21,0x83,..;
    change to
    1002,PORING,Poring,Poring,1,50,0,2,1,1,7,10,0,5,1,1,1,0,6,30,10,12,1,13,21,0x83,...;
    And your poring will immune again Skill (offensives).
    Note:
    3 = Race Plant
    13 = Race Anti Skill
    ======== Suggestion ==========
    Suggestions are welcome.

    251 downloads

    Updated


×
×
  • Create New...