Jump to content
  • 0

My script doesn't work.


Question

Posted

So, I made a script who warps players to a place in Mora, but it keeps giving errors on the line which warps to Mora.

prontera,164,172,4    script    3rd Class items    501,{
mes "3rd Class Item Warper";
mes "Hello,";
mes "Would you like to go to the 3rd Class Item shops";
   menu "Yes Please!",yes,"No thanks!",no;

yes: warp "mora", 121, 179; end;
close;

no: close;


mora,115,184,4 shop RK & GX shop 946,127172000,127182000,127192000,127202000,127212000,127212000,127222000,127232000,127242000,127252000,127262000,127272000,127282000,127295000000,127302000,127315000000,127322000,127331000000
mora,118,184,4 shop Warlock shop 743,6189100000,6190100000,6191100000,6192100000,6193100000,6194100000,6197100000,6198100000,6199100000,6200100000,6201100000,6202100000,6203100000,6204100000,6205100000
mora,121,184,4 shop Mechanic shop 813,154910000,213920000,2800100000,2801100000,2802500000,2803100000,2804100000,2805100000,2806150000,2807200000,280825000
mora,123,184,4 shop Mechanic Ammo 813,6145100,6146300,6147100,12392220,12393500,123941100,18000100,18001200,18002200,18003200,18004500
mora,125,184,4 shop Genetic shop 731,6210100,6211100,6212100,62131000,62141000,62151000,62162000,62174000,6244100,6245100,6246100,6247100,6248600,6249100,6253100,6254100,6255500,6256100,6257100
mora,127,184,4 shop Genetic Shop 2    731,6258800,6259100,6260100,6261500;6262400,6263100,6264100,6265100,62791000,62801000,62811000,62821000,62831000,62841500,62851000,6297100,1102210000,1102310000,1102410000

}

Can you guys check this out for me?

14 answers to this question

Recommended Posts

Posted

Curly brace should be added at the end of '3rd Class items' NPCs script and before NPC shop.

prontera,164,172,4 script 3rd Class items 501,{
mes "3rd Class Item Warper";
mes "Hello,";
mes "Would you like to go to the 3rd Class Item shops";
menu "Yes Please!",yes,"No thanks!",no;

yes: warp "mora", 121, 179; end;
close;

no: close;

}


mora,115,184,4 shop RK & GX shop 946,127172000,127182000,127192000,127202000,127212000,127212000,127222000,127232000,127242000,127252000,127262000,127272000,127282000,127295000000,127302000,127315000000,127322000,127331000000
mora,118,184,4 shop Warlock shop 743,6189100000,6190100000,6191100000,6192100000,6193100000,6194100000,6197100000,6198100000,6199100000,6200100000,6201100000,6202100000,6203100000,6204100000,6205100000
mora,121,184,4 shop Mechanic shop 813,154910000,213920000,2800100000,2801100000,2802500000,2803100000,2804100000,2805100000,2806150000,2807200000,280825000
mora,123,184,4 shop Mechanic Ammo 813,6145100,6146300,6147100,12392220,12393500,123941100,18000100,18001200,18002200,18003200,18004500
mora,125,184,4 shop Genetic shop 731,6210100,6211100,6212100,62131000,62141000,62151000,62162000,62174000,6244100,6245100,6246100,6247100,6248600,6249100,6253100,6254100,6255500,6256100,6257100
mora,127,184,4 shop Genetic Shop 2 731,6258800,6259100,6260100,6261500;6262400,6263100,6264100,6265100,62791000,62801000,62811000,62821000,62831000,62841500,62851000,6297100,1102210000,1102310000,1102410000

Posted

try this, don't forget the tabs

prontera,164,172,4 script 3rd Class items 501,{
mes "3rd Class Item Warper";
mes "Hello,";
mes "Would you like to go to the 3rd Class Item shops";
next;
switch(select("Yes Please:No thanks!")){
case 1:
mes "Have Fun!";
close2;
warp "mora", 121, 179; end;
close;

case 2:
close;

}

}

