Oraios Posted September 6, 2013 Group: Members Topic Count: 31 Topics Per Day: 0.01 Content Count: 60 Reputation: 1 Joined: 11/06/12 Last Seen: December 16, 2016 Share 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 Link to comment Share on other sites More sharing options...
Patskie Posted September 6, 2013 Group: Members Topic Count: 50 Topics Per Day: 0.01 Content Count: 1702 Reputation: 241 Joined: 09/05/12 Last Seen: November 10, 2024 Share 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 Link to comment Share on other sites More sharing options...
Checkmate Posted September 6, 2013 Group: Members Topic Count: 96 Topics Per Day: 0.02 Content Count: 554 Reputation: 14 Joined: 09/24/12 Last Seen: November 20, 2024 Share 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 Link to comment Share on other sites More sharing options...
zein Posted September 6, 2013 Group: Members Topic Count: 7 Topics Per Day: 0.00 Content Count: 34 Reputation: 4 Joined: 03/16/12 Last Seen: November 10, 2013 Share 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 Link to comment Share on other sites More sharing options...
Question
Oraios
Hi community,
can someone make me a script of an npc who reloads every day these two commands :
Link to comment
Share on other sites
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.