Jump to content
  • 0

only show npc during woe


Subzero

Question


  • Group:  Members
  • Topic Count:  30
  • Topics Per Day:  0.01
  • Content Count:  60
  • Reputation:   0
  • Joined:  07/25/16
  • Last Seen:  

hello,its there posibble

make npc only show following time example

saturday,sunday 21:00 until 22:00

this my tested npc

https://pastebin.com/QFQDTj4c

 

Link to comment
Share on other sites

5 answers to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  47
  • Topics Per Day:  0.01
  • Content Count:  374
  • Reputation:   46
  • Joined:  03/27/13
  • Last Seen:  

Not tested & not sure but try:

izlude,128,112,3	script	Rental Donation	122,{

disablenpc strnpcinfo(1);
 
	mes "[RentalNPC]";
	mes "Welcome to Beginning Ragnarok!!";
    	mes "What Service May I Offer You ?";	
	next;
	mes "Please select your class specific Rentalthat you want to get:";
		switch(select("Rental Donation Increase:Rental Donation Magic:Rental Donation Reduce")) {
			case 1:
				mes "[RentalNPC]";
				mes "Here's your Rental for Increase Donation Set";
				rentitem 5013,300;
				goto Message1;
				end;
			case 2:
				mes "[RentalNPC]";
				mes "Here's your Rental for Magic Donation Set";
				rentitem 13945,300;
				goto Message1;
				end;	
			case 3:
				mes "[RentalNPC]";
				mes "Here's your Rental for Reduce Donation Set";
				rentitem 13945,300;
				goto Message1;
				end;
				}
 
	Message1:
	mes "[RentalNPC]";
	mes "Enjoy ur WOE.";
	mes "If you need help. Please use @request / search for Game Staffs. Thank You.";
	mes "Before Expired Please Remove The Card.GM Wont Responsible if any card Lost.";
 
	close;

OnSat2100:
OnSun2100:
	enablenpc strnpcinfo(1);
	end;

OnSat2200:
OnSun2200:
	disablenpc strnpcinfo(1);
	end;
 
	}

 

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  61
  • Topics Per Day:  0.02
  • Content Count:  911
  • Reputation:   166
  • Joined:  11/27/14
  • Last Seen:  

Try this i made it thru phone if this won't work then at least i give you idea how to do it

 

prontera,x,y,3	script	testHideDuringWoe	99,{


    if ( agitstart() || agitstart2() || agitstart3()){
		if ( gettime (DT_DAYOFWEEK) == Day1 || Day2 || day 3 || etc ){ // Do this if the first condition true then do another condition inside condition
				// If the condition do the code here
		}
		end; if the condition of day is false then end the script    
    }
    end;// End the script if the condition is false

OnInit:
		hideonnpc "NPCNAME";
		end;
}

 

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  30
  • Topics Per Day:  0.01
  • Content Count:  60
  • Reputation:   0
  • Joined:  07/25/16
  • Last Seen:  

6 hours ago, Scylla said:

Not tested & not sure but try:


izlude,128,112,3	script	Rental Donation	122,{

disablenpc strnpcinfo(1);
 
	mes "[RentalNPC]";
	mes "Welcome to Beginning Ragnarok!!";
    	mes "What Service May I Offer You ?";	
	next;
	mes "Please select your class specific Rentalthat you want to get:";
		switch(select("Rental Donation Increase:Rental Donation Magic:Rental Donation Reduce")) {
			case 1:
				mes "[RentalNPC]";
				mes "Here's your Rental for Increase Donation Set";
				rentitem 5013,300;
				goto Message1;
				end;
			case 2:
				mes "[RentalNPC]";
				mes "Here's your Rental for Magic Donation Set";
				rentitem 13945,300;
				goto Message1;
				end;	
			case 3:
				mes "[RentalNPC]";
				mes "Here's your Rental for Reduce Donation Set";
				rentitem 13945,300;
				goto Message1;
				end;
				}
 
	Message1:
	mes "[RentalNPC]";
	mes "Enjoy ur WOE.";
	mes "If you need help. Please use @request / search for Game Staffs. Thank You.";
	mes "Before Expired Please Remove The Card.GM Wont Responsible if any card Lost.";
 
	close;

OnSat2100:
OnSun2100:
	enablenpc strnpcinfo(1);
	end;

OnSat2200:
OnSun2200:
	disablenpc strnpcinfo(1);
	end;
 
	}

 

thanks sir its work but need click the npc first to made it hide

Edited by Subzero
working
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  30
  • Topics Per Day:  0.01
  • Content Count:  60
  • Reputation:   0
  • Joined:  07/25/16
  • Last Seen:  

4 hours ago, Poring King said:

Try this i made it thru phone if this won't work then at least i give you idea how to do it

 


prontera,x,y,3	script	testHideDuringWoe	99,{


    if ( agitstart() || agitstart2() || agitstart3()){
		if ( gettime (DT_DAYOFWEEK) == Day1 || Day2 || day 3 || etc ){ // Do this if the first condition true then do another condition inside condition
				// If the condition do the code here
		}
		end; if the condition of day is false then end the script    
    }
    end;// End the script if the condition is false

OnInit:
		hideonnpc "NPCNAME";
		end;
}

 

izlude,160,89,3    script    testHideDuringWoe    99,{


    if ( agitstart() || agitstart2() || agitstart3()){
        if ( gettime (DT_DAYOFWEEK) == Day1 || Day2 || day 3 || etc ){ // Do this if the first condition true then do another condition inside condition
                // If the condition do the code here
        }
        end; if the condition of day is false then end the script    
    }
    end;// End the script if the condition is false

OnInit:
        hideonnpc "Rental Donation";
        end;
}
 

not working sir

 

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  47
  • Topics Per Day:  0.01
  • Content Count:  374
  • Reputation:   46
  • Joined:  03/27/13
  • Last Seen:  

4 hours ago, Subzero said:

thanks sir its work but need click the npc first to made it hide

Ah then:

izlude,128,112,3	script	Rental Donation	122,{

OnInit:
disablenpc strnpcinfo(1);
end;

 

Link to comment
Share on other sites

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.

×
×
  • Create New...