Jump to content
  • 0

Question

Posted

i would like to request a npc that warp players into my gold room lets say for example in the ordeal map,

 

after the usage of the room the npc will give the character a delay for room usage

 

delay usage of room determined by how long the character is in the ordeal map

2 answers to this question

Recommended Posts

Posted
map,x,y,dir	script	GoldRoom	909, {
	set .@goldroomtime, 3600000; //in milliseconds
	warp ordeal,x,y;
	announce "You have 1 hour to stay in this Gold Room. The timer starts from NOW", bc_self;
	addtimer .@goldroomtime, "GoldRoom::OnTimeUp";
	end;
	
OnTimeUP:
	announce "Time's up!", bc_self;
	warp map,x,y; //returns the player back to the town
	end;

OnPcLoginEvent:
	if (strcharinfo(3) == "ordeal") warp map,x,y; //returns the player back to the town
	end;
}

this is just like.... purchasing credit to cell phone. then, the player uses it. BUT, if he logged out while he's inside the room, then his time will vanish away.

once he's logged back in, he's assumed he has no credit left. so, he'll teleported somewhere.

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