Jump to content
  • 0

little help with something here


ray00

Question


  • Group:  Members
  • Topic Count:  7
  • Topics Per Day:  0.00
  • Content Count:  22
  • Reputation:   0
  • Joined:  01/27/12
  • Last Seen:  

This is just  a part of the chain quest im doing im getting errors here, I have double checked the (,), and } all of them have the same pairs still im getting this error what am i missing? or what's wrong with this script

ra_san05,150,155,4	script	Sealed Gloom	1768,{

mes "[Hougyoku]";
mes "Seeping crest of turbidity.";
mes "Arrogant vessel of lunacy!";
mes "Boil forth and deny! Grow numb and flicker!";
mes "Disrupt sleep! Crawling queen of iron!";
mes "Eternally self destructing doll of mud!";
mes "Unite! Repulse Fill the soil and know";
mes "Your own powerlessness!";
next;

if(hou_ku >=1) goto L_houend;
if(bac_so >= 1 || dop_pel >= 1 || kh_d01 >= 1 || than_t >= 1 || sbh_fbh >= 1 || may_an >= 1 || golden_t >= 1 || tao_gunk >= 1 || dev_ling >= 1 || gr1_gr1 >= 1 || tgen_tgen >= 1) goto gloom;

gloom:
	mes "[Hougyoku]";
	mes "Well done it seem's that you've release all the seals and obtained the power within them";
	next;
	mes "[]";
	mes "Very well then!";
	next;
	mes "I am Hougyoku the last remnant of the ancients";
	mes "Unseal me and you shall receive far greater power";
	mes "Will you remove the seal that I am binded with";
	menu "Yes",-,"No",L_nopnop;
	next;
	mes "[]";
	mes "The seal that I am binded with is linked to all the souls";
	mes "That released, Once it senses a release in energy";
	mes "This seal will weaken";
	mes "It would now only require a few more items";
	mes "To be completely removed";
	next;
	mes "Gather the final items that I require";
	next;
	mes "10 Sealed Ghostring Card"; //30011
	mes "10 Sealed Deviling Card"; //30012
	mes "10 Sealed Turtle General Card"; //30018
	mes "10 Sealed Kiel D-01 Card"; //30019
	mes "10 Sealed Tao Gunka Card"; //30013
	mes "10 Golden Thiefbug Card"; //30014
	mes "10 Sealed Maya Card"; //30015
	mes "1 Sealed Fallen Bishop Card"; //30016
	mes "5 Sealed Thanatos Card"; //30017
	mes "10 Doppelganger Card"; //30023
	mes "1500 TCG Cards"; //7227
	mes "5 Emblem of the Sun God"; //7086
	mes "5 Ripple"; //7090
	mes "5 Bilows"; //7091
	mes "5 Silver Ornament"; //7077
	mes "5 Wrath of Valkyrie"; //7078
	next;
	mes "[]";
	mes "I'll be waiting for you chosen warrior";
	if(countitem(30011) < 10 || countitem(30012) < 10 || countitem(30018) < 10 || countitem(30019) < 10 || countitem(30013) < 10 || countitem(30014) < 10 || countitem(30015) < 10 || countitem(30016) < 1 countitem(30017) < 5 || countitem(30023) < 10 || countitem(7227) < 1500 || countitem(7086) < 5 || countitem(7090) < 5 || countitem(7091) < 5 || countitem(7077) < 5 || countitem(7078) < 5) goto L_hoginc;
	if(countitem(30011) >= 10 || countitem(30012) >= 10 || countitem(30018) >= 10 || countitem(30019) >= 10 || countitem(30013) >= 10 || countitem(30014) >= 10 || countitem(30015) >= 10 || countitem(30016) >= 1 countitem(30017) >= 5 || countitem(30023) >= 10 || countitem(7227) >= 1500 || countitem(7086) >= 5 || countitem(7090) >= 5 || countitem(7091) >= 5 || countitem(7077) >= 5 || countitem(7078) >= 5) goto L_hogcomplete;
	close;
	
L_nopnop:
	mes "[]";
	mes "Leave if you don't want to get a early death";
	close;
	
L_hoginc:
	next;
	mes "[]";
	mes "Your items are incomplete at this rate ill be resealed";
	close;
	
L_hogcomplete:
	next;
	mes "[]";
	mes "Well done You have proven yourself to be worthy of true power";
	delitem 30011,10;
	delitem 30012,10;
	delitem 30018,10;
	delitem 30019,10;
	delitem 30013,10;
	delitem 30014,10;
	delitem 30015,10;
	delitem 30016,1;
	delitem 30017,5;
	delitem 30023,10;
	delitem 7227,1500;
	delitem 7086,5;
	delitem 7090,5;
	delitem 7091,5;
	delitem 7077,5;
	delitem 7078,5;
	getitem 30027,1;
	set hou_ku,1;
	next;
	mes "[]";
	mes "The seal has be released";
	announce "Hougyoku I am now free, Thanks to "+strcharinfo(0)" I shall now bestow on him great power!",8;
	sleep 500;
	announce "Attention all of Rune Midgard "+strcharinfo(0)" has just become the Ultimate Warrior and Gained the Sealed Gloom Card.",8; 
	close;
	 
L_houend:
	mes "[]";
	mes "You have already gained my power";
	mes "How dare you ask for more!, Begone fool!";
	next;
	percentheal -100,0;
	warp "prontera",0,0;
	close;
	
L_houstranger:
	mes "[]";
	mes "An innocent soul";
	mes "Go away";
	close;
	
}

