Jump to content
  • 0
IvanD

R>Script (MVP summons another monster upon its death)

Question

can anyone make script that if Baphomet,darklord,taogunka died will summon another monsters after killing it? like it will spawn another monster based on monster ID?

thanks in advance

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • 1

Something like this.

OnInit:
setarray [email protected][0],1039,1272,1583;
set [email protected],(getarraysize([email protected]));
end;

if (killedrid == [email protected][[email protected]]) {
	getmapxy([email protected]$,[email protected],[email protected],UNITTYPE_PC);
	monster [email protected]$,[email protected]+rand(1,9),[email protected]+rand(1,9),"Poring",1002,1;
	end;
}

or 

gl_chyard,0,0,0,0	boss_monster	Dark Lord	1272,1,3600000,600000,RandomMvP::OnMvPKill

-	script	RandomMvP	-1,{
	end;
OnMvPKill:
	getmapxy([email protected]$,[email protected],[email protected],UNITTYPE_PC);
	monster [email protected]$,[email protected]+rand(1,9),[email protected]+rand(1,9),"Poring",1002,1;
	end;
}

 

  • Love 1
Link to comment
Share on other sites

  • 0
20 hours ago, WhiteEagle said:

Something like this.

OnInit:
setarray [email protected][0],1039,1272,1583;
set [email protected],(getarraysize([email protected]));
end;

if (killedrid == [email protected][[email protected]]) {
	getmapxy([email protected]$,[email protected],[email protected],UNITTYPE_PC);
	monster [email protected]$,[email protected]+rand(1,9),[email protected]+rand(1,9),"Poring",1002,1;
	end;
}

or 

gl_chyard,0,0,0,0	boss_monster	Dark Lord	1272,1,3600000,600000,RandomMvP::OnMvPKill

-	script	RandomMvP	-1,{
	end;
OnMvPKill:
	getmapxy([email protected]$,[email protected],[email protected],UNITTYPE_PC);
	monster [email protected]$,[email protected]+rand(1,9),[email protected]+rand(1,9),"Poring",1002,1;
	end;
}

 

thanks sir it works:)

Edited by IvanD
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...

Important Information

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