• 0
Sign in to follow this  
Bisuke

Custom Emperium on 1 Agit

Question

Hi! We would like to implement a 1st job War of Emperium, and I just want to ask on how can we put a different emperium monster to "prt_gcas01" which is our 1st job woe castle.

Looking in the WoE Controller NPC, I saw this part of the script that summons the emperium with the ID 1288

	else if (strnpcinfo(2) == "prtg_cas01") { setarray .@emproom[0],197,197; }
	else if (strnpcinfo(2) == "prtg_cas02") { setarray .@emproom[0],157,174; }
	else if (strnpcinfo(2) == "prtg_cas03") { setarray .@emproom[0],16,220; }
	else if (strnpcinfo(2) == "prtg_cas04") { setarray .@emproom[0],291,14; }
	else if (strnpcinfo(2) == "prtg_cas05") { setarray .@emproom[0],266,266; }
	// Add custom Guild Castles here.
	else {
		end;
	}
	if (!mobcount(strnpcinfo(2),"Agit#"+strnpcinfo(2)+"::OnAgitBreak")) {
		monster strnpcinfo(2),.@emproom[0],.@emproom[1],"Emperium",1288,1,"Agit#"+strnpcinfo(2)+"::OnAgitBreak";
	}
	end;

 

Question: How can I put a condition that if the agit is prt_gcas01, the custom emperium will spawn? Thanks!

Share this post


Link to post
Share on other sites

2 answers to this question

Recommended Posts

  • 1
Spoiler
// Add custom Guild Castles here.
	else {
		end;
	}
    if (!mobcount(strnpcinfo(2),"Agit#"+strnpcinfo(2)+"::OnAgitBreak") && strnpcinfo(2) == "prtg_cas01") {
        your custom emperium/mob
    }else{
        monster strnpcinfo(2),.@emproom[0],.@emproom[1],"Emperium",1288,1,"Agit#"+strnpcinfo(2)+"::OnAgitBreak";
    }
end;

 

 

Share this post


Link to post
Share on other sites
  • 0

Thank you!

15 hours ago, Disabled LOOLP said:
  Hide contents

// Add custom Guild Castles here.
	else {
		end;
	}
    if (!mobcount(strnpcinfo(2),"Agit#"+strnpcinfo(2)+"::OnAgitBreak") && strnpcinfo(2) == "prtg_cas01") {
        your custom emperium/mob
    }else{
        monster strnpcinfo(2),.@emproom[0],.@emproom[1],"Emperium",1288,1,"Agit#"+strnpcinfo(2)+"::OnAgitBreak";
    }
end;

 

 

 

Share this post


Link to post
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.

Loading...
Sign in to follow this