Jump to content
  • 0

NPC:Scriptcont: unexpected state '2' for continue call.


LearningRO

Question


  • Group:  Members
  • Topic Count:  107
  • Topics Per Day:  0.02
  • Content Count:  770
  • Reputation:   69
  • Joined:  02/10/12
  • Last Seen:  

again ? i got this spam error 
 

[Error]: npc_scriptcont: unexpected state '2' for continue call. (AID: 2000314 CID: 150835)
[Debug]: npc_scriptcont: 'Unknown NPC' (sd->npc_id=0) is not Candy Maker (id=110150198).
[Debug]: npc_scriptcont: 'Unknown NPC' (sd->npc_id=0) is not Candy Maker (id=110150198).
[Error]: npc_scriptcont: unexpected state '2' for continue call. (AID: 2000314 CID: 150835)
[Debug]: npc_scriptcont: 'Unknown NPC' (sd->npc_id=0) is not Candy Maker (id=110150198).
[Debug]: npc_scriptcont: 'Unknown NPC' (sd->npc_id=0) is not Candy Maker (id=110150198).
[Error]: npc_scriptcont: unexpected state '2' for continue call. (AID: 2000314 CID: 150835)
[Debug]: npc_scriptcont: 'Unknown NPC' (sd->npc_id=0) is not Candy Maker (id=110150198).
[Debug]: npc_scriptcont: 'Unknown NPC' (sd->npc_id=0) is not Candy Maker (id=110150198).
[Error]: npc_scriptcont: unexpected state '2' for continue call. (AID: 2000314 CID: 150835)
[Debug]: npc_scriptcont: 'Unknown NPC' (sd->npc_id=0) is not Candy Maker (id=110150198).
[Debug]: npc_scriptcont: 'Unknown NPC' (sd->npc_id=0) is not Candy Maker (id=110150198).

how about this error @Functor

 

else if (brazil_gua == 11) {
		mes "[Candy Maker]";
		mes "Guarana candy. That was the most unique masterpiece in my life for sure!";
		next;
		mes "[Candy Maker]";
		mes "Since you helped me, guarana supply has been steadily rising.";
		mes "So, naturally I'm back to making guarana candy.";
		next;
		mes "[Candy Maker]";
		mes "What about it? Wanna buy some?";
		mes "It's 4000 zeny each.";
		next;
		switch(select("Buy a Guarana Candy.:Cancel.")) {
		case 1:
			if (Zeny > 3999) {
				mes "[Candy Maker]";
				mes "Here is a delicious guarana candy.";
				Zeny = Zeny-4000;
				getitem 12414,1; //Guarana_Candy
				close;
			}
			else {
				mes "[Candy Maker]";
				mes "What? You should say before if you don't have money!";
				mes "Even if you are poor, I can't give this away for free.";
				close;
			}
		case 2:
			mes "[Candy Maker]";
			mes "Sometimes some people don't like it due to it's arousal effect.";
			close;
		}
		close;
	}

Btw it's chain quest ?

Edited by melv0
Link to comment
Share on other sites

19 answers to this question

Recommended Posts

  • 0

  • Group:  Development Manager
  • Topic Count:  56
  • Topics Per Day:  0.01
  • Content Count:  732
  • Reputation:   525
  • Joined:  12/13/11
  • Last Seen:  

That's because Hercules doesn't have it properly implemented. (See Git Hash: 842e30e).

Using progressbar in an item script isn't something I would suggest as there is a bit of logic behind it that will break any bonuses after the progressbar if the player walks.

  • MVP 3
Link to comment
Share on other sites

  • 1

  • Group:  Members
  • Topic Count:  3
  • Topics Per Day:  0.00
  • Content Count:  351
  • Reputation:   263
  • Joined:  09/08/13
  • Last Seen:  

On 2/14/2019 at 1:25 AM, melv0 said:

how about this error @Functor

It is attempt to use exploit, but you have applied fix. So, you can ignore it.

Edited by Functor
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  23
  • Topics Per Day:  0.01
  • Content Count:  228
  • Reputation:   19
  • Joined:  10/27/12
  • Last Seen:  

28 minutes ago, melv0 said:

again ? i got this spam error 
 


[Error]: npc_scriptcont: unexpected state '2' for continue call. (AID: 2000314 CID: 150835)
[Debug]: npc_scriptcont: 'Unknown NPC' (sd->npc_id=0) is not Candy Maker (id=110150198).
[Debug]: npc_scriptcont: 'Unknown NPC' (sd->npc_id=0) is not Candy Maker (id=110150198).
[Error]: npc_scriptcont: unexpected state '2' for continue call. (AID: 2000314 CID: 150835)
[Debug]: npc_scriptcont: 'Unknown NPC' (sd->npc_id=0) is not Candy Maker (id=110150198).
[Debug]: npc_scriptcont: 'Unknown NPC' (sd->npc_id=0) is not Candy Maker (id=110150198).
[Error]: npc_scriptcont: unexpected state '2' for continue call. (AID: 2000314 CID: 150835)
[Debug]: npc_scriptcont: 'Unknown NPC' (sd->npc_id=0) is not Candy Maker (id=110150198).
[Debug]: npc_scriptcont: 'Unknown NPC' (sd->npc_id=0) is not Candy Maker (id=110150198).
[Error]: npc_scriptcont: unexpected state '2' for continue call. (AID: 2000314 CID: 150835)
[Debug]: npc_scriptcont: 'Unknown NPC' (sd->npc_id=0) is not Candy Maker (id=110150198).
[Debug]: npc_scriptcont: 'Unknown NPC' (sd->npc_id=0) is not Candy Maker (id=110150198).

