Jump to content
  • 0

NPC just a click away


cmsm94

Question


  • Group:  Members
  • Topic Count:  61
  • Topics Per Day:  0.02
  • Content Count:  170
  • Reputation:   5
  • Joined:  08/11/13
  • Last Seen:  

Hi there!! /heh

 

I know its possible that let say if you make an item ex. Apple when you consume it npc shops opens.

Can someone create the script for the item and the npc so it work together? THANKS!

Link to comment
Share on other sites

2 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  31
  • Topics Per Day:  0.01
  • Content Count:  283
  • Reputation:   31
  • Joined:  07/08/14
  • Last Seen:  

Server-Side:

 

The shop (put it in a script file)

-	shop	myshopname	-1,512:-1,513:-1,514:-1

don't forget to put the items you want to sell and their prices

 

The item:

<ID>,My_Item_Name,My Item Name,2,10,,10,,,,,0xFFFFFFFF,63,2,,,,,,{callshop "myshopname",1;},{},{}

Client-Side:

 

newer than 2012-04-10a:

iteminfo.lub:

[<ID>] = {
		unidentifiedDisplayName = "My Item Name",
		unidentifiedResourceName = "Ä«ÇÁ¶óÀÌ¿ë±Ç",
		unidentifiedDescriptionName = {
			"Opens a shop.",
			"",
			"Weight: ^7777771^000000"
		},
		identifiedDisplayName = "My Item Name",
		identifiedResourceName = "Ä«ÇÁ¶óÀÌ¿ë±Ç",
		identifiedDescriptionName = {
			"Opens a shop.",
			"",
			"Weight: ^7777771^000000"
		},
		slotCount = 0,
		ClassNum = 0
	},

older than 2012-04-10a:

idnum2itemdesctable.txt:

<ID>#
Opens a shop.

Weight: ^7777771^000000
#

idnum2itemdisplaynametable.txt:

<ID>#My Item Name#

idnum2itemresnametable.txt

<ID>#Ä«ÇÁ¶óÀÌ¿ë±Ç#

Don't forget to edit the id and item name in all files

  • Upvote 1
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  23
  • Topics Per Day:  0.01
  • Content Count:  387
  • Reputation:   60
  • Joined:  10/08/13
  • Last Seen:  

use 'callfunction'

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