Source Modifications

Source Mods & Code Snippets located here.

56 files

  1. Free

    This command sends items to the guild storage without the need of server restart.
    Example:
    prontera,100,100,5 script guildgetitem2 100,{ //guildgetitem2 <item id>,<amount>,<identify>,<refine>,<attribute>,<card1>,<card2>,<card3>,<card4>{,<account ID>}; switch ( guildgetitem2(1218, 1, 1, 1, 10, 4305, 0, 0, 0) ) { case 1: dispbottom "Item added to your guild storage."; end; case 0: dispbottom "Unknown Error."; break; case -1: dispbottom "Cannot open both storages."; break; case -2: dispbottom "Player doesn't have a guild."; break; case -3: dispbottom "Player doesn't have a guild storage."; break; case -4: dispbottom "Guild storage being used by someone else."; break; case -5: dispbottom "Guild storage is full."; break; } end;}
    Works much like getitem2 and it uses the attached players guildstorage.

    85 downloads

    0 comments

    Updated

  2. Free

    Hi,
    With this you can set a cell as a pvp zone, therefore a zone in a map that is pvp and the rest it is not.
    I'm not the outor. I just think that this is cool So I made compatible with the last version of the emulator.
    More informatino here: http://rathena.org/board/topic/97799-cell-nopvp-cell-pvp/
    and here: http://hercules.ws/board/topic/4589-pk-area/?p=29693
    You need the folowing "npcs":
    - script CELLPVP -1,{OnInit: setcell "morocc",143,113,157,103,cell_pvp,1; end; }- script deathmatch_core -1,{ callfunc("pvp_scstart"); end;}function script pvp_scstart { sc_start SC_INC_AGI,120000,5; sc_start SC_BLESSING,120000,5; sc_start SC_MAGNIFICAT,120000,3;}

    135 downloads

    0 comments

    Submitted

  3. Free

    Hi,
    I'm not the autor, I just made the code compatible with rathena. All the credits go to the guy that developed Eamod, whoever Zephyrus is.
    I found this (original file): https://code.google.com/p/eamod-retail/source/browse/trunk/eAmod-A/Diffs/battleground/eAthena.patch
    And I was informed that the same file can be dowloaded from: http://eamod.wordpress.com/
    The BG NPCs are in: https://code.google.com/p/eamod-retail/source/browse/#svn%2Ftrunk%2FeAmod-A%2FDiffs%2Fbattleground%2Fnpc%2Fbattleground
    Compare with rathena NPCs and modify acoording you need.
    I Just made it compatible and compilable, please inform any bug you find.
    Have fun.
    Note: compatible with 20ff69e

    476 downloads

    0 comments

    Updated

  4. Free

    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

    97 downloads

    0 comments

    Updated

  5. Free

    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

    67 downloads

    0 comments

    Updated

  6. Free

    Info & History

    Info:
    HANSIP Protection is a src modification to make sure NDG,speed hack, WPE Users still follow the rules.

    History:
    This is a simple code, which we have made since long to minimize the NDG User.
    The first way to solve NDG, we add a cooldown for skills that dosn't has a fixed cooldown (Sonic Blow, Cross Impact, etc).

    But the player doesn't allowed to do double cast.
    Finaly we made this code that minimize the NDG users, but still keep the original feature that is double cast for some skills (Sonic Blow, Cross Impact, etc).



    Implementation & Feature

    Implementation:
    Download the file Apply manual "rA - Hansip Protection.diff" to your src. Paste "battle_conf.txt" to conf/import/ Don't forget to recompile your server. All done

    Features:
    The user still able to use double SB / CI / etc. You may switch on and off. Very simple Skill Packet Spam detector

    .

    Note:

    2013 client already detect modified file (after act delay).
    so i've tested this using WPE.
    i got the number from comparing with and without *cheat.



    Supported Skills: Bash Sonic Blow Arrow Vulcan Double Strave Bowling Bash Ninja Kouenka Ninja Hyousensou Jupitel Thunder Cross Impact Dragon Breath Fire & Water

    Change Log:
    1.1
    -Add archer double strave skill

    1.2
    -Add support for some skills

    1.3
    -Change name from NDG to Hansip
    -Add skill packet spam detector & punishment
    -Support PRE-RE

    1009 downloads

    23 comments

    Updated

  7. Free

    Imagine if you can share some informations from your server to your facebook just clicking in a NPC or using a command?
    That script can do this. See the following video and enjoy the script.

    Any questions, contact-me via e-mail: [email protected]

    756 downloads

    8 comments

    Updated

  8. Free

    Introduction

    On a server where I play someone suggested to add the command "displaydrop" to enable people to see something rare or valuable was dropped by a monster because autoloot is only available until a certain level.
    I had some free time on my hands so I decided to implement something like that.


    Features

    You can limit the command like autoloot (e.g. @displaydrop 10 will only show items with a chance equal to or below 10%) Two different ways of server side configuration are available: Show real drop (<Monster> dropped <Item> (<Amount>.) Show only an unspecific message that a monster dropped something (<Monster> dropped something with a chance equal to or below <Chance>%.)





    Bugs, feedback, etc.
    If you have found a bug or want to give feedback about my modification you can either send me a private message or post in the related thread.

    99 downloads

    0 comments

    Submitted

  9. Free

    This mapflag modification allows you to set a mapflag to reduce fixed cast time and delay by a percentage placed after the mapflag. I made this for a server I ran for awhile and used it specifically to reduce cast time and delay on standard (Non PvP or GvG) maps. It gives the game a quicker pace, without forcing you to modify a set config that changes the whole server. It's great for events, PvP, PvM... just about anything you can think of since you can modify this to your heart's content between maps.

    Example:prontera mapflag pvmcast 50 // Any player who goes to map 'prontera' has a 50% reduction in fixed cast time and delay
    This modification is dynamic, so you should be able to go between any map and have the correct reduction applied when necessary. Please test before releasing in a production server as I have ported it with a few different features in the latest GIT compared to what I use to have it set as.
    Also note the modification only adjusts fixed cast delay, it does not change variable cast time. This means it will only work in RENEWAL as well. Also, feel free to modify and re-release if you add some extra functionality to it.

    85 downloads

    0 comments

    Submitted

  10. Free

    Works like prompt(), but lets you specify return values by adding a pipe symbol.
    Examples:
    dynprompt("Menu Entry");
    Return Value: 1
    @menu: 1
    @menustr$: Menu Entry
    @menunum: 1
    dynprompt("^EE0000Menu Entry^000000|Test");
    Return Value: 1
    @menu: 1
    @menustr$: Test
    @menunum: 1
    dynprompt("Shazam|5 Shazam");
    Return Value: 5
    @menu: 1
    @menustr$: 5 Shazam
    @menunum: 5
    Script example:
    // Dynprompt usage - Advanced example// Probably the best way to use thisfunction script dynprompt_sample3 { // The real power of dynprompt is that you can specify the return value for each menu element. // The return value is a atoi of the string following the pipe | - the full string can be accessed through @menustr$ // The atoi val can also be accessed through @menunum // If you want to use both number & string, the number has to come first else atoi won't work // Use the pipe character | to denote the return value - best to work with numbers, but strings work as well set .@menu$[0], "^009900Hello!^000000|1Hello"; set .@menu$[1], "^0000EEInfo~^000000|2Info"; set .@menu$[2], "^222222Test.^000000|3Test"; // This time we'll just add a element based on a condition if(.@somecondition) set .@menu$[3], "^EE0000- Admin -^000000|4Admin"; set .@menu$[4], "^990099G'bye^000000|5Bye"; // Lets implode & switch/case switch(dynprompt(implode(.@menu$, ":"))) { case 1: mes "Oh, Hello to you too!"; break; case 2: mes "You want info? How about the time?"; mes gettimestr("%Y-%m/%d %H:%M:%S",21); mes "Also, you selected option #" + @menu; // @menu still works break; case 3: mes "Debug info:"; mes "@menu is " + @menu; mes "@menustr$ is " + @menustr$; mes "@menunum is " + @menunum; break; case 4: mes "Wow, a admin!"; break; case 5: mes "Bye bye~"; break; case 255: // Cancel button mes "Hey, don't ignore me!!"; break; } close;}
    I havn't tested it yet in production, but so far I havn't been able to encounter any issues with it.
    Also, I do all my eAthena devving on a windows box so I can't guarantee that it'll work with linux.
    Performance of dynprompt is going to be naturally worse than prompt, select or menu, but it might perform equally well in a dynamic setting if you take into consideration the array looping usually required - but I have not yet done any benchmarking or anything, so don't take my word for it. ( and to be honest, being able to create super clean code using switch / case is worth a tiny performance hit for me )
    I hope it will make your scripting less painful - it sure has for me!

    22 downloads

    0 comments

    Submitted

  11. Free

    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

    167 downloads

    0 comments

    Submitted

  12. Free

    Another quick package up of a small command I've had lying around for a long time. Grabs a random monster from one of the branch databases. Useful for hunter quests, disguise events, and anything else you can think of. Uses database stored in memory, so it's faster and more efficient than running SQL queries and doesn't require you to use SQL dbs for items and mobs.
    /*==========================================
    * Fetches a random mob_id
    * getrandmob(num,type);
    *
    * type: Where to fetch from:
    * 0: dead branch list
    * 1: poring list
    * 2: bloody branch list
    * num: Mob level to check against (0 = all)
    *------------------------------------------*/
    To add, simply place the files into the src/custom folder. If you already use those files, add the new code into your existing populated files and do a clean make.

    126 downloads

    0 comments

    Updated

  13. Free

    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.

    248 downloads

    0 comments

    Updated

  14. Free

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

    155 downloads

    0 comments

    Updated

  15. Free

    Preview:

    -----------------------------------------------------
    After You use @autobuyammo to active this system,
    you will auto-buy some ammo when it is going run out.

    134 downloads

    0 comments

    Updated

  16. Free

    This mod implement floating items price ingame.
    Tested/Compatible with rAthena SVN r17511.
    Idea Credited To: http://rathena.org/board/topic/86695-done-inflation-in-npc-shop/

    81 downloads

    0 comments

    Submitted

  17. Free

    Info : http://goo.gl/RXACXL
    Preview :

    ----------------------------------------------------------------------
    Transform request (hercules --> rA) by Adam

    153 downloads

    0 comments

    Submitted

  18. Free

    preview : http://bit.ly/169dTxy
    -
    When you attack someone and he give you damage cause reflection,
    you will also give him a reflection damage if you're wearing some equip which will do this

    103 downloads

    2 comments

    Submitted

  19. Free

    This mod hides the chat boards ingame.
    Tested/Compatible with rAthena SVN r17324 and eAthena SVN.
    Idea Credited To: http://rathena.org/board/topic/80276-novendingboards-novenders/


    83 downloads

    0 comments

    Submitted

  20. Free

    This mod won't allow you to cast any skills on the selected cells.
    This mod helps alot if you have pvp maps like UFC Arena and other PvP Colosseum.
    Tested/Compatible with rAthena SVN r17325 and eAthena SVN.
    Sample Script:
    - script Function#noskill -1,{OnWhisperGlobal:OnInit: setcell "prontera",147,174,164,162,cell_noskill,1; end;}

    250 downloads

    4 comments

    Submitted

  21. Free

    This is a researching release, maybe it will lead to something bad or you may have no idea how to use this.

    -
    Preview :

    -
    This system will create a VIP account by new script command ''setviptick''
    SAMPLE (be VIP for 10 seconds) : http://pastebin.com/raw.php?i=9KdLE7yJ
    and when you are VIP, you will get temporary ''Token Of Siegfried'' after you dead,
    so you can use it to raise up yourself.
    This temporary ''Token Of Siegfried'' also will disappear if you relogin server, raise up by other... etc

    178 downloads

    0 comments

    Submitted

  22. Free

    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

    201 downloads

    0 comments

    Updated

  23. Free

    Firstly ,
    This mod is totally based on xantara's patch.
    I HAVE NO CREADITS AT ALL FOR THIS.
    I JUST USED MY BRAIN A LITTLE AND DID IT.
    everyone having even little knowledge of src can do it.
    just uploading it for other who are unknown to src can actually get a proper Droprate correction.
    This file would seprate boss/miniboss equip and card droprate from normal monsters, so that you can set min/max values with
    exact parameters.
    THIS FILE IS TESTED. so if anything goes wrong , its your fault.
    BACKUP BEFORE YOU APPLY!!
    again...ALL CREDITS TO XANTARA.
    LICENSED UNDER a Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported License.
    Do not mirror without XANTARA's consent.
    ORIGNAL TOPIC :http://rathena.org/board/files/file/2241-config-minmax-boss-equip-drop-rates/
    P.S just do it mannaully ,auto-patch might not work.

    95 downloads

    0 comments

    Submitted

  24. Free

    Preview :
    http://bit.ly/XzIQJj

    When HP/SP lower than you set, it will auto use that item.
    Command :
    PS :
    Test and create on rA 17132

    632 downloads

    9 comments

    Updated

  25. Free

    The commands is @sann (contraction of staff announced), but you can use 3 types of sintaxis (because was add in the atcommand_eathena.conf 2 alias).
    The sintaxis is:
    @sann
    @astaff
    @staff
    What's new in versión 3.1?
    And auto detect what group belongs the GM and will add their label; all this using whatever you want in the sintaxis. So, if you'll use @sann, astaff or @staff the result will be the same.
    Note: Don't remove the credits, please

    109 downloads

    0 comments

    Submitted