Oraios Posted September 6, 2013 Posted September 6, 2013 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 Quote
Patskie Posted September 6, 2013 Posted September 6, 2013 You cannot load those two using @loadnpc @loadnpc <path> Loads an NPC script by path. Example: @loadnpc npc/custom/jobmaster.txt Quote
Checkmate Posted September 6, 2013 Posted September 6, 2013 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 Quote
zein Posted September 6, 2013 Posted September 6, 2013 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(); } Quote
Question
Oraios
Hi community,
can someone make me a script of an npc who reloads every day these two commands :
3 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.