MasterOfMuppets Posted December 7, 2016 Group: Members Topic Count: 5 Topics Per Day: 0.00 Content Count: 6 Reputation: 25 Joined: 11/16/16 Last Seen: March 29, 2018 Share Posted December 7, 2016 Hello. This is a rough version of the official wave mode forest instance which I made for my upcoming episode 15.1 pre-renewal server. It's a custom implementation which is mostly official except for a few tweaks to dialogue and some quirks due to limitations in rAthena that I found while scripting it. The two main differences are the fact that you can't inflict status changes on monsters in rAthena during the unitwalkto state because they will just keep moving even though they're frozen or stone cursed so I made them status immune, and they have the original speed of the original enemies they correspond to(unlike on iRO where they're a bit slower and they sometimes stop walking for a while). I'm attaching the script itself because it's a bit big to paste. To make it work you need to make a small modification to script.c to make unitkill, unitwalk and unitwalkto allow a GID of 0 to reference the activator of OnTouchNPC triggers. I'm attaching a unified .diff for it. Add/replace this in mob_db.txt: 2401,G_PORING,Poring,Poring,1,60,1,0,0,1,8,9,2,5,6,1,1,0,6,5,10,12,1,3,21,0x4200061,400,1872,672,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 [...] 2569,G_ANOPHELES,Anopheles,Anopheles,95,7238,1,0,0,1,242,260,7,10,64,60,42,58,88,42,10,12,0,4,64,0x4200061,170,1084,2304,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 2570,G_BREEZE,Breeze,Breeze,92,6755,1,0,0,2,379,431,83,32,75,101,46,35,66,55,10,12,1,0,64,0x4200061,100,140,384,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 2571,G_BUTOIJO,Butoijo,Butoijo,88,7524,0,0,0,1,358,460,77,12,50,65,30,30,106,44,10,12,2,6,43,0x4200061,200,1100,483,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 2572,G_CARAMEL,Caramel,Caramel,25,518,1,0,0,1,67,76,39,0,19,10,15,10,32,5,10,12,0,2,22,0x4200061,200,1604,840,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 2573,G_CHONCHON,Chonchon,Chonchon,5,57,1,0,0,1,11,14,27,0,13,4,4,0,8,5,10,12,0,4,24,0x4200061,200,1076,576,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 2574,G_CIVIL_SERVANT,Civil Servant,Mao Guai,89,5292,1,0,0,2,276,337,90,56,67,76,40,65,62,30,10,12,1,2,44,0x4200061,200,1257,528,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 2575,G_COCO,Coco,Coco,38,836,1,0,0,1,71,82,37,0,22,13,30,20,38,10,10,12,0,2,22,0x4200061,150,1864,864,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 2576,G_CREAMY,Creamy,Creamy,23,378,1,0,0,1,61,62,28,20,16,1,1,0,1,20,10,12,0,4,24,0x4200061,150,1136,720,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 2577,G_FABRE,Fabre,Fabre,6,72,1,0,0,1,12,15,24,0,12,5,5,5,12,5,10,12,0,4,22,0x4200061,400,1672,672,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 2578,G_HORN,Horn,Horn,32,705,1,0,0,1,64,75,52,8,10,12,36,25,21,35,10,12,1,4,22,0x4200061,200,1528,528,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 2579,G_HYLOZOIST,Heirozoist,Hylozoist,102,12000,1,0,0,1,268,349,101,68,97,67,72,88,69,60,10,12,0,6,47,0x4200061,155,741,1536,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 2580,G_KAHO,Kaho,Kaho,98,7045,1,0,0,1,504,728,106,55,81,61,55,65,66,73,10,12,1,6,83,0x4200061,150,1700,1000,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 2581,G_LUDE,Lude,Lude,101,11574,1,0,0,2,218,296,90,53,97,38,55,82,69,55,10,12,0,1,29,0x4200061,150,890,960,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 2582,G_LUNATIC,Lunatic,Lunatic,3,55,1,0,0,1,11,12,18,0,10,3,3,0,8,5,10,12,0,2,60,0x4200061,200,1456,456,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 2583,G_MARTIN,Martin,Martin,39,1056,1,0,0,1,70,88,58,19,25,29,28,15,30,10,10,12,0,2,42,0x4200061,300,1480,480,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 2584,G_MINERAL,Mineral,Mineral,96,8300,1,0,0,1,578,635,127,23,70,61,40,50,62,50,10,12,0,0,40,0x4200061,250,648,480,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 2585,G_MOLE,Mole,Holden,85,6228,1,0,0,9,260,309,82,16,53,65,31,30,48,31,10,12,0,2,42,0x4200061,300,1400,960,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 2586,G_NERAID,Neraid,Nereid,98,9550,1,0,0,1,196,267,100,37,97,45,60,30,69,50,10,12,0,2,22,0x4200061,200,776,576,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 2587,G_OBSIDIAN,Obsidian,Obsidian,97,10088,1,0,0,1,590,670,129,37,84,38,40,60,53,50,10,12,0,0,42,0x4200061,350,720,864,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 2588,G_PITMAN,Pitman,Pitman,90,7208,1,0,0,1,182,242,104,48,78,56,45,35,50,30,10,12,2,1,42,0x4200061,180,960,336,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 2589,G_POPORING,Poporing,Poporing,30,524,1,0,0,1,74,94,36,17,17,26,20,18,36,5,10,12,1,3,25,0x4200061,300,1672,672,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 2590,G_ROCKER,Rocker,Rocker,15,185,1,0,0,1,19,24,16,3,12,18,8,10,17,5,10,12,1,4,22,0x4200061,200,1864,864,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 2591,G_SAVAGE,Savage,Savage,59,2301,1,0,0,1,172,195,126,3,56,21,54,10,47,15,10,12,2,2,42,0x4200061,150,1960,960,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 2592,G_SIORAVA,Siorava,Siorava,87,6500,1,0,0,1,450,660,20,40,10,40,66,70,67,10,10,12,0,0,21,0x4200061,250,1536,1296,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 2593,G_SIROMA,Siroma,Siroma,98,11910,1,0,0,1,389,489,64,38,83,43,50,70,80,60,10,12,0,0,61,0x4200061,180,432,648,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 2594,G_SNOWIER,Snowier,Snowier,103,13934,1,0,0,2,510,592,121,47,91,61,67,45,61,55,10,12,2,0,41,0x4200061,220,936,1020,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 2595,G_STAINER,Stainer,Stainer,21,365,1,0,0,1,65,74,22,25,10,10,24,0,39,15,10,12,0,4,24,0x4200061,200,1688,1188,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 2596,G_STAPO,Stapo,Stapo,95,8805,1,0,0,1,364,415,129,36,20,46,25,35,53,30,10,12,0,0,42,0x4200061,300,936,792,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 2597,G_STEEL_CHONCHON,Steel Chonchon,Steel Chonchon,48,1199,1,0,0,1,77,112,57,20,30,62,20,10,56,10,10,12,0,4,24,0x4200061,150,1076,576,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 2598,G_UNGOLIANT,Ungoliant,Ungoliant,94,17070,1,0,0,1,689,733,108,28,71,70,58,43,92,38,10,12,2,4,45,0x4200061,350,420,576,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 2599,G_WILD_RIDER,Wild Rider,Wild Rider,95,33300,0,0,0,1,1320,1848,480,22,100,100,30,70,100,30,10,12,2,5,41,0x4200061,150,432,432,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 2600,G_WOLF,Wolf,Wolf,45,1219,1,0,0,1,80,91,55,3,27,24,30,15,33,5,10,12,1,2,22,0x4200061,200,1054,504,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 2601,G_YOYO,Yoyo,Yoyo,38,898,1,0,0,1,63,74,40,0,20,11,34,20,19,10,10,12,0,2,22,0x4200061,200,1054,54,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 2602,G_ZIPPER_BEAR,Zipper Bear,Zipper Bear,90,6620,1,0,0,1,410,467,130,40,68,51,50,35,58,20,10,12,1,2,27,0x4200061,155,780,1008,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 And add this to instance_db.txt: <Unused ID>,Wave Mode Forest,3600,300,1@def01,46,64 It should now be working assuming that you compiled your server correctly and you've put everything in the right place Screenshots: http://imgur.com/a/TprVU Most of you probably don't know me but I used to develop for eAthena a long time ago and I'm coming back to work on pservers. I will be making a lot more things both script- and sourcewise and sharing them with the public soon. My goal is to make rAthena a little bit more update until leaked scripts can be implemented for everything. script.diff WaveMode.txt 11 Quote Link to comment Share on other sites More sharing options...
Capuche Posted December 7, 2016 Group: Developer Topic Count: 10 Topics Per Day: 0.00 Content Count: 2407 Reputation: 616 Joined: 07/05/12 Last Seen: March 20 Share Posted December 7, 2016 Hmm interesting. Are you planning to script the wave mode sky later ? Quote Link to comment Share on other sites More sharing options...
MasterOfMuppets Posted December 7, 2016 Group: Members Topic Count: 5 Topics Per Day: 0.00 Content Count: 6 Reputation: 25 Joined: 11/16/16 Last Seen: March 29, 2018 Author Share Posted December 7, 2016 34 minutes ago, Capuche said: Hmm interesting. Are you planning to script the wave mode sky later ? I will at some point. But that one is going to take a lot more work because the monsters there have a very special behavior that would likely need some more digging into the source code to get everything right. I played both of the instances in iRO and got the dialogue there, and there's one main difference between Forest and Sky. In Forest the monsters completely ignore you and in Sky they will attack you on sight but sometimes they lose interest and start walking towards the "goal". I don't think there's any way to emulate this behavior right now. 1 Quote Link to comment Share on other sites More sharing options...
Stolao Posted December 7, 2016 Group: Developer Topic Count: 48 Topics Per Day: 0.01 Content Count: 1443 Reputation: 344 Joined: 10/17/12 Last Seen: Sunday at 01:58 PM Share Posted December 7, 2016 Glad you finished it, hope we can get an official version soon but till then +1 Quote Link to comment Share on other sites More sharing options...
Zell Posted December 8, 2016 Group: Members Topic Count: 53 Topics Per Day: 0.01 Content Count: 412 Reputation: 266 Joined: 04/25/12 Last Seen: Saturday at 11:42 PM Share Posted December 8, 2016 Nice Quote Link to comment Share on other sites More sharing options...
Deleted User Posted December 8, 2016 Group: Members Topic Count: 22 Topics Per Day: 0.00 Content Count: 235 Reputation: 55 Joined: 12/02/11 Last Seen: February 26, 2021 Share Posted December 8, 2016 Great! Quote Link to comment Share on other sites More sharing options...
Darknessfmy Posted December 11, 2016 Group: Members Topic Count: 6 Topics Per Day: 0.00 Content Count: 78 Reputation: 12 Joined: 05/08/16 Last Seen: February 10, 2020 Share Posted December 11, 2016 Thank you ^^ Quote Link to comment Share on other sites More sharing options...
xShiKiTax Posted December 13, 2016 Group: Members Topic Count: 2 Topics Per Day: 0.00 Content Count: 7 Reputation: 0 Joined: 07/06/13 Last Seen: March 21, 2017 Share Posted December 13, 2016 Does this script works in all rathena revisions? I currently use a version from 2015 ty Quote Link to comment Share on other sites More sharing options...
Stolao Posted December 14, 2016 Group: Developer Topic Count: 48 Topics Per Day: 0.01 Content Count: 1443 Reputation: 344 Joined: 10/17/12 Last Seen: Sunday at 01:58 PM Share Posted December 14, 2016 10 hours ago, xShiKiTax said: Does this script works in all rathena revisions? I currently use a version from 2015 ty Best way to find out is to test it on your revision. Quote Link to comment Share on other sites More sharing options...
Bachir Zitout Posted December 18, 2016 Group: Members Topic Count: 14 Topics Per Day: 0.00 Content Count: 67 Reputation: 0 Joined: 07/29/12 Last Seen: March 16 Share Posted December 18, 2016 do i need to recompile my server? Quote Link to comment Share on other sites More sharing options...
srhmike Posted December 19, 2016 Group: Members Topic Count: 6 Topics Per Day: 0.00 Content Count: 261 Reputation: 53 Joined: 11/11/16 Last Seen: February 8, 2024 Share Posted December 19, 2016 Yes you do. Quote Link to comment Share on other sites More sharing options...
Bes Posted January 12, 2017 Group: Members Topic Count: 5 Topics Per Day: 0.00 Content Count: 24 Reputation: 3 Joined: 11/30/16 Last Seen: Saturday at 11:14 PM Share Posted January 12, 2017 How to fix this error? script:add_word: invalid word. A word consists of undercores and/or alphanumeric characters, and valid variable prefixes/postfixes. 364 : else 365 : mapannounce instance_mapname("1@def01"),"-- Wave " + 'WaveNum + " --",bc_map; 366 : switch('WaveNum % 70) 367 : { 368 : case 1: * 369 : for(set .@i,0; .@i < 20; '+'+.@i) Quote Link to comment Share on other sites More sharing options...
Azeroth Posted January 12, 2017 Group: Members Topic Count: 36 Topics Per Day: 0.01 Content Count: 383 Reputation: 121 Joined: 03/31/12 Last Seen: January 29, 2023 Share Posted January 12, 2017 6 hours ago, Shanidy said: How to fix this error? script:add_word: invalid word. A word consists of undercores and/or alphanumeric characters, and valid variable prefixes/postfixes. 364 : else 365 : mapannounce instance_mapname("1@def01"),"-- Wave " + 'WaveNum + " --",bc_map; 366 : switch('WaveNum % 70) 367 : { 368 : case 1: * 369 : for(set .@i,0; .@i < 20; '+'+.@i) You need to update your rAthena to latest one. or you can change it to Quote .@i++ Quote Link to comment Share on other sites More sharing options...
Bes Posted January 12, 2017 Group: Members Topic Count: 5 Topics Per Day: 0.00 Content Count: 24 Reputation: 3 Joined: 11/30/16 Last Seen: Saturday at 11:14 PM Share Posted January 12, 2017 Thank you very much I'll try it later Quote Link to comment Share on other sites More sharing options...
Bes Posted January 13, 2017 Group: Members Topic Count: 5 Topics Per Day: 0.00 Content Count: 24 Reputation: 3 Joined: 11/30/16 Last Seen: Saturday at 11:14 PM Share Posted January 13, 2017 (edited) New error din_setunitdata: Error in finding object with given game ID 0! [Debug]: Source (NPC): WaveModeForestSystem at 0011@def01 (1,1) [Error]: buildin_unitwalk: Invalid unit with ID '0'. [Debug]: Source (NPC): WaveModeForestSystem at 0011@def01 (1,1) [Warning]: buildin_setunitdata: Error in finding object with given game ID 0! [Debug]: Source (NPC): WaveModeForestSystem at 0011@def01 (1,1) [Warning]: buildin_setunitdata: Error in finding object with given game ID 0! [Debug]: Source (NPC): WaveModeForestSystem at 0011@def01 (1,1) [Error]: buildin_unitwalk: Invalid unit with ID '0'. [Debug]: Source (NPC): WaveModeForestSystem at 0011@def01 (1,1) [Warning]: buildin_setunitdata: Error in finding object with given game ID 0! [Debug]: Source (NPC): WaveModeForestSystem at 0011@def01 (1,1) [Warning]: buildin_setunitdata: Error in finding object with given game ID 0! [Debug]: Source (NPC): WaveModeForestSystem at 0011@def01 (1,1) [Error]: buildin_unitwalk: Invalid unit with ID '0'. Edited January 13, 2017 by Emistry Please use CODEBOX. Quote Link to comment Share on other sites More sharing options...
GM Henry Posted January 15, 2017 Group: Members Topic Count: 7 Topics Per Day: 0.00 Content Count: 44 Reputation: 9 Joined: 03/07/13 Last Seen: April 12, 2023 Share Posted January 15, 2017 Nice release cant wait for the full release of the script. Quote Link to comment Share on other sites More sharing options...
Quesooo Posted August 5, 2017 Group: Members Topic Count: 197 Topics Per Day: 0.07 Content Count: 883 Reputation: 28 Joined: 02/13/17 Last Seen: November 10, 2022 Share Posted August 5, 2017 when i restart the server and try to enter the instance map server disconnected Quote Link to comment Share on other sites More sharing options...
Quesooo Posted October 19, 2017 Group: Members Topic Count: 197 Topics Per Day: 0.07 Content Count: 883 Reputation: 28 Joined: 02/13/17 Last Seen: November 10, 2022 Share Posted October 19, 2017 is there any updated script and diffs for this?? since rathena update emulator from script.c to script.cpp Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.