Jump to content
  • 0

Question

Posted (edited)

Hello

I would like to request a script that limits the cards used in WoE.

E.g

Per char limit the active mvp cards to 1, but let it be 1 mvp card of choice.

Is this possible ?

Thanks

Edited by BFPkiller

1 answer to this question

Recommended Posts

  • 0
Posted

you can try something like this.

-	script	Sample	-1,{
	
	OnInit:
		.max_card_count = 1;
		setarray .@map$, "prtg_cas01", "prtg_cas02", "prtg_cas03", "prtg_cas04", "prtg_cas05";
		.@map_size = getarraysize(.@map$);
		
		.compare_map$ = "#";
		for (.@i = 0; .@i < .@map_size; .@i++) {
			setmapflag .@map$[.@i], mf_loadevent;
			.compare_map$ = .compare_map$ + .@map$[.@i] + "#";
		}
		end;
		
	OnPCLoadMapEvent:
		if (compare(.compare_map$, "#"+strcharinfo(3)+"#")) {
			if (isequippedcnt(4001,4002,4003,4004,4005) >= .max_card_count) {
				warp "SavePoint", 0, 0;
			}
		}
		end;
}

list all the mvp card here.

if (isequippedcnt(4001,4002,4003,4004,4005) >= .max_card_count) {

 

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...