Jump to content

Ninjamon

Members
  • Posts

    295
  • Joined

  • Last visited

Everything posted by Ninjamon

  1. Can anyone make me a private MVP Room that requires an item instead of zeny in exchange of summoning a MVP / Mini Bosses? Thanks!
  2. The Registration of CTH doesn't work well. It cannot accept 2 or more participants. Here is the script // ==== Registration ==== \\ // ============================================================================== // MapFlags // ********************************************************************* bat_room mapflag nomemo bat_room mapflag loadevent bat_room mapflag nowarpto bat_room mapflag nowarp bat_room mapflag nobranch bat_room mapflag nopenalty bat_room mapflag noteleport bat_room mapflag nosave SavePoint // BattleGround Warper - Entrance // ********************************************************************* prontera,172,145,3 script Capture The Hero 403,{ //ayothaya,132,181,3 script CTH 403,{ mes "[CTH Recruiter]"; if (getgmlevel() >= 99) goto cthgm; if ($@register < 1) { set registeredna,0; mes "Registration for Capture The Heroes is closed."; close; } else if (isequipped(2199) || isequipped(1599)) goto nonono; if (registeredna == 1) { set normallook,(getlook(7)); setlook 7, 172; warp "new_3-4",19,64; end; } if (registeredna == 2) { set normallook,(getlook(7)); setlook 7, 362; warp "new_3-4",139,105; end; } if (BaseLevel < 265) goto Dipwede; playermode: if (callfunc("has_char_from_same_ip", "new_3-4")) { next; mes "[CTH Recruiter]"; mes" "; mes "^FF0000Dual Login in CTH is not allowed!^000000"; close; } else { mes "The Capture The Heroes will start soon..."; mes "I was sent here to recruit worthy warriors."; next; mes "[CTH Recruiter]"; mes "The forces of good and evil , and are in need of experienced warriors like you. How would you like to lend your power to one of the forces in Anny and CG's Kingdom?"; next; if( select("I Wanna Join:I Don't Want to Join") == 2 ) { mes "[CTH Recruiter]"; mes "I'll always be stationed here for more soldiers. Feel free to come back whenever you're interested."; close; } mes "[CTH Recruiter]"; mes "I wish you luck... young warrior."; close2; goto pilina; end; } Dipwede: mes "[CTH Recruiter]"; mes "I'm sorry but only elite and worthy warriors are aloud to join the Capture The Heroes..."; mes ""; mes "Cry Babies aren't allowed."; close; nonono: mes "I'm Sorry but you cannot join the CTH with the Hokage/Akatsuki suit on."; close; pilina: if ($@register < 1) end; if ($Team == 1) goto Teamtwo; set $Team,1; set normallook,(getlook(7)); setlook 7, 172; set Bat_Team,1; set registeredna,1; warp "new_3-4",19,64; sleep2 3000; dispbottom "You joined the Warriors of the Light..."; end; Teamtwo: set $Team,2; set normallook,(getlook(7)); setlook 7, 362; set Bat_Team,2; set registeredna,2; warp "new_3-4",139,105; sleep2 3000; dispbottom "You joined the Warriors of the Darkness..."; end; cthgm: if (nagstartna==1) goto cthstop; mes "Hello Master. Do you want to initiate Capture the Heroes manually?"; menu "Edit Prizes",editprizes,"Player Mode",playermode,"Start Event",startevent,"Leave",canc; end; startevent: set nagstartna,1; donpcevent "Flavius_BG2::OnCTHStart"; close; cthstop: mes "Hello Master, Do you want to stop Capture the Heroes?"; menu "Edit Prizes",editprizes,"Player Mode",playermode,"Stop Event",stopevent,"Leave",canc; end; stopevent: announce "Capture the Heroes has been stopped by a Game Master.",0; set $@FlaviusBG2, 2; set nagstartna,0; donpcevent "Flavius_BG2::OnMatchEnd"; close; editprizes: set .rewardwinner, getvariableofnpc(.rewardwinner,"Flavius_BG2"); set .rewardwinneramount, getvariableofnpc(.rewardwinneramount,"Flavius_BG2"); set .rewardwinnerbadge, getvariableofnpc(.rewardwinnerbadge,"Flavius_BG2"); set .rewardwinnerbadgeamount, getvariableofnpc(.rewardwinnerbadgeamount,"Flavius_BG2"); set .rewardloser, getvariableofnpc(.rewardloser,"Flavius_BG2"); set .rewardloseramount, getvariableofnpc(.rewardloseramount,"Flavius_BG2"); set .rewardjoin, getvariableofnpc(.rewardjoin,"Flavius_BG2"); set .rewardjoinamount, getvariableofnpc(.rewardjoinamount,"Flavius_BG2"); mes "Hello Master, What reward would you like to change?"; next; switch(select("Winner Reward ^008000["+.rewardwinneramount+"x "+getitemname(.rewardwinner)+"]^000000:Winner Reward Badge ^008000["+.rewardwinnerbadgeamount+"x "+getitemname(.rewardwinnerbadge)+"]^000000:Loser Reward ^008000["+.rewardloseramount+"x "+getitemname(.rewardloser)+"]^000000:Reward of Participation ^008000["+.rewardjoinamount+"x "+getitemname(.rewardjoin)+"]^000000:MAX SCORE ^008000["+$cthmaxscore+"]^000000:Leave")) { case 1: next; mes "Please input the new Winner reward number!"; input .@rewardwinput; if (getitemname(.@rewardwinput) == "null" || getitemname(.@rewardwinput) == "") {next; mes "This item doesn't exists in the database.."; next; goto editprizes; } set getvariableofnpc(.rewardwinner,"Flavius_BG2"), .@rewardwinput; next; mes "Please input the item amount #."; input .@rewardwainput; if(.@rewardwainput <= 0){next; mes "Please input a # greater than 0!"; next; goto editprizes; } set getvariableofnpc(.rewardwinneramount,"Flavius_BG2"), .@rewardwainput; next; goto editprizes; case 2: next; mes "Please input the new Winner reward badge number!"; input .@rewardwbinput; if (getitemname(.@rewardwbinput) == "null" || getitemname(.@rewardwbinput) == "") {next; mes "This item doesn't exists in the database.."; next; goto editprizes; } set getvariableofnpc(.rewardwinnerbadge,"Flavius_BG2"), .@rewardwbinput; next; mes "Please input the item amount #."; input .@rewardwbainput; if(.@rewardwbainput <= 0){next; mes "Please input a # greater than 0!"; next; goto editprizes; } set getvariableofnpc(.rewardwinnerbadgeamount,"Flavius_BG2"), .@rewardwbainput; next; goto editprizes; case 3: next; mes "Please input the new Loser reward number!"; input .@rewardlinput; if (getitemname(.@rewardlinput) == "null" || getitemname(.@rewardlinput) == "") {next; mes "This item doesn't exists in the database.."; next; goto editprizes; } set getvariableofnpc(.rewardloser,"Flavius_BG2"), .@rewardlinput; next; mes "Please input the item amount #."; input .@rewardlainput; if(.@rewardlainput <= 0){next; mes "Please input a # greater than 0!"; next; goto editprizes; } set getvariableofnpc(.rewardloseramount,"Flavius_BG2"), .@rewardlainput; next; goto editprizes; case 4: next; mes "Please input the new Reward of Participation number!"; input .@rewardpinput; if (getitemname(.@rewardpinput) == "null" || getitemname(.@rewardpinput) == "") {next; mes "This item doesn't exists in the database.."; next; goto editprizes; } set getvariableofnpc(.rewardjoin,"Flavius_BG2"), .@rewardpinput; next; mes "Please input the item amount #."; input .@rewardpainput; if(.@rewardpainput <= 0){next; mes "Please input a # greater than 0!"; next; goto editprizes; } set getvariableofnpc(.rewardjoinamount,"Flavius_BG2"), .@rewardpainput; next; goto editprizes; case 5: next; mes "Please input the CTH Max Score."; input .@sinput; if(.@sinput <= 0){next; mes "Please input a # greater than 0!"; next; goto editprizes; } set $cthmaxscore, .@sinput; next; goto editprizes; case 6: close; } canc: close; } /* // Time calculation Function // ********************************************************************* function script Time2Str { set .@Time_Left, getarg(0) - gettimetick(2); set .@Days, .@Time_Left / 86400; set .@Time_Left, .@Time_Left - (.@Days * 86400); set .@Hours, .@Time_Left / 3600; set .@Time_Left, .@Time_Left - (.@Hours * 3600); set .@Minutes, .@Time_Left / 60; set .@Time_Left, .@Time_Left - (.@Minutes * 60); set .@Time$, ""; if( .@Days > 1 ) set .@Time$, .@Time$ + .@Days + " days, "; else if( .@Days > 0 ) set .@Time$, .@Time$ + .@Days + " day, "; if( .@Hours > 1 ) set .@Time$, .@Time$ + .@Hours + " hours, "; else if( .@Hours > 0 ) set .@Time$, .@Time$ + .@Hours + " hour, "; if( .@Minutes > 1 ) set .@Time$, .@Time$ + .@Minutes + " minutes, "; else if( .@Minutes > 0 ) set .@Time$, .@Time$ + .@Minutes + " minute, "; if( .@Time_Left > 1 || .@Time_Left == 0 ) set .@Time$, .@Time$ + .@Time_Left + " seconds."; else if( .@Time_Left == 1 ) set .@Time$, .@Time$ + .@Time_Left + " second."; return .@Time$; } */ - script Light Camp#bat 973,{ end; } - script Dark Camp#bat 974,{ end; } // === System === \\ new_3-4,19,69,5 script Registration#Light 418,{ end; OnInit: waitingroom "Enter Arena Here",40,"Flavius_BG2::OnGuillaumeJoin",1; end; OnEnterBG: set $@FlaviusBG2_id1, waitingroom2bg("bat_room",197,94,"Flavius_BG2::OnGuillaumeQuit","Flavius_BG2::OnPCDieEvent","Registration#Light"); end; } new_3-4,139,108,5 script Registration#Dark 414,{ end; OnInit: waitingroom "Enter Arena Here",40,"Flavius_BG2::OnCroixJoin",1; end; OnEnterBG: set $@FlaviusBG2_id2, waitingroom2bg("bat_room",197,77,"Flavius_BG2::OnCroixQuit","Flavius_BG2::OnPCDieEvent","Registration#Dark"); end; } // Battleground Engine // ********************************************************************* - script Flavius_BG2 -1,{ end; OnCTHStop: set nagstartna,0; if ($@Guillaume_Score > $@Croix_Score) goto Guillawin; if ($@Guillaume_Score < $@Croix_Score) goto Croixwin; if ($@Guillaume_Score == $@Croix_Score) goto Nowinner; end; OnClock1930: OnClock2330: OnClock0330: OnClock0730: OnClock1130: OnClock1530: OnCTHStart: announce "Capture The Heroes will start in 4 Minutes... Please warp to the Main Town for Registration.",0; stopnpctimer; set $@Guillaume_Score, 0; set $@Croix_Score, 0; set $@FlaviusBG2_Victory, 0; set $@anuncioF4,0; set $@anuncioF3,0; set $@RedFlagTaken, 0; set $@Red_Flag_Carrier$,0; set $@BlueFlagTaken, 0; set $@Blue_Flag_Carrier$,0; set $@RedFlagFalse, 0; set $@BlueFlagFalse, 0; // NPC's disablenpc "Battle Reward#fl2"; disablenpc "Therapist in Battle#1"; disablenpc "Therapist in Battle#2"; disablenpc "Lucifer of the Dark"; disablenpc "Freyja of the Light"; disablenpc "Freyja of the Light#1"; disablenpc "Lucifer of the Dark#1"; set $@register,1; set $@FlaviusBG2, 0; if( $@FlaviusBG2_id1 ) { bg_destroy $@FlaviusBG2_id1; set $@FlaviusBG2_id1, 0; } if( $@FlaviusBG2_id2 ) { bg_destroy $@FlaviusBG2_id2; set $@FlaviusBG2_id2, 0; } sleep 1000; mapwarp "bat_b02","prontera",156,180; mapwarp "new_2-4","prontera",156,180; sleep 2000; bg_updatescore "bat_b02",0,0; sleep 60000; if( $@FlaviusBG2==2 ) end; announce "Capture The Heroes registration will close in 3 Minutes... Please warp to the Main Town for Registration.",0; sleep 60000; if( $@FlaviusBG2==2 ) end; announce "Capture The Heroes registration will close in 2 Minutes... Please warp to the Main Town for Registration.",0; sleep 60000; if( $@FlaviusBG2==2 ) end; announce "Capture The Heroes registration will close in 1 Minute... Please warp to the Main Town for Registration.",0; sleep 1000; mapannounce "new_3-4","Please get your needed items from your storage, because commands in the battlefield are disabled!",1; sleep 1000; mapannounce "new_3-4","You can only open your storage, in the respawn point ( when you died )!",1; sleep 28000; if( $@FlaviusBG2==2 ) end; announce "Capture The Heroes registration will close in 30 Seconds... Please warp to the Main Town for Registration.",0; sleep 20000; if( $@FlaviusBG2==2 ) end; announce "Registration has Ended.",0; set $@register,0; goto Simulan; end; Simulan: bg_updatescore "bat_b02",$@Guillaume_Score,$@Croix_Score; sleep 2000; if( $@FlaviusBG2==2 ) end; mapannounce "new_3-4","Please get inside the pubs to enter the Arena, You have 30 seconds to prepare.",1; sleep 20000; if( $@FlaviusBG2==2 ) end; mapannounce "new_3-4","10 Seconds Before Starting, Please Don't Exit the Pubs.",1; sleep 7000; if( $@FlaviusBG2==2 ) end; mapannounce "new_3-4","3",1; sleep 1000; if( $@FlaviusBG2==2 ) end; mapannounce "new_3-4","2",1; sleep 1000; if( $@FlaviusBG2==2 ) end; mapannounce "new_3-4","1",1; donpcevent "Flavius_BG2::OnReadyCheck"; end; OnInit: set .rewardwinner, 7711; set .rewardwinneramount, 15; set .rewardwinnerbadge, 7828; set .rewardwinnerbadgeamount, 50; set .rewardloser, 7711; set .rewardloseramount, 10; set .rewardjoin, 7829; set .rewardjoinamount, 50; set $cthmaxscore, 3; setcell "bat_room",201,94,194,90,cell_landprotector,1; setcell "bat_room",201,81,194,74,cell_landprotector,1; setcell "bat_b02",333,153,326,145,cell_landprotector,1; setcell "bat_b02",57,145,65,155,cell_landprotector,1; setcell "bat_b02",304,235,319,214,cell_landprotector,1; setcell "bat_b02",76,85,99,64,cell_landprotector,1; disablenpc "Battle Reward#fl2"; disablenpc "Therapist in Battle#1"; disablenpc "Therapist in Battle#2"; disablenpc "Lucifer of the Dark"; disablenpc "Freyja of the Light"; disablenpc "Freyja of the Light#1"; disablenpc "Lucifer of the Dark#1"; //set nagstartna,0; end; OnPCLoginEvent: if ($@register < 1) set registeredna,0; end; OnGuillaumeQuit: OnCroixQuit: if ( $@Blue_Flag_Carrier$ == strcharinfo(0) || $@Red_Flag_Carrier$ == strcharinfo(0)){ if( Bat_Team == 1) { if( $@BlueFlagTaken == 1 ){ mapannounce "bat_b02","Lucifer of the Dark has been freed.",bc_map,0xFF0000; getmapxy (mapname$,.@mapx,.@mapy,0,strcharinfo(0)); movenpc "Lucifer of the Dark#1",.@mapx,.@mapy; set $@BlueFlagFalse, 1; set $@BlueFlagTaken, 0; set $@Blue_Flag_Carrier$,0; sleep 4000; enablenpc "Lucifer of the Dark#1"; end; } } if( Bat_Team == 2) { if( $@RedFlagTaken == 1 ){ mapannounce "bat_b02","Freyja of the Light has been freed.",bc_map,0x0000FF; getmapxy (mapname$,.@mapx,.@mapy,0,strcharinfo(0)); movenpc "Freyja of the Light#1",.@mapx,.@mapy; set $@RedFlagFalse, 1; set $@RedFlagTaken, 0; set $@Red_Flag_Carrier$,0; sleep 4000; enablenpc "Freyja of the Light#1"; end; } } } set BG_Delay_Tick, gettimetick(2) + 1200; end; OnGuillaumeJoin: OnCroixJoin: if( $@FlaviusBG2 == 1 ){ if( $@GuillC < 30 && $@CroiC < 30){ set .@Guillaume, getwaitingroomstate(0,"Registration#Light"); set .@Croix, getwaitingroomstate(0,"Registration#Dark"); if (.@Guillaume!=0 && .@Croix!=0){ set $@GuillC, ($@GuillC + 1); set $@CroiC, ($@CroiC + 1); waitingroom2bg_single($@FlaviusBG2_id1,"bat_b02",311,224,"Registration#Light"); waitingroom2bg_single($@FlaviusBG2_id2,"bat_b02",87,75,"Registration#Dark"); mapannounce "new_3-4","Capture The Heroes: " + $@GuillC + "/40, C: " + $@CroiC + "/40 in Progress!",1,0x610B5E; end; } } } end; OnReadyCheck: if( $@FlaviusBG2 ) end; set .@Guillaume, getwaitingroomstate(0,"Registration#Light"); set .@Croix, getwaitingroomstate(0,"Registration#Dark"); // BG Variables set $@FlaviusBG2, 1; set $@FlaviusBG2_Victory, 0; set $@Guillaume_Score, 0; set $@Croix_Score, 0; bg_updatescore "bat_b02",$@Guillaume_Score,$@Croix_Score; set $@BlueFlagTaken, 0; set $@Blue_Flag_Carrier$,0; set $@RedFlagTaken, 0; set $@Red_Flag_Carrier$,0; set $@RedFlagFalse, 0; set $@BlueFlagFalse, 0; // Prepare NPC donpcevent "respawn1::OnBGStart"; donpcevent "respawn2::OnBGStart"; enablenpc "Therapist in Battle#1"; enablenpc "Therapist in Battle#2"; disablenpc "Battle Reward#fl2"; // Build and Warp Teams donpcevent "Registration#Light::OnEnterBG"; donpcevent "Registration#Dark::OnEnterBG"; // Vamos contando set $@GuillC, 10; set $@CroiC, 10; announce "Capture The Heroes has started!",0; initnpctimer; // Start Match!! OnRoundStart: if( $@FlaviusBG2 != 1 ) end; areapercentheal "bat_b02",382,2,397,17,100,100; areapercentheal "bat_b02",2,282,17,297,100,100; bg_warp $@FlaviusBG2_id1,"bat_b02",311,224; bg_warp $@FlaviusBG2_id2,"bat_b02",87,75; sleep 2000; movenpc "Lucifer of the Dark",62,149; movenpc "Freyja of the Light",328,150; movenpc "Freyja of the Light#1",391,14; movenpc "Lucifer of the Dark#1",391,15; enablenpc "Lucifer of the Dark"; enablenpc "Freyja of the Light"; if( $@FlaviusBG2 != 1 ) end; announce "The Capture The Heroes has begun!!",0; sleep 5000; if( $@FlaviusBG2==2 ) end; mapannounce "bat_b02","Capture the Enemy's Heroes and bring it to your Hero to score points.",0; sleep 3000; if( $@FlaviusBG2==2 ) end; mapannounce "bat_b02","The First Team to score "+$cthmaxscore+" Points wins!!!.",0; sleep 3000; mapannounce "bat_b02","You only have 10 minutes to win the battle!",0; sleep 3000; mapannounce "bat_b02","After 10 minutes, if no one wins the battle, both teams will receive same prize!",0; sleep 297000; mapannounce "bat_b02","5 minutes left before the game ends!",0; sleep 180000; mapannounce "bat_b02","2 minutes left before the game ends!",0; sleep 60000; mapannounce "bat_b02","1 minute left before the game ends!",0; sleep 55000; mapannounce "bat_b02","5",0; sleep 1000; mapannounce "bat_b02","4",0; sleep 1000; mapannounce "bat_b02","3",0; sleep 1000; mapannounce "bat_b02","2",0; sleep 1000; mapannounce "bat_b02","1",0; sleep 1000; if( $@FlaviusBG2==2 ) end; donpcevent "Flavius_BG2::OnMatchEnd"; end; OnPCDieEvent: if ( $@Blue_Flag_Carrier$ == strcharinfo(0) || $@Red_Flag_Carrier$ == strcharinfo(0)){ if( Bat_Team == 1) { if( $@BlueFlagTaken == 1 ){ mapannounce "bat_b02", "Lucifer of the Dark has been freed!!!",bc_map,0xFF0000; getmapxy (mapname$,.@mapx,.@mapy,0,strcharinfo(0)); movenpc "Lucifer of the Dark#1",.@mapx,.@mapy; set $@BlueFlagFalse, 1; set $@BlueFlagTaken, 0; set $@Blue_Flag_Carrier$,0; sleep 2000; enablenpc "Lucifer of the Dark#1"; sleep 10000; if ($@nahawakanluci == 0){ movenpc "Lucifer of the Dark#1",155,119; set $@nahawakanluci,0; end; } end; } } if( Bat_Team == 2) { if( $@RedFlagTaken == 1 ){ mapannounce "bat_b02", "Freyja of the Light has been freed!!!",bc_map,0x0000FF; getmapxy (mapname$,.@mapx,.@mapy,0,strcharinfo(0)); movenpc "Freyja of the Light#1",.@mapx,.@mapy; set $@RedFlagFalse, 1; set $@RedFlagTaken, 0; set $@Red_Flag_Carrier$,0; sleep 2000; enablenpc "Freyja of the Light#1"; sleep 10000; if ($@nahawakanfreya == 0){ movenpc "Freyja of the Light#1",243,182; set $@nahawakanfreya,0; end; } } } } end; OnMatchEnd: set $@FlaviusBG2, 2; stopnpctimer; movenpc "Freyja of the Light",391,15; movenpc "Lucifer of the Dark",391,14; movenpc "Freyja of the Light#1",392,15; movenpc "Lucifer of the Dark#1",392,14; disablenpc "Lucifer of the Dark"; disablenpc "Freyja of the Light"; disablenpc "Freyja of the Light#1"; disablenpc "Lucifer of the Dark#1"; donpcevent "respawn1::OnBGStop"; donpcevent "respawn2::OnBGStop"; disablenpc "Therapist in Battle#1"; disablenpc "Therapist in Battle#2"; enablenpc "Battle Reward#fl2"; sleep 5000; mapwarp "bat_b02","new_2-4",51,191; sleep 5000; mapwarp "bat_room","new_2-4",51,191; sleep 3000; mapannounce "new_2-4","Capture The Heroes will close in 1 minute!",1,0x610B5E; initnpctimer; end; OnTimer30000: if( $@FlaviusBG2 == 2 ) mapannounce "new_2-4","Capture The Heroes will close in 30 seconds!",1,0x610B5E; end; OnTimer50000: if( $@FlaviusBG2 == 2 ) mapannounce "new_2-4","Capture The Heroes will close in 10 seconds!",1,0x610B5E; end; OnTimer60000: if( $@FlaviusBG2 != 2 ) end; OnReset: stopnpctimer; set $@Guillaume_Score, 0; set $@Croix_Score, 0; set $@anuncioF4,0; set $@anuncioF3,0; set $@RedFlagTaken, 0; set $@Red_Flag_Carrier$,0; set $@BlueFlagTaken, 0; set $@Blue_Flag_Carrier$,0; set $@RedFlagFalse, 0; set $@BlueFlagFalse, 0; // NPC's disablenpc "Battle Reward#fl2"; disablenpc "Therapist in Battle#1"; disablenpc "Therapist in Battle#2"; disablenpc "Lucifer of the Dark"; disablenpc "Freyja of the Light"; disablenpc "Freyja of the Light#1"; disablenpc "Lucifer of the Dark#1"; if( $@FlaviusBG2_id1 ) { bg_destroy $@FlaviusBG2_id1; set $@FlaviusBG2_id1, 0; } if( $@FlaviusBG2_id2 ) { bg_destroy $@FlaviusBG2_id2; set $@FlaviusBG2_id2, 0; } sleep 1000; mapwarp "bat_room","new_2-4",51,191; sleep 1000; mapwarp "bat_b02","new_2-4",51,191; sleep 2000; bg_updatescore "bat_b02",0,0; set $@FlaviusBG2, 0; end; Guillawin: announce "The Warriors of the Light has won the Capture The Heroes!",0; set $@FlaviusBG2_Victory, 1; donpcevent "Flavius_BG2::OnMatchEnd"; end; Croixwin: announce "The Warriors of the Dark has won the Capture The Heroes!",0; set $@FlaviusBG2_Victory, 2; donpcevent "Flavius_BG2::OnMatchEnd"; end; Nowinner: announce "The Capture The Heroes has ended. There are no victors!",0; set $@FlaviusBG2_Victory, 3; donpcevent "Flavius_BG2::OnMatchEnd"; end; } // Banderas estaticas :3 bat_b02,328,150,5 script Freyja of the Light 1751,1,1,{ end; OnTouch: if( Bat_Team == 2 ){ set @hp, (Hp * 100 / MaxHp); //if (@hp < 50) goto notenafhp; set $@RedFlagTaken, 1; set $@Red_Flag_Carrier$,strcharinfo(0); mapannounce "bat_b02", "[ "+$@Red_Flag_Carrier$+" ] kidnapped Freyja of the Light",bc_map,0xFF0000; disablenpc "Freyja of the Light"; movenpc "Freyja of the Light",391,15; callsub OnRedFlagCarrier; end; notenafhp: announce "You cannot kidnap the Hero. Your HP is below 50%, Please Make sure that your HP is above 50% to successfully kidnap the Hero.",3; end; } if( $@BlueFlagTaken == 1 && $@Blue_Flag_Carrier$ == strcharinfo(0) ){ mapannounce "bat_b02", "[ "+$@Blue_Flag_Carrier$+" ] successfully devoured Lucifer of the Dark",bc_map,0x0000FF; set @banderas,@banderas + 1; set $@BlueFlagTaken, 0; set $@Blue_Flag_Carrier$,0; if( set($@Guillaume_Score, $@Guillaume_Score + 1) < $cthmaxscore ) { bg_updatescore "bat_b02",$@Guillaume_Score,$@Croix_Score; disablenpc "Lucifer of the Dark"; disablenpc "Freyja of the Light"; disablenpc "Freyja of the Light#1"; disablenpc "Lucifer of the Dark#1"; movenpc "Lucifer of the Dark",62,149; movenpc "Freyja of the Light",328,150; movenpc "Freyja of the Light#1",391,14; movenpc "Lucifer of the Dark#1",391,15; sleep 5000; mapannounce "bat_b02","The Heroes have been set to their Bases!!",bc_map,0xFFFF00; enablenpc "Lucifer of the Dark"; enablenpc "Freyja of the Light"; } else { bg_updatescore "bat_b02",$@Guillaume_Score,$@Croix_Score; mapannounce "bat_b02","The Warriors of the Light has won the Capture The Heroes!",1,0x0000FF; set $@FlaviusBG2_Victory, 1; donpcevent "Flavius_BG2::OnMatchEnd"; } } end; OnRedFlagCarrier: if($@RedFlagTaken == 1) { if($@Red_Flag_Carrier$ == strcharinfo(0)) { sc_end SC_CLOAKING; sc_end SC_CHASEWALK; sc_end SC_HIDING; sc_start 297,2000,1; sc_start SC_ROKISWEIL,1200000,1; emotion e_hlp,1; percentheal -7,0; specialeffect2 58; sleep2 2000; goto OnRedFlagCarrier;}} sc_end 297; sc_end SC_ROKISWEIL; end; } bat_b02,62,149,5 script Lucifer of the Dark 1916,1,1,{ end; OnTouch: if( Bat_Team == 1 ){ set @hp2, (Hp * 100 / MaxHp); //if (@hp2 < 50) goto notenafhp2; set $@BlueFlagTaken, 1; set $@Blue_Flag_Carrier$,strcharinfo(0); mapannounce "bat_b02", "[ "+$@Blue_Flag_Carrier$+" ] kidnapped Lucifer of the Dark",bc_map,0x0000FF; disablenpc "Lucifer of the Dark"; movenpc "Lucifer of the Dark",391,14; callsub OnBlueFlagCarrier; end; notenafhp2: announce "You cannot kidnap the Hero. Your HP is below 50%, Please Make sure that your HP is above 50% to successfully kidnap the Hero.",3; end; } if( $@RedFlagTaken == 1 && $@Red_Flag_Carrier$ == strcharinfo(0) ){ mapannounce "bat_b02", "[ "+$@Red_Flag_Carrier$+" ] successfully devoured Freyja of the Light",bc_map,0xFF0000; set @banderas,@banderas + 1; set $@RedFlagTaken, 0; set $@Red_Flag_Carrier$,0; if( set($@Croix_Score, $@Croix_Score + 1) < $cthmaxscore ) { bg_updatescore "bat_b02",$@Guillaume_Score,$@Croix_Score; disablenpc "Lucifer of the Dark"; disablenpc "Freyja of the Light"; disablenpc "Freyja of the Light#1"; disablenpc "Lucifer of the Dark#1"; movenpc "Lucifer of the Dark",62,149; movenpc "Freyja of the Light",328,150; movenpc "Freyja of the Light#1",391,14; movenpc "Lucifer of the Dark#1",391,15; sleep 5000; mapannounce "bat_b02","The Heroes have been set to their Bases!!",bc_map,0xFFFF00; enablenpc "Lucifer of the Dark"; enablenpc "Freyja of the Light"; } else { bg_updatescore "bat_b02",$@Guillaume_Score,$@Croix_Score; mapannounce "bat_b02","The Warriors of the Dark has won the Capture The Heroes!",1,0xFF0000; set $@FlaviusBG2_Victory, 2; donpcevent "Flavius_BG2::OnMatchEnd"; } } end; OnBlueFlagCarrier: if($@BlueFlagTaken == 1) { if($@Blue_Flag_Carrier$ == strcharinfo(0)) { sc_end SC_CLOAKING; sc_end SC_CHASEWALK; sc_end SC_HIDING; sc_start 297,2000,1; sc_start SC_ROKISWEIL,1200000,1; emotion e_hlp,1; percentheal -7,0; specialeffect2 58; sleep2 2000; goto OnBlueFlagCarrier;}} sc_end 297; sc_end SC_ROKISWEIL; end; } //Banderas que dropean al morir, y se mueven :3! bat_b02,390,13,5 script Lucifer of the Dark#1 1916,1,1,{ end; OnTouch: if( Bat_Team == 1 ){ set $@nahawakanluci,1; set $@BlueFlagFalse, 0; set $@BlueFlagTaken, 1; set $@Blue_Flag_Carrier$,strcharinfo(0); mapannounce "bat_b02","[ "+$@Blue_Flag_Carrier$+" ] kidnapped Lucifer of the Dark!!!",bc_map,0xFF0000; disablenpc "Lucifer of the Dark#1"; movenpc "Lucifer of the Dark#1",390,13; callsub OnBlueFlagCarrier; end; } if( Bat_Team == 2 ){ set $@Blue_Returned$,strcharinfo(0); mapannounce "bat_b02","[ "+$@Blue_Returned$+" ] rescued Lucifer of the Dark...",bc_map,0xFF0000; set $@nahawakanluci,1; set $@Blue_Returned$,0; set $@BlueFlagFalse, 0; disablenpc "Lucifer of the Dark#1"; movenpc "Lucifer of the Dark#1",390,13; movenpc "Lucifer of the Dark",62,149; enablenpc "Lucifer of the Dark"; end; } end; OnBlueFlagCarrier: if($@BlueFlagTaken == 1) { if($@Blue_Flag_Carrier$ == strcharinfo(0)) { sc_end SC_CLOAKING; sc_end SC_CHASEWALK; sc_end SC_HIDING; sc_start 297,2000,1; sc_start SC_ROKISWEIL,1200000,1; emotion e_hlp,1; percentheal -7,0; specialeffect2 58; sleep2 2000; goto OnBlueFlagCarrier;}} sc_end 297; sc_end SC_ROKISWEIL; end; } bat_b02,390,14,5 script Freyja of the Light#1 1751,1,1,{ end; OnTouch: if( Bat_Team == 2 ){ set $@nahawakanfreya,1; set $@RedFlagFalse, 0; set $@RedFlagTaken, 1; set $@Red_Flag_Carrier$,strcharinfo(0); mapannounce "bat_b02", "[ "+$@Red_Flag_Carrier$+" ] kidnapped Freyja of the Light!!!",bc_map,0x0000FF; disablenpc "Freyja of the Light#1"; movenpc "Freyja of the Light#1",390,13; callsub OnRedFlagCarrier; end; } if( Bat_Team == 1 ){ set $@Red_Returned$,strcharinfo(0); mapannounce "bat_b02","[ "+$@Red_Returned$+" ] rescued Freyja of the Light...",bc_map,0x0000FF; set $@nahawakanfreya,1; set $@Red_Returned$,0; set $@RedFlagFalse, 0; disablenpc "Freyja of the Light#1"; movenpc "Freyja of the Light#1",390,14; movenpc "Freyja of the Light",328,150; enablenpc "Freyja of the Light"; end; } end; OnRedFlagCarrier: if($@RedFlagTaken == 1) { if($@Red_Flag_Carrier$ == strcharinfo(0)) { sc_end SC_CLOAKING; sc_end SC_CHASEWALK; sc_end SC_HIDING; sc_start 297,2000,1; sc_start SC_ROKISWEIL,1200000,1; emotion e_hlp,1; percentheal -7,0; specialeffect2 58; sleep2 2000; goto OnRedFlagCarrier;}} sc_end 297; sc_end SC_ROKISWEIL; end; } // Map View de las banderas. - script viewmapred -,{ end; OnPCLoadMapEvent: OnViewRed: getmapxy .@MAPNAME$,@x,@y,0,strcharinfo(0); if(.@MAPNAME$ == "bat_b02") { if($@FlaviusBG2 == 2) { viewpoint 2,.yE,.yE,1,0x0000ff; end;} if($@FlaviusBG2 == 1) { if ($@RedFlagFalse == 1) { getmapxy(.mapES$, .xE, .yE,1,"Freyja of the Light#1"); viewpoint 1,.xE,.yE,1,0x0000ff; sleep2 1000; goto OnViewRed; } if ($@RedFlagTaken == 1) { getmapxy(.mapES$, .xE, .yE,0,$@Red_Flag_Carrier$); viewpoint 1,.xE,.yE,1,0x0000ff; sleep2 1000; goto OnViewRed; } } getmapxy(.mapES$, .xE, .yE,1,"Freyja of the Light"); viewpoint 1,.xE,.yE,1,0x0000ff; sleep2 1000; goto OnViewRed; } end; } /*- script IfAfkInBattleField -1,{ OnPCLoadMapEvent: //while ( !getmapxy ( .@afkmap$, .@afkx, .@afky, 0) && .@afkmap$ == "bat_b02" ) { while( ! getmapxy(.@afkmap$,.@afkx,.@afky,0) && .@afkmap$ == "bat_b02"){ if ( .@afkx == .@afkmapx && .@afky == .@afkmapy ) { if( .@afkcountifidle < 60 ){ set .@afkcountifidle,.@afkcountifidle+10; if(.@afkcountifidle==(60-10)){ dispbottom "You have 10 seconds to move or you will be tagged as AFK"; } } else { dispbottom "You've been kicked for being afk."; set registeredna,0; setlook 7,normallook; warp "SavePoint",0,0; break; } } else { set .@afkmapx,.@afkx; set .@afkmapy,.@afky; set .@afkcountifidle,0; } sleep2 10000; } }*/ /*- script IfAfkInRespawn -1,{ OnPCLoadMapEvent: while( ! getmapxy(.@afkmap2$,.@afkx2,.@afky2,0) && .@afkmap2$ == "bat_room"){ if ( .@afkx2 == .@afkmapx2 && .@afky2 == .@afkmapy2 ) { if( .@afkcountifidle2 < 60 ){ set .@afkcountifidle2,.@afkcountifidle2+10; if(.@afkcountifidle2==(60-10)){ dispbottom "You have 10 seconds to move or you will be tagged as AFK"; } } else { dispbottom "You've been kicked for being afk."; set registeredna,0; setlook 7,normallook; warp "SavePoint",0,0; break; } } else { set .@afkmapx2,.@afkx2; set .@afkmapy2,.@afky2; set .@afkcountifidle2,0; } sleep2 10000; } }*/ - script Logout_CTH -1,{ OnPCLogoutEvent: set registeredna,0; end; } function script has_char_from_same_ip { set .@my_map$, getarg(0); // get array of char names who are online from the same IP query_sql "SELECT `char`.`name` FROM `char` LEFT JOIN login ON `char`.account_id=login.account_id " + "WHERE last_ip=(SELECT last_ip FROM login WHERE account_id="+playerattached()+") AND online AND `char`.account_id!=" + playerattached(), .@name$; // check each char, and see if they are on the map for (set .@i,0; .@i < getarraysize(.@name$); set .@i,.@i+1) { getmapxy .@map$, .@x, .@y, 0, .@name$[.@i]; if (.@map$ == .@my_map$) return 1; // another char from this IP is already on map } return 0; // no other chars from this IP are on that map } - script viewmapblue -,{ end; OnPCLoadMapEvent: OnViewBlue: getmapxy .@MAPNAME$,@x,@y,0,strcharinfo(0); if(.@MAPNAME$ == "bat_b02") { if($@FlaviusBG2 == 2) { viewpoint 2,.yEE,.yEE,2,0xff0000; end;} if($@FlaviusBG2 == 1) { if ($@BlueFlagFalse == 1) { getmapxy(.mapEES$, .xEE, .yEE,1,"Lucifer of the Dark#1"); viewpoint 1,.xEE,.yEE,2,0xff0000; sleep2 1000; goto OnViewBlue; } if ($@BlueFlagTaken == 1) { getmapxy(.mapEES$, .xEE, .yEE,0,$@Blue_Flag_Carrier$); viewpoint 1,.xEE,.yEE,2,0xff0000; sleep2 1000; goto OnViewBlue; } } getmapxy(.mapEES$, .xEE, .yEE,1,"Lucifer of the Dark"); viewpoint 1,.xEE,.yEE,2,0xff0000; sleep2 1000; goto OnViewBlue; } end; } // Battleground rewards // ********************************************************************* new_2-4,51,191,5 script Battle Reward#fl2 851,{ if( $@FlaviusBG2_Victory == Bat_Team ) { // Victory set registeredna,0; setlook 7,normallook; mes "[Swandery]"; mes "Blessed Warrior"; mes "Let's enjoy our glorious victory!"; mes "" + strcharinfo(0) + ", its a sign reflecting victory"; set .rewardwinner, getvariableofnpc(.rewardwinner,"Flavius_BG2"); set .rewardwinneramount, getvariableofnpc(.rewardwinneramount,"Flavius_BG2"); set .rewardwinnerbadge, getvariableofnpc(.rewardwinnerbadge,"Flavius_BG2"); set .rewardwinnerbadgeamount, getvariableofnpc(.rewardwinnerbadgeamount,"Flavius_BG2"); getitem .rewardwinner,.rewardwinneramount; getitem .rewardwinnerbadge,.rewardwinnerbadgeamount; set .rewardjoin, getvariableofnpc(.rewardjoin,"Flavius_BG2"); set .rewardjoinamount, getvariableofnpc(.rewardjoinamount,"Flavius_BG2"); getitem .rewardjoin,.rewardjoinamount; dispbottom "You've earned another "+.rewardjoinamount+" "+getitemname(.rewardjoin)+" for playing Capture the Heroes!"; warp "dewata",200,180; end; } else { // Derrota set registeredna,0; setlook 7,normallook; mes "[Swandery]"; mes "You lost, but you're dedicated to this battle."; mes "This is a reward for your great dedication!"; mes "Just take this defeat a lesson, and later you would definitely learn."; set .rewardloser, getvariableofnpc(.rewardloser,"Flavius_BG2"); set .rewardloseramount, getvariableofnpc(.rewardloseramount,"Flavius_BG2"); getitem .rewardloser,.rewardloseramount; set .rewardjoin, getvariableofnpc(.rewardjoin,"Flavius_BG2"); set .rewardjoinamount, getvariableofnpc(.rewardjoinamount,"Flavius_BG2"); getitem .rewardjoin,.rewardjoinamount; dispbottom "You've earned "+.rewardjoinamount+" "+getitemname(.rewardjoin)+" for playing Capture the Heroes!"; warp "dewata",200,180; end; } //set Flavius2_BG_Tick, gettimetick(2) + 300; //getitem 7829, 2; //if(.@rewardb != 0) { //set .rewardjoin, getvariableofnpc(.rewardjoin,"Flavius_BG2"); //set .rewardjoinamount, getvariableofnpc(.rewardjoinamount,"Flavius_BG2"); //getitem .rewardjoin,.rewardjoinamount; //dispbottom "You've earned "+.rewardjoinamount+" "+getitemname(.rewardjoin)+" for playing Capture the Heroes!"; setlook 7,normallook; set registeredna,0; bg_leave; warp "prontera",156,180; end; } // Battleground Therapist // ********************************************************************* bat_room,197,97,5 script Therapist in Battle#1 95,{ mes "[Therapist in Battle]"; mes "Just close your eyes, and take a deep breathe."; mes "You can be free from pain."; percentheal 100,100; repair(1); sc_start SC_MAGNIFICAT,300000,5; switch ( BaseJob ) { case Job_Alchemist: set .@spirit, 445; break; case Job_Monk: set .@spirit, 447; break; case Job_Star_Gladiator: set .@spirit, 448; break; case Job_Sage: set .@spirit, 449; break; case Job_Crusader: set .@spirit, 450; break; case Job_SuperNovice: set .@spirit, 451; break; case Job_Knight: set .@spirit, 452; break; case Job_Wizard: set .@spirit, 453; break; case Job_Priest: set .@spirit, 454; break; case Job_Bard: case Job_Dancer: set .@spirit, 455; break; case Job_Rogue: set .@spirit, 456; break; case Job_Assassin: set .@spirit, 457; break; case Job_Blacksmith: set .@spirit, 458; break; case Job_Hunter: set .@spirit, 460; break; case Job_Soul_Linker: set .@spirit, 461; break; default: if ( Upper == 1 && BaseLevel < 70 ) set .@spirit, 494; } if ( .@spirit ) { sc_start4 sc_spirit, .@time, 5, .@spirit,0,0; skilleffect .@spirit, 5; } close2; warp "bat_b02",311,224; } bat_room,197,74,1 script Therapist in Battle#2 95,{ mes "[Therapist in Battle]"; mes "Just close your eyes, and take a deep breathe."; mes "You can be free from pain."; percentheal 100,100; repair(1); sc_start SC_MAGNIFICAT,300000,5; switch ( BaseJob ) { case Job_Alchemist: set .@spirit, 445; break; case Job_Monk: set .@spirit, 447; break; case Job_Star_Gladiator: set .@spirit, 448; break; case Job_Sage: set .@spirit, 449; break; case Job_Crusader: set .@spirit, 450; break; case Job_SuperNovice: set .@spirit, 451; break; case Job_Knight: set .@spirit, 452; break; case Job_Wizard: set .@spirit, 453; break; case Job_Priest: set .@spirit, 454; break; case Job_Bard: case Job_Dancer: set .@spirit, 455; break; case Job_Rogue: set .@spirit, 456; break; case Job_Assassin: set .@spirit, 457; break; case Job_Blacksmith: set .@spirit, 458; break; case Job_Hunter: set .@spirit, 460; break; case Job_Soul_Linker: set .@spirit, 461; break; default: if ( Upper == 1 && BaseLevel < 70 ) set .@spirit, 494; } if ( .@spirit ) { sc_start4 sc_spirit, .@time, 5, .@spirit,0,0; skilleffect .@spirit, 5; } close2; warp "bat_b02",87,75; } // Battleground Respawn // ********************************************************************* /*function script respawn1f { sleep 5000; areapercentheal "bat_room",201,90,194,97,100,100; areawarp "bat_room",201,90,194,97,"bat_b02",311,224; end; } function script respawn2f { sleep 5000; areapercentheal "bat_room",201,74,194,81,100,100; areawarp "bat_room",201,74,194,81,"bat_b02",87,75; end; }wew*/ //bat_room,197,97,0 script respawn1 -1,13,13,{ bat_room,197,97,0 script respawn1 104,{ end; OnBGStop: stopnpctimer; end; OnBGStart: initnpctimer; end; OnTimer5000: misceffect 83; end; OnTimer10000: areapercentheal "bat_room",201,90,194,97,100,100; areawarp "bat_room",201,90,194,97,"bat_b02",311,224; initnpctimer; end; } //bat_room,197,74,0 script respawn2 -1,13,13,{ bat_room,197,74,0 script respawn2 104,{ end; OnBGStop: stopnpctimer; end; OnBGStart: initnpctimer; end; OnTimer5000: misceffect 83; end; OnTimer10000: areapercentheal "bat_room",201,74,194,81,100,100; areawarp "bat_room",201,74,194,81,"bat_b02",87,75; initnpctimer; end; } // Flags // ********************************************************************* bat_b02,304,231,1 duplicate(Light Camp#bat) Light Camp#bat32 973 bat_b02,319,231,1 duplicate(Light Camp#bat) Light Camp#bat33 973 bat_b02,304,218,1 duplicate(Light Camp#bat) Light Camp#bat34 973 bat_b02,319,218,1 duplicate(Light Camp#bat) Light Camp#bat35 973 bat_b02,304,231,1 duplicate(Light Camp#bat) Light Camp#bat36 973 bat_b02,304,231,1 duplicate(Light Camp#bat) Light Camp#bat37 973 bat_b02,335,142,1 duplicate(Light Camp#bat) Light Camp#bat38 973 bat_b02,335,157,1 duplicate(Light Camp#bat) Light Camp#bat39 973 bat_b02,390,16,1 duplicate(Light Camp#bat) Light Camp#bat40 973 bat_b02,292,163,1 duplicate(Light Camp#bat) Light Camp#bat41 973 bat_b02,292,136,1 duplicate(Light Camp#bat) Light Camp#bat42 973 bat_b02,241,185,1 duplicate(Light Camp#bat) Light Camp#bat43 973 bat_b02,247,179,1 duplicate(Light Camp#bat) Light Camp#bat44 973 bat_b02,96,81,1 duplicate(Dark Camp#bat) Dark Camp#bat30 974 bat_b02,96,68,1 duplicate(Dark Camp#bat) Dark Camp#bat31 974 bat_b02,79,81,1 duplicate(Dark Camp#bat) Dark Camp#bat32 974 bat_b02,79,68,1 duplicate(Dark Camp#bat) Dark Camp#bat33 974 bat_b02,96,81,1 duplicate(Dark Camp#bat) Dark Camp#bat34 974 bat_b02,96,81,1 duplicate(Dark Camp#bat) Dark Camp#bat35 974 bat_b02,59,164,1 duplicate(Dark Camp#bat) Dark Camp#bat36 974 bat_b02,59,137,1 duplicate(Dark Camp#bat) Dark Camp#bat37 974 bat_b02,10,296,1 duplicate(Dark Camp#bat) Dark Camp#bat38 974 bat_b02,110,162,1 duplicate(Dark Camp#bat) Dark Camp#bat39 974 bat_b02,110,137,1 duplicate(Dark Camp#bat) Dark Camp#bat40 974 bat_b02,152,120,1 duplicate(Dark Camp#bat) Dark Camp#bat41 974 bat_b02,158,114,1 duplicate(Dark Camp#bat) Dark Camp#bat42 974 bat_b02,87,81,3 script Healer#boa1 81,{ if (Bat_Team == 1) end; if ( $@Blue_Flag_Carrier$ == strcharinfo(0) || $@Red_Flag_Carrier$ == strcharinfo(0)) end; percentheal 100,100; repair(1); sc_start SC_BLESSING,300000,10; sc_start SC_INCREASEAGI,300000,10; sc_start SC_MAGNIFICAT,300000,5; switch ( BaseJob ) { case Job_Alchemist: set .@spirit, 445; break; case Job_Monk: set .@spirit, 447; break; case Job_Star_Gladiator: set .@spirit, 448; break; case Job_Sage: set .@spirit, 449; break; case Job_Crusader: set .@spirit, 450; break; case Job_SuperNovice: set .@spirit, 451; break; case Job_Knight: set .@spirit, 452; break; case Job_Wizard: set .@spirit, 453; break; case Job_Priest: set .@spirit, 454; break; case Job_Bard: case Job_Dancer: set .@spirit, 455; break; case Job_Rogue: set .@spirit, 456; break; case Job_Assassin: set .@spirit, 457; break; case Job_Blacksmith: set .@spirit, 458; break; case Job_Hunter: set .@spirit, 460; break; case Job_Soul_Linker: set .@spirit, 461; break; default: if ( Upper == 1 && BaseLevel < 70 ) set .@spirit, 494; } if ( .@spirit ) { sc_start4 sc_spirit, .@time, 5, .@spirit,0,0; skilleffect .@spirit, 5; } close; } bat_b02,313,231,3 script Healer#boa2 81,{ if (Bat_Team == 2) end; if ( $@Blue_Flag_Carrier$ == strcharinfo(0) || $@Red_Flag_Carrier$ == strcharinfo(0)) end; percentheal 100,100; repair(1); sc_start SC_BLESSING,300000,10; sc_start SC_INCREASEAGI,300000,10; sc_start SC_MAGNIFICAT,300000,5; switch ( BaseJob ) { case Job_Alchemist: set .@spirit, 445; break; case Job_Monk: set .@spirit, 447; break; case Job_Star_Gladiator: set .@spirit, 448; break; case Job_Sage: set .@spirit, 449; break; case Job_Crusader: set .@spirit, 450; break; case Job_SuperNovice: set .@spirit, 451; break; case Job_Knight: set .@spirit, 452; break; case Job_Wizard: set .@spirit, 453; break; case Job_Priest: set .@spirit, 454; break; case Job_Bard: case Job_Dancer: set .@spirit, 455; break; case Job_Rogue: set .@spirit, 456; break; case Job_Assassin: set .@spirit, 457; break; case Job_Blacksmith: set .@spirit, 458; break; case Job_Hunter: set .@spirit, 460; break; case Job_Soul_Linker: set .@spirit, 461; break; default: if ( Upper == 1 && BaseLevel < 70 ) set .@spirit, 494; } if ( .@spirit ) { sc_start4 sc_spirit, .@time, 5, .@spirit,0,0; skilleffect .@spirit, 5; } close; }
  3. New Problem: Its always full when 2 or more players registers
  4. I know but i don't know which part
  5. PRICE* How can i make my gold and treasure box 1m zeny upon selling?
  6. I am using 2012-04-10aRagexeRE Client and a Bug on the Storage Tab is quiet wrong. Can anyone help me with this matter? Thank you! up
  7. Player spamming my Prize Giver on this Devil Square since the prize giver doesn't hide upon the finish of event. Here is the Screenshot and the Script // Made:By Kirlein (Tyirial Script Concept) // // Devil Square based off the mmorpg Muonline // // Have Fun and feel free to leave suggestions // // Leave This intacted // // + Translated by Stillhard aka Dewa // // + Add times for 24 hours of play // // + Add a little bit infos for newbie users // // Completely rewrite by ~AnnieRuru~ // // + Tested with rAthena 17101 // // http://rathena.org/board/topic/77632-devil-square/ ///////////////////////////////////////////////// prontera,172,141,3 script Devil Square 796,{ if (getgmlevel() > 40) { mes "Would you like to start the event?"; menu "Yes",L_Start,"No",-; close; } mes "[Devil Square Guardian]"; mes "Welcome to the entrance door to ^FF0000Devil Square^000000"; mes "If you failed or die, the door will be closed and you have to wait until it start to open again"; next; if ( select ( "Enter", "Info", "Cancel " ) == 3 ) { mes "[Devil Square Guardian]"; mes "See ya"; close; } else if ( @menu == 2 ) { // Info mes "[Devil Square Guardian]"; mes "There are 12 level monsters you'll encounter"; mes "Each level the enemies will grow stronger"; mes "If you succeded to win all 12 level monsters, you'll get a special reward!!!"; close; } else if ( .start != 1 ) { // time mes "[Devil Square Guardian]"; mes "Devil Square is now closed"; mes "It'll be open again at:"; mes "04:00 , 10:00 , 16:00 , 22:00"; // display your time here close; } else if ( baselevel < 70 || zeny < 20000 ) { // requirement mes "[Devil Square Guardian]"; mes "Minimum base level to enter is 70"; mes "The registration fee is 20,000z"; close; } else if ( .register_num >= .register_limit ) { // room FULL mes "[Devil Square Guardian]"; mes "I'm sorry but the Devil Square is FULL"; mes "Maximum users to enter is "+ .register_limit +" players"; close; } zeny = zeny - 20000; announce strcharinfo(0)+" has entered the Devil Square", bc_npc; percentheal 100,100; warp "ordeal_1-1",165,165; .register_aid[ .register_num ] = getcharid(3); .register_num++; end; OnInit: .register_limit = 15; // maximum amount of players can play in this event .ann_survive = 60000; // the rate at which announce the players that still survive in devil square, in mili-seconds bindatcmd "devilsquare", strnpcinfo(0)+"::Onatcmd", 99,100; end; Onatcmd: if ( compare( .@atcmd_parameters$, "on" ) || compare( .@atcmd_parameters$, "start" ) ) { if ( .start ) dispbottom "Devil Square Event already started."; else goto L_Start; } else if ( compare( .@atcmd_parameters$, "off" ) || compare( .@atcmd_parameters$, "end" ) ) { if ( !.start ) dispbottom "Devil Square Event not yet start."; else goto L_End; } else if ( !.start ) { dispbottom "Devil Square Event is currently not running."; dispbottom "Use "+ .@atcmd_command$ +" on | start to start the event."; dispbottom "Use "+ .@atcmd_command$ +" off | end to end this event"; } else if ( .start == 1 ) dispbottom "Devil Square Event is currently accepting participations."; else dispbottom "Devil Square Event is currently running. Currently on Round "+ .round +" with "+ .mob +" mobs left."; end; L_Start: disablenpc "Reward NPC#DS"; OnClock0400: // yeah I know about OnMinute ... it just that more people knows better using OnClock OnClock1000: OnClock1600: OnClock2200: .start = 1; disablenpc "Exit#DS"; mapannounce "ordeal_1-1","Devil Square is now closed.", bc_map; getmapxy .@map$, .@x, .@y, 1; mapwarp "ordeal_1-1", .@map$, .@x, .@y; killmonsterall "ordeal_1-1"; announce "Devil Square is NOW OPEN! 5 Minutes until it starts!", bc_all; sleep 2000; announce "[Devil Square] Dual clients in Devil Square will be punished!", bc_all; sleep 58000; announce "Devil Square will begin in 4 minutes!", bc_all; sleep 60000; announce "Devil Square will begin in 3 minutes!", bc_all; sleep 60000; announce "Devil Square will begin in 2 minutes!", bc_all; sleep 60000; announce "Devil Square will begin in 1 minutes!", bc_all; sleep 60000; announce "DEVIL SQUARE HAS JUST BEGUN!!", bc_all; sleep 2000; mapannounce "ordeal_1-1","Devil Square : Before we begin, I will first announce the rules/gameplay.", bc_map; sleep 3000; mapannounce "ordeal_1-1","Devil Square : Healing Items such as Yggdrasil Berry and Yggdrasil Seed are not allowed!", bc_map; sleep 3000; mapannounce "ordeal_1-1","Devil Square : Dual clients are not allowed also. Once you are caught, you will be punished!", bc_map; sleep 4000; mapannounce "ordeal_1-1","Devil Square : First round will start at North-East portal, for the next round, just go to the next portal, clockwise.", bc_map; sleep 5000; mapannounce "ordeal_1-1","Devil Square : [Tip: Work as a Team]", bc_map; sleep 2500; mapannounce "ordeal_1-1","Devil Square : NOW LET US BEGIN!", bc_map; sleep 1500; mapannounce "ordeal_1-1","GOODLUCK!!", bc_map; if ( !.register_num ) goto L_End; .start = 2; donpcevent strnpcinfo(0)+"::OnSurvive"; .round = 1; .mob = 78; areamonster "ordeal_1-1",183,182,246,244,"Baphomet",1039,1,strnpcinfo(0)+"::Ondevildead"; areamonster "ordeal_1-1",183,182,246,244,"RSX 0806",1623,1,strnpcinfo(0)+"::Ondevildead"; areamonster "ordeal_1-1",183,182,246,244,"Eddga",1115,1,strnpcinfo(0)+"::Ondevildead"; areamonster "ordeal_1-1",183,182,246,244,"Baphomet Jr.",1149,15,strnpcinfo(0)+"::Ondevildead"; areamonster "ordeal_1-1",183,182,246,244,"Beetle King",1494,15,strnpcinfo(0)+"::Ondevildead"; areamonster "ordeal_1-1",183,182,246,244,"Neraid",1255,15,strnpcinfo(0)+"::Ondevildead"; areamonster "ordeal_1-1",183,182,246,244,"Bigfoot",1060,15,strnpcinfo(0)+"::Ondevildead"; areamonster "ordeal_1-1",183,182,246,244,"Leib Olmai",1306,15,strnpcinfo(0)+"::Ondevildead"; end; Ondevildead: .mob--; if ( .mob == 25 || .mob == 5 ) announce "Devil Square : "+ .mob +" mobs to enter the 2nd round", bc_map; else if ( !.mob ) { announce "Devil Square will enter to 2nd round", bc_map; goto Ondevil2; } end; Ondevil2: .round = 2; .mob = 79; areamonster "ordeal_1-1",197,150,278,149,"Amon Ra",1511,1,strnpcinfo(0)+"::Ondevildead2"; areamonster "ordeal_1-1",197,150,278,149,"Dracula",1389,1,strnpcinfo(0)+"::Ondevildead2"; areamonster "ordeal_1-1",197,150,278,149,"Osiris",1038,1,strnpcinfo(0)+"::Ondevildead2"; areamonster "ordeal_1-1",197,150,278,149,"Pharaoh",1157,1,strnpcinfo(0)+"::Ondevildead2"; areamonster "ordeal_1-1",197,150,278,149,"Ancient Mummy",1297,15,strnpcinfo(0)+"::Ondevildead2"; areamonster "ordeal_1-1",197,150,278,149,"Dullahan",1504,15,strnpcinfo(0)+"::Ondevildead2"; areamonster "ordeal_1-1",197,150,278,149,"Mummy",1041,15,strnpcinfo(0)+"::Ondevildead2"; areamonster "ordeal_1-1",197,150,278,149,"Ragged Zombie",1865,15,strnpcinfo(0)+"::Ondevildead2"; areamonster "ordeal_1-1",197,150,278,149,"Skeleton Prisoner",1196,15,strnpcinfo(0)+"::Ondevildead2"; end; Ondevildead2: .mob--; if ( .mob == 25 || .mob == 5 ) announce "Devil Square : "+ .mob +" mobs left to enter the 3rd round", bc_map; else if ( !.mob ) { announce "Devil Square will enter to 3rd round", bc_map; goto Ondevil3; } end; Ondevil3: .round = 3; .mob = 83; areamonster "ordeal_1-1",181,117,248,49,"Evil Snake Lord",1418,1,strnpcinfo(0)+"::Ondevildead3"; areamonster "ordeal_1-1",181,117,248,49,"Gold Queen Scaraba",2165,1,strnpcinfo(0)+"::Ondevildead3"; areamonster "ordeal_1-1",181,117,248,49,"Moonlight Flower",1150,1,strnpcinfo(0)+"::Ondevildead3"; areamonster "ordeal_1-1",181,117,248,49,"Turtle General",1312,1,strnpcinfo(0)+"::Ondevildead3"; areamonster "ordeal_1-1",181,117,248,49,"Phreeoni",1159,1,strnpcinfo(0)+"::Ondevildead3"; areamonster "ordeal_1-1",181,117,248,49,"Scaraba",2083,13,strnpcinfo(0)+"::Ondevildead3"; areamonster "ordeal_1-1",181,117,248,49,"Scaraba",2084,13,strnpcinfo(0)+"::Ondevildead3"; areamonster "ordeal_1-1",181,117,248,49,"Assaulter",1315,13,strnpcinfo(0)+"::Ondevildead3"; areamonster "ordeal_1-1",181,117,248,49,"Hode",1127,13,strnpcinfo(0)+"::Ondevildead3"; areamonster "ordeal_1-1",181,117,248,49,"Evil Cloud Hermit",1412,13,strnpcinfo(0)+"::Ondevildead3"; areamonster "ordeal_1-1",181,117,248,49,"Cat o Nine Tail",1307,13,strnpcinfo(0)+"::Ondevildead3"; end; Ondevildead3: .mob--; if ( .mob == 25 || .mob == 5 ) announce "Devil Square : "+ .mob +" mobs left to enter the 4th round", bc_map; else if ( !.mob ) { announce "Devil Square will enter to 4th round", bc_map; goto Ondevil4; } end; Ondevil4: .round = 4; .mob = 80; areamonster "ordeal_1-1",149,101,149,21,"Atros",1785,1,strnpcinfo(0)+"::Ondevildead4"; areamonster "ordeal_1-1",149,101,149,21,"Orc Hero",1087,1,strnpcinfo(0)+"::Ondevildead4"; areamonster "ordeal_1-1",149,101,149,21,"Orc Lord",1190,1,strnpcinfo(0)+"::Ondevildead4"; areamonster "ordeal_1-1",149,101,149,21,"Hardrock Mammoth",1990,1,strnpcinfo(0)+"::Ondevildead4"; areamonster "ordeal_1-1",149,101,149,21,"Vesper",1685,1,strnpcinfo(0)+"::Ondevildead4"; areamonster "ordeal_1-1",149,101,149,21,"Driller",1380,15,strnpcinfo(0)+"::Ondevildead4"; areamonster "ordeal_1-1",149,101,149,21,"Tatacho",1986,10,strnpcinfo(0)+"::Ondevildead4"; areamonster "ordeal_1-1",149,101,149,21,"Orc Archer",1189,15,strnpcinfo(0)+"::Ondevildead4"; areamonster "ordeal_1-1",149,101,149,21,"Zenorc",1177,20,strnpcinfo(0)+"::Ondevildead4"; areamonster "ordeal_1-1",149,101,149,21,"Apocalypse",1365,15,strnpcinfo(0)+"::Ondevildead4"; end; Ondevildead4: .mob--; if ( .mob == 25 || .mob == 5 ) announce "Devil Square : "+ .mob +" mobs left to enter the 5th round", bc_map; else if ( !.mob ) { announce "Devil Square will enter to 5th round", bc_map; goto Ondevil5; } end; Ondevil5: .round = 5; .mob = 84; areamonster "ordeal_1-1",118,117,51,51,"Bacsojin",1630,1,strnpcinfo(0)+"::Ondevildead5"; areamonster "ordeal_1-1",118,117,51,51,"Angeling",1096,1,strnpcinfo(0)+"::Ondevildead5"; areamonster "ordeal_1-1",118,117,51,51,"Arc Angeling",1388,1,strnpcinfo(0)+"::Ondevildead5"; areamonster "ordeal_1-1",118,117,51,51,"Deviling",1582,1,strnpcinfo(0)+"::Ondevildead5"; areamonster "ordeal_1-1",118,117,51,51,"Ghostring",1120,1,strnpcinfo(0)+"::Ondevildead5"; areamonster "ordeal_1-1",118,117,51,51,"Pori Pori",1502,1,strnpcinfo(0)+"::Ondevildead5"; areamonster "ordeal_1-1",118,117,51,51,"Magmaring",1836,13,strnpcinfo(0)+"::Ondevildead5"; areamonster "ordeal_1-1",118,117,51,51,"Poporing",1031,13,strnpcinfo(0)+"::Ondevildead5"; areamonster "ordeal_1-1",118,117,51,51,"Poring",1002,13,strnpcinfo(0)+"::Ondevildead5"; areamonster "ordeal_1-1",118,117,51,51,"Santa Poring",1062,13,strnpcinfo(0)+"::Ondevildead5"; areamonster "ordeal_1-1",118,117,51,51,"Marin",1242,13,strnpcinfo(0)+"::Ondevildead5"; areamonster "ordeal_1-1",118,117,51,51,"Drops",1113,13,strnpcinfo(0)+"::Ondevildead5"; end; Ondevildead5: .mob--; if ( .mob == 25 || .mob == 5 ) announce "Devil Square : "+ .mob +" mobs left to enter the 6th round", bc_map; else if ( !.mob ) { announce "Devil Square will enter to 6th round", bc_map; goto Ondevil6; } end; Ondevil6: .round = 6; .mob = 79; areamonster "ordeal_1-1",102,150,21,150,"Detale",1719,1,strnpcinfo(0)+"::Ondevildead6"; areamonster "ordeal_1-1",102,150,21,150,"Boitata",2068,1,strnpcinfo(0)+"::Ondevildead6"; areamonster "ordeal_1-1",102,150,21,150,"Gopinich",1885,1,strnpcinfo(0)+"::Ondevildead6"; areamonster "ordeal_1-1",102,150,21,150,"Lady Tanee",1688,1,strnpcinfo(0)+"::Ondevildead6"; areamonster "ordeal_1-1",102,150,21,150,"Hydrolancer",1720,15,strnpcinfo(0)+"::Ondevildead6"; areamonster "ordeal_1-1",102,150,21,150,"Acidus",1713,15,strnpcinfo(0)+"::Ondevildead6"; areamonster "ordeal_1-1",102,150,21,150,"Mavka",1884,15,strnpcinfo(0)+"::Ondevildead6"; areamonster "ordeal_1-1",102,150,21,150,"Kraben",1587,15,strnpcinfo(0)+"::Ondevildead6"; areamonster "ordeal_1-1",102,150,21,150,"Iara",2069,15,strnpcinfo(0)+"::Ondevildead6"; end; Ondevildead6: .mob--; if ( .mob == 25 || .mob == 5 ) announce "Devil Square : "+ .mob +" mobs left to enter the 7th round", bc_map; else if ( !.mob ) { announce "Devil Square will enter to 7th round", bc_map; goto Ondevil7; } end; Ondevil7: .round = 7; .mob = 79; areamonster "ordeal_1-1",117,180,51,249,"Garm",1252,1,strnpcinfo(0)+"::Ondevildead7"; areamonster "ordeal_1-1",117,180,51,249,"Ktullanux",1779,1,strnpcinfo(0)+"::Ondevildead7"; areamonster "ordeal_1-1",117,180,51,249,"Stormy Knight",1251,1,strnpcinfo(0)+"::Ondevildead7"; areamonster "ordeal_1-1",117,180,51,249,"Tendrillon",1991,1,strnpcinfo(0)+"::Ondevildead7"; areamonster "ordeal_1-1",117,180,51,249,"Ice Titan",1777,15,strnpcinfo(0)+"::Ondevildead7"; areamonster "ordeal_1-1",117,180,51,249,"Hillslion",1989,15,strnpcinfo(0)+"::Ondevildead7"; areamonster "ordeal_1-1",117,180,51,249,"Garm Baby",1515,15,strnpcinfo(0)+"::Ondevildead7"; areamonster "ordeal_1-1",117,180,51,249,"Snowier",1775,15,strnpcinfo(0)+"::Ondevildead7"; areamonster "ordeal_1-1",117,180,51,249,"Freezer",1319,15,strnpcinfo(0)+"::Ondevildead7"; end; Ondevildead7: .mob--; if ( .mob == 25 || .mob == 5 ) announce "Devil Square : "+ .mob +" mobs left to enter the 8th round", bc_map; else if ( !.mob ) { announce "Devil Square will enter to 8th round", bc_map; goto Ondevil8; } end; Ondevil8: .round = 8; .mob = 79; areamonster "ordeal_1-1",149,197,149,278,"Dark Lord",1272,1,strnpcinfo(0)+"::Ondevildead8"; areamonster "ordeal_1-1",149,197,149,278,"Drake",1112,1,strnpcinfo(0)+"::Ondevildead8"; areamonster "ordeal_1-1",149,197,149,278,"Incantation Samura",1492,1,strnpcinfo(0)+"::Ondevildead8"; areamonster "ordeal_1-1",149,197,149,278,"Lord of Death",1373,1,strnpcinfo(0)+"::Ondevildead8"; areamonster "ordeal_1-1",149,197,149,278,"Dark Illusion",1302,10,strnpcinfo(0)+"::Ondevildead8"; areamonster "ordeal_1-1",149,197,149,278,"Vanberk",1771,20,strnpcinfo(0)+"::Ondevildead8"; areamonster "ordeal_1-1",149,197,149,278,"Isilla",1772,20,strnpcinfo(0)+"::Ondevildead8"; areamonster "ordeal_1-1",149,197,149,278,"Owl Baron",1295,10,strnpcinfo(0)+"::Ondevildead8"; areamonster "ordeal_1-1",149,197,149,278,"Loli Ruri",1505,15,strnpcinfo(0)+"::Ondevildead8"; end; Ondevildead8: .mob--; if ( .mob == 25 || .mob == 5 ) announce "Devil Square : "+ .mob +" mobs left to enter the 9th round", bc_map; else if ( !.mob ) { announce "Devil Square will enter to 9th round", bc_map; goto Ondevil9; } end; Ondevil9: .round = 9; .mob = 84; areamonster "ordeal_1-1",183,182,246,244,"Beelzebub",1873,1,strnpcinfo(0)+"::Ondevildead9"; areamonster "ordeal_1-1",183,182,246,244,"Kraken",2202,1,strnpcinfo(0)+"::Ondevildead9"; areamonster "ordeal_1-1",183,182,246,244,"Maya",1147,1,strnpcinfo(0)+"::Ondevildead9"; areamonster "ordeal_1-1",183,182,246,244,"Mistress",1059,1,strnpcinfo(0)+"::Ondevildead9"; areamonster "ordeal_1-1",183,182,246,244,"Maya Purple",1289,1,strnpcinfo(0)+"::Ondevildead9"; areamonster "ordeal_1-1",183,182,246,244,"Golden Thief Bug",1086,1,strnpcinfo(0)+"::Ondevildead9"; areamonster "ordeal_1-1",183,182,246,244,"Dolomedes",2092,14,strnpcinfo(0)+"::Ondevildead9"; areamonster "ordeal_1-1",183,182,246,244,"Ungoliant",1618,16,strnpcinfo(0)+"::Ondevildead9"; areamonster "ordeal_1-1",183,182,246,244,"Angra Mantis",2133,16,strnpcinfo(0)+"::Ondevildead9"; areamonster "ordeal_1-1",183,182,246,244,"Centipide",1987,16,strnpcinfo(0)+"::Ondevildead9"; areamonster "ordeal_1-1",183,182,246,244,"Porn Spider",2132,16,strnpcinfo(0)+"::Ondevildead9"; end; Ondevildead9: .mob--; if ( .mob == 25 || .mob == 5 ) announce "Devil Square : "+ .mob +" mobs left to enter the 10th round", bc_map; else if ( !.mob ) { announce "Devil Square will enter to 10th round", bc_map; goto Ondevil10; } end; Ondevil10: .round = 10; .mob = 70; areamonster "ordeal_1-1",197,150,278,149,"Lost Dragon",2131,1,strnpcinfo(0)+"::Ondevildead10"; monster "ordeal_1-1",274,149,"Entweihen",1957,1,strnpcinfo(0)+"::Ondevildead10"; areamonster "ordeal_1-1",197,150,278,149,"Gloom Under Night",1768,1,strnpcinfo(0)+"::Ondevildead10"; areamonster "ordeal_1-1",197,150,278,149,"Fallen Bishop Hibram",1871,1,strnpcinfo(0)+"::Ondevildead10"; monster "ordeal_1-1",272,148,"Thorn",1960,1,strnpcinfo(0)+"::Ondevildead10"; monster "ordeal_1-1",272,151,"Thorn",1961,1,strnpcinfo(0)+"::Ondevildead10"; monster "ordeal_1-1",275,151,"Thorn",1958,1,strnpcinfo(0)+"::Ondevildead10"; monster "ordeal_1-1",275,148,"Thorn",1958,1,strnpcinfo(0)+"::Ondevildead10"; monster "ordeal_1-1",273,147,"Thorn",1959,1,strnpcinfo(0)+"::Ondevildead10"; monster "ordeal_1-1",274,147,"Thorn",1959,1,strnpcinfo(0)+"::Ondevildead10"; monster "ordeal_1-1",276,150,"Thorn",1959,1,strnpcinfo(0)+"::Ondevildead10"; monster "ordeal_1-1",274,152,"Thorn",1959,1,strnpcinfo(0)+"::Ondevildead10"; monster "ordeal_1-1",273,152,"Thorn",1959,1,strnpcinfo(0)+"::Ondevildead10"; monster "ordeal_1-1",271,150,"Thorn",1959,1,strnpcinfo(0)+"::Ondevildead10"; monster "ordeal_1-1",271,149,"Thorn",1959,1,strnpcinfo(0)+"::Ondevildead10"; areamonster "ordeal_1-1",197,150,278,149,"Necromancer",1870,15,strnpcinfo(0)+"::Ondevildead10"; areamonster "ordeal_1-1",197,150,278,149,"Agav",1769,20,strnpcinfo(0)+"::Ondevildead10"; areamonster "ordeal_1-1",197,150,278,149,"Echio",1770,20,strnpcinfo(0)+"::Ondevildead10"; end; Ondevildead10: .mob--; if ( .mob == 25 || .mob == 5 ) announce "Devil Square : "+ .mob +" mobs left to enter the 11th round", bc_map; else if ( !.mob ) { announce "Devil Square will enter to 11th round", bc_map; goto Ondevil11; } end; Ondevil11: .round = 11; .mob = 47; areamonster "ordeal_1-1",181,117,248,49,"Doppelganger",1046,1,strnpcinfo(0)+"::Ondevildead11"; areamonster "ordeal_1-1",181,117,248,49,"Ygnizem",1658,1,strnpcinfo(0)+"::Ondevildead11"; areamonster "ordeal_1-1",181,117,248,49,"Assassin Cross Eremes",1647,1,strnpcinfo(0)+"::Ondevildead11"; areamonster "ordeal_1-1",181,117,248,49,"Kiel D-01",1734,1,strnpcinfo(0)+"::Ondevildead11"; areamonster "ordeal_1-1",181,117,248,49,"Assassin Cross Eremes",1641,1,strnpcinfo(0)+"::Ondevildead11"; areamonster "ordeal_1-1",181,117,248,49,"Champion Chen",2231,1,strnpcinfo(0)+"::Ondevildead11"; areamonster "ordeal_1-1",181,117,248,49,"Clown Alphoccio",2233,1,strnpcinfo(0)+"::Ondevildead11"; areamonster "ordeal_1-1",181,117,248,49,"Creator Flamel",2229,1,strnpcinfo(0)+"::Ondevildead11"; areamonster "ordeal_1-1",181,117,248,49,"Gypsy Trentini",2234,1,strnpcinfo(0)+"::Ondevildead11"; areamonster "ordeal_1-1",181,117,248,49,"High Priest Magaleta",1643,1,strnpcinfo(0)+"::Ondevildead11"; areamonster "ordeal_1-1",181,117,248,49,"High Wizard Katrinn",1645,1,strnpcinfo(0)+"::Ondevildead11"; areamonster "ordeal_1-1",181,117,248,49,"Lord Knight Seyren",1640,1,strnpcinfo(0)+"::Ondevildead11"; areamonster "ordeal_1-1",181,117,248,49,"Paladin Randel",2228,1,strnpcinfo(0)+"::Ondevildead11"; areamonster "ordeal_1-1",181,117,248,49,"Professor Celia",2230,1,strnpcinfo(0)+"::Ondevildead11"; areamonster "ordeal_1-1",181,117,248,49,"Sniper Cecil",1644,1,strnpcinfo(0)+"::Ondevildead11"; areamonster "ordeal_1-1",181,117,248,49,"Stalker Gertie",2232,1,strnpcinfo(0)+"::Ondevildead11"; areamonster "ordeal_1-1",181,117,248,49,"Whitesmith Harword",1642,1,strnpcinfo(0)+"::Ondevildead11"; areamonster "ordeal_1-1",181,117,248,49,"Seyren",1634,5,strnpcinfo(0)+"::Ondevildead11"; areamonster "ordeal_1-1",181,117,248,49,"Eremes",1635,5,strnpcinfo(0)+"::Ondevildead11"; areamonster "ordeal_1-1",181,117,248,49,"Harword",1636,5,strnpcinfo(0)+"::Ondevildead11"; areamonster "ordeal_1-1",181,117,248,49,"Magaleta",1637,5,strnpcinfo(0)+"::Ondevildead11"; areamonster "ordeal_1-1",181,117,248,49,"Shecil",1638,5,strnpcinfo(0)+"::Ondevildead11"; areamonster "ordeal_1-1",181,117,248,49,"Katrinn",1639,5,strnpcinfo(0)+"::Ondevildead11"; end; Ondevildead11: .mob--; if ( .mob == 25 || .mob == 5 ) announce "Devil Square : "+ .mob +" mobs left to enter the 12th round", bc_map; else if ( !.mob ) { announce "Devil Square will enter to 12th round", bc_map; goto Ondevil12; } end; Ondevil12: .round = 12; .mob = 91; areamonster "ordeal_1-1",149,101,149,21,"Ifrit",1832,1,strnpcinfo(0)+"::Ondevildead12"; areamonster "ordeal_1-1",149,101,149,21,"Valkyrie Randgris",1751,1,strnpcinfo(0)+"::Ondevildead12"; areamonster "ordeal_1-1",149,101,149,21,"Satan Morocc",1917,1,strnpcinfo(0)+"::Ondevildead12"; areamonster "ordeal_1-1",149,101,149,21,"Valkyrie",1765,7,strnpcinfo(0)+"::Ondevildead12"; areamonster "ordeal_1-1",149,101,149,21,"Naght Sieger",1956,1,strnpcinfo(0)+"::Ondevildead12"; areamonster "ordeal_1-1",149,101,149,21,"Kasa",1833,20,strnpcinfo(0)+"::Ondevildead12"; areamonster "ordeal_1-1",149,101,149,21,"Salamander",1831,20,strnpcinfo(0)+"::Ondevildead12"; areamonster "ordeal_1-1",149,101,149,21,"Incarntation of Morocc",1921,10,strnpcinfo(0)+"::Ondevildead12"; areamonster "ordeal_1-1",149,101,149,21,"Incarntation of Morocc",1918,10,strnpcinfo(0)+"::Ondevildead12"; areamonster "ordeal_1-1",149,101,149,21,"Incarntation of Morocc",1919,10,strnpcinfo(0)+"::Ondevildead12"; areamonster "ordeal_1-1",149,101,149,21,"Incarntation of Morocc",1920,10,strnpcinfo(0)+"::Ondevildead12"; end; Ondevildead12: .mob--; if ( .mob == 25 || .mob == 5 ) announce "Devil Square : "+ .mob +" mobs left to finish the Devil Square", bc_map; else if ( !.mob ) { announce "Congratulations!! Please proceed to the center to claim your rewards!", bc_map; goto L_End; } end; L_End: killmonsterall "ordeal_1-1"; enablenpc "Reward NPC#DS"; deletearray .register_aid; .start = .round = .mob = .register_num = 0; end; } ordeal_1-1,150,150,7 script Reward NPC#DS 51,{ mes "[Reward NPC]"; mes "Here is your rewards!"; getitem 7230,10; getitem 30097,1; mes "See ya"; announce "DEVIL SQUARE : Congratulations! "+ strcharinfo(0) +" has just finished the Devil Square!", bc_all; next; warp "SavePoint", 0,0 ; close; } ordeal_1-1 mapflag loadevent ordeal_1-1 mapflag nowarp ordeal_1-1 mapflag nowarpto ordeal_1-1 mapflag noteleport ordeal_1-1 mapflag nosave SavePoint ordeal_1-1 mapflag nomemo ordeal_1-1 mapflag nobranch ordeal_1-1 mapflag nopenalty ordeal_1-1 mapflag noicewall ordeal_1-1 mapflag restricted 7
  8. Yeah. Idk why. I just put my statpoint.txt to import in order to fix. -.-
  9. A Serious Bug has been found on the latest rAhena. Here is the scenario: I made a Level 1 Novice and Status Point are all good. and then i decided to make my novice level 14 to do my 1st Class Job Change I put all Status Point to it. Suddenly when I hit Level 14, I Tried Resetting it on Reset NPC (rathena's original script) And then the Reset NPC Stole my status point and on @resetall too. I already set my server to pre-renewal and This is my renewal.h // Copyright (c) rAthena Dev Teams - Licensed under GNU GPL // For more information, see LICENCE in the main folder #ifndef _CONFIG_RENEWAL_H_ #define _CONFIG_RENEWAL_H_ //quick option to disable all renewal option, used by ./configure #define PRERE #ifndef PRERE /** * rAthena configuration file (http://rathena.org) * For detailed guidance on these check http://rathena.org/wiki/SRC/config/ **/ /** * @INFO: This file holds general-purpose renewal settings, for class-specific ones check /src/config/classes folder **/ /// game renewal server mode /// (disable by commenting the line) /// /// leave this line to enable renewal specific support such as renewal formulas ///#define RENEWAL /// renewal cast time /// (disable by commenting the line) /// /// leave this line to enable renewal casting time algorithms /// cast time is decreased by DEX * 2 + INT while 20% of the cast time is not reduced by stats. /// example: /// on a skill whos cast time is 10s, only 8s may be reduced. the other 2s are part of a /// "fixed cast time" which can only be reduced by specialist items and skills ///#define RENEWAL_CAST /// renewal drop rate algorithms /// (disable by commenting the line) /// /// leave this line to enable renewal item drop rate algorithms /// while enabled a special modified based on the difference between the player and monster level is applied /// based on the http://irowiki.org/wiki/Drop_System#Level_Factor table ///#define RENEWAL_DROP /// renewal exp rate algorithms /// (disable by commenting the line) /// /// leave this line to enable renewal item exp rate algorithms /// while enabled a special modified based on the difference between the player and monster level is applied ///#define RENEWAL_EXP /// renewal level modifier on damage /// (disable by commenting the line) /// ///leave this line to enable renewal base level modifier on skill damage (selected skills only) ///#define RENEWAL_LVDMG /// renewal ASPD [malufett] /// (disable by commenting the line) /// /// leave this line to enable renewal ASPD /// - shield penalty is applied /// - AGI has a greater factor in ASPD increase /// - there is a change in how skills/items give ASPD /// - some skill/item ASPD bonuses won't stack ///#define RENEWAL_ASPD #endif #endif // _CONFIG_RENEWAL_H_ I hope someone can reply ASAP. Thanks! PS. I am using 2012 Client xD
  10. Where did you download it? I saw a translated Cash Shop Window here last week. I think it has been removed already. Try to recheck the Download Section
  11. You need to update a Small Client for this xD
  12. I have a problem on my Guild System. Once a player will create his/her guild. Only Guild Master can see the emblem. :/ Can anyone help me with this bug?
  13. The Category doesn't show up. But the NPC is fine.
  14. Can anyone make a cash shop for me that once you will @cashshop a Shop Window will appear and show the Items that are sellable using cash points. and has 3 Category (Like the Cash shop of Euphy) Thanks and Godspeed! up
  15. Can anyone make me a script about MVP Summoner? Its like a npc that summons a specific monster that you like. Because i am tired of using this script and then it only summons on 1 map even though you're on the room 2-5 //================ eAthena Script ======================= //================ By: ============================== //= Soul ============================================= //================================================= //=MvP / Miniboss / Dungeon Monster ========================== //================================================== Welgaia,165,236,5 script MVP Warper 971,{ mes "[MVP Warper]"; mes "I am the MVP Warper"; mes "of PRO!"; mes "Would you like to go inside?"; next; mes "[Paroxysm MVP Warper]"; mes "I can summon all MVP/Mini Bosses"; mes "Except Thanatos, Valkyrie R."; mes "and Lighthalzen Boss"; next; mes "[Paroxysm MVP Warper]"; mes "Lets proceed?"; next; menu "Yes! Bring it on",Yes,"Bye", No; Yes: mes "[Paroxysm MVP Warper]"; mes "Which room do you want to go to?"; next; menu "Room 1",r1,"Room 2",r2,"Room 3",r3,"Room 4",r4,"Room 5",r5; r1: warp "pvp_n_1-2",96,101; close; r2: warp "pvp_n_2-2",96,101; close; r3: warp "pvp_n_3-2",96,101; close; r4: warp "pvp_n_4-2",96,101; close; r5: warp "pvp_n_5-2",96,101; close; No: mes "[Paroxysm MVP Warper]"; mes "Ok bye!"; close; } //----------------------------HEALER---------------------------------- pvp_n_1-2,98,106,5 script Healer 914,{ mes "[Healer]"; mes "I have amazing healing powers!!"; mes "You look like a person who needs them"; mes "Want some?"; next; menu "Heal",-,"No thanks",CANCEL; percentheal 100,100; mes "[Healer]"; mes "Wonderfull, You are now healed!."; mes "Have fun adventuring!!"; close; CANCEL: mes "[Healer]"; mes "Allright, come back if you need a heal."; close; } pvp_n_2-2,98,106,5 script Healer 914,{ mes "[Healer]"; mes "I have amazing healing powers!!"; mes "You look like a person who needs them"; mes "Want some?"; next; menu "Heal",-,"No thanks",CANCEL; percentheal 100,100; mes "[Healer]"; mes "Wonderfull, You are now healed!."; mes "Have fun adventuring!!"; close; CANCEL: mes "[Healer]"; mes "Allright, come back if you need a heal."; close; } pvp_n_3-2,98,106,5 script Healer 914,{ mes "[Healer]"; mes "I have amazing healing powers!!"; mes "You look like a person who needs them"; mes "Want some?"; next; menu "Heal",-,"No thanks",CANCEL; percentheal 100,100; mes "[Healer]"; mes "Wonderfull, You are now healed!."; mes "Have fun adventuring!!"; close; CANCEL: mes "[Healer]"; mes "Allright, come back if you need a heal."; close; } pvp_n_4-2,98,106,5 script Healer 914,{ mes "[Healer]"; mes "I have amazing healing powers!!"; mes "You look like a person who needs them"; mes "Want some?"; next; menu "Heal",-,"No thanks",CANCEL; percentheal 100,100; mes "[Healer]"; mes "Wonderfull, You are now healed!."; mes "Have fun adventuring!!"; close; CANCEL: mes "[Healer]"; mes "Allright, come back if you need a heal."; close; } pvp_n_5-2,98,106,5 script Healer 914,{ mes "[Healer]"; mes "I have amazing healing powers!!"; mes "You look like a person who needs them"; mes "Want some?"; next; menu "Heal",-,"No thanks",CANCEL; percentheal 100,100; mes "[Healer]"; mes "Wonderfull, You are now healed!."; mes "Have fun adventuring!!"; close; CANCEL: mes "[Healer]"; mes "Allright, come back if you need a heal."; close; } //======================ROOM 1===================================================== //======================MvP==Mini-Boss==Dungeon Monster============================ //================================================================================ //======================MVP======================================================= pvp_n_1-2,96,106,5 script MvP Master#1-2::MvP Master 766,{ mes "[MVP Master]"; mes "How can I help you?"; next; menu "MvP",MvP,"Mini Boss",MB,"Dungeon Monster",DM,"Quit",CANCEL; MvP: mes "[MvP Master]"; mes "Choose your MvP"; next; menu //-------------Men?punkte----------- "Amon Ra", Amon, "Baphomet", Bapho, "Dark Lord",Dark, "Doppelganger",DG, "Dracula",Drac, "Drake",Drake, "Eddga",Eddga, "Evil Snake Lord",ESL, "Golden Thief Bug",GTB, "Garm",Garm, "Incarnation Samurai",Samu, "Stormy Knight",SK, "Lord of Death",LoD, "Maya",Maya, "Mistress",Missy, "Moonlight Flower",Moony, "Orc Hero",Hero, "Orc Lord",Lord, "Osiris",Osiris, "Pharaoh",Phara, "Phreeoni", Phree, "Tao Gunka",Tao, "Turtle General",TG, "Kiel D-01",Kiel, "Quit",mvp_CANCEL; //--------------Gerufene Monster---------------------------------------- Amon: monster "pvp_n_1-2.gat",117,99,"Amon Ra" ,1511,1;close; Bapho: monster "pvp_n_1-2.gat",117,99,"Baphomet" ,1039,1; close; Dark: monster "pvp_n_1-2.gat",117,99,"Dark Lord" ,1272,1; close; DG: monster "pvp_n_1-2.gat",117,99,"Doppelganger" ,1446,1;close; Drac: monster "pvp_n_1-2.gat",117,99,"Dracula" ,1389,1;close; Drake: monster "pvp_n_1-2.gat",117,99,"Drake" ,1112,1;close; Eddga: monster "pvp_n_1-2.gat",117,99,"Eddga" ,1115,1;close; ESL: monster "pvp_n_1-2.gat",117,99,"Evil Snake Lord" ,1418,1;close; GTB: monster "pvp_n_1-2.gat",117,99,"Golden Thief Bug" ,1086,1;close; Garm: monster "pvp_n_1-2.gat",117,99,"Garm" ,1252,1;close; Samu: monster "pvp_n_1-2.gat",117,99,"Incantation Samurai" ,1492,1;close; SK: monster "pvp_n_1-2.gat",117,99,"Stormy Knight" ,1251,1;close; LoD: monster "pvp_n_1-2.gat",117,99,"Lord of Death" ,1373,1;close; Maya: monster "pvp_n_1-2.gat",117,99,"Maya" ,1147,1;close; Missy: monster "pvp_n_1-2.gat",117,99,"Mistress" ,1059,1;close; Moony: monster "pvp_n_1-2.gat",117,99,"Moonlight Flower" ,1150,1;close; Hero: monster "pvp_n_1-2.gat",117,99,"Orc Hero" ,1087,1;close; Lord: monster "pvp_n_1-2.gat",117,99,"Orc Lord" ,1190,1;close; Osiris: monster "pvp_n_1-2.gat",117,99,"Osiris" ,1038,1;close; Phara: monster "pvp_n_1-2.gat",117,99,"Pharaoh" ,1157,1;close; Phree: monster "pvp_n_1-2.gat",117,99,"Phreeoni" ,1159,1;close; Tao: monster "pvp_n_1-2.gat",117,99,"Tao Gunka" ,1583,1;close; TG: monster "pvp_n_1-2.gat",117,99,"Turtle General" ,1312,1;close; Kiel: monster "pvp_n_1-2.gat",117,99,"Kiel D-01" ,1734,1;close; //=========================MiniBoss=============================================== MB: mes "[MvP Master]"; mes "Choose your Mini Boss"; next; menu //------------------Men?punkte---------------------- "Abysmal Knight",Abi, "Am Mut",Am, "Alice",Alice, "Angeling",Angel, "Arc Angeling",Arc, "Cat O' Nine Tail",Cato, "Chimera",Chim, "Creamy Fear",Fear, "Deviling",Devi, "Eclipse",Ecli, "Ghostring",GH, "Hydrolancer",Hydro, "Mastering",Master, "Owl Baron",OB, "Owl Duke",OD, "Zealotus",Zea, "Quit",mvp_CANCEL; Abi: monster "pvp_n_1-2.gat",117,99,"Abysmal Knight" ,1219,1;close; Am: monster "pvp_n_1-2.gat",117,99,"Am Mut" ,1301,1;close; Alice: monster "pvp_n_1-2.gat",117,99,"Alice" ,1275,1;close; Angel: monster "pvp_n_1-2.gat",117,99,"Angeling" ,1096,1;close; Arc: monster "pvp_n_1-2.gat",117,99,"Arc Angeling" ,1388,1;close; Cato: monster "pvp_n_1-2.gat",117,99,"Cat O' Nine Tail" ,1307,1;close; Chim: monster "pvp_n_1-2.gat",117,99,"Chimera" ,1283,1;close; Fear: monster "pvp_n_1-2.gat",117,99,"Creamy Fear" ,1293,1;close; Devi: monster "pvp_n_1-2.gat",117,99,"Deviling" ,1582,1;close; Ecli: monster "pvp_n_1-2.gat",117,99,"Eclipse" ,1093,1;close; GH: monster "pvp_n_1-2.gat",117,99,"Ghostring" ,1120,1;close; Hydro: monster "pvp_n_1-2.gat",117,99,"Hydrolancer" ,1720,1;close; Master: monster "pvp_n_1-2.gat",117,99,"Mastering" ,1090,1;close; MP: monster "pvp_n_1-2.gat",117,99,"Maya Purple" ,1289,1;close; OB: monster "pvp_n_1-2.gat",117,99,"Owl Baron" ,1295,1;close; OD: monster "pvp_n_1-2.gat",117,99,"Owl Duke" ,1320,1;close; Zea: monster "pvp_n_1-2.gat",117,99,"Zealotus" ,1200,1;close; //===========================Dungeon Monster======================================== DM: mes "[MvP Master]"; mes "Choose your Dungeon Monster"; next; menu //------------------Men?punkte---------------------- "Bloody Knight",BK, "Dark Illusion",DI, "Mobster",MOB, "Gryphon",Gryph, "Harpy",Harp, "Garm Baby",GB, "Wicked Nymph",WN, "Mummy",Mum, "Skogul",Sko, "Rybio",Ryb, "Zombie Master",ZM, "Quit",mvp_CANCEL; BK: monster "pvp_n_1-2.gat",117,99,"Bloody Knight" ,1268,1;close; DI: monster "pvp_n_1-2.gat",117,99,"Dark Illusion" ,1302,1;close; MOB: monster "pvp_n_1-2.gat",117,99,"Mobster" ,1313,1;close; Gryph: monster "pvp_n_1-2.gat",117,99,"Gryphon" ,1259,1;close; Harp: monster "pvp_n_1-2.gat",117,99,"Harpy" ,376,1;close; GB: monster "pvp_n_1-2.gat",117,99,"Garm Baby" ,1515,1;close; WN: monster "pvp_n_1-2.gat",117,99,"Wicked Nymph" ,1416,1;close; Mum: monster "pvp_n_1-2.gat",117,99,"Mummy" ,1041,1;close; Sko: monster "pvp_n_1-2.gat",117,99,"Skogul" ,1752,1;close; Ryb: monster "pvp_n_1-2.gat",117,99,"Rybio" ,1201,1;close; ZM: monster "pvp_n_1-2.gat",117,99,"Zombie Master" ,1298,1;close; //================================================================================ //==================End Room 1===================================================== //================================================================================ mvp_CANCEL: mes "[MvP Master]"; mes "Allright, as you wish..."; close; CANCEL: mes "[MVP Master]"; mes "I really feel sorry about that"; mes "But you have to decide"; mes "What's right for you"; close; } pvp_n_2-2,96,106,5 duplicate(MvP Master) MvP Master#2-2 766 pvp_n_3-2,96,106,5 duplicate(MvP Master) MvP Master#3-2 766 pvp_n_4-2,96,106,5 duplicate(MvP Master) MvP Master#4-2 766 pvp_n_5-2,96,106,5 duplicate(MvP Master) MvP Master#5-2 766 pvp_n_1-2,100,106,5 shop Tool Dealer 83,501:-1,502:-1,503:-1,504:-1,506:-1,601:-1,602:-1,611:-1,610:-1,645:-1,656:-1 pvp_n_2-2,100,106,5 shop Tool Dealer 83,501:-1,502:-1,503:-1,504:-1,506:-1,601:-1,602:-1,611:-1,610:-1,645:-1,656:-1 pvp_n_3-2,100,106,5 shop Tool Dealer 83,501:-1,502:-1,503:-1,504:-1,506:-1,601:-1,602:-1,611:-1,610:-1,645:-1,656:-1 pvp_n_4-2,100,106,5 shop Tool Dealer 83,501:-1,502:-1,503:-1,504:-1,506:-1,601:-1,602:-1,611:-1,610:-1,645:-1,656:-1 pvp_n_5-2,100,106,5 shop Tool Dealer 83,501:-1,502:-1,503:-1,504:-1,506:-1,601:-1,602:-1,611:-1,610:-1,645:-1,656:-1
  16. How about global broadcast?
  17. I updated my server to its latest Revision and then suddenly a error appears up up up
  18. What is this for? Btw this is a warp. not a npc
  19. Btw. Thanks. as of now, It works fine.
  20. I did but once i will enter the room. It doesn't do anything.
  21. What is the BGM name for the login screen?
  22. How can i put a announcer to a specific map? Example i added a warp using addwarp script and then once someone will enter the said map will announce that "<Name> has entered the pvp room!" I tried this script but doesn't work - script -1{ OnPCLoadMapEvent: if (strcharinfo(3) == "pvp_arena2") mapannounce "pvp_arena2", strcharinfo(0) + " has entered the PVP Arena!",0; end; } // - Map flags
×
×
  • Create New...