mora,115,184,4 shop RK & GX shop 946,127172000,127182000,127192000,127202000,127212000,127212000,127222000,127232000,127242000,127252000,127262000,127272000,127282000,127295000000,127302000,127315000000,127322000,127331000000
mora,118,184,4 shop Warlock shop 743,6189100000,6190100000,6191100000,6192100000,6193100000,6194100000,6197100000,6198100000,6199100000,6200100000,6201100000,6202100000,6203100000,6204100000,6205100000
mora,121,184,4 shop Mechanic shop 813,154910000,213920000,2800100000,2801100000,2802500000,2803100000,2804100000,2805100000,2806150000,2807200000,280825000
mora,123,184,4 shop Mechanic Ammo 813,6145100,6146300,6147100,12392220,12393500,123941100,18000100,18001200,18002200,18003200,18004500
mora,125,184,4 shop Genetic shop 731,6210100,6211100,6212100,62131000,62141000,62151000,62162000,62174000,6244100,6245100,6246100,6247100,6248600,6249100,6253100,6254100,6255500,6256100,6257100
mora,127,184,4 shop Genetic Shop 2 731,6258800,6259100,6260100,6261500;6262400,6263100,6264100,6265100,62791000,62801000,62811000,62821000,62831000,62841500,62851000,6297100,1102210000,1102310000,1102410000

Posted (edited)

try this, don't forget the tabs

prontera,164,172,4 script 3rd Class items 501,{
mes "3rd Class Item Warper";
mes "Hello,";
mes "Would you like to go to the 3rd Class Item shops";
next;
switch(select("Yes Please:No thanks!")){
case 1:
mes "Have Fun!";
close2;
warp "mora", 121, 179; end;
close;

case 2:
close;

}

}

mora,115,184,4 shop RK & GX shop 946,127172000,127182000,127192000,127202000,127212000,127212000,127222000,127232000,127242000,127252000,127262000,127272000,127282000,127295000000,127302000,127315000000,127322000,127331000000
mora,118,184,4 shop Warlock shop 743,6189100000,6190100000,6191100000,6192100000,6193100000,6194100000,6197100000,6198100000,6199100000,6200100000,6201100000,6202100000,6203100000,6204100000,6205100000
mora,121,184,4 shop Mechanic shop 813,154910000,213920000,2800100000,2801100000,2802500000,2803100000,2804100000,2805100000,2806150000,2807200000,280825000
mora,123,184,4 shop Mechanic Ammo 813,6145100,6146300,6147100,12392220,12393500,123941100,18000100,18001200,18002200,18003200,18004500
mora,125,184,4 shop Genetic shop 731,6210100,6211100,6212100,62131000,62141000,62151000,62162000,62174000,6244100,6245100,6246100,6247100,6248600,6249100,6253100,6254100,6255500,6256100,6257100
mora,127,184,4 shop Genetic Shop 2 731,6258800,6259100,6260100,6261500;6262400,6263100,6264100,6265100,62791000,62801000,62811000,62821000,62831000,62841500,62851000,6297100,1102210000,1102310000,1102410000

That's the 'new' way of coding, which I don't understand, but it returned the following error.

Khraq.png

Edited by insarius
Posted

try this, don't forget the tabs

I tried tabbing a few lines, and it still stops at line 20, the shop line. Tabbed before the shop name and after the shop name...

How do you know where to tab anyway?

Posted

oh i forgot to delet the "end;"

delet the end;

in this line warp "mora",121,179;end;

I got it working now. :)

Although it said shops were empty so I'll have to go reconstruct those.

Thanks for all the help guys!

Posted

oh i forgot to delet the "end;"

delet the end;

in this line warp "mora",121,179;end;

I got it working now. :)

Although it said shops were empty so I'll have to go reconstruct those.

Thanks for all the help guys!

