Jump to content
  • 0

R> @loadnpc Npc


Question

Posted

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

3 answers to this question

Recommended Posts

Posted

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

 

Posted

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

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