AnnieRuru

Script Developers
  • Content Count

    1488
  • Joined

  • Last visited

  • Days Won

    164

Everything posted by AnnieRuru

  1. AnnieRuru

    Item Options

    // Build the Menu. setarray [email protected], EQI_COSTUME_HEAD_TOP, EQI_COSTUME_HEAD_MID, EQI_COSTUME_HEAD_LOW, EQI_COSTUME_GARMENT; [email protected]$ = ""; for ([email protected] = 0; [email protected] < getarraysize([email protected]); [email protected]) [email protected]$ += ((getequipisequiped([email protected][[email protected]])) ? getequipname([email protected][[email protected]]) : "" + [email protected][[email protected]] + "-[Not equipped]") + ":"; // Select the part. [email protected]_index = [email protected][ select([email protected]$) -1 ];
  2. AnnieRuru

    Item Options

    I also don't understand what your question is you claimed the script doesn't work, but I just tested it working fine .... of course only for the non-costume equipment // Build the Menu. setarray([email protected]$[1], "Head", "Body", "Left Hand", "Right Hand", "Robe", "Shoes", "Accessory 1", "Accessory 2", "Head 2", "Head 3"); [email protected]$ = ""; for ([email protected] = 1; [email protected] <= 10; [email protected]) [email protected]$ += ((getequipisequiped([email protected])) ? getequipname([email protected]) : [email protected]$[[email protected]] + "-[Not equipped]") + ":"; // Select the part. [email protected]_index = select([email protected]$); if you want to extend to costume area, this part has to modify
  3. ....WindowsSDK.targets(46,5) : error [CUT OFF] try copy paste the lines by Ctrl+C and Ctrl+V over here and google is your best friend to ask anything wtf ... this stupid visual studio installer ... every time I double click it, it ask for update ...
  4. should be 15, that guide .... might be wrong ... after all, MSVC 2017 is version 15 https://en.wikipedia.org/wiki/Microsoft_Visual_Studio#History need to update that guide
  5. I think its official, otherwise there are 2 places to check it doesn't trigger on boss
  6. you should also tell you are using windows or linux, as the method are entirely different http://herc.ws/wiki/Building_HPM_Plugin_for_MSVC. https://github.com/HerculesWS/Hercules/wiki/Building-HPM-Plugin-for-MSVC https://github.com/HerculesWS/Hercules/wiki/Building-HPM-Plugin-for-gcc
  7. prontera,155,185,5 script kjhdsfks 1_F_MARIA,{ detachrid; [email protected] = getunits( BL_PC, [email protected], false ); for ( [email protected] = 0; [email protected] < [email protected]; [email protected] ) { attachrid [email protected][[email protected]]; soundeffect "ownage.wav", 0; } end; }
  8. not working I equip a 'Secular_Mission' ItemID 2127, and expecting it to list all as 25, prontera,155,185,5 script kjhdsfks 1_F_MARIA,{ for ( [email protected] = RC_Formless; [email protected] <= RC_Player; [email protected] ) dispbottom race_resist([email protected]) +""; end; } but it display all in 0 instead a few places are wrong in your plugin, but are actually correct in wolfie's version 1. the constant case-sensitivity wolfie's constants are correct, but yours are wrong should follow the constants.md file, not the source file https://github.com/HerculesWS/Hercules/blob/stable/doc/constants.md#elements ### Elements - `Ele_Neutral`: 0 - `Ele_Water`: 1 - `Ele_Earth`: 2 - `Ele_Fire`: 3 - `Ele_Wind`: 4 - `Ele_Poison`: 5 - `Ele_Holy`: 6 - `Ele_Dark`: 7 - `Ele_Ghost`: 8 - `Ele_Undead`: 9 - `Ele_All`: 255 ### Races - `RC_Formless`: 0 - `RC_Undead`: 1 - `RC_Brute`: 2 - `RC_Plant`: 3 - `RC_Insect`: 4 - `RC_Fish`: 5 - `RC_Demon`: 6 - `RC_DemiHuman`: 7 - `RC_Angel`: 8 - `RC_Dragon`: 9 - `RC_Player`: 10 - `RC_Boss`: 11 - `RC_NonBoss`: 12 - `RC_NonDemiHuman`: 14 - `RC_NonPlayer`: 15 - `RC_DemiPlayer`: 16 - `RC_NonDemiPlayer`: 17 - `RC_All`: 255 2. your plugin stop at RC_Player, which is 10, but I tested with 'Secular_Mission' which has Script: <" bonus2 bSubRace, RC_All, 25; "> RC_ALL is 255 ... lol
  9. even this is old topic, but this member still active unfortunately not all stuffs can be turn into plugin, like adding custom cell_ type (setcell) ... etc.. but, plugin do provide function overload, which is kinda a double-edge-sword you can overload the function with a plugin file, but you still have to update this plugin file periodically to prevent it from not working also having 2 plugins overload the same function, defeats the purpose of using plugin so for your answer, there is no other choice but to copy paste the skill_additional_effect function into the plugin, with the lines you wish to edit https://github.com/HerculesWS/Hercules/wiki/Hercules-Plugin-Manager#hpm-function-overloading
  10. 1.8 - plugin - update to latest revision
  11. this has nothing to do with stylist script, nor the showscript script command, but rather the *setquestinfo script command and I reproduce the problem with this topic, so move the post over here https://github.com/HerculesWS/Hercules/issues/2431 and also can only reproduce with "@reloadscript" so it isn't ... too severe I guess, because live server shouldn't use "@reloadscript" at all
  12. 1.6 - script - now the styles display number no longer shown to other players https://github.com/HerculesWS/Hercules/wiki/Adding-a-Script#adding-and-activating-scripts
  13. I found Hercules members using Pre-Renewal server ... mostly yes you can use newer client for Pre-RE server btw, I rolled back to 20180621 client at this moment because I think newer client are not so stable to use in live server
  14. no idea, I have tested it works do I seriously have to do like this ? https://github.com/HerculesWS/Hercules/compare/master...AnnieRuru:topic/16676-n. https://github.com/AnnieRuru/Hercules/blob/803f7335803460b8a4f2554240a9b29f4686f556/src/map/battle.c#L4957-L4963
  15. @@ -4960,6 +4953,14 @@ static struct Damage battle_calc_weapon_attack(struct block_list *src, struct bl the patch has clearly said, modify the line somewhere at line no.4960 and your compiler said your error is on line 4127
  16. if you change skill->attack from BF_MISC into BF_WEAPON, then you should also change the damage calculation from battle_calc_misc_attack function into battle_calc_weapon_attack function src/map/battle.c | 15 ++++++++------- src/map/skill.c | 2 +- 2 files changed, 9 insertions(+), 8 deletions(-) diff --git a/src/map/battle.c b/src/map/battle.c index 1b7bf909e..4193c8cd0 100644 --- a/src/map/battle.c +++ b/src/map/battle.c @@ -4130,13 +4130,6 @@ static struct Damage battle_calc_misc_attack(struct block_list *src, struct bloc case NPC_EVILLAND: md.damage = skill->calc_heal(src,target,skill_id,skill_lv,false); break; - case RK_DRAGONBREATH: - case RK_DRAGONBREATH_WATER: - md.damage = ((status_get_hp(src) / 50) + (status_get_max_sp(src) / 4)) * skill_lv; - RE_LVL_MDMOD(150); - if (sd) md.damage = md.damage * (95 + 5 * pc->checkskill(sd,RK_DRAGONTRAINING)) / 100; - md.flag |= BF_LONG|BF_WEAPON; - break; /** * Ranger **/ @@ -4960,6 +4953,14 @@ static struct Damage battle_calc_weapon_attack(struct block_list *src, struct bl break; } break; + + case RK_DRAGONBREATH: + case RK_DRAGONBREATH_WATER: + wd.damage = ((status_get_hp(src) / 50) + (status_get_max_sp(src) / 4)) * skill_lv; + wd.damage = wd.damage * status->get_lv(src) / 150; + if (sd) wd.damage = wd.damage * (95 + 5 * pc->checkskill(sd,RK_DRAGONTRAINING)) / 100; + wd.flag |= BF_LONG|BF_WEAPON; + break; default: { i = (flag.cri diff --git a/src/map/skill.c b/src/map/skill.c index 633a73d67..4121d66e7 100644 --- a/src/map/skill.c +++ b/src/map/skill.c @@ -4937,7 +4937,7 @@ static int skill_castend_damage_id(struct block_list *src, struct block_list *bl if( (tsc = status->get_sc(bl)) && (tsc->data[SC_HIDING] )) { clif->skill_nodamage(src,src,skill_id,skill_lv,1); } else - skill->attack(BF_MISC,src,src,bl,skill_id,skill_lv,tick,flag); + skill->attack(BF_WEAPON,src,src,bl,skill_id,skill_lv,tick,flag); } break; case NPC_SELFDESTRUCTION: { but how you want to change the damage formula is totally up to you ...
  17. run this script, and click on it prontera,155,185,4 script ksjdhfksdjfh 1_F_MARIA,{ ModExp = 100; ModDrop = 100; ModDeath = 100; // BankVault = 1000; // in-game bank variable, limit to INT signed end; } to reset everything back to normal additionally, its store in SQL table `account_data` select * from account_data; where your account bank balance store there as well
  18. AnnieRuru

    @mobalive

    https://github.com/AnnieRuru/Release/blob/master/Guides/What is dynamic_mob and how it affects scripts.md. https://rathena.org/board/topic/102715-mvp-board/#comment-357487 unfortunately, Hercules/rAthena has dynamic_mob option, which is not available on Aegis, official ragnarok emulator we can't just simply mobcount the MVP because the boss_monster are not loaded until someone warp into the map the TBL_MOB in the topic you link to, using iteration, is equivalent to getunits script command, also doesn't cache the boss_monster there is a tricky way to do this however, which, in my theory, whenever a script command boss_monster pops up, push a source variable, and again this source variable can be read by scripts, and thus provide us to check either that MVP is available or not this question also has been asked to me privately in discord, and currently in 1 of my todo list
  19. @RagnarokOnline2015 must be using RENEWAL in renewal, its base atk + weapon atk simply equip any weapon will do, like I'm using priest, equip a club "@refine 0 10", the refine will increase the value along with bonus bAtk or bonus bAtk2 in renewal, equip fire-brand will increase the value there @Orca must be using pre-renewal yes, equip a fire-brand doesn't increase that value, to increase bAtk2, the only way is through refine "@refine 0 10" on your fire-brand, or using bonus bAtk2 and I repeat again, THIS IS OFFICIAL <-- tested same thing happen in rathena as well(EDIT) this atk/matk stuffs has even confuse some developers EDIT: seems like I misunderstood the question, you want to increase the 65535, not to add to the bAtk2 bonus ...
  20. curious, you mean you apply this https://github.com/HerculesWS/Hercules/pull/2309 modification ? if what you said is real ... then there's bug on that pull request ... hopefully that PR will get merge ... well we have inactive admin... means our current development is very very ... very slow ...
  21. this isn't an issue, it just say it runs this event too many times probably having some scripts runs jobchange + statusup +equip + .... etc stuffs I remember you said something about having a refiner script runs in loop ... probably caused by that and even that ... it shouldn't effect anything ... just an error message
  22. yes, I having some doubts why it always display rathena website when I change screen resolution in-game so akkarin actually insert some modification to make the client exit and always go visit rathena.org, I think downloading the one provided by Ridley one .... now this gonna take another 3~4 days
  23. hercules is compatible with newer hexed client but that doesn't mean every hexed client is stable for use in live server currently the recommended client date everyone using is 2018-06-21aRagexeRE I'm just using this one to test some newer stuffs, like the barter system yeah, this client seems to crash... probably because of gravity ... doing that ragexe/ragexere name restriction .. also can't enable zoom out, and can't remove chat limit ...
  24. why not? prontera,155,185,5 script quest 1_F_MARIA,{ mes "quest giver"; next; for ( [email protected] = 0; [email protected] < 3; [email protected] ) [email protected]$[[email protected]] = sprintf( _$( "%sQuest %d" ), F_MesColor((quest > [email protected] *2)? C_GRAY : C_BLACK), [email protected] +1 ); [email protected] = select( implode( [email protected]$, ":" ) ) -1; [email protected] = [email protected] *2; if ( quest > [email protected] ) { mes "you have completed this quest"; close; } else if ( quest < [email protected] ) { mes "you can't take this quest yet."; close; } mesf "Go talk to npc %d", [email protected] +1; quest = [email protected] +1; close; } function script F_quest_state { [email protected] = getarg(0); [email protected] = ([email protected] -1) *2 +1; if ( quest == [email protected] ) { dispbottom sprintf( _$( "complete %d" ), [email protected] ); quest = [email protected] +1; } end; } prontera,150,180,5 script npc 1 1_F_MARIA,{ F_quest_state(1); } prontera,155,180,5 script npc 2 1_F_MARIA,{ F_quest_state(2); } prontera,160,180,5 script npc 3 1_F_MARIA,{ F_quest_state(3); } prontera,160,185,5 script reset 1_F_MARIA,{ quest = 0; } and this is quest log with achievement system { Id: 49920 Name: "Quest 1" }, { Id: 49921 Name: "Quest 2" }, { Id: 49922 Name: "Quest 3" }, [49920] = { Title = "Quest 1", IconName = "ico_nq.bmp", Description = { "Talk to <NAVI>NPC 1<INFO>prontera,150,180,</INFO></NAVI>" }, Summary = "Talk to NPC 1", NpcSpr = "1_F_MARIA", NpcNavi = "prontera", NpcPosX = 150, NpcPosY = 180, }, [49921] = { Title = "Quest 2", IconName = "ico_nq.bmp", Description = { "Talk to <NAVI>NPC 2<INFO>prontera,155,180,</INFO></NAVI>" }, Summary = "Talk to NPC 2", NpcSpr = "1_F_MARIA", NpcNavi = "prontera", NpcPosX = 155, NpcPosY = 180, }, [49922] = { Title = "Quest 3", IconName = "ico_nq.bmp", Description = { "Talk to <NAVI>NPC 3<INFO>prontera,160,180,</INFO></NAVI>" }, Summary = "Talk to NPC 3", NpcSpr = "1_F_MARIA", NpcNavi = "prontera", NpcPosX = 160, NpcPosY = 180, } { Id: 109993 Name: "Custom Quest" Type: "ACH_QUEST" Objectives: { *1: { Description: "Complete Quest 1" } *2: { Description: "Complete Quest 2" } *3: { Description: "Complete Quest 3" } } Points: 0 }, [109993] = { UI_Type = 0, group = "CHATTING", major = 4, minor = 0, title = "Custom Quest", content = { summary = "Visit the Quest Giver", details = "Visit the Quest Giver." }, resource = { [1] = { text = "Complete Quest 1" }, [2] = { text = "Complete Quest 2" }, [3] = { text = "Complete Quest 3" } }, score = 0 }, prontera,155,185,5 script quest 1_F_MARIA,{ mes "quest giver"; next; for ( [email protected] = 0; [email protected] < 3; [email protected] ) [email protected]$[[email protected]] = sprintf( _$( "%sQuest %d" ), F_MesColor((questprogress( 49920+ [email protected] ) == 2)? C_GRAY : C_BLACK), [email protected] +1 ); [email protected] = select( implode( [email protected]$, ":" ) ) -1; [email protected] = 49920+ [email protected]; if ( questprogress([email protected]) == 2 ) { mes "you have completed this quest"; close; } else if ( [email protected] == 49920 ); // break; else if ( questprogress([email protected] -1) != 2 ) { mes "you can't take this quest yet."; close; } mesf "Go talk to npc %d", [email protected] +1; if ( questprogress([email protected]) == 0 ) setquest [email protected]; close; } function script F_quest_state { [email protected] = getarg(0); [email protected] = [email protected] -1 + 49920; if ( questprogress([email protected]) == 1 ) { completequest [email protected]; dispbottom sprintf( _$( "complete %d" ), [email protected] ); achievement_progress 109993, [email protected], 1, 1; } end; } prontera,150,180,5 script npc 1 1_F_MARIA,{ F_quest_state(1); } prontera,155,180,5 script npc 2 1_F_MARIA,{ F_quest_state(2); } prontera,160,180,5 script npc 3 1_F_MARIA,{ F_quest_state(3); } prontera,160,185,5 script reset 1_F_MARIA,{ for ( [email protected] = 49920; [email protected] <= 49922; [email protected] ) if ( questprogress([email protected]) ) erasequest([email protected]); end; } have fun playing with it actually this is very simple script, just wanna play around a little bit
  25. the latest available KRO client download... https://rathena.org/board/topic/106413-kro-full-client-2019-02-25-includes-bgm-rsu/ so I try download the nearest hexed client ... http://nemo.herc.ws/clients/2019-02-20aRagexeRE/ Everything seems to be working fine in-game the problem is during exit the client, it just crash ... 1. press Alt+F4 2. click -> Game Option -> Exit to Windows button exit the program in both methods also crash I noticed that when click -> Game Option -> Exit to Windows button, my mouse cursor stuck in-game @4144 9 Disable 1rag1 type parameters (Recommended) 13 Disable Ragexe Filename Check (Recommended) 23 Enable /who command (Recommended) 34 Enable /showname (Recommended) 35 Read Data Folder First 36 Read msgstringtable.txt (Recommended) 38 Remove Gravity Ads (Recommended) 39 Remove Gravity Logo (Recommended) 41 Disable Nagle Algorithm (Recommended) 44 Translate Client (Recommended) 46 Use Normal Guild Brackets (Recommended) 47 Use Ragnarok Icon 49 Enable Multiple GRFs (Recommended) 64 @ Bug Fix (Recommended) 65 Load Custom lua file instead of iteminfo*.lub (Recommended) 84 Remove Serial Display (Recommended) 90 Enable DNS Support (Recommended) 208 Restore Cash Shop Icon 212 Restore Roulette 213 Disable Help Message on Login (Recommended) 230 Always load Korea ExternalSettings lua file 231 Remove hardcoded address/port (Recommended) 232 Restore old login packet (Recommended)