mora,115,184,4 shop RK & GX shop 946,127172000,127182000,127192000,127202000,127212000,127212000,127222000,127232000,127242000,127252000,127262000,127272000,127282000,127295000000,127302000,127315000000,127322000,127331000000
mora,118,184,4 shop Warlock shop 743,6189100000,6190100000,6191100000,6192100000,6193100000,6194100000,6197100000,6198100000,6199100000,6200100000,6201100000,6202100000,6203100000,6204100000,6205100000
mora,121,184,4 shop Mechanic shop 813,154910000,213920000,2800100000,2801100000,2802500000,2803100000,2804100000,2805100000,2806150000,2807200000,280825000
mora,123,184,4 shop Mechanic Ammo 813,6145100,6146300,6147100,12392220,12393500,123941100,18000100,18001200,18002200,18003200,18004500
mora,125,184,4 shop Genetic shop 731,6210100,6211100,6212100,62131000,62141000,62151000,62162000,62174000,6244100,6245100,6246100,6247100,6248600,6249100,6253100,6254100,6255500,6256100,6257100
mora,127,184,4 shop Genetic Shop 2 731,6258800,6259100,6260100,6261500;6262400,6263100,6264100,6265100,62791000,62801000,62811000,62821000,62831000,62841500,62851000,6297100,1102210000,1102310000,1102410000

I have never seen item ID's that high

a shop shoud be

MAPNAME,x,y,DIRECTION[TAB}shop[TAB]NAME[TAB]NPC_ID,ITEM_ID,PRICE(-1 for price defined in item_DB table ot a number if you want your own price),ITEMID for second item,PRICE for seconitem(no spaces.

For example if I wanted to create a shop in mora I would use

mora,127,184,4 shop Example 2 49,601,200(yourownprice),602,-1(serverprice),519,-1,and so on.

Posted

oh i forgot to delet the "end;"

delet the end;

in this line warp "mora",121,179;end;

I got it working now. :)

Although it said shops were empty so I'll have to go reconstruct those.

Thanks for all the help guys!

mora,115,184,4 shop RK & GX shop 946,127172000,127182000,127192000,127202000,127212000,127212000,127222000,127232000,127242000,127252000,127262000,127272000,127282000,127295000000,127302000,127315000000,127322000,127331000000
mora,118,184,4 shop Warlock shop 743,6189100000,6190100000,6191100000,6192100000,6193100000,6194100000,6197100000,6198100000,6199100000,6200100000,6201100000,6202100000,6203100000,6204100000,6205100000
mora,121,184,4 shop Mechanic shop 813,154910000,213920000,2800100000,2801100000,2802500000,2803100000,2804100000,2805100000,2806150000,2807200000,280825000
mora,123,184,4 shop Mechanic Ammo 813,6145100,6146300,6147100,12392220,12393500,123941100,18000100,18001200,18002200,18003200,18004500
mora,125,184,4 shop Genetic shop 731,6210100,6211100,6212100,62131000,62141000,62151000,62162000,62174000,6244100,6245100,6246100,6247100,6248600,6249100,6253100,6254100,6255500,6256100,6257100
mora,127,184,4 shop Genetic Shop 2 731,6258800,6259100,6260100,6261500;6262400,6263100,6264100,6265100,62791000,62801000,62811000,62821000,62831000,62841500,62851000,6297100,1102210000,1102310000,1102410000

I have never seen item ID's that high

a shop shoud be

MAPNAME,x,y,DIRECTION[TAB}shop[TAB]NAME[TAB]NPC_ID,ITEM_ID,PRICE(-1 for price defined in item_DB table ot a number if you want your own price),ITEMID for second item,PRICE for seconitem(no spaces.

For example if I wanted to create a shop in mora I would use

mora,127,184,4 shop Example 2 49,601,200(yourownprice),602,-1(serverprice),519,-1,and so on.

Yeah me neither, I reconstructed the shops entirely. :)

Posted

uh not really, there are always times when you want a different price in a different shop. It looks better to leave official prices official, then use your own in your shop script.

