Jump to content
  • 0

NPC work in an especific time


Question

Posted

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!!

2 answers to this question

Recommended Posts

  • 0
Posted
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;
}

 

  • 0
Posted (edited)
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

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...