grampa Posted October 14, 2015 Posted October 14, 2015 Hi All, I just want to ask if it is possible to have a script to load/unload certain script in a certain time? Like for example, I want to disable the permanent monster spawn in prt_maze OnClock0100 and the resume enable it OnClock0200? Any advise is greatly appreciated! Quote
Aureon Posted October 14, 2015 Posted October 14, 2015 This? @loadnpc <path> @unloadnpc <npc name> Quote
grampa Posted October 15, 2015 Author Posted October 15, 2015 This? @loadnpc <path> @unloadnpc <npc name> I'm looking for something like a script that can do these commands... Enablenpc Disablenpc Does this works with the permanent monster spawn? like @loadnpc npc/pre-re/mobs/dungeons/abbey.txt ? Quote
llchrisll Posted October 15, 2015 Posted October 15, 2015 For unloading I suggest @unloadnpcfile this unloads the whole file. Quote
Nova Posted October 15, 2015 Posted October 15, 2015 Unloading an NPC does not disable permanent monster spawns. You would need to change those spawns to not be permanent mob spawns. Quote
Ninja Posted October 16, 2015 Posted October 16, 2015 This? @loadnpc <path> @unloadnpc <npc name> I'm looking for something like a script that can do these commands... Enablenpc Disablenpc Does this works with the permanent monster spawn? like @loadnpc npc/pre-re/mobs/dungeons/abbey.txt ? Mmmm. No.. maybr you can request for a src mod for this and ask for a script command to do this. Quote
llchrisll Posted October 16, 2015 Posted October 16, 2015 like i mentioned: OnClock0100: atcommand "@unloadnpcfile <path>"; end; OnClock0200: atcommand "@loadnpc <path>"; end; Note: Look @unloadnpcfile up in doc/atcommands.txt first, if you have it.Regards, Chris Quote
Ninja Posted October 16, 2015 Posted October 16, 2015 like i mentioned: OnClock0100: atcommand "@unloadnpcfile <path>"; end; OnClock0200: atcommand "@loadnpc <path>"; end; Note: Look @unloadnpcfile up in doc/atcommands.txt first, if you have it.Regards, Chris The problem with this is that it has a high probability of failing after the first unloading. I resulted to using enablenpc/disablenpc because of this problem. Quote
llchrisll Posted October 16, 2015 Posted October 16, 2015 like i mentioned: OnClock0100: atcommand "@unloadnpcfile <path>"; end; OnClock0200: atcommand "@loadnpc <path>"; end; Note: Look @unloadnpcfile up in doc/atcommands.txt first, if you have it.Regards, Chris The problem with this is that it has a high probability of failing after the first unloading.I resulted to using enablenpc/disablenpc because of this problem. What kind of failure?Regards, Chris Quote
Ninja Posted October 16, 2015 Posted October 16, 2015 (edited) like i mentioned: OnClock0100: atcommand "@unloadnpcfile <path>"; end; OnClock0200: atcommand "@loadnpc <path>"; end; Note: Look @unloadnpcfile up in doc/atcommands.txt first, if you have it.Regards, Chris The problem with this is that it has a high probability of failing after the first unloading.I resulted to using enablenpc/disablenpc because of this problem. What kind of failure?Regards, Chris Ingame failure sayin somethin like 'failed to load npc'//edit I'm not sure if it'll work for monster spawn though. Edited October 17, 2015 by jezznar Quote
Rain408 Posted October 19, 2015 Posted October 19, 2015 Is it possible to do an invasion simailair to how LoD spawn in niff and mod it to happen at set times? I'll try testing that when I'm off work Quote
Question
grampa
Hi All,
I just want to ask if it is possible to have a script to load/unload certain script in a certain time?
Like for example, I want to disable the permanent monster spawn in prt_maze OnClock0100 and the resume enable it OnClock0200?
Any advise is greatly appreciated!
11 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.