Jump to content
  • 0

monster spawn every 30min


Kariton Revolution

Question


  • Group:  Members
  • Topic Count:  161
  • Topics Per Day:  0.04
  • Content Count:  429
  • Reputation:   5
  • Joined:  11/21/11
  • Last Seen:  

random MVP monster spawn every 30min in prontera 
help me to make this script please thankyou

Link to comment
Share on other sites

5 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  50
  • Topics Per Day:  0.01
  • Content Count:  1702
  • Reputation:   238
  • Joined:  09/05/12
  • Last Seen:  

Try this one : 

-    script    Sample    -1,{
    OnInit:
        setarray .mob_id[0],1002,1113,1399,1159;
        set .size, getarraysize(.mob_id);
        set .random, rand(.size);
        set .amount, 1; // amount of monster spawned
        set .monster, .mob_id[.random];
        end;
        
    OnMinute00:
    OnMinute30:
        monster "prontera",150,150,getmonsterinfo(.monster, 0),.monster,.amount,strnpcinfo(0)+ "::OnKill";
        announce getmonsterinfo(.monster, 0)+ " has been spawned in prontera",0;
        end;
        
    OnKill:
        announce "The monster " +getmonsterinfo(.monster, 0)+ " has been killed",0;
        end;
}

Screenshot : 

post-7560-0-87785900-1381640486_thumb.png

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  4
  • Topics Per Day:  0.00
  • Content Count:  13
  • Reputation:   0
  • Joined:  12/22/16
  • Last Seen:  

it's can be used if the spawn every hours using "OnClock0000" and spawn time like this ?

-    script    Sample    -1,{
    OnInit:
        setarray .mob_id[0],1002,1113,1399,1159;
        set .size, getarraysize(.mob_id);
        set .random, rand(.size);
        set .amount, 1; // amount of monster spawned
        set .monster, .mob_id[.random];
        end;
        
OnClock0000:
OnClock0600:
OnClock1200:
OnClock1800:
    OnMinute00:
		announce getmonsterinfo(.monster, 0)+ " will spawned at prontera in 10 mins",0;
    OnMinute09:
		announce getmonsterinfo(.monster, 0)+ " will spawned at prontera in 1 mins",0;
    OnMinute10:
        monster "prontera",150,150,getmonsterinfo(.monster, 0),.monster,.amount,strnpcinfo(0)+ "::OnKill";
        end;
        
    OnKill:
        announce "The monster " +getmonsterinfo(.monster, 0)+ " has been killed",bc_all | bc_blue;
        OnTimer15000:
        announce "Please wait till next announcement monster spawn",bc_all | bc_blue;
        end;
        
}

 

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  50
  • Topics Per Day:  0.01
  • Content Count:  1702
  • Reputation:   238
  • Joined:  09/05/12
  • Last Seen:  

Kinda sleepy so i don't know if this will work 

-    script    Sample    -1,{
    OnInit:
        setarray .mob_id[0],1002,1113,1399,1159;
        set .size, getarraysize(.mob_id);
        set .random, rand(.size);
        set .amount, 5; // amount of monster spawned
        end;
        
    OnMinute30:
        set .monster, .mob_id[.random];
        monster "prontera",0,0,getmonsterinfo(.monster, 0),.monster,.amount,strnpcinfo(0)+ "::OnKill";
        end;
        
    OnKill:
        announce "Monster is already killed",0;
        end;
}
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  38
  • Topics Per Day:  0.01
  • Content Count:  276
  • Reputation:   24
  • Joined:  07/06/13
  • Last Seen:  

Kinda sleepy so i don't know if this will work 

-    script    Sample    -1,{
    OnInit:
        setarray .mob_id[0],1002,1113,1399,1159;
        set .size, getarraysize(.mob_id);
        set .random, rand(.size);
        set .amount, 5; // amount of monster spawned
        end;
        
    OnMinute30:
        set .monster, .mob_id[.random];
        monster "prontera",0,0,getmonsterinfo(.monster, 0),.monster,.amount,strnpcinfo(0)+ "::OnKill";
        end;
        
    OnKill:
        announce "Monster is already killed",0;
        end;
}

Add this for every 30mins

OnMinute00:
OnMinute30:
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  161
  • Topics Per Day:  0.04
  • Content Count:  429
  • Reputation:   5
  • Joined:  11/21/11
  • Last Seen:  

its not working :( and also can you make the npc that when monster is spawn when you click the npc npc say the monster that been spawn 



example
detale is the monster spawn in prontera
npc: mes" detale in prontera"

 

if the monster died when you click the npc 

npc: mes"the monster is died. wait for the another monster to spawn"

 

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