Jump to content
  • 0

NPC Timed Warper - Need Help


PandaLovesHamster

Question


  • Group:  Members
  • Topic Count:  51
  • Topics Per Day:  0.01
  • Content Count:  452
  • Reputation:   33
  • Joined:  12/18/14
  • Last Seen:  

Hi everyone, I'm in a middle of creating an npc and has hit a wall. Please help me out with how to do the following:


1. When a player has found the NPC, it will announce to the map that it has been found and other players have 5 minutes to come to it.
2. After 5 minutes, players who have talked to the NPC will then be warped to a certain map.
3. When the NPC has warped the players, it will not entertain anyone except for the players it has warped.

I'm not sure if this is would be a long script, however please try to help me out as much especially #2.

 

Edit:

This is the script I have come up with. However this only covers the number 1 of my request. If someone can attach a snippet to let the npc warp the players who only talk to it beforehand, it would practically finish up the script I've finished.
 

-	script	Dark Rift	-1,{

if($cdstarted == 1){ goto OnUse; }
	mes "[Dark Rift]";
	mes "It seems I have been found."
	mapannounce "Dark Rift: I have been found. Please come to me to register.",0;
	sleep 5000;
	mapannounce "Dark Rift: You have 5 minutes to register for the Boss Raid.",0;
	initnpctimer;
	npctalk "Gather other adventurers. The boss awaits.";
	set $cdstarted,1;hh
	close;

OnTimer300000:
	mapannounce "Dark Rift: 5 minutes have passed. Registration for the Boss Raid is now disabled.",0;
	sleep 5000;
	mapannounce "Dark Rift: I will now warp the players who have registered.",0;
	stopnpctimer;
end;

OnUse:
	mes "[Dark Rift]";
	mes "The Boss Room has a party inside.";
	mes "Come again after they are finished.";
	close;
end;

}


Side Request: (If this is possible) Thank you :)

1. NPC that can cast the following skills on a certain part of a map, for let's say center of prontera? (is this possible?)

 - Storm Gust

 - Lord of Vermillion

 - Quagmire

2. NPC that will check the stats of players, if player has vit < 70, player will have coma status (activates only once, if player heals up then player will not be put into status again)

 

Edit:

I just saw this "areamobuseskill" would this be usable with the number one? Instead of an NPC, it will be a monster who will be casting the skills.

Edited by PandaRapesHamster
Link to comment
Share on other sites

5 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  51
  • Topics Per Day:  0.01
  • Content Count:  452
  • Reputation:   33
  • Joined:  12/18/14
  • Last Seen:  

Can anyone help me out with this? Just the one that will enable the npc to warp the players who talked to it.

Link to comment
Share on other sites


  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10013
  • Reputation:   2346
  • Joined:  10/28/11
  • Last Seen:  

1. NPC that can cast the following skills on a certain part of a map, for let's say center of prontera? (is this possible?)

 - Storm Gust

 - Lord of Vermillion

 - Quagmire

 use npcskill / unitskilluseid / unitskillusepos

 

2. NPC that will check the stats of players, if player has vit < 70, player will have coma status (activates only once, if player heals up then player will not be put into status again)

use readparam

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  51
  • Topics Per Day:  0.01
  • Content Count:  452
  • Reputation:   33
  • Joined:  12/18/14
  • Last Seen:  

 

1. NPC that can cast the following skills on a certain part of a map, for let's say center of prontera? (is this possible?)

 - Storm Gust

 - Lord of Vermillion

 - Quagmire

 use npcskill / unitskilluseid / unitskillusepos

 

2. NPC that will check the stats of players, if player has vit < 70, player will have coma status (activates only once, if player heals up then player will not be put into status again)

use readparam

 

Sorry for a very late reply. Can you give me a brief example with regards to unitskillusepos? Thanks.

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