Jump to content
  • 0
minx123

Help fix this script debug town invasion

Question

//=========== Town Invasion ==========//=========== Version: 1.0 ===========-	script	towninvasion	-1,{OnClock0800:OnClock1400:OnClock2000:OnClock0200:set .town,rand(11);setarray  $@mapinvasion$[0],"invek";announce "A Boss is destroying our Invek city! Help us!",bc_all,0x00FFFF;sleep2 2000;announce "Hurry before it dominate the whole "+$@mapinvasion$[.town]+"!",bc_all,0x00FFFF;sleep2 5000;announce "This monster is quite elusive! So please beat it up!",bc_all,0x00FFFF;monster $@mapinvasion$[.town],0,0,"Bring it on!",1502,1,"towninvasion::OnInvadeKill";end;OnInvadeKill:announce "Good job, for keeping our city safe!!",bc_all,0x00FFFF;getitem 7227,10;end;OnInit:setarray  $@mapinvasion$[0],"invek";end;}

[debug] cant detect invek map.

how to fix it?

Share this post


Link to post
Share on other sites

9 answers to this question

Recommended Posts

  • 0

@@minx123

 

Why do you want it to spawn on a map you don't have installed? The error you get basically says you want to spawn something on a map that doesn't exist in the servers mapcache.

my town is invek. cant use custom map?

Share this post


Link to post
Share on other sites
  • 0

Invek doesn't exist, also maps are case sensitive so check exact map name.

 

set .town,rand(11);

setarray $@mapinvasion$[0],"invek";

 

But only 1 map is defined.

 

Change the town to

.town = 0;

Share this post


Link to post
Share on other sites
  • 0

i guess that his invek map does exist, but like what dastgir said, the problem is the .town he ddn't change the value of it, it will work if he follows what dastgir recommended to do.

 

 

using this script might help u in future when u decided to add extra/more maps less hassle.

//=========== Town Invasion ==========//=========== Version: 1.0 ===========-	script	towninvasion	-1,{OnClock0800:OnClock1400:OnClock2000:OnClock0200:	.rand$ = .maps$[rand(getarraysize(.maps$))];	announce "A Boss is destroying our "+.rand$+" city! Help us!",bc_all,0x00FFFF;	sleep2 2000;	announce "Hurry before it dominate the whole "+.rand$+"!",bc_all,0x00FFFF;	sleep2 5000;	announce "This monster is quite elusive! So please beat it up!",bc_all,0x00FFFF;	monster .rand$,0,0,"Bring it on!",1502,1,"towninvasion::OnInvadeKill";	end;OnInvadeKill:	announce "Good job, for keeping our city safe!!",bc_all,0x00FFFF;	getitem 7227,10;	end;OnInit:	setarray .maps$[0],"invek"; // Maps	end;}
Edited by han

Share this post


Link to post
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.   Restore formatting

  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.

Loading...

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.