Jump to content

Question

5 answers to this question

Recommended Posts

Posted

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

  • 0
Posted

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;
        
}

 

Posted

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;
}
Posted

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:
Posted

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"

 

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