DEsMOn Posted October 6, 2021 Group: Members Topic Count: 63 Topics Per Day: 0.04 Content Count: 172 Reputation: 1 Joined: 11/16/20 Last Seen: November 4, 2023 Share Posted October 6, 2021 Hello Everyone. I'm Looking for script in which NPC can be active during WOE days & the Item which NPC gives that should be in rent item for 1 day weather you use it or not it will be wiped out automatically. Woe days such as Tuesday Thursday Sunday G-pack Item ID - 30005 Can any one help? Quote Link to comment Share on other sites More sharing options...
0 Emistry Posted October 17, 2021 Group: Forum Moderator Topic Count: 93 Topics Per Day: 0.02 Content Count: 10018 Reputation: 2369 Joined: 10/28/11 Last Seen: 11 hours ago Share Posted October 17, 2021 (edited) OnInit: OnClock1700: OnClock1830: hideonnpc strnpcinfo(3); if (gettime(DT_DAYOFWEEK) == TUESDAY || gettime(DT_DAYOFWEEK) == THURSDAY || gettime(DT_DAYOFWEEK) == SUNDAY ) { if (gettime(DT_HOUR) == 17 || (gettime(DT_HOUR) == 18 && gettime(DT_MINUTE) <= 30)) hideoffnpc strnpcinfo(3); } end; Edited October 18, 2021 by Emistry update 1 Quote Link to comment Share on other sites More sharing options...
0 Emistry Posted October 16, 2021 Group: Forum Moderator Topic Count: 93 Topics Per Day: 0.02 Content Count: 10018 Reputation: 2369 Joined: 10/28/11 Last Seen: 11 hours ago Share Posted October 16, 2021 prontera,155,181,5 script Sample 757,{ if (getcharid(2) && #GUILD_PACK_CD != gettime(DT_YYYYMMDD)) { #GUILD_PACK_CD = gettime(DT_YYYYMMDD); getitem 30005, 1; } end; OnInit: OnHour00: if (gettime(DT_DAYOFWEEK) != TUESDAY && gettime(DT_DAYOFWEEK) != THURSDAY && gettime(DT_DAYOFWEEK) != SUNDAY ) { hideonnpc strnpcinfo(3); } end; } - Id: 30005 AegisName: G-Pack Script: | rentitem 1201, 86400; rentitem 1202, 86400; rentitem 1203, 86400; 1 Quote Link to comment Share on other sites More sharing options...
0 DEsMOn Posted October 16, 2021 Group: Members Topic Count: 63 Topics Per Day: 0.04 Content Count: 172 Reputation: 1 Joined: 11/16/20 Last Seen: November 4, 2023 Author Share Posted October 16, 2021 35 minutes ago, Emistry said: prontera,155,181,5 script Sample 757,{ if (getcharid(2) && #GUILD_PACK_CD != gettime(DT_YYYYMMDD)) { #GUILD_PACK_CD = gettime(DT_YYYYMMDD); getitem 30005, 1; } end; OnInit: OnHour00: if (gettime(DT_DAYOFWEEK) != TUESDAY && gettime(DT_DAYOFWEEK) != THURSDAY && gettime(DT_DAYOFWEEK) != SUNDAY ) { hideonnpc strnpcinfo(3); } end; } - Id: 30005 AegisName: G-Pack Script: | rentitem 1201, 86400; rentitem 1202, 86400; rentitem 1203, 86400; WOWWWWW Thank you so much Sir..!!! Working like Charm...!!!!!!!!!!! Quote Link to comment Share on other sites More sharing options...
0 DEsMOn Posted October 16, 2021 Group: Members Topic Count: 63 Topics Per Day: 0.04 Content Count: 172 Reputation: 1 Joined: 11/16/20 Last Seen: November 4, 2023 Author Share Posted October 16, 2021 (edited) 58 minutes ago, Emistry said: prontera,155,181,5 script Sample 757,{ if (getcharid(2) && #GUILD_PACK_CD != gettime(DT_YYYYMMDD)) { #GUILD_PACK_CD = gettime(DT_YYYYMMDD); getitem 30005, 1; } end; OnInit: OnHour00: if (gettime(DT_DAYOFWEEK) != TUESDAY && gettime(DT_DAYOFWEEK) != THURSDAY && gettime(DT_DAYOFWEEK) != SUNDAY ) { hideonnpc strnpcinfo(3); } end; } - Id: 30005 AegisName: G-Pack Script: | rentitem 1201, 86400; rentitem 1202, 86400; rentitem 1203, 86400; Dear sir 1 question & some modification if possible. Is it possible to add "Time" for NPC before WOE like For 1 or 2 hr's Only NPC will show up before WOE to collect Gpack. Because according to DAY it will be active whole day isn't it? NPC chat making Player aware of Gpack Duration so they chose wisely with yes (collect) or no (reject). Because i've created Gpack which has duration of 3 hrs only Once opened it will wipe out in 3hrs. & Thank you so much for this script ...!! ur AWESOMEEEE Edited October 16, 2021 by DEsMOn Changes Quote Link to comment Share on other sites More sharing options...
0 Emistry Posted October 16, 2021 Group: Forum Moderator Topic Count: 93 Topics Per Day: 0.02 Content Count: 10018 Reputation: 2369 Joined: 10/28/11 Last Seen: 11 hours ago Share Posted October 16, 2021 (edited) OnTue1800: OnThu1800: OnSun1800: hideoffnpc strnpcinfo(3); end; OnTue2000: OnThu2000: OnSun2000: hideonnpc strnpcinfo(3); end; OnClock<hour><minute>: OnMinute<minute>: OnHour<hour>: On<weekday><hour><minute>: OnDay<month><day>: Edited October 16, 2021 by Emistry 1 Quote Link to comment Share on other sites More sharing options...
0 DEsMOn Posted October 17, 2021 Group: Members Topic Count: 63 Topics Per Day: 0.04 Content Count: 172 Reputation: 1 Joined: 11/16/20 Last Seen: November 4, 2023 Author Share Posted October 17, 2021 12 hours ago, Emistry said: OnTue1800: OnThu1800: OnSun1800: hideoffnpc strnpcinfo(3); end; OnTue2000: OnThu2000: OnSun2000: hideonnpc strnpcinfo(3); end; OnClock<hour><minute>: OnMinute<minute>: OnHour<hour>: On<weekday><hour><minute>: OnDay<month><day>: Thank you so much sir, I see 1 small issue When we do reloadscript NPC show up doesn't hide until we set time to hide. Example if i do @reloadscript at 1000 Hrs. Sunday & NPC hide time is set at 1830 Hrs Sunday so NPC will be on until 1830 hrs. Rest working awesome...Thank you so much sir prontera,161,181,5 script Emistry 757,{ if (getcharid(2) && #GUILD_PACK_CD != gettime(DT_YYYYMMDD)) { #GUILD_PACK_CD = gettime(DT_YYYYMMDD); //getitem 30005, 1; rentitem 30005,120; } end; OnInit: waitingroom "Emistry G-Pack",0; end; OnTue1700: OnThu1700: OnSun1700: hideoffnpc strnpcinfo(3); end; OnTue1830: OnThu1830: OnSun1830: hideonnpc strnpcinfo(3); end; } Quote Link to comment Share on other sites More sharing options...
0 DEsMOn Posted October 17, 2021 Group: Members Topic Count: 63 Topics Per Day: 0.04 Content Count: 172 Reputation: 1 Joined: 11/16/20 Last Seen: November 4, 2023 Author Share Posted October 17, 2021 16 hours ago, Emistry said: OnInit: OnClock1700: OnClock1830: hideonnpc strnpcinfo(3); if (gettime(DT_DAYOFWEEK) == TUESDAY || gettime(DT_DAYOFWEEK) == THURSDAY || gettime(DT_DAYOFWEEK) == SUNDAY ) { if (gettime(DT_HOUR) == 17 || (gettime(DT_HOUR) == 18 && gettime(DT_MINUTE) <= 30) hideoffnpc strnpcinfo(3); } end; Thank you so much sir so many ways to do amazing Thank you so much Sir 1 NPC dedicated on your name small appreciation 14 hours ago, DEsMOn said: Thank you so much sir so many ways to do amazing by this script i faced this error in CMD how to solve? [Error]: Loading NPC file: npc/custom/NEWGpackNPC.txt script error on npc/custom/NEWGpackNPC.txt line 18 parse_simpleexpr: unmatched ')' 13 : if (gettime(DT_DAYOFWEEK) == TUESDAY 14 : || gettime(DT_DAYOFWEEK) == THURSDAY 15 : || gettime(DT_DAYOFWEEK) == SUNDAY 16 : ) { 17 : if (gettime(DT_HOUR) == 17 || (gettime(DT_HOUR) == 18 && gettime(DT_MINUTE) <= 30) * 18 : 'h'ideoffnpc strnpcinfo(3); 19 : } 20 : end; 21 : 22 : } 23 : Quote Link to comment Share on other sites More sharing options...
0 Emistry Posted October 18, 2021 Group: Forum Moderator Topic Count: 93 Topics Per Day: 0.02 Content Count: 10018 Reputation: 2369 Joined: 10/28/11 Last Seen: 11 hours ago Share Posted October 18, 2021 if (gettime(DT_HOUR) == 17 || (gettime(DT_HOUR) == 18 && gettime(DT_MINUTE) <= 30)) hideoffnpc strnpcinfo(3); 1 Quote Link to comment Share on other sites More sharing options...
Question
DEsMOn
Hello Everyone.
I'm Looking for script in which NPC can be active during WOE days & the Item which NPC gives that should be in rent item for 1 day weather you use it or not it will be wiped out automatically.
Woe days such as
Tuesday
Thursday
Sunday
G-pack Item ID - 30005
Can any one help?
Link to comment
Share on other sites
8 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.