Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- // add this into your db/mob_db2.txt
- 2990,SIROMA,Ice Siroma,Ice Siroma,98,11910,1,1827,1369,1,389,489,64,38,83,43,50,70,80,60,10,12,0,0,61,0x83,180,432,648,240,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
- 2991,RAYDRIC,Ice Raydric,Ice Raydric,115,18408,1,2770,2076,1,572,668,89,15,129,87,55,32,76,27,10,12,2,7,47,0x3095,150,824,780,420,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
- 2992,SEYREN,Ice Lord Knight Seyren,Ice Lord Knight Seyren,160,4680000,1,4642560,3481920,1,4290,6632,567,155,303,165,181,110,178,66,10,12,1,7,83,0x37B5,100,76,384,288,2321280,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
- 2993,HARWORD,Ice Whitesmith Harword,Ice Whitesmith Howard,160,6750000,1,3555000,2664000,1,3500,4965,301,106,275,148,156,72,177,60,10,12,1,7,82,0x37B5,100,76,384,288,1777500,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
- 2994,SHECIL,Ice Sniper Shecil,Ice Sniper Cecil,160,4140000,1,4106880,3080160,14,2770,4320,178,135,176,258,155,132,309,95,10,12,1,7,84,0x37B5,100,76,384,288,2053440,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
- 2995,KATRINN,Ice High Wizard Katrinn,Ice High Wizard Kathryne,160,4500000,1,3240000,2430000,1,1398,6652,215,456,165,190,142,236,199,93,10,12,1,7,68,0x37B5,150,1152,384,288,1620000,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
- 2996,IFRIT,Ice Ifrit,Ice Ifrit,146,6935000,1,6696000,4860000,3,5375,8764,436,218,180,201,156,190,199,77,10,12,2,0,83,0x37B5,130,212,384,360,3348000,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
- 2997,CRESENTLORD,Cresent Lord,Cresent Lord,160,4230000,1,4185000,3147120,1,4055,5433,445,98,211,181,114,83,225,60,10,12,1,7,85,0x37B5,100,76,384,288,2092500,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
- // add this into your db/mob_avail.txt
- // Ice Dungeon Instance
- 2990,1776 // Siroma
- 2991,1163 // Raydric
- 2992,1646 // Seyren
- 2993,1648 // Harword
- 2994,1650 // Shecil
- 2995,1651 // Katrinn
- 2996,1832 // Ifrit
- 2997,1647 // Eremes
- // load the script below...
- */
- prontera,155,181,5 script Cresent Lord Nest 757,{
- .@party_id = getcharid(1);
- mes "Required a Party which have at least "+.min_party_member+" Member with at least level "+.min_party_lv+" ~ "+.max_party_lv;
- if( select( "Enter ^FF0000"+$@instance_name$+"^000000","Cancel",( instance_id() != -1 )?"Destroy":"" ) == 1 ){
- if( has_instance( .map$ ) == "" ){
- if( !.@party_id || !instance_check_party( .@party_id,.min_party_member,.min_party_lv,.max_party_lv ) ) close;
- if( getcharid(0) != getpartyleader( .@party_id,2 ) ){
- mes "I only talk with Party Leader.";
- close;
- }
- set .@instance,instance_create( $@instance_name$ ,.@party_id );
- if( .@instance < 0 ){
- switch( .@instance ){
- Case -2: mes "Invalid Party ID"; break;
- Case -3: mes "Max Instances Exceed."; break;
- Case -4: warpparty has_instance( .map$ ),158,13,.@party_id; break;
- Case -1:
- default:
- mes "Failed to Create an Instances.";
- }
- }else{
- for( .@i = 0; .@i < .map_size; .@i++ )
- if( instance_attachmap( .map$[.@i],.@instance ) == "" ){
- mes "Failed, please try again.";
- instance_destroy( .@instance );
- close;
- }
- instance_set_timeout ( .alive_timeout * 60 ),( .idle_timeout * 60 ),.@instance;
- instance_init .@instance;
- instance_attach .@instance;
- warpparty has_instance( .map$ ),158,13,.@party_id;
- donpcevent instance_npcname( "CLN_floor#0",instance_id() )+"::OnInstanceInit";
- disablenpc instance_npcname( "CLN_floor#1",instance_id() );
- disablenpc instance_npcname( "CLN_floor#2",instance_id() );
- end;
- }
- }else{
- warp has_instance( .map$ ),158,13;
- }
- }else if( @menu == 3 ){
- instance_destroy( instance_id() );
- mes "Destroyed.";
- }
- close;
- OnInit:
- // 3 instances maps of the ice dungeon.
- setarray .map$,
- "1@iced",
- "2@iced",
- "3@iced";
- // name of the instance
- $@instance_name$ = strnpcinfo(0);
- // party setting
- .min_party_member = 1;
- .min_party_lv = 90;
- .max_party_lv = 150;
- // instance timeout and duration
- .alive_timeout = 60;
- .idle_timeout = 1;
- .map_size = getarraysize( .map$ );
- for( .@i = 0; .@i < .map_size; .@i++ ){
- setmapflagnosave .map$[.@i],"prontera",155,181;
- setmapflag .map$[.@i],mf_nocommand,90;
- }
- end;
- }
- 1@iced,147,162,4 script CLN_floor#0 45,2,2,{
- end;
- OnTouch_:
- .@mob_count = mobcount( .map$,"all" );
- if( !.@mob_count ){
- warp has_instance( getvariableofnpc( .map$[ atoi( strnpcinfo(2) )+1 ],$@instance_name$ ) ),150,278;
- }
- end;
- OnInstanceInit:
- .map$ = getvariableofnpc( .map$[ atoi( strnpcinfo(2) ) ],$@instance_name$ );
- .npc_name$ = strnpcinfo(0);
- hideonnpc instance_npcname( .npc_name$, instance_id() );
- monster .map$,0,0,"--ja--",2990,100,instance_npcname( .npc_name$,instance_id() )+"::OnMyMobDead2990";
- monster .map$,0,0,"--ja--",2992,1,instance_npcname( .npc_name$,instance_id() )+"::OnMyMobDead2992";
- monster .map$,0,0,"--ja--",2993,1,instance_npcname( .npc_name$,instance_id() )+"::OnMyMobDead2993";
- monster .map$,0,0,"--ja--",2994,1,instance_npcname( .npc_name$,instance_id() )+"::OnMyMobDead2994";
- monster .map$,0,0,"--ja--",2995,1,instance_npcname( .npc_name$,instance_id() )+"::OnMyMobDead2995";
- sleep 3000;
- instance_announce -1,"Kill all the monsters and proceed to next level.",bc_map|bc_blue;
- end;
- OnMyMobDead2990: // reward drop by Siroma
- setarray .@drop_item,607;
- setarray .@drop_qty,1;
- goto OnMobLeft;
- OnMyMobDead2992: // reward drop by Seyren ( drop 1 randomly )
- setarray .@drop_item,607,608,609,610;
- setarray .@drop_qty,1,2,3,4;
- goto OnMobLeft;
- OnMyMobDead2993: // reward drop by Harword ( drop 1 randomly )
- setarray .@drop_item,607,608,609,610;
- setarray .@drop_qty,1,2,3,4;
- goto OnMobLeft;
- OnMyMobDead2994: // reward drop by Shecil ( drop 1 randomly )
- setarray .@drop_item,607,608,609,610;
- setarray .@drop_qty,1,2,3,4;
- goto OnMobLeft;
- OnMyMobDead2995: // reward drop by Katrinn ( drop 1 randomly )
- setarray .@drop_item,607,608,609,610;
- setarray .@drop_qty,1,2,3,4;
- goto OnMobLeft;
- OnMobLeft:
- .@drop_item_index = rand( getarraysize( .@drop_item ) );
- getitem .@drop_item[ .@drop_item_index ],.@drop_qty[ .@drop_item_index ];
- .@mob_count = mobcount( .map$,"all" );
- if( .@mob_count ){
- instance_announce -1,"Remaining Monster : "+.@mob_count,bc_map|bc_blue;
- }else{
- instance_announce -1,"All monsters cleared, proceed to next level.",bc_map|bc_blue;
- hideoffnpc instance_npcname( .npc_name$,instance_id() );
- enablenpc instance_npcname( "CLN_floor#1",instance_id() );
- donpcevent instance_npcname( "CLN_floor#1",instance_id() )+"::OnInstanceInit";
- }
- end;
- }
- 2@iced,151,151,4 script CLN_floor#1 45,2,2,{
- end;
- OnTouch_:
- .@mob_count = mobcount( .map$,"all" );
- if( !.@mob_count ){
- warp has_instance( getvariableofnpc( .map$[ atoi( strnpcinfo(2) )+1 ],$@instance_name$ ) ),148,35;
- }
- end;
- OnInstanceInit:
- .map$ = getvariableofnpc( .map$[ atoi( strnpcinfo(2) ) ],$@instance_name$ );
- .npc_name$ = strnpcinfo(0);
- hideonnpc instance_npcname( .npc_name$,instance_id() );
- monster .map$,0,0,"--ja--",2991,100,instance_npcname( .npc_name$,instance_id() )+"::OnMyMobDead2991";
- sleep 3000;
- instance_announce -1,"Kill all the monsters and proceed to next level.",bc_map|bc_blue;
- end;
- OnMyMobDead2991: // reward drop by Raydric
- setarray .@drop_item,607;
- setarray .@drop_qty,1;
- goto OnMobLeft;
- OnMobLeft:
- .@drop_item_index = rand( getarraysize( .@drop_item ) );
- getitem .@drop_item[ .@drop_item_index ],.@drop_qty[ .@drop_item_index ];
- .@mob_count = mobcount( .map$,"all" );
- if( .@mob_count ){
- instance_announce -1,"Remaining Monster : "+.@mob_count,bc_map|bc_blue;
- }else{
- monster .map$,151,151,"--ja--",2996,1,instance_npcname( .npc_name$,instance_id() )+"::OnBossDead";
- instance_announce -1,"Boss Ifrit appeared.",bc_map|bc_blue;
- }
- end;
- OnBossDead:
- // reward drop by boss ifrit ( drop 1 randomly )
- setarray .@drop_item,607,608,609,610;
- setarray .@drop_qty,1,2,3,4;
- .@drop_item_index = rand( getarraysize( .@drop_item ) );
- getitem .@drop_item[ .@drop_item_index ],.@drop_qty[ .@drop_item_index ];
- .@mob_count = mobcount( .map$,"all" );
- if( !.@mob_count ){
- instance_announce -1,"All monsters cleared, proceed to next level.",bc_map|bc_blue;
- hideoffnpc instance_npcname( .npc_name$,instance_id() );
- enablenpc instance_npcname( "CLN_floor#2",instance_id() );
- donpcevent instance_npcname( "CLN_floor#2",instance_id() )+"::OnInstanceInit";
- }
- end;
- }
- 3@iced,150,136,4 script CLN_floor#2 45,2,2,{
- end;
- OnTouch_:
- .@mob_count = mobcount( .map$,"all" );
- if( !.@mob_count ){
- warpparty "prontera",155,181,getcharid(1);
- sleep2 1000;
- instance_destroy( instance_id() );
- }
- end;
- OnInstanceInit:
- .map$ = getvariableofnpc( .map$[ atoi( strnpcinfo(2) ) ],$@instance_name$ );
- .npc_name$ = strnpcinfo(0);
- hideonnpc instance_npcname( .npc_name$,instance_id() );
- monster .map$,0,0,"--ja--",2990,100,instance_npcname( .npc_name$,instance_id() )+"::OnMyMobDead2990";
- monster .map$,0,0,"--ja--",2992,1,instance_npcname( .npc_name$,instance_id() )+"::OnMyMobDead2992";
- monster .map$,0,0,"--ja--",2993,1,instance_npcname( .npc_name$,instance_id() )+"::OnMyMobDead2993";
- monster .map$,0,0,"--ja--",2994,1,instance_npcname( .npc_name$,instance_id() )+"::OnMyMobDead2994";
- monster .map$,0,0,"--ja--",2995,1,instance_npcname( .npc_name$,instance_id() )+"::OnMyMobDead2995";
- sleep 3000;
- instance_announce -1,"Kill all the monsters and lure out the Cresent Lord.",bc_map|bc_blue;
- end;
- OnMyMobDead2990: // reward drop by Siroma
- setarray .@drop_item,607;
- setarray .@drop_qty,1;
- goto OnMobLeft;
- OnMyMobDead2992: // reward drop by Seyren ( drop 1 randomly )
- setarray .@drop_item,607,608,609,610;
- setarray .@drop_qty,1,2,3,4;
- goto OnMobLeft;
- OnMyMobDead2993: // reward drop by Harword ( drop 1 randomly )
- setarray .@drop_item,607,608,609,610;
- setarray .@drop_qty,1,2,3,4;
- goto OnMobLeft;
- OnMyMobDead2994: // reward drop by Shecil ( drop 1 randomly )
- setarray .@drop_item,607,608,609,610;
- setarray .@drop_qty,1,2,3,4;
- goto OnMobLeft;
- OnMyMobDead2995: // reward drop by Katrinn ( drop 1 randomly )
- setarray .@drop_item,607,608,609,610;
- setarray .@drop_qty,1,2,3,4;
- goto OnMobLeft;
- OnMobLeft:
- .@drop_item_size = getarraysize( .@drop_item );
- getitem .@drop_item[ rand( .@drop_item_size ) ],1;
- .@mob_count = mobcount( .map$,"all" );
- if( .@mob_count ){
- instance_announce -1,"Remaining Monster : "+.@mob_count,bc_map|bc_blue;
- }else{
- instance_announce -1,"Cresent Lord appeared at the center of the dungeon ....",bc_map|bc_blue;
- monster .map$,150,129,"--ja--",2997,1,instance_npcname( .npc_name$,instance_id() )+"::OnBossDead";
- }
- end;
- OnBossDead:
- // reward drop by boss eremes ( drop 1 randomly )
- setarray .@drop_item,607,608,609,610;
- setarray .@drop_qty,1,2,3,4;
- .@drop_item_index = rand( getarraysize( .@drop_item ) );
- getitem .@drop_item[ .@drop_item_index ],.@drop_qty[ .@drop_item_index ];
- .@mob_count = mobcount( .map$,"all" );
- if( !.@mob_count ){
- announce "Congratulation, team "+getpartyname( getcharid(1) )+" defeated the Cresent Lord.",0;
- hideoffnpc instance_npcname( .npc_name$,instance_id() );
- }
- end;
- }
Advertisement
Add Comment
Please, Sign In to add comment