insarius Posted October 6, 2012 Posted October 6, 2012 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? Quote
FatalEror Posted October 6, 2012 Posted October 6, 2012 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 Quote
bimbi Posted October 6, 2012 Posted October 6, 2012 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 Quote
insarius Posted October 6, 2012 Author Posted October 6, 2012 (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. Edited October 6, 2012 by insarius Quote
insarius Posted October 6, 2012 Author Posted October 6, 2012 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? Quote
Emistry Posted October 6, 2012 Posted October 6, 2012 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? Basic_Scripting#Structure Quote
bimbi Posted October 6, 2012 Posted October 6, 2012 (edited) oh i forgot to delet the "end;" delet the end; in this line warp "mora", 121, 179; end; Edited October 6, 2012 by bimbi Quote
insarius Posted October 7, 2012 Author Posted October 7, 2012 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! Quote
Spre Posted October 9, 2012 Posted October 9, 2012 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. Quote
insarius Posted October 10, 2012 Author Posted October 10, 2012 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. Quote
bimbi Posted October 10, 2012 Posted October 10, 2012 just add the prices in the item_db, and type in the shop itemid,-1,itemid,-1 that looks better. Quote
Spre Posted October 11, 2012 Posted October 11, 2012 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. Quote
Ajjwidjdneidjenw Posted October 11, 2012 Posted October 11, 2012 (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 ) 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 October 11, 2012 by garet999 Quote
insarius Posted October 11, 2012 Author Posted October 11, 2012 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 ) 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. ^^ Quote
Question
insarius
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.
Can you guys check this out for me?
14 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.