Jump to content
  • 0

Guild Pack NPC which can activate during WOE days


Question

Posted

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? 

8 answers to this question

Recommended Posts

  • 0
Posted (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 by Emistry
update
  • Love 1
  • 0
Posted
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;

 

  • Love 1
  • 0
Posted
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...!!!!!!!!!!!

 

  • 0
Posted (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 by DEsMOn
Changes
  • 0
Posted (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 by Emistry
  • Love 1
  • 0
Posted
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;
        
}
 

  • 0
Posted
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 ???

9A46438E-CDD2-49C7-9E34-8EE4C04535F0.png

 

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 :

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...