Jump to content
  • 0

What wrong with this -___-


Question

Posted
prontera.gat,150,155,5		 script		Test 51,{
mes "[^ff0000Baphomet Horn^000000]";
mes "Huh~ What do you want";
mes "Ohh I See You Want to make ^0055ffBaphomet Horn^000000 Right?";
menu "Yes", L_Yes;

L_Yes:
mes "^ff0000[baphomet Horn]^000000";
mes "Well if you Want to make^0055ff Baphomet Horn^000000";
next;
mes "Get this items ";
mes "^ff0000500 Evil Horn^000000";
mes "^ff00001 Majestic Goat [1]^000000";
mes "And ^ff000010,000,000^000000 for my efforts";
close;
mes "[baphomet Horn]";
if (countitem(923) < 500 || countitem(5160) < 1 || Zeny < 10000000 goto L_NotEnough;
delitem 923,500
delitem 5160,1
set Zeny,Zeny-10000000
mes "WoW! You are brave indeed!";
next;
mes "[baphomet Horn]"
mes "Enjoy your Baphomet Horn Thanks to Jem"
getitem 5374,1;
close;

L_NotEnough:
mes ". . .I'm Sorry .. You don't have enough money and items..";
mes "I can't affort to make this if you don't bring all materials needed. Please Understand this is to to benifit hereos such as yourself!";
close;
}

6 answers to this question

Recommended Posts

Posted (edited)

LOL...your script is still missing ";" :D

mes "[baphomet Horn]"

should be

mes "[baphomet Horn]";

anyway this topic has been fixed already ^^

Right. I didn't notice that one, my bad.

Here it is fully fixed (hopefully).


prontera,150,155,5		 script		Test 51,{
mes "[^ff0000Baphomet Horn^000000]";
mes "Huh~ What do you want";
mes "Ohh I See You Want to make ^0055ffBaphomet Horn^000000 Right?";
menu "Yes", L_Yes;

L_Yes:
	mes "^ff0000[baphomet Horn]^000000";
	mes "Well if you Want to make^0055ff Baphomet Horn^000000";
next;
	mes "Get this items ";
	mes "^ff0000500 Evil Horn^000000";
	mes "^ff00001 Majestic Goat [1]^000000";
	mes "And ^ff000010,000,000^000000 for my efforts";
	close;

mes "[baphomet Horn]";
if (countitem(923) < 500 || countitem(5160) < 1 || Zeny < 10000000) goto L_NotEnough;
	delitem 923,500;
	delitem 5160,1;
	set Zeny,Zeny-10000000;
	mes "WoW! You are brave indeed!";
next;
	mes "[baphomet Horn]";
	mes "Enjoy your Baphomet Horn Thanks to Jem";
	getitem 5374,1;
	close;

L_NotEnough:
mes ". . .I'm Sorry .. You don't have enough money and items..";
mes "I can't affort to make this if you don't bring all materials needed. Please Understand this is to to benifit hereos such as yourself!";
close;
}

Edited by Noah
Posted (edited)

please wrap your script with CodeBox / Code

if possible...show us the Error you get..not the full script only...

Problem Source :

if (countitem(923) < 500 || countitem(5160) < 1 || Zeny < 10000000 goto L_NotEnough;

Should be : ( Reason : Missing 1 Close Bracket )

if (countitem(923) < 500 || countitem(5160) < 1 || Zeny < 10000000 ) goto L_NotEnough;

Edited by Emistry
Posted

You should also post what's actually not working with the script you provided (e.g. map server errors).

Anyways, here's what I found:

Line 17: missing ) after the Zeny check

Lines 18-20: missing ; after each command

Lines 23-24: missing ; after each command

Posted

Here's the script already fixed:


prontera,150,155,5		 script	    Test 51,{
mes "[^ff0000Baphomet Horn^000000]";
mes "Huh~ What do you want";
mes "Ohh I See You Want to make ^0055ffBaphomet Horn^000000 Right?";
   menu "Yes", L_Yes;

L_Yes:
       mes "^ff0000[baphomet Horn]^000000";
       mes "Well if you Want to make^0055ff Baphomet Horn^000000";
   next;
       mes "Get this items ";
       mes "^ff0000500 Evil Horn^000000";
       mes "^ff00001 Majestic Goat [1]^000000";
       mes "And ^ff000010,000,000^000000 for my efforts";
       close;

mes "[baphomet Horn]";
if (countitem(923) < 500 || countitem(5160) < 1 || Zeny < 10000000) goto L_NotEnough;
       delitem 923,500;
       delitem 5160,1;
       set Zeny,Zeny-10000000;
       mes "WoW! You are brave indeed!";
   next;
       mes "[baphomet Horn]"
       mes "Enjoy your Baphomet Horn Thanks to Jem";
       getitem 5374,1;
       close;

L_NotEnough:
   mes ". . .I'm Sorry .. You don't have enough money and items..";
   mes "I can't affort to make this if you don't bring all materials needed. Please Understand this is to to benifit hereos such as yourself!";
   close;
}

You were missing " ; " in a few lines as well.

Posted (edited)

LOL...your script is still missing ";" :D

mes "[baphomet Horn]"

should be

mes "[baphomet Horn]";

anyway this topic has been fixed already ^^

Edited by Emistry

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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...