Jump to content
  • 0

MvP Invasion problem


Kido

Question


  • Group:  Members
  • Topic Count:  127
  • Topics Per Day:  0.03
  • Content Count:  1445
  • Reputation:   163
  • Joined:  08/17/13
  • Last Seen:  

Hello

i have a script that makes mvps invade citys at by a rando chance

it works fine

until the city is einbroch

always that the invasion starts at einbroch, no mvp is summoned there

 

what could be? thanks in advance

-	script	mvpinis	-1,{
OnInit:
setarray .Map$[0],"prontera","morocc","geffen","payon","alberta","aldebaran","xmas","comodo","yuno","amatsu","gonryun","umbala","louyang","ayothaya","eibroch","hugel","rachel","veins","moscovia";
setarray .MVP[0],1511,1785,1630,2320,1039,1272,1719,1389,1115,1418,1252,1086,1885,1492,1734,1251,1688,2156,1373,1147,1087,1190,1038,1157,1159,1623,1583,1312,1685,1658;
end;

OnHour00:
OnHour08:
OnHour16:
killmonster .Map$[ .RandMap ],"All";
set .RandMap,rand( getarraysize( .Map$ ) );
for(set .@i,0; .@i<getarraysize(.MVP); set .@i,.@i+1){
monster .Map$[ .RandMap ],0,0,"MVP Event",.MVP[ .@i ],1,strnpcinfo(0)+"::OnKilled"; }
announce "Invasion MvP : lol mvp monster have invaded "+.Map$[ .RandMap ]+" save the city or the city will perish!! ",0;
end;

OnKilled:
announce "Invasion MvP : Someone killed a mvp at "+.Map$[ .RandMap ]+" keep defending!!! ",0;
set mvp_point, mvp_point + 1;// +1 mvp point
end;
}

if someone can help me too with the invasion points i would apreciate it so much, since isn't working too, thanks!

 

thank you guys in advance!

Edited by Kido
Link to comment
Share on other sites

4 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  18
  • Topics Per Day:  0.00
  • Content Count:  2044
  • Reputation:   682
  • Joined:  10/09/12
  • Last Seen:  

Hello

i have a script that makes mvps invade citys at by a rando chance

it works fine

until the city is einbroch

always that the invasion starts at einbroch, no mvp is summoned there

your script

"eibroch"

but inside db\map_index.txt says

einbroch

check the spelling ? :ani_swt3:

 

 

 

if someone can help me too with the invasion points i would apreciate it so much, since isn't working too, thanks!
you mean like making a ladder ?
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  127
  • Topics Per Day:  0.03
  • Content Count:  1445
  • Reputation:   163
  • Joined:  08/17/13
  • Last Seen:  

 

Hello

i have a script that makes mvps invade citys at by a rando chance

it works fine

until the city is einbroch

always that the invasion starts at einbroch, no mvp is summoned there

your script

"eibroch"

but inside db\map_index.txt says

einbroch

check the spelling ? :ani_swt3:

 

if someone can help me too with the invasion points i would apreciate it so much, since isn't working too, thanks!
you mean like making a ladder ?

 

 

didn't see it -___________- i was more focused on the script rather than the spelling of the maps lol thank you

 

yeah, players are not getting mvp points or something, no message at all

 

thanks again Annie

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  18
  • Topics Per Day:  0.00
  • Content Count:  2044
  • Reputation:   682
  • Joined:  10/09/12
  • Last Seen:  

OnKilled:
	announce "Invasion MvP : Someone killed a mvp at "+ .Map$[ .RandMap ] +" keep defending!!! ",0;
	set mvp_point, mvp_point + 1;// +1 mvp point
	dispbottom "You have "+ mvp_point +" MVP Points";
	end;
this should work

if you want players to see their points, perhaps you can make another npc for it

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  127
  • Topics Per Day:  0.03
  • Content Count:  1445
  • Reputation:   163
  • Joined:  08/17/13
  • Last Seen:  

oh thank you so much o:!

°lollollol

huh npc shop, allright o:gonna play over itsince i'm not too sure how exactlyto implement it o:

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