dubstep Posted June 10, 2017 Group: Members Topic Count: 16 Topics Per Day: 0.00 Content Count: 35 Reputation: 2 Joined: 07/25/15 Last Seen: October 8, 2021 Share Posted June 10, 2017 Hi there! Is it possible to automatically change the HP of a specific mob (1288-Emperium) everyday? E.g.: Monday = 1m Tuesday = 5m Wed = 1m Thurs = 5m Can you give me a script if it's possible? Thank you in advance! Quote Link to comment Share on other sites More sharing options...
-1 dubstep Posted June 14, 2017 Group: Members Topic Count: 16 Topics Per Day: 0.00 Content Count: 35 Reputation: 2 Joined: 07/25/15 Last Seen: October 8, 2021 Author Share Posted June 14, 2017 Bump Quote Link to comment Share on other sites More sharing options...
0 Emistry Posted June 24, 2017 Group: Forum Moderator Topic Count: 93 Topics Per Day: 0.02 Content Count: 10018 Reputation: 2369 Joined: 10/28/11 Last Seen: Thursday at 04:49 PM Share Posted June 24, 2017 npc/guild/agit_main.txt#L96-L98 if (!mobcount(strnpcinfo(2),"Agit#"+strnpcinfo(2)+"::OnAgitBreak")) { monster strnpcinfo(2),.@emproom[0],.@emproom[1],"Emperium",1288,1,"Agit#"+strnpcinfo(2)+"::OnAgitBreak"; } change to if (!mobcount(strnpcinfo(2),"Agit#"+strnpcinfo(2)+"::OnAgitBreak")) { monster strnpcinfo(2),.@emproom[0],.@emproom[1],"Emperium",1288,1,"Agit#"+strnpcinfo(2)+"::OnAgitBreak"; .@gid = $@mobid[0]; switch ( gettime(DT_DAYOFWEEK) ) { case MONDAY: case WEDNESDAY: .@max_hp = 1000000; break; case TUESDAY: case THURSDAY: .@max_hp = 5000000; break; default: break; } if ( .@max_hp > 0 ) { setunitdata .@gid,UMOB_MAXHP,.@max_hp; setunitdata .@gid,UMOB_HP,.@max_hp; } } Quote Link to comment Share on other sites More sharing options...
0 St1ng Posted May 20, 2020 Group: Members Topic Count: 2 Topics Per Day: 0.00 Content Count: 5 Reputation: 0 Joined: 11/17/16 Last Seen: May 7, 2021 Share Posted May 20, 2020 On 6/25/2017 at 5:07 AM, Emistry said: npc/guild/agit_main.txt#L96-L98 if (!mobcount(strnpcinfo(2),"Agit#"+strnpcinfo(2)+"::OnAgitBreak")) { monster strnpcinfo(2),.@emproom[0],.@emproom[1],"Emperium",1288,1,"Agit#"+strnpcinfo(2)+"::OnAgitBreak"; } change to if (!mobcount(strnpcinfo(2),"Agit#"+strnpcinfo(2)+"::OnAgitBreak")) { monster strnpcinfo(2),.@emproom[0],.@emproom[1],"Emperium",1288,1,"Agit#"+strnpcinfo(2)+"::OnAgitBreak"; .@gid = $@mobid[0]; switch ( gettime(DT_DAYOFWEEK) ) { case MONDAY: case WEDNESDAY: .@max_hp = 1000000; break; case TUESDAY: case THURSDAY: .@max_hp = 5000000; break; default: break; } if ( .@max_hp > 0 ) { setunitdata .@gid,UMOB_MAXHP,.@max_hp; setunitdata .@gid,UMOB_HP,.@max_hp; } } @Emistry / to All Does not work for me after @reloadscript. Is a restart needed for it to take effect? Target Output : My default Emperium HP is 10m via mob_db.txt, I would want it to be re-scaled at 500k during Saturday and Sunday 7-8pm only, then back to default 10m HP by 9-10PM for my 2nd WoE Sched. Weekdays = Normal HP (10m) This is my agit_main.txt agit_main.txt Quote Link to comment Share on other sites More sharing options...
Question
dubstep
Hi there! Is it possible to automatically change the HP of a specific mob (1288-Emperium) everyday?
E.g.:
Monday = 1m
Tuesday = 5m
Wed = 1m
Thurs = 5m
Can you give me a script if it's possible? Thank you in advance!
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.