Here's the error im getting and im using eathena, sorry for posting here I can't get support over eathena since no one or all of the best one's there are already here.

 

qvrl.jpg

Link to comment
Share on other sites

5 answers to this question

Recommended Posts


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

line 1084

.... countitem(30016) < 1 countitem(30017) < 5....

also, you don't have to do that countitem(blah) >= xxx anymore

just use ELSE statement

 

	if ( <condition> )
		<true statement>;
	else
		<false statement>;
	if ( countitem(itemid) < num || ...... )
		goto L_hoginc;
	else
		goto L_hogcomplete;
Edited by AnnieRuru
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  7
  • Topics Per Day:  0.00
  • Content Count:  22
  • Reputation:   0
  • Joined:  01/27/12
  • Last Seen:  

Thanks annie your a big help, one more error that keeps popping up . Can't seem to make announce work..

 

w9gm.jpg


Update: Found the error sorry. thanks again annie just needed the +

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  318
  • Topics Per Day:  0.07
  • Content Count:  931
  • Reputation:   13
  • Joined:  12/20/11
  • Last Seen:  

i'm not sure maybe this one

 

announce "Hougyoku I am now free, Thanks to "+strcharinfo(0)+" I shall now bestow on him great power!",8;
sleep 500;
announce "Attention all of Rune Midgard "+strcharinfo(0)+" has just become the Ultimate Warrior and Gained the Sealed Gloom Card.",8; 
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  21
  • Topics Per Day:  0.00
  • Content Count:  244
  • Reputation:   17
  • Joined:  11/19/11
  • Last Seen:  

what about this one 

if(bac_so = 1 && dop_pel = 2 && kh_d01 = 3 && than_t = 4 && sbh_fbh = 5 && may_an = 6 && golden_t = 7 && tao_gunk = 8 && dev_ling = 9 && gr1_gr1 = 10 && tgen_tgen = 11) goto gloom;

 will this work? im trying to make the final npc check if it talked to the other npc's before going to the final quest, but im having that missing ) error again.


Updated: Fixed now my problem is how to trigger npc's when i completed the quest like example they are on hiding then they will unhide and do some special effects.

Link to comment
Share on other sites


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

if(bac_so = 1 && dop_pel = 2 && kh_d01 = 3 && than_t = 4 && sbh_fbh = 5 && may_an = 6 && golden_t = 7 && tao_gunk = 8 && dev_ling = 9 && gr1_gr1 = 10 && tgen_tgen = 11) goto gloom;
I don't understand why you use different variable and set at different value

if you check the script on post#1, he used

if(bac_so >= 1 || dop_pel >= 1 || kh_d01 >= 1 || than_t >= 1 || sbh_fbh >= 1 || may_an >= 1 || golden_t >= 1 || tao_gunk >= 1 || dev_ling >= 1 || gr1_gr1 >= 1 || tgen_tgen >= 1) goto gloom;
which is the correct way

so you should only set the variable to 1 to enable, 0 to disable

though, I still recommend to use something like bits to set the variable

Updated: Fixed now my problem is how to trigger npc's when i completed the quest like example they are on hiding then they will unhide and do some special effects.

unless you are writing instanced quest script,

in normal quest script you shouldn't hide/unhide the npc

should set a state like you did above and let the npc just say hello without any useful dialog

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