Jump to content
  • 0

i cant seem to get callshop to work


Question

Posted

i have this shop in a map non accessible map to players. only gm can go to it

 

insanity01,133,133,5    shop    Tool dorastor    111,1683:-1,15150:-1,22076:-1,28374:-1 

Im trying to call this npc with a doram check but i keep getting a mapserver error.

paradise,145,86,5	script	Doram Store	10168,{
	
	if (Class==4218) goto b_br;
	mes "[^FF8000Whiskers^000000]";
	mes "Sorry I only have merchandise for Doram class.";
	close;

b_br:
callshop "dorastor",0;
end;
}

this is the error im getting

[Debug]: Source (NPC): Doram Store at paradise (145,86)
[Error]: buildin_callshop: Shop [dorastor] not found (or NPC is not shop type)

 

Thanks

4 answers to this question

Recommended Posts

  • 0
Posted (edited)

The name of your shop is Tool dorastor not dorastor.

And why does it have a -1?

1683:-1,15150:-1,22076:-1,28374:-1

EDIT:

I didn't know about this so I got confused. LOL

The item id is the number of item in the 'item_db.txt' database. If Price is set 
to -1, the 'buy price' given in the item database will be used. Otherwise, the 
price you gave will be used for this item, which is how you create differing 
prices for items in different shops.

 

Edited by Technoken
  • 0
Posted
3 hours ago, Technoken said:

The name of your shop is Tool dorastor not dorastor.

And why does it have a -1?


1683:-1,15150:-1,22076:-1,28374:-1

EDIT:

I didn't know about this so I got confused. LOL


The item id is the number of item in the 'item_db.txt' database. If Price is set 
to -1, the 'buy price' given in the item database will be used. Otherwise, the 
price you gave will be used for this item, which is how you create differing 
prices for items in different shops.

 

-1 mean's the set amount of value in your database

  • 0
Posted

ok it part of the error was the name. now the shop option  "buy"sell" but when you click on buy it freeze the char in place and they cant move and it doesnt open shop

 

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