Jump to content
  • 0
Akaneharuka

I have a problem with this script

Question

This script is the NPC that will make a MVP monster into the player with 10M zeny  for 1 MVP monster

 

But if you pay 80M zeny you will get 10 MVP monster 

 

 

 

The problem is  when press [select all] to pay 80M zeny and I can get 10 MVP monster

 

but I only lost the money but I can't get my mvp monster :(

 

Sorry I am a problem with english :/

 

 

prontera,264,210,3	script	Miyabi	906,{	mes "Hi~ ";	emotion 30;	mes "You can choose your friend here !";	mes "1 Friend for 10M Zeny";	mes "If you choose all only 80M Zeny";	next;	switch(select("I want Friend ! ","I don't want Friend")) {	case 1:		mes "Please choose your Friend ,But if you choose all we will give you special price";		next;		switch(select( "Moon Light Flower:Loli Ruri:Nymph:Succubus:Assassin Cross Eremes:Bacsojin:Champion Chen:Doppelganger:Gypsy Trentini:High Priest Magaleta:High Wizard Katrinn:Lord Knight Seyren:Professor Celia:Sniper Shecil:Select All:Cancel")) {		default:			if( Zeny < 10000000 ) {				mes "Sorry, Your money is not enough, Please come again next time ! ";				emotion 35;				close;			}			atcommand "@summon " + .mobarray[@menu-1] + " 60";			Zeny -= 10000000;			break;		case 15:			if( Zeny < 80000000 ) {				mes "Sorry, Your money is not enough ! Please come again next time ! ";				emotion 35;				close;			}			Zeny -= 80000000;			for(.@i = 0; .@i < getarraysize(.mobarray); .@i++)				atcommand "@summon " + .mobarray[@menu-1] + " 60";			break;		case 16:			mes "As you wish!";			close;		}		specialeffect 30;		specialeffect 295;		specialeffect 461;		specialeffect 410;		specialeffect2 459;		specialeffect2 408;		mes "Thank you very much";		emotion 30;		close;	case 2:		mes "As you wish!";		close;	}	close;OnInit:	setarray .mobarray[0],1150,1505,1564,1370,1647,1630,2238,2098,2241,1649,1651,1646,2237,1650;	waitingroom "Friends Service",0;	end;} 
Edited by Akaneharuka

Share this post


Link to post
Share on other sites

5 answers to this question

Recommended Posts

  • 0

the .mobarray array range is 0~ 13

and you choose 15 --> @menu=15

.mobarray[@menu-1] ---> .mobarray[14] = null

it should be

atcommand "@summon " + .mobarray[.@i] + " 60";

Edited by Angelmelody

Share this post


Link to post
Share on other sites
  • 0

@@Angelmelody   Thank you for answer my question :0   Btw,Thank you  it work XD

 

pX37IdG.jpg

 

I type 15 because I have 15 choice   :(

 

  1. Moon Light Flower
  2. :Loli Ruri
  3. :Nymph
  4. :Succubus:
  5. Assassin Cross Eremes:
  6. Bacsojin:
  7. Champion Chen
  8. :Doppelganger
  9. :Gypsy Trentini
  10. :High Priest Magaleta
  11. :High Wizard Katrinn
  12. :Lord Knight Seyren
  13. :Professor Celia:
  14. Sniper Shecil:
  15. Select All:

Edited by Akaneharuka

Share this post


Link to post
Share on other sites
  • 0

 

Monster command would make them enemy, while @summon spawns them as friend.

so that's why it was called "Friend" ... didnt notice this xD

 

				if ( .@is_all )					for ( .@i = 0; .@i < .mob_list_size; .@i++ )						summon "--ja--",.mob_list[.@i];				else 					summon "--ja--",.mob_list[.@i-1];

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

×
×
  • Create New...

Important Information

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