Erio-chan Posted August 4, 2017 Share Posted August 4, 2017 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; } Quote Link to comment Share on other sites More sharing options...
0 Z3R0 Posted August 4, 2017 Share Posted August 4, 2017 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; // .... 1 Quote Link to comment Share on other sites More sharing options...
0 Erio-chan Posted August 9, 2017 Author Share Posted August 9, 2017 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!!! Quote Link to comment Share on other sites More sharing options...
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