Jump to content
  • 0

NPC work in an especific time


dicrs

Question


  • Group:  Members
  • Topic Count:  1
  • Topics Per Day:  0.00
  • Content Count:  2
  • Reputation:   0
  • Joined:  03/27/17
  • Last Seen:  

hey rathena members, can someone help me??
I need one npc that work in an especific time, 09am to 10am, 15pm to 16pm, 20pm to 21pm and 23pm to 00am.
The npc will teleport the player for 30.000zenys to the map "gld2_ald". So, when the time of the map is over, the players in the map need to warp to prontera 150,179.

Sorry, my english is so bad. Thankss!!

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • 0

  • Group:  Developer
  • Topic Count:  50
  • Topics Per Day:  0.02
  • Content Count:  763
  • Reputation:   227
  • Joined:  02/11/17
  • Last Seen:  

prontera,255,55,4	script	alg_teleporter	123,{
	if(Zeny >= .warp_fee){
		warp "gld2_ald",0,0;
		end;
	}
	mes "- Not Enough Zeny -";
	mes "- Come back when you have "+.warp_fee+" Zeny -";
	close;

OnHour23:
OnHour09:
OnHour15:
OnHour20:
	enablenpc "alg_teleporter";
	end;
	
OnHour10:
OnHour16:
OnHour21:
OnHour00:
	mapwarp "gld2_ald","SavePoint",0,0;
	disablenpc "alg_teleporter";
	end;
	
OnInit:
	.warp_fee = 30000;
	disablenpc "alg_teleporter";
	end;
}

 

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  1
  • Topics Per Day:  0.00
  • Content Count:  2
  • Reputation:   0
  • Joined:  03/27/17
  • Last Seen:  

3 hours ago, crazyarashi said:

prontera,255,55,4	script	alg_teleporter	123,{
	if(Zeny >= .warp_fee){
		warp "gld2_ald",0,0;
		end;
	}
	mes "- Not Enough Zeny -";
	mes "- Come back when you have "+.warp_fee+" Zeny -";
	close;

OnHour23:
OnHour09:
OnHour15:
OnHour20:
	enablenpc "alg_teleporter";
	end;
	
OnHour10:
OnHour16:
OnHour21:
OnHour00:
	mapwarp "gld2_ald","SavePoint",0,0;
	disablenpc "alg_teleporter";
	end;
	
OnInit:
	.warp_fee = 30000;
	disablenpc "alg_teleporter";
	end;
}

 

Thx my friend, Work fine!!

Edited by dicrs
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...