Jump to content
  • 0

Question

3 answers to this question

Recommended Posts

  • 0
Posted

Hmm, wild guessing:
 

-	script	PetEvolution	-1,{
		end;

OnPetEvolveEvent:
		callfunc "PetEvolve";
		if (@PE != 0){
			dispbottom "Your pet evolution !!";
			petremove;
			pethatch @PE;
		}
		end;
}

function	script	PetEvolve	{
	set @PE,0;

// Pet Evolution Normal Class 1
if ((getpetinfo(1) == 1002) ||
	(getpetinfo(1) == 1011) ||
	(getpetinfo(1) == 1014) ||
	(getpetinfo(1) == 1019) ||
	(getpetinfo(1) == 1023) ||
	(getpetinfo(1) == 1026) ||
	(getpetinfo(1) == 1963))
		set @random,rand(0,4);
		
	if(@random == 0) set @PE,1713;
	if(@random == 1) set @PE,1716;
	if(@random == 2) set @PE,1013;
	if(@random == 3) set @PE,1735;
	if(@random == 4) set @PE,1736;

// Pet Evolution Class 2
if ((getpetinfo(1) == 1713) ||
	(getpetinfo(1) == 1716) ||
	(getpetinfo(1) == 1013) ||
	(getpetinfo(1) == 1735) ||
	(getpetinfo(1) == 1736))
		set @random,rand(5,11);
		
	if(@random == 5) set @PE,1511;
	if(@random == 6) set @PE,1096;
	if(@random == 7) set @PE,1098;
	if(@random == 8) set @PE,1978;
	if(@random == 9) set @PE,1685;
	if(@random == 10) set @PE,1388;
	if(@random == 11) set @PE,1785;


// Pet Evolution Last Class
if ((getpetinfo(1) == 1511) ||
	(getpetinfo(1) == 1096) ||
	(getpetinfo(1) == 1978) ||
	(getpetinfo(1) == 1685) ||
	(getpetinfo(1) == 1785) ||
	(getpetinfo(1) == 1388) ||
	(getpetinfo(1) == 1098))
		set @PE,0; 

	return @PE;
} 

 

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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...