Jump to content
  • 0

What wrong with this -___-


Eucharist96

Question


  • Group:  Members
  • Topic Count:  17
  • Topics Per Day:  0.00
  • Content Count:  54
  • Reputation:   2
  • Joined:  12/09/11
  • Last Seen:  

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

Link to comment
Share on other sites

6 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  10
  • Topics Per Day:  0.00
  • Content Count:  392
  • Reputation:   47
  • Joined:  11/18/11
  • Last Seen:  

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


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

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


  • Group:  Members
  • Topic Count:  2
  • Topics Per Day:  0.00
  • Content Count:  106
  • Reputation:   28
  • Joined:  11/08/11
  • Last Seen:  

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

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  17
  • Topics Per Day:  0.00
  • Content Count:  54
  • Reputation:   2
  • Joined:  12/09/11
  • Last Seen:  

this is the error

Yehey its now working thanks to you guys =))

sry this is my first script =))

post-752-0-02098900-1323429672_thumb.png

Edited by Eucharist1
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  10
  • Topics Per Day:  0.00
  • Content Count:  392
  • Reputation:   47
  • Joined:  11/18/11
  • Last Seen:  

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.

Link to comment
Share on other sites


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

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