Jump to content
  • 0

goto label support


iraciz

Question


  • Group:  Members
  • Topic Count:  140
  • Topics Per Day:  0.03
  • Content Count:  562
  • Reputation:   108
  • Joined:  10/05/12
  • Last Seen:  

Good day, my require is not working, the label is running ignoring the countitem (shoes)  

Require:

if (readparam(bAgi)>=89) || (countitem(2403) < 1) goto resist;

 

this is not working, how to check 2 conditions at once? agi stat and the item in inventory. the script is running without the shoes.

 

Thanks in advance.

 

Link to comment
Share on other sites

4 answers to this question

Recommended Posts

  • 0

  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10015
  • Reputation:   2348
  • Joined:  10/28/11
  • Last Seen:  

prontera,155,185,6	script	Orzuelo	550,{
	if (readparam(bAgi) >= 89 && countitem(2403) > 0) {
		mes "Your AGI >= 89 AGI and you have a "+getitemname(2403);
		soundeffectall "wild_rose_die.wav",0;
	}
	else {
		mes "something is missing";
	}
	close;
}

 

  • MVP 1
Link to comment
Share on other sites

  • 0

  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10015
  • Reputation:   2348
  • Joined:  10/28/11
  • Last Seen:  

try

if (readparam(bAgi) >= 89 && countitem(2403) < 1) goto resist;

 

Edited by Emistry
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  140
  • Topics Per Day:  0.03
  • Content Count:  562
  • Reputation:   108
  • Joined:  10/05/12
  • Last Seen:  

I tried yout script, but it still ignoring the shoes

 

prontera,155,185,6	script	Orzuelo	550,{
if (readparam(bAgi) >= 89 && countitem(2403) < 1) goto resist;
mes "You have both requires";
soundeffectall "wild_rose_die.wav",0;
end;

resist:
mes "something is missing";
end;
}

If I have both requires, I mean the agi over 89 and the shoes it mus goto resist label

If dont, it must continue below lines until end.

is not working as intended

 

 

Edited by iraciz
Link to comment
Share on other sites

  • -1

  • Group:  Members
  • Topic Count:  140
  • Topics Per Day:  0.03
  • Content Count:  562
  • Reputation:   108
  • Joined:  10/05/12
  • Last Seen:  

Solved

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