Jump to content
  • 0

Help me with Invasion Script


Budots

Question


  • Group:  Members
  • Topic Count:  69
  • Topics Per Day:  0.02
  • Content Count:  200
  • Reputation:   1
  • Joined:  09/25/13
  • Last Seen:  

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.
Link to comment
Share on other sites

14 answers to this question

Recommended Posts


  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10015
  • Reputation:   2348
  • Joined:  10/28/11
  • Last Seen:  


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

}

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  9
  • Topics Per Day:  0.00
  • Content Count:  94
  • Reputation:   4
  • Joined:  01/29/13
  • Last Seen:  


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

}

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  69
  • Topics Per Day:  0.02
  • Content Count:  200
  • Reputation:   1
  • Joined:  09/25/13
  • Last Seen:  

Thanks for the quick reply sir, wait i'll try

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  69
  • Topics Per Day:  0.02
  • Content Count:  200
  • Reputation:   1
  • Joined:  09/25/13
  • Last Seen:  

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

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  69
  • Topics Per Day:  0.02
  • Content Count:  200
  • Reputation:   1
  • Joined:  09/25/13
  • Last Seen:  


-	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

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:  

Show error if any

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  69
  • Topics Per Day:  0.02
  • Content Count:  200
  • Reputation:   1
  • Joined:  09/25/13
  • Last Seen:  

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

Link to comment
Share on other sites


  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10015
  • Reputation:   2348
  • Joined:  10/28/11
  • Last Seen:  

use TABBING in npc header.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  69
  • Topics Per Day:  0.02
  • Content Count:  200
  • Reputation:   1
  • Joined:  09/25/13
  • Last Seen:  

OK wait i'll try



Like this?



HUHUHUHUHUH I STILL GOT ERRORS. PLEASE HELP ME FIX

post-20873-0-57649800-1383276112_thumb.png

Edited by Budots-RO
Link to comment
Share on other sites


  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10015
  • Reputation:   2348
  • Joined:  10/28/11
  • Last Seen:  


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

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  69
  • Topics Per Day:  0.02
  • Content Count:  200
  • Reputation:   1
  • Joined:  09/25/13
  • Last Seen:  

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

Link to comment
Share on other sites


  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10015
  • Reputation:   2348
  • Joined:  10/28/11
  • Last Seen:  

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:  

After OnMinute50: add this :

announce "Zombie invasion has begun!",0;
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  69
  • Topics Per Day:  0.02
  • Content Count:  200
  • Reputation:   1
  • Joined:  09/25/13
  • Last Seen:  

After OnMinute50: add this :

announce "Zombie invasion has begun!",0;

Thanks a lot guys more powers /oops

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