Jump to content
  • 0
Erio-chan

need help adding maps on nighmare mode script

Question

help me please adding specific maps on this script.

-	script	nightmaremode	-1,{
	
	OnInit:
		.blacklist$ = "501,502,503,504,505";
		
		end;
		
	OnPCDieEvent:
		if (countitem(7773) >= 1) end;
		if (BaseLevel < 40) end;
		if ( strcharinfo(3) != "prt_fild08" ) end;
		//if ( pkpoints < 100 ) end;
		getinventorylist;
		[email protected] = (@inventorylist_count-1);
		for ( [email protected] = [email protected]; [email protected] >= 0; [email protected]) {
			if (compare(","+.blacklist$+",", ","[email protected]_id[[email protected]]+",")) {
				deletearray @inventorylist_id[[email protected]],1;
				deletearray @inventorylist_amount[[email protected]],1;
				deletearray @inventorylist_identify[[email protected]],1;
				deletearray @inventorylist_refine[[email protected]],1;
				deletearray @inventorylist_attribute[[email protected]],1;
				deletearray @inventorylist_card1[[email protected]],1;
				deletearray @inventorylist_card2[[email protected]],1;
				deletearray @inventorylist_card3[[email protected]],1;
				deletearray @inventorylist_card4[[email protected]],1;
				[email protected];
			}
		}
		if ([email protected] > 0) {
			[email protected] = rand([email protected]);
			delitem2 @inventorylist_id[[email protected]], @inventorylist_amount[[email protected]], @inventorylist_identify[[email protected]], @inventorylist_refine[[email protected]], @inventorylist_attribute[[email protected]], @inventorylist_card1[[email protected]], @inventorylist_card2[[email protected]], @inventorylist_card3[[email protected]], @inventorylist_card4[[email protected]];
			getmapxy [email protected]$, [email protected], [email protected], 0;
			makeitem2 @inventorylist_id[[email protected]], @inventorylist_amount[[email protected]], [email protected]$, [email protected], [email protected], @inventorylist_identify[[email protected]], @inventorylist_refine[[email protected]], @inventorylist_attribute[[email protected]], @inventorylist_card1[[email protected]], @inventorylist_card2[[email protected]], @inventorylist_card3[[email protected]], @inventorylist_card4[[email protected]];	
		}
		end;
	}

 

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • 0

Follow the same thing for blacklist...

OnInit:
		.blacklist$ = "501,502,503,504,505";
		.onmaps$ = "prontera,geffen,morocc";

then on...

OnPCDieEvent:
		if (countitem(7773) >= 1) end;
		if (BaseLevel < 40) end;
                           
        // Will halt the rest of the script if they are not on a map that is allowed
        if (!compare("," + .onmaps$ + ",", "," + strcharinfo(3) + ",")) end;
                           
		// ....

 

  • Like 1
Link to comment
Share on other sites

  • 0
On 8/5/2017 at 5:18 AM, Z3R0 said:

Follow the same thing for blacklist...

OnInit:
		.blacklist$ = "501,502,503,504,505";
		.onmaps$ = "prontera,geffen,morocc";

then on...

OnPCDieEvent:
		if (countitem(7773) >= 1) end;
		if (BaseLevel < 40) end;
                           
        // Will halt the rest of the script if they are not on a map that is allowed
        if (!compare("," + .onmaps$ + ",", "," + strcharinfo(3) + ",")) end;
                           
		// ....

 

Thank you very much!!!/thx

 

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.