Jump to content
  • 0

Failed to try registry new custom npc sprites & item cash not showing


someoneloveyou

Question


  • Group:  Members
  • Topic Count:  12
  • Topics Per Day:  0.04
  • Content Count:  31
  • Reputation:   0
  • Joined:  06/13/23
  • Last Seen:  

hello, i try to find how to add npc and i cant find best solution for fix this problem, anyone can help me ?

i already add this in datainfo

Jobname.lub

	[jobtbl.JT_ZOMBIE] = "Zombie",
	[jobtbl.JT_ZOMBIE_DRAGON] = "dragon_5.gr2",
	[jobtbl.JT_ZOMBIE_GUARD] = "ZOMBIE_GUARD",
	[jobtbl.JT_ZOMBIE_H] = "ZOMBIE_H",
	[jobtbl.JT_ZOMBIE_MASTER] = "ZOMBIE_MASTER",
	[jobtbl.JT_ZOMBIE_PRISONER] = "ZOMBIE_PRISONER",
	[jobtbl.JT_ZOMBIE_SLAUGHTER] = "ZOMBIE_SLAUGHTER",
	[jobtbl.rumin] = "rumin",

NPCidentify.lub

	JT_MD_ED_LGTHIGHGUARD = 20541,
	JT_MD_ED_LGTGUARD = 20542,
	JT_MD_ED_M_SCIENCE = 20543,
	JT_HIDDEN_MOB8 = 20562,
	JT_MISSING_OCTOPIG = 20569,
	rumin = 20570

npc.hpp

	JT_NEW_NPC_3RD_END = 20570,
	NPC_RANGE3_END, // Official: JT_NEW_NPC_3RD_END=20570

	// Unofficial
	JT_INVISIBLE = 32767,
	JT_FAKENPC = -1
};

// Old NPC range
#define MAX_NPC_CLASS NPC_RANGE2_END
// New NPC range
#define MAX_NPC_CLASS2_START NPC_RANGE3_START
#define MAX_NPC_CLASS2_END NPC_RANGE3_END 100000

conts.yml

Body:
    - Name : rumin
      Value : 20570
      Parameter :false

\db\import\item_cash.yml

Header:
  Type: ITEM_CASH_DB
  Version: 1
  
Body:
 - Tab                     New
   Items:                  
     - Item                Diabolus Wings
       Price               10

anyone can help me ?, i tired to find this from yesterday...

Link to comment
Share on other sites

1 answer to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  12
  • Topics Per Day:  0.04
  • Content Count:  31
  • Reputation:   0
  • Joined:  06/13/23
  • Last Seen:  

i got error when i trying to restart server and npc how showing

[Error]: status_set_viewdata (NPC): Invalid view data 20570

 

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