Jump to content
  • 0
Sign in to follow this  
Juan Meissner

Monster At Night / Teleport by speech [SCRIPT HELP]

Question

Hello community Herc.ws, my question today would be to create monsters that will appear during a period of the game, whether the game is in night mode, or in day mode.
Example: I want Family monsters to appear during the night, and during the day Hornet appears.
In the script I need to also define the maps where the monster can appear, and the amount set for each monster on each map, and also set the respawn time for the monster for each map.
Can i do that way?
 

 

if (isnight()){
    ein_dun01,0,0,0,0    monster    Bat    1005,25,0,0,1
    
}
if (!isnight()){
    
    ein_dun01,0,0,0,0    monster    Fly     1011,25,0,0,1
}

 

 

Another thing I need help with, is an NPC of speech telephony, example:
If I am near an NPC and speak: Warp Prontera, the NPC will teleport, but a progressive variable will be needed that will liberate cities globally, for example
 
$ Warp == 1 // Prontera is released
$ Warp == 2 // Prontera and Geffen is released
$ Warp == 3 // Prontera, Geffen and Morroc released.
Edited by Juan Meissner

Share this post


Link to post
Share on other sites

3 answers to this question

Recommended Posts

  • 0

This is just a rough draft, modify it according to your liking:

 

 

 

-	script	Test#01	FAKE_NPC,{
OnInit:
	.daynight = 1;
	while(.daynight){
		if (isnight()){
			if(mobcount("prontera","all") == 1){ // i have to set it to 1, monster you spawn + city cleaner = 2
				.n = 0;
			}
			if (!.n) {
				monster("prontera", 150, 150, "Bat", 1005, 1, "");
				.n = 1;
			}
		}
		if (!isnight()){
			if(mobcount("prontera","all") == 1){ // i have to set it to 1, monster you spawn + city cleaner = 2
				.n = 0;
			}
			if (!.n) {
				monster("prontera", 150, 150, "Fly", 1011, 1, "");
				.n = 1;
			}
		}
		sleep2(500);
	}
	end();
} 

 

 

Share this post


Link to post
Share on other sites
  • 0
25 minutes ago, Juan Meissner said:

how i can do it for more monsters and maps too in one script?

monster("prontera", 150, 150, "Bat", 1005, 1, "");

e.g

monster("prontera", 150, 150, "Boring", 1002, 100, ""); // 100 Porings

By adding more.

Share this post


Link to post
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.   Restore formatting

  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.

Loading...
Sign in to follow this  

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.