Monster At Night / Teleport by speech [SCRIPT HELP]

Juan Meissner

New member
Messages
72
Points
0
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.
 
Last edited by a moderator:
This is just a rough draft, modify it according to your liking:

Code:
-	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();
} 
 
how i can do it for more monsters and maps too in one script?
monster("prontera", 150, 150, "Bat", 1005, 1, "");


e.g

Code:
monster("prontera", 150, 150, "Boring", 1002, 100, ""); // 100 Porings
By adding more.

 
Back
Top