Jump to content
  • 0

R> @loadnpc Npc


Oraios

Question


  • Group:  Members
  • Topic Count:  31
  • Topics Per Day:  0.01
  • Content Count:  60
  • Reputation:   1
  • Joined:  11/06/12
  • Last Seen:  

Hi community,

can someone make me a script of an npc who reloads every day these two commands :

@loadnpc db/item_noequip.txt
@loadnpc conf/mapflag/nowarpto.txt
 
(In my server they aren't loaded automatically, so that's why I need the script)
 
Thank you very much!
 
Best regards, Oraios
Link to comment
Share on other sites

3 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  50
  • Topics Per Day:  0.01
  • Content Count:  1702
  • Reputation:   238
  • Joined:  09/05/12
  • Last Seen:  

You cannot load those two using @loadnpc 

@loadnpc <path>

Loads an NPC script by path.

Example:
@loadnpc npc/custom/jobmaster.txt
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  96
  • Topics Per Day:  0.02
  • Content Count:  554
  • Reputation:   14
  • Joined:  09/24/12
  • Last Seen:  

Yes....

But you asking everyday.. Ermmm...

Weird...
Or mybe i did not understand what actuall he asking... =="

To load all this you must use cmd

@reloadscript

and for this

 

@loadnpc db/item_noequip.txt

you must use this
@reloaditemdb

 

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  7
  • Topics Per Day:  0.00
  • Content Count:  34
  • Reputation:   4
  • Joined:  03/16/12
  • Last Seen:  

What do you mean they aren't loaded automatically?

are you using rathena?

 

If you're using rathena, mapflag loaded automatically when you start server at first time.

trunk/npc/scripts_mapflags.conf

npc: npc/mapflag/nowarpto.txt

 

for DB you can set in src/map/itemdb.c" class="bbc_url" title="SVN" rel="external">trunk/src/map/itemdb.c

/*====================================
 * read all item-related databases
 *------------------------------------*/
static void itemdb_read(void) {

	if (db_use_sqldbs)
		itemdb_read_sqldb();
	else
		itemdb_readdb();

	itemdb_read_combos();
	itemdb_read_itemgroup();
	sv_readdb(db_path, "item_avail.txt",         ',', 2, 2, -1, &itemdb_read_itemavail);
	sv_readdb(db_path, DBPATH"item_noequip.txt", ',', 2, 2, -1, &itemdb_read_noequip);
	sv_readdb(db_path, DBPATH"item_trade.txt",   ',', 3, 3, -1, &itemdb_read_itemtrade);
	sv_readdb(db_path, "item_delay.txt",         ',', 2, 2, -1, &itemdb_read_itemdelay);
	sv_readdb(db_path, "item_stack.txt",         ',', 3, 3, -1, &itemdb_read_stack);
	sv_readdb(db_path, DBPATH"item_buyingstore.txt",   ',', 1, 1, -1, &itemdb_read_buyingstore);
	sv_readdb(db_path, "item_nouse.txt",		 ',', 3, 3, -1, &itemdb_read_nouse);

	itemdb_uid_load();
}
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...