how about this error @Functor

If you be so kind, do show something from the script...  

preferably the part which consist of the continue call... or the whole script...

if not we be searching for needle in complete darkness.

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  107
  • Topics Per Day:  0.02
  • Content Count:  770
  • Reputation:   69
  • Joined:  02/10/12
  • Last Seen:  

4 minutes ago, utofaery said:

If you be so kind, do show something from the script...  

preferably the part which consist of the continue call... or the whole script...

if not we be searching for needle in complete darkness.

i was edit my first post

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  23
  • Topics Per Day:  0.01
  • Content Count:  228
  • Reputation:   19
  • Joined:  10/27/12
  • Last Seen:  

9 minutes ago, melv0 said:

i was edit my first post


		if (!countitem(6237)) {

What if you change to this??


		if (countitem(6237) < 1) { 

 

*vip_status(<type>,{"<character name>"})

		if (VIP_SCRIPT && vip_status(VIP_STATUS_ACTIVE))

 

VIP_SCRIPT  << I wonder what you trying to compare this with??

		if (vip_status(VIP_STATUS_ACTIVE) )

Wouldn't this be enough??

 VIP_STATUS_ACTIVE - VIP status: true if the player is a VIP or false if not
 

Edited by utofaery
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  107
  • Topics Per Day:  0.02
  • Content Count:  770
  • Reputation:   69
  • Joined:  02/10/12
  • Last Seen:  

6 minutes ago, utofaery said:


		if (!countitem(6237)) {

What if you change to this??



		if (countitem(6237) < 1) { 

sorry wrong part
 

else if (brazil_gua == 11) {
		mes "[Candy Maker]";
		mes "Guarana candy. That was the most unique masterpiece in my life for sure!";
		next;
		mes "[Candy Maker]";
		mes "Since you helped me, guarana supply has been steadily rising.";
		mes "So, naturally I'm back to making guarana candy.";
		next;
		mes "[Candy Maker]";
		mes "What about it? Wanna buy some?";
		mes "It's 4000 zeny each.";
		next;
		switch(select("Buy a Guarana Candy.:Cancel.")) {
		case 1:
			if (Zeny > 3999) {
				mes "[Candy Maker]";
				mes "Here is a delicious guarana candy.";
				Zeny = Zeny-4000;
				getitem 12414,1; //Guarana_Candy
				close;
			}
			else {
				mes "[Candy Maker]";
				mes "What? You should say before if you don't have money!";
				mes "Even if you are poor, I can't give this away for free.";
				close;
			}
		case 2:
			mes "[Candy Maker]";
			mes "Sometimes some people don't like it due to it's arousal effect.";
			close;
		}
		close;
	}

 

btw i can't reproduce that error ?

Edited by melv0
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  23
  • Topics Per Day:  0.01
  • Content Count:  228
  • Reputation:   19
  • Joined:  10/27/12
  • Last Seen:  

6 minutes ago, melv0 said:

sorry wrong part
 


else if (brazil_gua == 11) {
		mes "[Candy Maker]";
		mes "Guarana candy. That was the most unique masterpiece in my life for sure!";
		next;
		mes "[Candy Maker]";
		mes "Since you helped me, guarana supply has been steadily rising.";
		mes "So, naturally I'm back to making guarana candy.";
		next;
		mes "[Candy Maker]";
		mes "What about it? Wanna buy some?";
		mes "It's 4000 zeny each.";
		next;
		switch(select("Buy a Guarana Candy.:Cancel.")) {
		case 1:
			if (Zeny > 3999) {
				mes "[Candy Maker]";
				mes "Here is a delicious guarana candy.";
				Zeny = Zeny-4000;
				getitem 12414,1; //Guarana_Candy
				close;
			}
			else {
				mes "[Candy Maker]";
				mes "What? You should say before if you don't have money!";
				mes "Even if you are poor, I can't give this away for free.";
				close;
			}
		case 2:
			mes "[Candy Maker]";
			mes "Sometimes some people don't like it due to it's arousal effect.";
			close;
		}
		close;
	}

 

				Zeny = Zeny-4000;

Apart from simplifying this part nothing should be broken here..

				Zeny -= 4000;
Edited by utofaery
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  23
  • Topics Per Day:  0.01
  • Content Count:  228
  • Reputation:   19
  • Joined:  10/27/12
  • Last Seen:  

9 minutes ago, utofaery said:

*vip_status(<type>,{"<character name>"})

		if (VIP_SCRIPT && vip_status(VIP_STATUS_ACTIVE))

 

VIP_SCRIPT  << I wonder what you trying to compare this with??


		if (vip_status(VIP_STATUS_ACTIVE) )

Wouldn't this be enough??

 VIP_STATUS_ACTIVE - VIP status: true if the player is a VIP or false if not
 

Would you mind try this first??

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  107
  • Topics Per Day:  0.02
  • Content Count:  770
  • Reputation:   69
  • Joined:  02/10/12
  • Last Seen:  

7 minutes ago, utofaery said:

				Zeny = Zeny-4000;

Apart from simplifying this part nothing should be broken here..


				Zeny -= 4000;

hmm.. but i think the frist method should be fine, i think my player use 3rdparty software again ?

 

Edited by melv0
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  11
  • Topics Per Day:  0.00
  • Content Count:  81
  • Reputation:   14
  • Joined:  11/17/17
  • Last Seen:  

1 hour ago, melv0 said:

hmm.. but i think the frist method should be fine, i think my player use 3rdparty software again ?

 

I don't think players use 3rdparty software. Sometimes I get this error in localhost, even the live version has Gepard shield

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  107
  • Topics Per Day:  0.02
  • Content Count:  770
  • Reputation:   69
  • Joined:  02/10/12
  • Last Seen:  

On 2/14/2019 at 8:11 AM, rongmauhong said:

I don't think players use 3rdparty software. Sometimes I get this error in localhost, even the live version has Gepard shield

but i get a lot this error and when see picklog database...
Boom my player get a lot that items only in one minute and he can repeat (part to get an item) without talk with npc(because this npc at barisilis ) but player can get a lot that item although in dungeon ?

See this   wrong SS

 

btw you get this error on the same script? 
so do you mean gepard cant block this action?

Edited by melv0
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  11
  • Topics Per Day:  0.00
  • Content Count:  81
  • Reputation:   14
  • Joined:  11/17/17
  • Last Seen:  

? Please wait for @Functor

Btw, I just reported a bug related to it.
https://github.com/rathena/rathena/issues/3944

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  11
  • Topics Per Day:  0.00
  • Content Count:  81
  • Reputation:   14
  • Joined:  11/17/17
  • Last Seen:  

@AnnieRuru What about this quest https://irowiki.org/wiki/Ring_of_the_Wise_King in step 7? The progressbar is 10 seconds and monsters can hit you easily,  if I can't move my character I will die :(. How about flywing?

Link to comment
Share on other sites

  • 0

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

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  107
  • Topics Per Day:  0.02
  • Content Count:  770
  • Reputation:   69
  • Joined:  02/10/12
  • Last Seen:  

11 hours ago, Functor said:

It is attempt to use exploit, but you have applied fix. So, you can ignore it.

but player still can get a loot guarana candy it's like dupe and can proces part "getitem xxx,1" whatever where they are ..
 

edit ?

But the player like can buy the item so fast , and to buy this item its have some conversation before buy it 

see this << in 1 second he can get 6 items

Edited by melv0
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  3
  • Topics Per Day:  0.00
  • Content Count:  351
  • Reputation:   263
  • Joined:  09/08/13
  • Last Seen:  

On 2/15/2019 at 10:48 AM, melv0 said:

but player still can get a loot guarana candy it's like dupe and can proces part "getitem xxx,1" whatever where they are ..
 

edit ?

But the player like can buy the item so fast , and to buy this item its have some conversation before buy it 

see this << in 1 second he can get 6 items

Because he does it by using third-party software. But it isn't dupe. He pays Zeny for items. Fix blocks exploit.

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  107
  • Topics Per Day:  0.02
  • Content Count:  770
  • Reputation:   69
  • Joined:  02/10/12
  • Last Seen:  

4 hours ago, Functor said:

Because he does it by using third-party software. But it isn't dupe. He pays Zeny for items. Fix blocks exploit.

ahh okay thanks functor ?

Link to comment
Share on other sites

  • -2

  • Group:  Members
  • Topic Count:  18
  • Topics Per Day:  0.00
  • Content Count:  2044
  • Reputation:   682
  • Joined:  10/09/12
  • Last Seen:  

5 hours ago, rongmauhong said:

? Please wait for @Functor

Btw, I just reported a bug related to it.
https://github.com/rathena/rathena/issues/3944

in Hercules, I can't move my character while the bar progress

Link to comment
Share on other sites

  • -2

  • Group:  Members
  • Topic Count:  18
  • Topics Per Day:  0.00
  • Content Count:  2044
  • Reputation:   682
  • Joined:  10/09/12
  • Last Seen:  

I think rathena *progressbar is currently broken ...

I kinda remember my arathi basin script, which also uses progressbar to turn the flag to your side ... at the time making the script,
tested on rathena -> I can move to simply cancel the progress
tested on hercules -> I can't move, have to get hit from something

so to answer your question, in hercules, once the progressbar start, there is no way to cancel it other than
1. get hit
2. warp

if trying to use skill while *progressbar, its the same as rathena
Any work in progress (NPC dialog, manufactoring ... ) quit and try again

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
Answer this question...

×   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...