• 0
Sign in to follow this  
domez86

@summon casual mob?

Question

hi, is there a command for summon a random monster? or an item that summon a random monster?

Share this post


Link to post
Share on other sites

1 answer to this question

Recommended Posts

  • 0
On 2/12/2019 at 4:45 AM, domez86 said:

hi, is there a command for summon a random monster? or an item that summon a random monster?

 

or npc script?  which spawn at chosen places.

-	script	Ragnarok#2	-1,{
OnClock0135:
OnClock0235:
OnClock0335:
OnClock0435:
OnClock0535:
OnClock0635:
OnClock0735:
OnClock0835:
OnClock0935:
OnClock1035:
OnClock1135:
OnClock1235:
OnClock1335:
OnClock1435:
OnClock1535:
OnClock1644:
OnClock1735:
OnClock1835:
OnClock1935:
OnClock2035:
OnClock2135:
OnClock2235:
OnClock2335:
OnClock0035:
OnTest:
	setarray [email protected]$[0],"Amon Ra","Atroce","White Lady","Baphomet","Dark Lord","Detardeurus","Doppelganger","Dracula","Drake","Eddga","Evil Snake Lord","Garm","Turtle General","Golden Thief Bug","Gopinich",",Incantation Samurai","Stormy Knight","Amon Ra","Lady Tanee","Lord of Death","Maya","Mistress","Moonlight Flower","Orc Hero","Orc Lord","Osiris","Pharaoh","Phreeoni","RSX-0806","Tao Gunka","Turtle General","Vesper";
	setarray [email protected][0],1511,1785,1630,1039,1272,1719,1046,1389,1112,1115,1418,1252,1312,1086,1885,1492,1251,1511,1688,1373,1147,1059,1150,1087,1190,1038,1157,1159,1623,1583,1312,1685;
	[email protected]$ = "jawaii";
	[email protected] = 0;
	[email protected] = 0;
	$Monsters_2 = getarraysize([email protected]$);
	announce (" [email protected]$ :: " + [email protected]$ + " [email protected] " + [email protected] + " [email protected] " + [email protected] ),bc_all;
	announce (" mobname size :: " + getarraysize([email protected]$) + " MobID size " + getarraysize([email protected]) ),bc_all; 
	announce "Se ha iniciado una Invasion en la Ciudad de Jawaii !!!!",bc_all;
	for ( [email protected] = 0 ; [email protected] < getarraysize([email protected]$); [email protected]) {
		monster [email protected]$,[email protected],[email protected],[email protected]$[[email protected]],[email protected][[email protected]],1,"Ragnarok#2::OnMyMobDead";
	}
	end;
OnMyMobDead:
	announce strcharinfo(0) + " has 1 RPs gained ",bc_all;
	#RPs += 1;
	$Monsters_2 -= 1;
	if ($Monsters_2 > 0) {
		announce "Felicidades " + strcharinfo(0) + " que mato al ultimo invasor que quedaba",bc_all,"008800";
	} else {
		announce "Queda " + $Monsters_2 + " monstruo en jawaii.",bc_all;
	}
	end;
}

Or you prefered Item based script??  which is something I like the most (Portability)..

function	script	F_TMVP	{
	setarray [email protected]$[0],"Amon Ra","Atroce","White Lady","Baphomet","Dark Lord","Detardeurus","Doppelganger","Dracula","Drake","Eddga","Evil Snake Lord","Garm","Turtle General","Golden Thief Bug","Gopinich",",Incantation Samurai","Stormy Knight","Amon Ra","Lady Tanee","Lord of Death","Maya","Mistress","Moonlight Flower","Orc Hero","Orc Lord","Osiris","Pharaoh","Phreeoni","RSX-0806","Tao Gunka","Turtle General","Vesper";
	setarray [email protected][0],1511,1785,1630,1039,1272,1719,1046,1389,1112,1115,1418,1252,1312,1086,1885,1492,1251,1511,1688,1373,1147,1059,1150,1087,1190,1038,1157,1159,1623,1583,1312,1685;
	getmapxy([email protected]$,[email protected],[email protected],UNITTYPE_PC); 
	// Swap/Change UNITTYPE_PC to BL_PC if you are using recent version!!!  IMPORTANT
	// UNITTYPE_PC is old rathena version command before getmapxy Updates.
	dispbottom ("@map$ :: " + [email protected]$ + " [email protected] :: " + [email protected] +" [email protected] :: " + [email protected] ) ;
	for ( [email protected] = 0 ; [email protected] < getarraysize([email protected]$); [email protected]) {
		monster [email protected]$,[email protected],[email protected],[email protected]$[[email protected]],[email protected][[email protected]],1,"";
	}
	end;
}

put the above script into npc script and edit this line 

NOTES:

	// Swap/Change UNITTYPE_PC to BL_PC if you are using recent version!!!  IMPORTANT
	// UNITTYPE_PC is old rathena version command before getmapxy Updates.

 

 


    setarray [email protected]$[0],"Amon Ra","Atroce","White Lady","Baphomet","Dark Lord","Detardeurus","Doppelganger","Dracula","Drake","Eddga","Evil Snake Lord","Garm","Turtle General","Golden Thief Bug","Gopinich",",Incantation Samurai","Stormy Knight","Amon Ra","Lady Tanee","Lord of Death","Maya","Mistress","Moonlight Flower","Orc Hero","Orc Lord","Osiris","Pharaoh","Phreeoni","RSX-0806","Tao Gunka","Turtle General","Vesper";
    setarray [email protected][0],1511,1785,1630,1039,1272,1719,1046,1389,1112,1115,1418,1252,1312,1086,1885,1492,1251,1511,1688,1373,1147,1059,1150,1087,1190,1038,1157,1159,1623,1583,1312,1685;

 

 

then put this below line into any custom item within the item script part

callfunc ("F_TMVP");

 

Edited by utofaery
CODEBOX is lame it doesn't let people copy and paste from within codebox

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this