Jump to content
  • 0

Help me with Invasion Script


Question

Posted (edited)

First of all i wanna say thank you to Emistry for sharing this script. But i need your help on editting this script on what my server need.

I want that the mobs will only drop item 9524 10pcs per monster and it will automatically run every 10 minutes. in prontera only. please also remove the cashpoints.

Thanks in advance /no1

Invasion.txt

Edited by Capuche
Merge the same request.

14 answers to this question

Recommended Posts

Posted


- script zombie_event -1,{

OnMinute00:

OnMinute10:

OnMinute20:

OnMinute30:

OnMinute40:

OnMinute50:

killmonster "prontera","All";

monster "prontera",0,0,"zombie",1015,100,strnpcinfo(0)+"::OnKill";

end;

OnKill:

getitem 9524,10;

end;

}

Posted


- script Sample -1,{

OnInit:

// Map Lists

setarray .Map$[0],"prontera";

// Cash Reward ( Normal | Boss )

setarray .Cash[0],0;

// Normal Mob ID + Count

setarray .MobCount[0],1870,10;

// BOSS Mob ID + Count

setarray .BossCount[0],1708,1;

// Invasion Duration ( Minutes )

set .Duration,1;

end;

OnMinute00:

OnMinute10:

OnMinute20:

OnMinute30:

OnMinute40:

OnMinute50:

awake strnpcinfo(0);

set .RandomMap$,.Map$[ rand( getarraysize(.Map$) ) ];

killmonster .RandomMap$,"All";

announce "INVASION has started at "+.RandomMap$+" .",0;

for( set .@i,0; .@i < getarraysize( .MobCount ) - 1; set .@i,.@i + 1 )

monster .RandomMap$,0,0,"INVASION NAME",.MobCount[.@i],.MobCount[.@i+1],strnpcinfo(0)+"::OnKilled";

sleep ( .Duration * 10000 );

killmonster .RandomMap$,"All";

announce "INVASION has ended.",0;

end;

OnKilled:

getitem 9524,10;

if( !mobcount( .RandomMap$,strnpcinfo(0)+"::OnKilled" ) ){

announce "ALERT : Final Boss Arrived.",0;

for( set .@i,0; .@i < getarraysize( .BossCount ) - 1; set .@i,.@i + 1 )

monster .RandomMap$,0,0,"INVASION BOSS",.BossCount[.@i],.BossCount[.@i+1],strnpcinfo(0)+"::OnBossKilled";

}else

announce "Monster Remain : "+mobcount( .RandomMap$,strnpcinfo(0)+"::OnKilled" ),0;

end;

OnBossKilled:

getitem 9524,10;

announce strcharinfo(0)+" killed Invasion Boss",0;

if( !mobcount( .RandomMap$,strnpcinfo(0)+"::OnBossKilled" ) ){

announce "INVASION has ended.",0;

awake strnpcinfo(0);

}

end;

}

Posted

Hi pro Scripters,

Can you do me favor? Since it was HALLOWEEN, i wanna ask for a ZOMBIE INVASION AUTOMATED EVENT SCRIPT. An event that will summon zombies all around prontera map and if a player kills a zombie it will provide an item id 9524 10pcs every zombie that was killed. And this event will run every 10 minutes.

A MILLION THANKS /lv

Posted

-	script	zombie_event	-1,{
OnMinute00:
OnMinute10:
OnMinute20:
OnMinute30:
OnMinute40:
OnMinute50:
killmonster "prontera","All";
monster "prontera",0,0,"zombie",1015,100,strnpcinfo(0)+"::OnKill";
end;

OnKill:
getitem 9524,10;
end;
}

Thanks sir emistry, i'll try this

@Emistry: Sir i already tried you script but i think its not working, i dunno whats the problem. Help me please

 

Invasion.txt

Posted

No errors but it just that NO ZOMBIES summoned in prontera, i waited for 20 minutes because the event run every 10minutes but its not summoning :(



BUMP!



I got this error /oops

 

post-20873-0-75778400-1383274024_thumb.png

Posted
- <TAB> script <TAB> zombie_event <TAB> -1,{

Its working now. Thanks a lot /ok

How to add announcement on the script? It will announce all around the server that the ZOMBIE INVASION has begun.

THANKS /meh

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