Jump to content

AnnieRuru

Script Developers
  • Content Count

    1677
  • Joined

  • Last visited

  • Days Won

    245

Reputation Activity

  1. Like
    AnnieRuru reacted to 4144 in @packetfilter   
    @AnnieRuru i not sure is this can works, but you can try use clang in visual studio. it probably will show more errors.
    or use WSL or WSL2 with linux kernel and tools inside.
     
     
  2. Like
    AnnieRuru got a reaction from IndieRO in @packetfilter   
    PLEASE GIVE ME YOUR COMPILER
    I want my visual studio 2019 also display error like yours
    btw I'm guessing that's CentOS, this happened before on my OnPCUseSkillEvent
     
    0.3 - plugin
    - add missing FILTER_CLAN flag
    - implement block_item type 'I' flag
    - fix FILTER_OTHER not working properly when the player doesn't have a party or guild
    - fix [C]hat type shouldn't able to filter self, since the client always shows you are talking anyway
    - and attempt to fix the above stupid error that doesn't show on Visual Studio
  3. Upvote
    AnnieRuru reacted to xJhay in @packetfilter   
    Hi mam, once again error won't show up in windows compiler but showing in another compiler.
    Here it is, already tried the 0.2:

  4. Like
    AnnieRuru got a reaction from xJhay in @packetfilter   
    0.2 - plugin
    - add sub-type flags (Self/Party/Guild/Bg/Other/Homun/Mob)
    - add emotion filter
    - fix compiler warning that doesn't display on visual studio
     
    actually there are a lot of people interested in this topic...
    @xJhay
     
    let me just copy paste from a PM
     

     
    the reason I started this topic because I received the `@packetfilter` for rathena use, and asked me to convert into plugin
    and upon reading it I found its very inconvenient and thus I want to rewrite it
    that version I receive is block based on skill ID
     
    but my plan is to block based on flags, not every skill ID entry
    if block by skill type listed in skill_db,conf will make the plugin future proof
    SkillType: { (bool, defaults to "Passive") Passive: true/false (boolean, defaults to false) Enemy: true/false (boolean, defaults to false) Place: true/false (boolean, defaults to false) Self: true/false (boolean, defaults to false) Friend: true/false (boolean, defaults to false) Trap: true/false (boolean, defaults to false) } SkillInfo: { (bool, defaults to "None") Quest: true/false (boolean, defaults to false) NPC: true/false (boolean, defaults to false) Wedding: true/false (boolean, defaults to false) Spirit: true/false (boolean, defaults to false) Guild: true/false (boolean, defaults to false) Song: true/false (boolean, defaults to false) Ensemble: true/false (boolean, defaults to false)  
    PS: just like card seller A-Z, before I made that script every member posted on the board manually insert each card ID into each npc,
    until I made that SQL version which rip from SQL database, that old script still works today, make it future proof
     

     
    another thing to note about that version is because it block base on skill ID only, it doesn't make use of the flag of each packet
     
    on the battlefield, or I mean during woe, there are a lot of packets being sent even if its unnecessary information
    for example, your guild and another guild A attacking defending guild B,
    and your guild and guild A are not on good terms and rushing to destroy the emperium
    my point is, guild A attacking guild B are unnecessary in my opinion, and I don't need those packet informations
    but I still need to know my party/guild are under attack
     
    /// 02e1 <src ID>.L <dst ID>.L <server tick>.L <src speed>.L <dst speed>.L <damage>.L <div>.W <type>.B <damage2>.L (ZC_NOTIFY_ACT2) and I can use <src ID> and <dst ID> and check are they the same guild ? then send packet
    is <dst ID> my guild mates ? then send packet
    the rest are not important
     
    that version simply block by skill ID and from my understanding, I wouldn't know who is actually healing me when enable `@packetfilter`
    there are some healer who are good in healing others and some just standing there acting like a doll waiting to get hit
     
    my idea is make additional field so only filter out unneeded information
    when playing as crusader, my job is to defend my party, and I want all information packets send that are threatening my party
    when playing as assassin, I don't have to take care of guild member, I only want to assassinate the healer or dd who are actively killing the most of my guildmates etc
    yeah, make it highly configurable
     

     
    anyway read the additional information I already made this part a reality,
    but so far only chat and emotions are implement, skills has to do ... maybe tomorrow ...
  5. Upvote
    AnnieRuru reacted to xJhay in @packetfilter   
    warning for latest svn.
  6. Like
    AnnieRuru got a reaction from gidzdlcrz in Additional Feature for my own Broadcaster NPC   
    https://rathena.org/board/topic/126404-additional-feature-for-my-own-broadcaster-npc/?do=findComment&comment=388123
    after Tokei posted that I'm a bit fire up hahaha
     
    https://gist.github.com/AnnieRuru/cf56174c4bbbd3a61d4dd0c11100c425
    well, yes I didn't do the stuffs he said, but its do-able with SQL table or using storing them in array
    reply again if you want this feature
  7. Like
    AnnieRuru got a reaction from KeiKun in Dicebet Gambling   
    @KeiKun ask me to convert this rathena script to hercules
    https://rathena.org/board/topic/112255-quests-games-dicebet-gambling/
    soo ....
     
    Download:
    script
     
    nothing much to say here, read the original topic in rathena forum
     
    original script use Zeny to bet, this script use an item to place the bet
     
     
  8. Upvote
    AnnieRuru got a reaction from Kuroyama in Random Time Summon   
    needs to do some calculation
     
    on official repo is OnTimer7200000: means 2 hours
    btw OnTimer28800000: is 8 hours, not 4 hours
     
    so let's leave it at OnTimer28800000: then
    if you want 2 hours then setnpctimer 28800000 - 2*60*60*1000; startnpctimer;
    if you want 3 hours then setnpctimer 28800000 - 3*60*60*1000; startnpctimer;
    if you want 4 hours then setnpctimer 28800000 - 4*60*60*1000; startnpctimer;
     
    so it should look like this
    OnTimer36000: OnTimer37000: mapwarp "thana_boss","tha_t12",130,52; stopnpctimer; setnpctimer 28800000 - F_Rand(2,3,4)*60*60*1000; startnpctimer; end; OnTimer28800000: $@thana_summon = 0; $@thana_summon2 = 0; donpcevent "Memory Seal#tt1::OnEnable"; donpcevent "Memory Seal#tt2::OnEnable"; donpcevent "Memory Seal#tt3::OnEnable"; donpcevent "Memory Seal#tt4::OnEnable"; donpcevent "#thanatos_seal::OnEnable"; stopnpctimer; end; didn't hard to test ... hopefully you don't say its bug
     
     
  9. Like
    AnnieRuru got a reaction from xJhay in Random Time Summon   
    needs to do some calculation
     
    on official repo is OnTimer7200000: means 2 hours
    btw OnTimer28800000: is 8 hours, not 4 hours
     
    so let's leave it at OnTimer28800000: then
    if you want 2 hours then setnpctimer 28800000 - 2*60*60*1000; startnpctimer;
    if you want 3 hours then setnpctimer 28800000 - 3*60*60*1000; startnpctimer;
    if you want 4 hours then setnpctimer 28800000 - 4*60*60*1000; startnpctimer;
     
    so it should look like this
    OnTimer36000: OnTimer37000: mapwarp "thana_boss","tha_t12",130,52; stopnpctimer; setnpctimer 28800000 - F_Rand(2,3,4)*60*60*1000; startnpctimer; end; OnTimer28800000: $@thana_summon = 0; $@thana_summon2 = 0; donpcevent "Memory Seal#tt1::OnEnable"; donpcevent "Memory Seal#tt2::OnEnable"; donpcevent "Memory Seal#tt3::OnEnable"; donpcevent "Memory Seal#tt4::OnEnable"; donpcevent "#thanatos_seal::OnEnable"; stopnpctimer; end; didn't hard to test ... hopefully you don't say its bug
     
     
  10. Like
    AnnieRuru got a reaction from evilpuncker in Random Time Summon   
    needs to do some calculation
     
    on official repo is OnTimer7200000: means 2 hours
    btw OnTimer28800000: is 8 hours, not 4 hours
     
    so let's leave it at OnTimer28800000: then
    if you want 2 hours then setnpctimer 28800000 - 2*60*60*1000; startnpctimer;
    if you want 3 hours then setnpctimer 28800000 - 3*60*60*1000; startnpctimer;
    if you want 4 hours then setnpctimer 28800000 - 4*60*60*1000; startnpctimer;
     
    so it should look like this
    OnTimer36000: OnTimer37000: mapwarp "thana_boss","tha_t12",130,52; stopnpctimer; setnpctimer 28800000 - F_Rand(2,3,4)*60*60*1000; startnpctimer; end; OnTimer28800000: $@thana_summon = 0; $@thana_summon2 = 0; donpcevent "Memory Seal#tt1::OnEnable"; donpcevent "Memory Seal#tt2::OnEnable"; donpcevent "Memory Seal#tt3::OnEnable"; donpcevent "Memory Seal#tt4::OnEnable"; donpcevent "#thanatos_seal::OnEnable"; stopnpctimer; end; didn't hard to test ... hopefully you don't say its bug
     
     
  11. Upvote
    AnnieRuru got a reaction from Kuroyama in Mob Room Cleaner   
    clean prontera map after empty for 10 seconds, just for testing make sure it works
    - script dsfkdsjhf FAKE_NPC,{ OnTimer1000: if (!getmapusers("prontera")) { if (++.empty == 10) cleanmap "prontera"; } else .empty = 0; OnInit: initnpctimer; end; }  
     
    clean prt_in map after empty for 5 minutes
    - script dsfkdsjhf FAKE_NPC,{ OnTimer10000: if (!getmapusers("prt_in")) { if (++.empty == 30) cleanmap "prt_in"; } else .empty = 0; OnInit: initnpctimer; end; }  
  12. Like
    AnnieRuru got a reaction from evilpuncker in Create a dummy character/player to clone   
    mob avail ... many members has been claiming the new mob avail format isn't really working
    let's see ...
     
    { Id: 3001 SpriteName: "AnnieRuru" Name: "AnnieRuru" Lv: 120 Hp: 1000000 Sp: 1 Exp: 1 JExp: 1 AttackRange: 1 Attack: [100, 200] Def: 99 Mdef: 99 Stats: { Str: 99 Agi: 99 Vit: 99 Int: 99 Dex: 99 Luk: 99 } ViewRange: 14 ChaseRange: 1 Size: "Size_Medium" Race: "RC_Human" Element: ("Ele_Neutral", 1) Mode: { CanMove: true CanAttack: true Aggressive: true } MoveSpeed: 150 AttackDelay: 1000 AttackMotion: 1000 DamageMotion: 1000 ViewData: { SpriteId: 4063 WeaponId: 1501 HeadTopId: 167 HeadMidId: 169 // HeadLowId: HairStyleId: 3 BodyStyleId: 1 HairColorId: 8 BodyColorId: 2 RobeId: 1 Gender: "SEX_FEMALE" } }, who said not working ???

     
    so just add skills
    AnnieRuru: { AL_HEAL: { SkillState: "MSS_ANY" SkillLevel: 10 Rate: 9000 Delay: 2000 Cancelable: true SkillTarget: "MST_MASTER" CastCondition: "MSC_MASTERHPLTMAXRATE" ConditionData: 99 } AL_BLESSING: { SkillState: "MSS_IDLE" SkillLevel: 10 Rate: 10000 Delay: 60000 Cancelable: true SkillTarget: "MST_MASTER" CastCondition: "MSC_ALWAYS" } AL_INCAGI: { SkillState: "MSS_IDLE" SkillLevel: 10 Rate: 10000 CastTime: 1000 Delay: 60000 SkillTarget: "MST_MASTER" CastCondition: "MSC_ALWAYS" } AL_HEAL: { SkillState: "MSS_ANY" SkillLevel: 10 Rate: 9000 Delay: 2000 Cancelable: true SkillTarget: "MST_SELF" CastCondition: "MSC_MYHPLTMAXRATE" ConditionData: 99 } AL_HEAL: { SkillState: "MSS_ANY" SkillLevel: 10 Rate: 9000 Delay: 2000 Cancelable: true SkillTarget: "MST_FRIEND" CastCondition: "MSC_FRIENDHPLTMAXRATE" ConditionData: 99 } }  
    and add `@summon` and done
    https://github.com/HerculesWS/Hercules/pull/2888
    with this patch, tested it works
  13. Like
    AnnieRuru got a reaction from evilpuncker in Coma status Eff_ usage   
    Officially, Golden_Bug_Card can defend against Coma effect
    which is bonus bNoMagicDamage,100;
     
    after reading the source code, it seems adding something like Eff_Coma is kinda tough
    but if just adding a bonus to defend against SC_COMA is kinda easier
    https://github.com/AnnieRuru/Release/blob/master/plugins/Request %26 Answer/bComaResist.c
    tested with a Club[3] with add bonus2 bWeaponComaRace,RC_All,10000;
     
    so anyway, if you just want to add another bonus for coma effect, just check with SC_COMA
    still stubborn want to use Eff_Coma ? sry can't help with this
  14. Like
    AnnieRuru got a reaction from xJhay in Create a dummy character/player to clone   
    mob avail ... many members has been claiming the new mob avail format isn't really working
    let's see ...
     
    { Id: 3001 SpriteName: "AnnieRuru" Name: "AnnieRuru" Lv: 120 Hp: 1000000 Sp: 1 Exp: 1 JExp: 1 AttackRange: 1 Attack: [100, 200] Def: 99 Mdef: 99 Stats: { Str: 99 Agi: 99 Vit: 99 Int: 99 Dex: 99 Luk: 99 } ViewRange: 14 ChaseRange: 1 Size: "Size_Medium" Race: "RC_Human" Element: ("Ele_Neutral", 1) Mode: { CanMove: true CanAttack: true Aggressive: true } MoveSpeed: 150 AttackDelay: 1000 AttackMotion: 1000 DamageMotion: 1000 ViewData: { SpriteId: 4063 WeaponId: 1501 HeadTopId: 167 HeadMidId: 169 // HeadLowId: HairStyleId: 3 BodyStyleId: 1 HairColorId: 8 BodyColorId: 2 RobeId: 1 Gender: "SEX_FEMALE" } }, who said not working ???

     
    so just add skills
    AnnieRuru: { AL_HEAL: { SkillState: "MSS_ANY" SkillLevel: 10 Rate: 9000 Delay: 2000 Cancelable: true SkillTarget: "MST_MASTER" CastCondition: "MSC_MASTERHPLTMAXRATE" ConditionData: 99 } AL_BLESSING: { SkillState: "MSS_IDLE" SkillLevel: 10 Rate: 10000 Delay: 60000 Cancelable: true SkillTarget: "MST_MASTER" CastCondition: "MSC_ALWAYS" } AL_INCAGI: { SkillState: "MSS_IDLE" SkillLevel: 10 Rate: 10000 CastTime: 1000 Delay: 60000 SkillTarget: "MST_MASTER" CastCondition: "MSC_ALWAYS" } AL_HEAL: { SkillState: "MSS_ANY" SkillLevel: 10 Rate: 9000 Delay: 2000 Cancelable: true SkillTarget: "MST_SELF" CastCondition: "MSC_MYHPLTMAXRATE" ConditionData: 99 } AL_HEAL: { SkillState: "MSS_ANY" SkillLevel: 10 Rate: 9000 Delay: 2000 Cancelable: true SkillTarget: "MST_FRIEND" CastCondition: "MSC_FRIENDHPLTMAXRATE" ConditionData: 99 } }  
    and add `@summon` and done
    https://github.com/HerculesWS/Hercules/pull/2888
    with this patch, tested it works
  15. Like
    AnnieRuru got a reaction from evilpuncker in REQUEST Script auto spawn boss when kill normal mob   
    is this a different request ?
    feels totally different from the first post
     
    - script kjhfkshdf FAKE_NPC,{ OnNPCKillEvent: if (strcharinfo(PC_MAP) != "prt_fild08" || .spawned == true) end; if (killedrid == PORING) ++.poringkill; else if (killedrid == DROPS) ++.dropskill; else if (killedrid == POPORING) ++.poporingkill; if (.poringkill > 10 && .dropskill > 10 && .poporingkill > 10) { getmapxy .@map$, .@x, .@y, UNITTYPE_PC; while (checkcell(.@map$, .@x2 = rand(.@x - .@area, .@x + .@area), .@y2 = rand(.@y - .@area, .@y + .@area), cell_chknopass)); monster "prt_fild08", .@x2, .@y2, "--ja--", MASTERING, 1, strnpcinfo(NPC_NAME_UNIQUE)+"::OnMobKill"; mapannounce "prt_fild08", "Mastering has been spawn", bc_map; .spawned = true; } end; OnMobKill: mapannounce "prt_fild08", "Mastering has been killed", bc_map; initnpctimer; end; //OnTimer5000: OnTimer86400000: .poringkill = 0; .dropskill = 0; .poporingkill = 0; .spawned = false; end; } prt_fild08,0,0,0,0 monster Poring 1002,1000,0,0 prt_fild08,0,0,0,0 monster Drops 1113,1000,0,0 prt_fild08,0,0,0,0 monster Poporing 1031,1000,0,0  
  16. Like
    AnnieRuru got a reaction from hadiesyafiq in REQUEST Script auto spawn boss when kill normal mob   
    - script kjhfkshdf FAKE_NPC,{ OnNPCKillEvent: if (killedrid == PORING && strcharinfo(PC_MAP) == "prt_fild08") { if (++.poringkill == 100) { monster "prt_fild08", 0,0, "--ja--", MASTERING, 1, strnpcinfo(NPC_NAME_UNIQUE)+"::OnMobKill"; // mapannounce "prt_fild08", "Mastering has been spawn", bc_map; } } end; OnMobKill: // mapannounce "prt_fild08", "Mastering has been killed", bc_map; initnpctimer; end; //OnTimer5000: OnTimer86400000: .poringkill = 0; end; } prt_fild08,0,0,0,0 monster Poring 1002,1000,0,0 tested with
    https://annieruru.blogspot.com/2019/01/mapmoblist-script-version.html
  17. Like
    AnnieRuru got a reaction from evilpuncker in Stylist   
    all right, I post up my custom stylist
     
    Download: 2.1
    script
     
    this one use CSV format
    setd ".@"+ Job_Rune_Knight +"_"+ LOOK_CLOTHES_COLOR +"$[1]", "0-5,11-18,20-23"; setd ".@"+ Job_Summoner +"_"+ LOOK_CLOTHES_COLOR +"$[0]", "0-3"; This means, the ID range for Job_Rune_Knight at bodystyle number (1) is 0,1,2,3,4,5,11,12,13,14,15,16,17,18,20,21,22,23
    2nd line means Summoner job can only use clothing range between 0 to 3, this prevent crash client due to human and doram race doesn't share the same palette
     
    From version 2.0 onwards, now you don't have to scratch your head about missing palette due to different bodystyle
    this script can handle that
     
     
  18. Like
    AnnieRuru got a reaction from IndieRO in How to setup OFFLINE server for personal development use   
    Make your (offline) RO server in more than 5 hours - pun intended
    Hercules Link
    This Guide is intended for
    - Windows users
    windows sux, but 90% of the community still using windows, so I am targeting the majority of the members here
    - You want to contribute something back to the community
    if you just want to have fun by yourself, of course it's fine to use that 5 minute instant noodle guide
    BUT if you want to contribute to the community, you have to use LATEST server and software available
    ... which makes this guide outdated very fast
     
    Prelude: Determine your Windows Operating System type
    a. Windows Key -> Right Click on My Computer -> Select Properties
    https://github.com/AnnieRuru/customs/blob/master/server setup/prelude-1.png

    b. Determine your Operating System type
    I'm using Windows 7 Ultimate 64-bit system
    https://github.com/AnnieRuru/customs/blob/master/server setup/prelude-2.png
     
    Step 1: Download and Install TortoiseGit

    1a. Download TortoiseGit
    https://github.com/AnnieRuru/customs/blob/master/server setup/Step 1a.png
     
    1b. Installation
    next... next... next.. next... next.. next.. Install !!!
     
    1c. Create 2 new folders
    1 for Hercules, 1 for rAthena
    Right-click -> TortoiseGit -> Clone
    https://github.com/AnnieRuru/customs/blob/master/server setup/Step 1c.png
     
    1d. Download git 2.20.1
    you'll get this warning message
    https://github.com/AnnieRuru/customs/blob/master/server setup/Step 1d.png
    Open Git for Windows Website, Download it
    next... next... next.. next... next.. next.. Install !!!
     
    1e. Reposition git.exe
    This time go to TortoiseGit -> Settings
    https://github.com/AnnieRuru/customs/blob/master/server setup/Step 1e.png
    General tab -> Git.exe path
    https://github.com/AnnieRuru/customs/blob/master/server setup/Step 1e2.png
    C:\Program Files\Git\bin  
    1f. Download Hercules and rAthena
    Right Click on the folder, TortoiseGit -> Clone
    https://github.com/AnnieRuru/customs/blob/master/server setup/Step 1f.png
    https://github.com/HerculesWS/Hercules https://github.com/rathena/rathena  
    Problems might encounter during Step 1c,
    when it ask for a git.exe, you have to go to that git for windows site, and download that thing
    Problems might encounter during Step 1e,
    sometimes even though you have already install git2.20.1.exe, but it still couldn't find the git.exe file
    to solve it, Right-click -> TortoiseGit -> Settings, you get a warning, Click Ignore, then follow Step 1e
     
    Step 2: Download and Install Microsoft Visual Studio 2017
    Step 2a. Download Microsoft Visual Studio
    https://visualstudio.microsoft.com/downloads/
    https://github.com/AnnieRuru/customs/blob/master/server setup/Step 2a.png
     
    Step 2b. Downloading ...
    https://github.com/AnnieRuru/customs/blob/master/server setup/Step 2b.png
     
    Step 2c. Click Install Visual Studio Community 2017
    https://github.com/AnnieRuru/customs/blob/master/server setup/Step 2c.png
     
    Step 2d. Load Hercules Project
    Double click Hercules-15.sln
    https://github.com/AnnieRuru/customs/blob/master/server setup/Step 2d.png
    it says missing Windows 10 SDK 10.0.15063 ...
     
    Step 2e. Install individual component
    you can either let Visual Studio do its magic, or ...
    manually go to visual studio downloader ... click modify
    https://github.com/AnnieRuru/customs/blob/master/server setup/Step 2e.png
    then select the component to install manually
    https://github.com/AnnieRuru/customs/blob/master/server setup/Step 2e2.png
     
    Step 2f. Load rAthena Project
    Do the same thing by double clicking rAthena.sln,
    but this time rAthena project needs Windows 8.1 SDK and Windows Universal CRT SDK
     
    Both emulator has been compiled
     
    Problems might encounter during Step 2c
    if using Windows 7/8, after the download is complete, it install a windows update that might crash all the programs in your operating system
    this Parasite MUST be remove !!
    To do this, go to Control Panel -> Program and Features
    https://github.com/AnnieRuru/customs/blob/master/server setup/Step 2g.png
    Click View Install Update tab
    https://github.com/AnnieRuru/customs/blob/master/server setup/Step 2g1.png
    then find KB2882822 and remove this parasite from your computer immediately before restarting your computer
    https://github.com/AnnieRuru/customs/blob/master/server setup/Step 2g2.png
    IF you are the unlucky soul and you can't start any .exe file .... there's still a fix
    Restart the computer in Safe Mode ...
    many answer around the Internet tells you to press F8 when Windows Logo shows up, but this doesn't work for me, I have USB keyboard
    so I found another method ... run System Configuration
    https://github.com/AnnieRuru/customs/blob/master/server setup/Step 2h.png
    Select the [Boot] tab, then select Safe Mode.
    https://github.com/AnnieRuru/customs/blob/master/server setup/Step 2h2.png
    this will make your windows always restart in safe mode until you turn it off
    then follow the above process, uninstall that windows update, deselect safe mode, restart computer again, now it should be back to normal
     
    Problems might encounter during Step 2f
    During compiling, if you see this in your Visual Studio
    fatal error C1083: Cannot open include file: 'corecrt.h': No such file or directory this means you are missing a component Windows Universal CRT SDK
    https://github.com/AnnieRuru/customs/blob/master/server setup/Step 2f.png
     
    Step 3: Download and Install MySQL 8.0
    Step 3a: Download MySQL 8.0
    https://dev.mysql.com/downloads/mysql/
    https://github.com/AnnieRuru/customs/blob/master/server setup/Step 3a.png
    https://github.com/AnnieRuru/customs/blob/master/server setup/Step 3a2.png
    actually, you can just click this -> https://dev.mysql.com/downloads/file/?id=480824
    I have 64-bit operating system, but this 32-bit installer works fine for me
     
    Step 3b. Install MySQL 8.0
    Select Custom
    https://github.com/AnnieRuru/customs/blob/master/server setup/Step 3b1.png
    We only need 2 products, MySQL 8.0 and MySQL Workbench
    https://github.com/AnnieRuru/customs/blob/master/server setup/Step 3b2.png
    Ready to Install
    https://github.com/AnnieRuru/customs/blob/master/server setup/Step 3b3.png
    next... next.. Execute !! next.. next.. next..
    Account and Roles, type "1234" as password
    https://github.com/AnnieRuru/customs/blob/master/server setup/Step 3b4.png
    click [Check]... next... next.. next... DONE !!
     
    Step 3c. Run MySQL Workbench
    Welcome to MySQL Workbench
    Double click the icon -> Click Connect
    https://github.com/AnnieRuru/customs/blob/master/server setup/Step 3c.png
     
    Step 3d. Create a Schema
    Right click at the left side of the window
    https://github.com/AnnieRuru/customs/blob/master/server setup/Step 3d.png
    and create a Database call Hercules. Remember change charset/collation to utf8
    https://github.com/AnnieRuru/customs/blob/master/server setup/Step 3d2.png
     
    Step 3e. Install SQL Script for Hercules
    Set Hercules as default Schema
    https://github.com/AnnieRuru/customs/blob/master/server setup/Step 3e.png
    load hercules/sql-files/main.sql file
    https://github.com/AnnieRuru/customs/blob/master/server setup/Step 3e2.png
    copy into Query field, then Press Execute button
    https://github.com/AnnieRuru/customs/blob/master/server setup/Step 3e3.png
    repeat the same process again for log.sql file
     
    Step 3f. Install SQL Script for rAthena
    Set rAthena as default Schema
    install rAthena/sql-files/main.sql and the log.sql
     
    Problems might encounter during Step 3e.
    If you got a warning message that `ipbanlist` table creation failed, this has been reported -> hercules & rAthena
    that's why now we can only use utf8 charset
     
    Step 4: Connect MySQL to Hercules and rAthena
    Step 4a. Connect Hercules to MySQL
    Copy paste the import-tmpl folder, and rename it into import
    https://github.com/AnnieRuru/customs/blob/master/server setup/Step 4a.png
    then open each individual files and modify each one of them
    conf/import/char_server.conf
    char_configuration: { // Server name, use alternative character such as ASCII 160 for spaces. // NOTE: Do not use spaces or any of these characters which are not allowed in // Windows filenames \/:*?"<>| // ... or else guild emblems won't work client-side! server_name: "Hercules" // Information related to inter-server behavior inter: { // Server Communication username and password. userid: "qwer" passwd: "asdf" // Login Server IP // The character server connects to the login server using this IP address. // NOTE: This is useful when you are running behind a firewall or are on // a machine with multiple interfaces. login_ip: "127.0.0.1" // Character Server IP // The IP address which clients will use to connect. // Set this to what your server's public IP address is. char_ip: "127.0.0.1" } pincode: { enabled: false } } conf/import/map-server.conf
    map_configuration: { // Information related to inter-server behavior inter: { // Interserver communication passwords, set in the login server database userid: "qwer" passwd: "asdf" // Map Server IP // The IP address which clients will use to connect. // Set this to what your server's public IP address is. map_ip: "127.0.0.1" // Character Server IP // The map server connects to the character server using this IP address. // NOTE: This is useful when you are running behind a firewall or are on // a machine with multiple interfaces. char_ip: "127.0.0.1" } } conf/global/sql_connections.conf
    sql_connection: { // [INTER] You can specify the codepage to use in your mySQL tables here. // (Note that this feature requires MySQL 4.1+) //default_codepage: "" // [LOGIN] Is `userid` in account_db case sensitive? //case_sensitive: false // For IPs, ideally under linux, you want to use localhost instead of 127.0.0.1. // Under windows, you want to use 127.0.0.1. If you see a message like // "Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)" // and you have localhost, switch it to 127.0.0.1 db_hostname: "127.0.0.1" db_port: 3306 db_username: "root" db_password: "1234" db_database: "hercules" //codepage:"" }  
    Step 4b. Change s1/p1 inter server connection password
    since hercules server hates you for using s1/p1, I change it into qwer/asdf then
    Here's how to do it ... Open MySQL Workbench, double click your current running MySQL connection
    Type "SELECT * FROM `login`;" , edit the field s1/p1, then click [Apply]
    https://github.com/AnnieRuru/customs/blob/master/server setup/Step 4b2.png
    https://github.com/AnnieRuru/customs/blob/master/server setup/Step 4b3.png
     
    Step 4c. connect rAthena to MySQL
    Copy paste the import-tmpl folder, and rename it into import
    then open each individual files and modify each one of them
    conf/import/char-conf.txt
    // Server name, use alternative character such as ASCII 160 for spaces. // NOTE: Do not use spaces or any of these characters which are not allowed in // Windows filenames \/:*?"<>| // ... or else guild emblems won't work client-side! server_name: rAthena // Login Server IP // The character server connects to the login server using this IP address. // NOTE: This is useful when you are running behind a firewall or are on // a machine with multiple interfaces. login_ip: 127.0.0.1 // The character server listens on the interface with this IP address. // NOTE: This allows you to run multiple servers on multiple interfaces // while using the same ports for each server. bind_ip: 127.0.0.1 // Character Server IP // The IP address which clients will use to connect. // Set this to what your server's public IP address is. char_ip: 127.0.0.1 // NOTE: Requires client 2011-03-09aragexeRE or newer. // A window is opened before you can select your character and you will have to enter a pincode by using only your mouse. // Default: yes pincode_enabled: no conf/import/inter-conf.txt
    // MySQL Login server login_server_ip: 127.0.0.1 login_server_port: 3306 login_server_id: root login_server_pw: 1234 login_server_db: rathena login_codepage: login_case_sensitive: no ipban_db_ip: 127.0.0.1 ipban_db_port: 3306 ipban_db_id: root ipban_db_pw: 1234 ipban_db_db: rathena ipban_codepage: // MySQL Character server char_server_ip: 127.0.0.1 char_server_port: 3306 char_server_id: root char_server_pw: 1234 char_server_db: rathena // MySQL Map Server map_server_ip: 127.0.0.1 map_server_port: 3306 map_server_id: root map_server_pw: 1234 map_server_db: rathena // MySQL Log Database log_db_ip: 127.0.0.1 log_db_port: 3306 log_db_id: root log_db_pw: 1234 log_db_db: rathena log_codepage: log_login_db: loginlog conf/import/login_conf.txt
    // The login server listens on the interface with this IP address. // NOTE: This allows you to run multiple servers on multiple interfaces // while using the same ports for each server. bind_ip: 127.0.0.1 conf/import/map_conf.txt
    // Character Server IP // The map server connects to the character server using this IP address. // NOTE: This is useful when you are running behind a firewall or are on // a machine with multiple interfaces. char_ip: 127.0.0.1 // The map server listens on the interface with this IP address. // NOTE: This allows you to run multiple servers on multiple interfaces // while using the same ports for each server. bind_ip: 127.0.0.1 // Map Server IP // The IP address which clients will use to connect. // Set this to what your server's public IP address is. map_ip: 127.0.0.1  
    Note: you can do the same for rAthena, change s1/p1 into qwer/asdf. rAthena doesn't *BEEP* when you use s1/p1 though
    simply add this line in both conf/import/char-conf.txt and conf/import/map_conf.txt then change it in MySQL Workbench
    // Server Communication username and password. userid: s1 passwd: p1  
    Read Also: What is Import folder, just scroll down to the bottom and read it
     
     
    Before going into next step, I want to stress enough and make sure you can get your server to connect to MySQL
    so try running run-server.bat to connect your hercules --OR-- rathena server to MySQL
    https://github.com/AnnieRuru/customs/blob/master/server setup/Step 4.5.png
    if you can't do it right, Open a New Topic in General Server Support
     
     
    problem might encounter during this step
    [SQL]: Client does not support authentication protocol requested by server; consider upgrading MySQL client This happens if you have previous version of MySQL installed on your computer, and upgrade into MySQL 8.0
    to fix this issue, run MySQL command line Client from start menu
    https://github.com/AnnieRuru/customs/blob/master/server setup/Step 4.5a.png
    then run these 2 commands seperately
    ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY '1234'; FLUSH PRIVILEGES; https://github.com/AnnieRuru/customs/blob/master/server setup/Step 4.5b.png
     
    5. Download latest KRO Client and client translation files
    Step 5a. Download latest KRO from
    http://herc.ws/board/topic/15592-collection-official-full-clients-latest-kro/
    https://rathena.org/board/topic/106413-kro-full-client-2018-08-13-includes-bgm-rsu/ <-- I pick this
     
    // ========== THIS PART IS CONTROVERSIAL ===== BUT IT WORKS FOR ME ========
    Step 5b. Create another 2 folders
    let's name it Asheraf and zackdreaver ... the author of making client translation
    https://github.com/AnnieRuru/customs/blob/master/server setup/Step 5b.png
    then download their translation files by git clone them
    https://github.com/Asheraf/Translation https://github.com/zackdreaver/ROenglishRE  
    Step 5c. Download GRF Editor
    http://www.mediafire.com/file/aflylbhblrzpz0h/GRF+Editor+v1.8.2.7.zip <-- author forgot to update in that topic, mediafire link is latest one
     
    Step 5d. Compile GRF Editor
    https://github.com/AnnieRuru/customs/blob/master/server setup/Step 5d.png
    double click GRFEditor.sln
     
    Step 5e. Open GRF Editor file
    Navigate to the directory  \GRF Editor Sources v1.8.2.7\GRF Editor\GRFEditor\bin\Release and open GRF Editor.exe
    https://github.com/AnnieRuru/customs/blob/master/server setup/Step 5e.png
    I also wondering why the author makes the execution files hide so deep inside
     
    Step 5f. Drag the data folder from Asheraf client translation to new.grf
    https://github.com/AnnieRuru/customs/blob/master/server setup/Step 5f.png
    then save it as Asheraf.grf
    https://github.com/AnnieRuru/customs/blob/master/server setup/Step 5f2.png
     
    Step 5g. Repeat the process for zackdreaver translation
    Close Grf. New -> Grf, Drag the data folder from zackdreaver/Ragnarok/data to new.grf, then save it as zackdreaver.grf
     
    Now you have learn how to pack your own grf. You should have 2 new grf in client folder
     
    Step 5h. open data.ini in your ragnarok client and edit DATA.INI
    https://github.com/AnnieRuru/customs/blob/master/server setup/Step 5h.png
    [Data] 1=Asheraf.grf 2=zackdreaver.grf 3=rdata.grf 4=data.grf  
    Step 5i. Replace Asheraf/system folder into client/system folder
    https://github.com/AnnieRuru/customs/blob/master/server setup/Step 5i.png
     
    // ========== CONTROVERSIAL PART ENDS HERE ===== I'm sure many client experts having your doubts why I do like this ========
     
    A lot of problems can appear in this step, these problems also recent and changes with every client
     
    6. Create your own patch client
    Step 6a. Download latest nemo
    create another folder name nemo
    https://github.com/AnnieRuru/customs/blob/master/server setup/Step 6a.png
    then git clone from this site
    https://gitlab.com/4144/Nemo  
    Step 6b. Find a suitable client patches
    http://nemo.herc.ws/downloads/
    Since I download KRO 20180813, I chose 2018-06-20eRagexeRe
     
    Step 6c. Open nemo.exe
    Click Browse to select your downloaded client patch, then select Load Client
    https://github.com/AnnieRuru/customs/blob/master/server setup/Step 6c.png
     
    Step 6d. Use Recommend Settings
    https://github.com/AnnieRuru/customs/blob/master/server setup/Step 6d.png
    1. forget the "Always call SelectKoreaClientInfo" error
    https://github.com/AnnieRuru/customs/blob/master/server setup/Step 6d1.png
    2. DATA.INI
    3. system/itemInfo_Sak.lub <--- note: the Capital letter of Info_Sak ... nemo doesn't auto-detect capital letters
    https://github.com/AnnieRuru/customs/blob/master/server setup/Step 6d3.png
    4. Always Load Korea ExternalSetting lua files
    https://github.com/AnnieRuru/customs/blob/master/server setup/Step 6d4.png
    5. Read Data Folder first
    https://github.com/AnnieRuru/customs/blob/master/server setup/Step 6d5.png
    6. Apply Selected
    Step 6e. Copy 2018-06-20eRagexeRE_patched.exe to the KRO client folder
     
     
    By this step, you should be able to load your own hexed client without throwing any error
    https://github.com/AnnieRuru/customs/blob/master/server setup/Step 6.5.png
    if you having problem in this Step 5 & 6, Open a New Topic in Client Support
     
    FINAL STEP - change PACKEVER
    #define PACKETVER 20180620  
    Hercules -> src\common\mmo.h
    https://github.com/AnnieRuru/customs/blob/master/server setup/Step 7a.png
     
    rAthena ->
    src\config\packets.hpp <--- original directory, don't edit here
    src\custom\defines_pre.hpp
    https://github.com/AnnieRuru/customs/blob/master/server setup/Step 7b.png
     
    Then Compile for a Final time
     
     
    After thought, there are still some minor annoyance and adjustment
    client/data/msgstringtable.txt (unpack it or just put at client/data/ folder)
    line 3262 Smooth# line 3458 There was an error when loading the data account settings. (Please restart to retry.)# change them into just a #
     
    Frequently Asked Question:
    Change Renewal into Pre-Renewal
    Hercules -> src/config/renewal.h
    rAthena -> src/config/renewal.hpp
     
    This guide will be feature and pin only for a few months ... while it last .... I guess
  19. Upvote
    AnnieRuru got a reaction from Dduwsmitt in cell_pvp   
    you mean this ?
    prontera mapflag pvp prontera mapflag pvp_nocalcrank even I'm not too sure about this ...
    that "no need to hold shift to attack" is done by changing clif->map_property(sd, MAPPROPERTY_FREEPVPZONE);
    and the pvp counter is show up by clif->pvpset(sd, <rank>, <total>, <type>);
    #include "common/hercules.h" #include "map/pc.h" #include "map/clif.h" #include "common/HPMDataCheck.h" HPExport struct hplugin_info pinfo = { "test_mapproperty", SERVER_TYPE_MAP, "x.x", HPM_VERSION, }; ACMD(a) { int type = atoi(message); clif->map_property(sd, type); clif->maptypeproperty2(&sd->bl, SELF); switch(type) { default: clif->message(fd, "You are in MAPPROPERTY_NOTHING zone"); break; case 1: clif->message(fd, "You are in MAPPROPERTY_FREEPVPZONE zone"); break; case 2: clif->message(fd, "You are in MAPPROPERTY_EVENTPVPZONE zone"); break; case 3: clif->message(fd, "You are in MAPPROPERTY_AGITZONE zone"); break; case 4: clif->message(fd, "You are in MAPPROPERTY_PKSERVERZONE zone"); break; case 5: clif->message(fd, "You are in MAPPROPERTY_PVPSERVERZONE zone"); break; case 6: clif->message(fd, "You are in MAPPROPERTY_DENYSKILLZONE zone"); break; } return true; } ACMD(b) { int rank, total, type; if (sscanf(message, "%d %d %d", &rank, &total, &type) < 3) { clif->message(fd, "need 3 argument"); return false; } clif->pvpset(sd, rank, total, type); return true; } HPExport void plugin_init (void) { addAtcommand("a", a); addAtcommand("b", b); } I tried playing around with clif->map_property and only MAPPROPERTY_FREEPVPZONE and MAPPROPERTY_PVPSERVERZONE work
    the rest can't even show up the pvp rank counter (the one shows at the bottom right down corner of the screen)
     
    the weird part is ... we didn't actually use MAPPROPERTY_PKSERVERZONE for pk server, we just didn't send the clif->pvpset packet
    ... well if it doesn't break, then don't need to fix it
     
    in theory though ... maybe it can be done
    in practice though ... this is all I manage to do
     
    1.7 - plugin
    - fix the pvp circle shouldn't show up until you walk into PvP zone
     
    -> but the circle cannot be remove until relog or move to other map
     
    if you can find out how to really remove the pvp circle without losing the pvp counter please tell me how to do it, I'm also interest to know
  20. Like
    AnnieRuru got a reaction from IndieRO in cell_pvp   
    yeah I forgot to add BCT_ENEMY check in battle_check_target function
     
    1.6 - plugin
    - fix party/guild skill (eg: Magnificat/Gloria) not working with CELL_PVP_SKILL_ALLOW due to missing BCT_ENEMY check
  21. Like
    AnnieRuru got a reaction from KeiKun in Stylist   
    2.1 - script
    - fix a bug that player recall can bypass changelook
     
    thanks to @KeiKun
  22. Upvote
    AnnieRuru reacted to Dduwsmitt in cell_pvp   
    Hello i just discovered that when a map has a CELL_PVP area,
     
    - you cannot use PARTY BUFFS outside CELL_PVP area even with CELL_PVP_SKILL_ALLOW if you are in a PARTY / Solo Party

    is there any way to resolve this?
  23. Like
    AnnieRuru got a reaction from evilpuncker in Stylist   
    2.1 - script
    - fix a bug that player recall can bypass changelook
     
    thanks to @KeiKun
  24. Like
    AnnieRuru got a reaction from evilpuncker in Stylist   
    2.0 - script
    - completely revamp the formula, now each bodystyle can have its own cloth color range
     
    and you dummy baka baka baka baka baka baka baka baka baka baka baka baka baka baka baka baka baka baka baka baka baka baka baka baka baka baka baka baka baka baka baka baka baka baka baka baka baka baka baka baka baka baka baka baka baka baka baka baka baka baka baka baka baka baka baka baka baka baka baka baka baka baka baka baka baka baka baka baka baka baka baka baka
  25. Upvote
    AnnieRuru reacted to Dduwsmitt in cell_pvp   
    hello is it okay to just ignore these warnings?
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.