Posted (edited)

prontera,164,172,4	script	3rd Class items	130,{
mes "3rd Class Item Warper";
mes "Hello,";
mes "Would you like to go to the 3rd Class Item shops";
if(select("Yes please:No Thanks") ==2) close;
close2;
warp "mora",121,179;
end;
}
/*
mora,115,184,4 shop RK & GX shop 946,127172000,127182000,127192000,127202000,127212000,127212000,127222000,127232000,127242000,127252000,127262000,127272000,127282000,127295000000,127302000,127315000000,127322000,127331000000
mora,118,184,4 shop Warlock shop 743,6189100000,6190100000,6191100000,6192100000,6193100000,6194100000,6197100000,6198100000,6199100000,6200100000,6201100000,6202100000,6203100000,6204100000,6205100000
mora,121,184,4 shop Mechanic shop 813,154910000,213920000,2800100000,2801100000,2802500000,2803100000,2804100000,2805100000,2806150000,2807200000,280825000
mora,123,184,4 shop Mechanic Ammo 813,6145100,6146300,6147100,12392220,12393500,123941100,18000100,18001200,18002200,18003200,18004500
mora,125,184,4 shop Genetic shop 731,6210100,6211100,6212100,62131000,62141000,62151000,62162000,62174000,6244100,6245100,6246100,6247100,6248600,6249100,6253100,6254100,6255500,6256100,6257100
mora,127,184,4 shop Genetic Shop 2	731,6258800,6259100,6260100,6261500;6262400,6263100,6264100,6265100,62791000,62801000,62811000,62821000,62831000,62841500,62851000,6297100,1102210000,1102310000,1102410000
*/

Try that, commented the shops as the shops aren't tabbed, the values are probably too high (no way there are item ids like that :P) and overall in the wrong formal.

Here's a working example:

morocc,163,96,5	shop	Super Tool Dealer#01::STD	855,1750:-1,1770:-1,1752:-1,1751:-1;

Edited by garet999
Posted

prontera,164,172,4	script	3rd Class items	130,{
mes "3rd Class Item Warper";
mes "Hello,";
mes "Would you like to go to the 3rd Class Item shops";
if(select("Yes please:No Thanks") ==2) close;
close2;
warp "mora",121,179;
end;
}
/*
mora,115,184,4 shop RK & GX shop 946,127172000,127182000,127192000,127202000,127212000,127212000,127222000,127232000,127242000,127252000,127262000,127272000,127282000,127295000000,127302000,127315000000,127322000,127331000000
mora,118,184,4 shop Warlock shop 743,6189100000,6190100000,6191100000,6192100000,6193100000,6194100000,6197100000,6198100000,6199100000,6200100000,6201100000,6202100000,6203100000,6204100000,6205100000
mora,121,184,4 shop Mechanic shop 813,154910000,213920000,2800100000,2801100000,2802500000,2803100000,2804100000,2805100000,2806150000,2807200000,280825000
mora,123,184,4 shop Mechanic Ammo 813,6145100,6146300,6147100,12392220,12393500,123941100,18000100,18001200,18002200,18003200,18004500
mora,125,184,4 shop Genetic shop 731,6210100,6211100,6212100,62131000,62141000,62151000,62162000,62174000,6244100,6245100,6246100,6247100,6248600,6249100,6253100,6254100,6255500,6256100,6257100
mora,127,184,4 shop Genetic Shop 2	731,6258800,6259100,6260100,6261500;6262400,6263100,6264100,6265100,62791000,62801000,62811000,62821000,62831000,62841500,62851000,6297100,1102210000,1102310000,1102410000
*/

Try that, commented the shops as the shops aren't tabbed, the values are probably too high (no way there are item ids like that :P) and overall in the wrong formal.

Here's a working example:

morocc,163,96,5	shop	Super Tool Dealer#01::STD	855,1750:-1,1770:-1,1752:-1,1751:-1;

It's already solved mate. ^^

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