Jump to content

Nightmareish Jitterbug (Episode 14.3)


Recommended Posts


  • Group:  Members
  • Topic Count:  14
  • Topics Per Day:  0.00
  • Content Count:  265
  • Reputation:   95
  • Joined:  09/30/14
  • Last Seen:  

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

 

KJaExLg.png

  • Upvote 6
  • Love 1
  • MVP 1
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  10
  • Topics Per Day:  0.00
  • Content Count:  62
  • Reputation:   6
  • Joined:  08/29/15
  • Last Seen:  

Thanks Nova :)

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  45
  • Topics Per Day:  0.01
  • Content Count:  715
  • Reputation:   83
  • Joined:  01/05/12
  • Last Seen:  

Thanks for sharing :3 but but wait Y U NO ADD MOB SKILL

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  4
  • Topics Per Day:  0.00
  • Content Count:  40
  • Reputation:   4
  • Joined:  01/13/13
  • Last Seen:  

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">;

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  16
  • Topics Per Day:  0.00
  • Content Count:  657
  • Reputation:   662
  • Joined:  11/12/12
  • Last Seen:  

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]
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  4
  • Topics Per Day:  0.00
  • Content Count:  40
  • Reputation:   4
  • Joined:  01/13/13
  • Last Seen:  

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

post-14069-0-28623900-1453317694_thumb.jpg

Edited by juanfu
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  16
  • Topics Per Day:  0.00
  • Content Count:  657
  • Reputation:   662
  • Joined:  11/12/12
  • Last Seen:  

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, " + .@p_name$ + ", is entering the " + .@md_name$ + ".", bc_map, "0x00ff99";
break;

 

If that doesn't help, then I'm afraid I do not have a solution for you =l.

Link to comment
Share on other sites

  • 2 weeks later...

  • Group:  Members
  • Topic Count:  8
  • Topics Per Day:  0.00
  • Content Count:  38
  • Reputation:   6
  • Joined:  08/17/12
  • Last Seen:  

Thanks nova for sharing. Is this script applicable to pre-renewal servers?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  14
  • Topics Per Day:  0.00
  • Content Count:  265
  • Reputation:   95
  • Joined:  09/30/14
  • Last Seen:  

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.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  8
  • Topics Per Day:  0.00
  • Content Count:  38
  • Reputation:   6
  • Joined:  08/17/12
  • Last Seen:  

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

Link to comment
Share on other sites


  • Group:  Developer
  • Topic Count:  36
  • Topics Per Day:  0.01
  • Content Count:  587
  • Reputation:   431
  • Joined:  01/26/16
  • Last Seen:  

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 by secretdataz
  • Upvote 1
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  16
  • Topics Per Day:  0.00
  • Content Count:  657
  • Reputation:   662
  • Joined:  11/12/12
  • Last Seen:  

FWkECbT.jpg

 

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

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  4
  • Topics Per Day:  0.00
  • Content Count:  27
  • Reputation:   0
  • Joined:  10/18/13
  • Last Seen:  

DbCl9uy.png

 

唉...我真的不會改,我太爛了= =

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  16
  • Topics Per Day:  0.00
  • Content Count:  657
  • Reputation:   662
  • Joined:  11/12/12
  • Last Seen:  

 

 

唉...我真的不會改,我太爛了= =

 

You need this: https://rathena.org/board/topic/104496-nightmareish-jitterbug-episode-143/?p=296127

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  36
  • Topics Per Day:  0.01
  • Content Count:  383
  • Reputation:   121
  • Joined:  03/31/12
  • Last Seen:  

Thank you Nova and Tokei!

Link to comment
Share on other sites

  • 1 month later...

  • Group:  Members
  • Topic Count:  3
  • Topics Per Day:  0.00
  • Content Count:  14
  • Reputation:   0
  • Joined:  04/04/16
  • Last Seen:  

newoz npc error?23m29s2.png

Edited by Fae
Link to comment
Share on other sites

  • 3 weeks later...

  • Group:  Members
  • Topic Count:  3
  • Topics Per Day:  0.00
  • Content Count:  164
  • Reputation:   12
  • Joined:  01/03/12
  • Last Seen:  

@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 by exneval
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  16
  • Topics Per Day:  0.00
  • Content Count:  657
  • Reputation:   662
  • Joined:  11/12/12
  • Last Seen:  

It's a value set source-wise after calling menu; it gives you the latest selected option.

  • Upvote 1
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  3
  • Topics Per Day:  0.00
  • Content Count:  164
  • Reputation:   12
  • Joined:  01/03/12
  • Last Seen:  

@Tokei

Argh.. you're right... sorry, I'm verynoob at scripting...

Thanks~

Link to comment
Share on other sites

  • 1 month later...

  • Group:  Members
  • Topic Count:  9
  • Topics Per Day:  0.00
  • Content Count:  79
  • Reputation:   6
  • Joined:  04/20/16
  • Last Seen:  

great job :D got it to work

Edited by spinzaku
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  3
  • Topics Per Day:  0.00
  • Content Count:  14
  • Reputation:   0
  • Joined:  04/04/16
  • Last Seen:  

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

2hguu76.png

 

never mind as i can see the instances_db is updated

26,Nightmarish Jitterbug,3300,300,1@jtb,16,18,1@jtb

they put IdleTimeOut

// Structure of Database:
// ID,Name,LimitTime,IdleTimeOut,EnterMap,EnterX,EnterY,Map2,...,Map255

thanks anyway ^^

Edited by Fae
Link to comment
Share on other sites

  • 2 weeks later...

  • Group:  Members
  • Topic Count:  162
  • Topics Per Day:  0.04
  • Content Count:  737
  • Reputation:   47
  • Joined:  03/12/14
  • Last Seen:  

 

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?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  4
  • Topics Per Day:  0.00
  • Content Count:  40
  • Reputation:   4
  • Joined:  01/13/13
  • Last Seen:  

\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

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...