Nova 86 Posted January 19, 2016 In order to give back to this community, and as a huge thank you to all of those who put work into the emulator, we've decided to share our Nightmarish Jitterbug instance. This instance was scripted by Tokei, with YouTube videos as sources, as well as me running it on iRO. A huge thank you to our ex-player Deegs for lending me his iRO RK in order to run the content. A small amount of dialogue is missing, and you're welcome to contribute if you run into the actual lines. They're marked in the script file itself. Item drop rates were the only thing really customized, enjoy the release! http://novaragnarok.com/download/NightmarishJitterbug.txt 6 1 1 Quote Share this post Link to post Share on other sites
Lelouch vi Britannia 73 Posted January 20, 2016 Thanks for sharing :3 but but wait Y U NO ADD MOB SKILL Quote Share this post Link to post Share on other sites
juanfu 3 Posted January 20, 2016 i get a error here function script JitDiag { mes "[" + getarg(0) + "]"; mes getarg(3); npctalk getarg(3), instance_npcname(getarg(0) + getarg(4, "#" + strnpcinfo(2))); npctalk in the script is different from rathena i think npctalk <"message">; Quote Share this post Link to post Share on other sites
Tokei 384 Posted January 20, 2016 i get a error here function script JitDiag { mes "[" + getarg(0) + "]"; mes getarg(3); npctalk getarg(3), instance_npcname(getarg(0) + getarg(4, "#" + strnpcinfo(2))); npctalk in the script is different from rathena i think npctalk <"message">; Completely forgot about that, to avoid using hundreds of donpcevents, we customized npctalk with an optional parameter to target a specific NPC. Here: /*========================================== * npctalk (sends message to surrounding area) *------------------------------------------*/ BUILDIN_FUNC(npctalk) { const char* str; struct npc_data* nd; str = script_getstr(st,2); if (script_hasdata(st, 3)) { nd = npc_name2id(script_getstr(st, 3)); } else { nd = (struct npc_data *)map_id2bl(st->oid); } if(nd) { char name[NAME_LENGTH], message[256]; safestrncpy(name, nd->name, sizeof(name)); strtok(name, "#"); // discard extra name identifier if present safesnprintf(message, sizeof(message), "%s : %s", name, str); clif_disp_overhead(&nd->bl, message); } return SCRIPT_CMD_SUCCESS; } BUILDIN_DEF(npctalk,"s?"), // [Valaris] Quote Share this post Link to post Share on other sites
juanfu 3 Posted January 20, 2016 (edited) i edit npctalk, now the instance work but look the screenshot chat edit: if you press "Hurry" option this is show in mapserver Error: script:getelementofarray: illegal scope debug: Data: variable name='jitoptions' edit2: i change all jitoptions for @jitoptions (temp player array) and it works edit3: npctalk fixed, my fault, ty Edited January 21, 2016 by juanfu Quote Share this post Link to post Share on other sites
Tokei 384 Posted January 20, 2016 The chats would be because you didn't copy the npctalk function properly. I'm having no errors on a clean rA copy, so I couldn't really tell you what the issue is here with the jitoptions variable. I'm guessing your script engine is a bit outdated, so you could try and add the following : case 0: setquest 13181; setquest 13182; if (!jitoptions) { setarray jitoptions, -1, -1, -1, -1, 0;} mapannounce "moc_para01", strcharinfo(0) + " of the party, " + [email protected]_name$ + ", is entering the " + [email protected]_name$ + ".", bc_map, "0x00ff99"; break; If that doesn't help, then I'm afraid I do not have a solution for you =l. Quote Share this post Link to post Share on other sites
Sekai RO 6 Posted January 31, 2016 Thanks nova for sharing. Is this script applicable to pre-renewal servers? Quote Share this post Link to post Share on other sites
Nova 86 Posted February 1, 2016 The mobs are definitely not balanced for pre-renewal, but you could easily add our source code addons and just modify the mob_db entries to fit pre-renewal. Quote Share this post Link to post Share on other sites
Sekai RO 6 Posted February 3, 2016 How can i Add the source code addons sir? Can you PLEASE help me. Coz I'd really like to put this on my server but I don't know much about src modifications Quote Share this post Link to post Share on other sites
Secrets 383 Posted February 4, 2016 (edited) How can i Add the source code addons sir? Can you PLEASE help me. Coz I'd really like to put this on my server but I don't know much about src modifications Replace your builtin npctalk in script.c with one @Tokei provided. Edited February 4, 2016 by secretdataz 1 Quote Share this post Link to post Share on other sites
Tokei 384 Posted February 5, 2016 Your script engine appears to be outdated, you'll have to replace those with callfunc("JitDiag", "Gelkah", ...) or you can use this link instead: http://novaragnarok.com/download/NightmarishJitterbug_oldemu.txt Quote Share this post Link to post Share on other sites
LOVE0825 0 Posted February 6, 2016 唉...我真的不會改,我太爛了= = Quote Share this post Link to post Share on other sites
Tokei 384 Posted February 6, 2016 唉...我真的不會改,我太爛了= = You need this: https://rathena.org/board/topic/104496-nightmareish-jitterbug-episode-143/?p=296127 Quote Share this post Link to post Share on other sites
Azeroth 119 Posted February 6, 2016 Thank you Nova and Tokei! Quote Share this post Link to post Share on other sites
Fae 0 Posted April 5, 2016 (edited) newoz npc error? Edited April 5, 2016 by Fae Quote Share this post Link to post Share on other sites
exneval 12 Posted April 20, 2016 (edited) @Tokei @Nova Didn't see value of temp. char. variable @menu for jitoptions[0..4] get define. It should be defined in Newoz#09 while selecting options. Edited April 20, 2016 by exneval Quote Share this post Link to post Share on other sites
Tokei 384 Posted April 20, 2016 It's a value set source-wise after calling menu; it gives you the latest selected option. 1 Quote Share this post Link to post Share on other sites
exneval 12 Posted April 21, 2016 @Tokei Argh.. you're right... sorry, I'm verynoob at scripting... Thanks~ Quote Share this post Link to post Share on other sites
spinzaku 5 Posted June 17, 2016 (edited) great job got it to work Edited June 23, 2016 by spinzaku Quote Share this post Link to post Share on other sites
Fae 0 Posted June 24, 2016 (edited) After the Patch of Rathena i got this error, did the change the instance_create thing?when i click the "Open the Dimensional Portal"the error will appear, and the reservation is Failed never mind as i can see the instances_db is updated26,Nightmarish Jitterbug,3300,300,[email protected],16,18,[email protected]they put IdleTimeOut// Structure of Database:// ID,Name,LimitTime,IdleTimeOut,EnterMap,EnterX,EnterY,Map2,...,Map255thanks anyway ^^ Edited June 24, 2016 by Fae Quote Share this post Link to post Share on other sites
Keysito 11 Posted June 26, 2016 Because of this: https://rathena.org/board/topic/106099-instance-mode-expansion/ Quote Share this post Link to post Share on other sites
Bringer 27 Posted July 10, 2016 i get a error here function script JitDiag { mes "[" + getarg(0) + "]"; mes getarg(3); npctalk getarg(3), instance_npcname(getarg(0) + getarg(4, "#" + strnpcinfo(2))); npctalk in the script is different from rathena i think npctalk <"message">; Completely forgot about that, to avoid using hundreds of donpcevents, we customized npctalk with an optional parameter to target a specific NPC. Here: /*========================================== * npctalk (sends message to surrounding area) *------------------------------------------*/ BUILDIN_FUNC(npctalk) { const char* str; struct npc_data* nd; str = script_getstr(st,2); if (script_hasdata(st, 3)) { nd = npc_name2id(script_getstr(st, 3)); } else { nd = (struct npc_data *)map_id2bl(st->oid); } if(nd) { char name[NAME_LENGTH], message[256]; safestrncpy(name, nd->name, sizeof(name)); strtok(name, "#"); // discard extra name identifier if present safesnprintf(message, sizeof(message), "%s : %s", name, str); clif_disp_overhead(&nd->bl, message); } return SCRIPT_CMD_SUCCESS; } BUILDIN_DEF(npctalk,"s?"), // [Valaris] where i need put this? Quote Share this post Link to post Share on other sites
juanfu 3 Posted July 11, 2016 \src\map\script.c find npctalk function and replace it then search for this line BUILDIN_DEF(npctalk,"s"), // [Valaris] and change it for this BUILDIN_DEF(npctalk,"s?"), // [Valaris] then recompile the emulator Quote Share this post Link to post Share on other sites