Jump to content
  • 0

i cant seem to get callshop to work


mirabell

Question


  • Group:  Members
  • Topic Count:  41
  • Topics Per Day:  0.01
  • Content Count:  197
  • Reputation:   19
  • Joined:  11/20/11
  • Last Seen:  

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

Link to comment
Share on other sites

4 answers to this question

Recommended Posts

  • 1

  • Group:  Developer
  • Topic Count:  10
  • Topics Per Day:  0.00
  • Content Count:  2407
  • Reputation:   613
  • Joined:  07/05/12
  • Last Seen:  

Shop's name : Tool dorastor

You're trying to call dorastor shop. The name doesn't match.

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  27
  • Topics Per Day:  0.01
  • Content Count:  505
  • Reputation:   126
  • Joined:  04/04/16
  • Last Seen:  

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

  • 0

  • Group:  Members
  • Topic Count:  61
  • Topics Per Day:  0.02
  • Content Count:  912
  • Reputation:   166
  • Joined:  11/27/14
  • Last Seen:  

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

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  41
  • Topics Per Day:  0.01
  • Content Count:  197
  • Reputation:   19
  • Joined:  11/20/11
  • Last Seen:  

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

 

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