Jump to content

3TAJIOH

Members
  • Content Count

    66
  • Avg. Content Per Day

    0
  • Joined

  • Last visited

Community Reputation

1 Neutral

About 3TAJIOH

  • Rank
    Santa Poring

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. Hello. Solved this problem? @mathlister
  2. Effect of Lif homunculus skill Mental Change disappear after teleport by Fly Wing.
  3. I tried this. But I can register several times by 1 charachter... query_sql("SELECT `last_unique_id` FROM `login` WHERE `account_id` = '"+getcharid(3)+"'",[email protected]$); for ( [email protected] = 0; [email protected] < getarraysize(.last_mac$); [email protected]++) { if ( [email protected]$ == .last_mac$[[email protected]] ) { dispbottom "Dual Clients are not allowed for Battleground Events."; end; } }
  4. Yes, I Know. Players can use 3 windows. But I need to protect BG.
  5. Hello. Please help me. Need fix this script. Mac check doesn't work. //===== rAthena Script ======================================= //= BG Queue System //===== By: ================================================== //= Zeiyan (based on scripts by pajodex) //===== Current Version: ===================================== //= 1.0 //===============Description================================== // Simple BG Queue System with @joinbg / @leavebg / @bginfo // Comes with Pajodex's Fortress and Rune War BG scripts //==============Notes========================================= // I'm not sure if code is scalable or easy to configure. // Send me a message if there's anything I can improve on it //============================================================ function script F_ShuffleNumbers { deletearray getarg(2); [email protected] = getarg(0); [email protected] = getarg(1) +1 - [email protected]; [email protected] = getarg(3, [email protected]); if ([email protected] <= 0 || [email protected] <= 0) return 0; if ([email protected] > [email protected]) [email protected] = [email protected]; for ([email protected] = 0; [email protected] < [email protected]; [email protected]) [email protected][[email protected]] = [email protected]; for ([email protected] = 0; [email protected] < [email protected]; [email protected]) { [email protected] = rand([email protected]); set getelementofarray( getarg(2), [email protected] ), [email protected][[email protected]] + [email protected]; [email protected][[email protected]] = [email protected][[email protected]]; } return [email protected]; } //================================================================== //================================================================== //================================================================== - script bgmain -1,{ OnInit: set .n$, "[^0D6501Battlegrounds^000000]"; //[email protected] Commands========================= bindatcmd "joinbg",strnpcinfo(3)+"::OnAtCmd",0,0; bindatcmd "leavebg",strnpcinfo(3)+"::OnLeave",0,0; bindatcmd "bginfo",strnpcinfo(3)+"::OnInfo",0,0; bindatcmd "bgstart",strnpcinfo(3)+"::OnBgStart",0,0; //=================Add your BG Main NPCs Here======================= setarray .bgevents$, "runewar#main", "fortress#main", "domination#main" ; //================Event Names (in order with NPCS==================== setarray .eventname$, "Rune War Event", "Fortress Battlegrounds", "Domination" ; end; //[email protected]================================ OnBgStart: if(#BGCD > gettimetick(2) ) { dispbottom "Starting Battleground Events have a cooldown of 24 Hours per account."; dispbottom "Time left: ^FF0000" + callfunc( "Time2Str", .renttime[ atoi( strnpcinfo(2) ) ] + #BGCD ); end; } //================================================================== //===========Check for on going events============================== //================================================================== for([email protected] = 0; [email protected] < getarraysize(.bgevents$); [email protected]++) { if(getvariableofnpc(.start, .bgevents$[[email protected]])) { dispbottom "A battleground event instance for "+.eventname$[[email protected]]+" is already in progress."; end; } } //================================================================== //================Check for active registration===================== //================================================================== for([email protected] = 0; [email protected] < getarraysize(.bgevents$); [email protected]++) { if(getvariableofnpc(.register, .bgevents$[[email protected]])) { dispbottom "An active registration for "+.eventname$[[email protected]]+" is already in progress."; end; } } //================================================================== mes .n$; mes "Which Battleground Event would you like to start?"; [email protected]_item_size = getarraysize(.eventname$); for ([email protected] = 0; [email protected] < [email protected]_item_size; [email protected]++) { [email protected]$ = [email protected]$ + ([email protected] > 0 ? ":" : "") + .eventname$[[email protected]]; } [email protected] = select( [email protected]$ ) - 1; donpcevent [email protected]$[[email protected]]+"::OnAtcmd"; announce strcharinfo(0)+" has started "[email protected]$[[email protected]]+".",0; sleep 1000; set #BGCD,gettimetick(2) + 86400; end; //================================================================== //[email protected]============================================ OnAtCmd: //================================================================== //===========Check for on going events============================== //================================================================== for([email protected] = 0; [email protected] < getarraysize(.bgevents$); [email protected]++) { if(getvariableofnpc(.start, .bgevents$[[email protected]])) { dispbottom "A battleground event instance for "+.eventname$[[email protected]]+" is in progress."; end; } } //================================================================== //================Check for active registration===================== for([email protected] = 0; [email protected] < getarraysize(.bgevents$); [email protected]++) { if(getvariableofnpc(.register, .bgevents$[[email protected]])) { set [email protected], [email protected] + 1; } } //====================================================================== //================Sorry no active registration right now================ //====================================================================== if([email protected] == 0 && [email protected] == 0) { dispbottom "No battleground registration is active at this time."; end; } //================================================================== //================Job Check========================================= //================================================================== for([email protected] = 0; [email protected] < getarraysize(.bgevents$); [email protected]++) { if(getvariableofnpc(.register, .bgevents$[[email protected]])) { for([email protected] = 0; [email protected] < getvariableofnpc( .denyjobsize, .bgevents$[[email protected]] ); [email protected]++) { if( Class == getvariableofnpc( .denyjob[[email protected]], .bgevents$[[email protected]] )) { dispbottom jobname( Class ) +"s are not allowed for "+.eventname$[[email protected]]+"."; end; } } } } //================================================================== //================Base Level Check================================== //================================================================== for([email protected] = 0; [email protected] < getarraysize(.bgevents$); [email protected]++) { if(getvariableofnpc(.register, .bgevents$[[email protected]])) { if(getvariableofnpc(.minblevel, .bgevents$[[email protected]]) > BaseLevel) { dispbottom "You are forbidden from joining this event."; dispbottom "You need to have a base level of at least "+getvariableofnpc(.minblevel, .bgevents$[[email protected]])+" to join "+.eventname$[[email protected]]+"."; end; } } } //===No Active BGs & there is an active registration in progress======== //====================================================================== //===================Proceed to Registration============================ //====================================================================== while ( .aid[[email protected]] != getcharid(3) && [email protected] < .size ) [email protected]; if ( [email protected] < .size ) { dispbottom "You are already in queue."; dispbottom "Please wait until the game starts."; end; } query_sql("SELECT `last_mac` FROM `login` WHERE `account_id` = '"+getcharid(3)+"'",[email protected]$); for ( [email protected] = 0; [email protected] < getarraysize(.last_mac$); [email protected]++) { if ( [email protected]$ == .last_mac$[[email protected]] ) { dispbottom "Dual Clients are not allowed for Battleground Events."; end; } } for([email protected] = 0; [email protected] < getarraysize(.bgevents$); [email protected]++) { if(getvariableofnpc(.register, .bgevents$[[email protected]])) { dispbottom "You are now in queue for "+.eventname$[[email protected]]+"."; dispbottom "Use this time to prepare your items and equipment."; announce strcharinfo(0)+" has joined the "+.eventname$[[email protected]]+".",bc_blue; } } query_sql("SELECT `last_mac` FROM `login` WHERE `account_id` = '"+getcharid(3)+"'",.last_mac$[ .size++ ]); .aid[ .size++ ] = getcharid(3); for ( [email protected] = 0; [email protected] < .size; [email protected] ) { if ( !isloggedin( .aid[[email protected]] ) ) { deletearray .aid[[email protected]], 1; deletearray .last_mac$, 1; [email protected]; --.size; } } end; //[email protected]=========================== //====================================================================== OnLeave: for ( [email protected] = 0; [email protected] < .size; [email protected] ) { if ( .aid[[email protected]] == getcharid(3) ) { deletearray .aid[[email protected]], 1; deletearray .last_mac$[[email protected]], 1; [email protected]; --.size; dispbottom "You have left the queue for the event."; announce strcharinfo(0) +" has left the queue for the event!",bc_blue; end; } } dispbottom "You are not in queue for any events at this time."; end; //====================================================================== //================On Postpone Event===================================== //====================================================================== OnPostpone: deletearray .aid; deletearray .last_mac$; deletearray [email protected]; deletearray .size; end; //====================================================================== //================Rune War NPC Event==================================== //====================================================================== OnRuneStart: copyarray getvariableofnpc( .aid_, "runewar#main" ), .aid, .size; donpcevent "runewar#main::OnStart"; deletearray .aid; deletearray .last_mac$; .size = 0; end; //====================================================================== //================Fortress BG NPC Event================================= //====================================================================== OnFortStart: copyarray getvariableofnpc( .aid_, "fortress#main" ), .aid, .size; donpcevent "fortress#main::OnStart"; deletearray .aid; deletearray .last_mac$; .size = 0; end; //====================================================================== //===================Dota Match NPC Event=============================== //====================================================================== OnDominationStart: copyarray getvariableofnpc( .aid_, "domination#main" ), .aid, .size; donpcevent "domination#main::OnStart"; deletearray .aid; deletearray .last_mac$; .size = 0; end; //====================================================================== //================Information on BG Mechanics=========================== //[email protected]========================================== OnInfo: mes .n$; mes "ZeiyanRO offers different battlegrounds event."; mes "I can provide information on the mechanics of each of them."; next; [email protected]_item_size = getarraysize(.eventname$); for ([email protected] = 0; [email protected] < [email protected]_item_size; [email protected]++) { [email protected]$ = [email protected]$ + ([email protected] > 0 ? ":" : "") + .eventname$[[email protected]]; } [email protected] = select( [email protected]$ ) - 1; for ([email protected] = 0; [email protected] < [email protected]_item_size; [email protected]++) { if([email protected] == [email protected]) { mes "[ ^FF0000"+.eventname$[[email protected]]+"^000000 ]"; mes "Even Duration:^335EFF "+getvariableofnpc(.duration, .bgevents$[[email protected]])+" minutes^000000"; mes "Minimum Base Level:^335EFF "+getvariableofnpc(.minblevel, .bgevents$[[email protected]])+"^000000 "; mes "Minimum Participants:^335EFF "+getvariableofnpc(.minplayers, .bgevents$[[email protected]])+"^000000 "; next; //====================================================================== //================Rune War Mechanics==================================== //====================================================================== if([email protected] == 0) { mes "[ ^FF0000"+.eventname$[[email protected]]+"^000000 ]"; mes "Several Runes will appear in the middle of the map that can grant the following power ups:"; next; mes "[ ^FF0000"+.eventname$[[email protected]]+"^000000 ]"; mes "^9B00FFInvisibility^000000"; mes "^0028FFDouble Damage^000000"; mes "^FF0000Haste^000000"; mes "^AACC06Illusion^000000"; mes "^06CC21Regeneration^000000"; next; mes "[ ^FF0000"+.eventname$[[email protected]]+"^000000 ]"; mes "Whichever team has the most kills before the game ends wins."; mes "Logging out and abandoning will have penalties for this event."; close; } //====================================================================== //===================Fortress BG Mechanics============================== //====================================================================== if([email protected] == 1) { mes "[ ^FF0000"+.eventname$[[email protected]]+"^000000 ]"; mes "Each team is spawned in their own mini Fortress that can regenerate their HP/SP."; next; mes "[ ^FF0000"+.eventname$[[email protected]]+"^000000 ]"; mes "Fortresses will drain the enemy player's HP and grant regeneration to owners."; next; next; mes "[ ^FF0000"+.eventname$[[email protected]]+"^000000 ]"; mes "Whichever team that has the control of the Main Fortress before the end of the game wins."; mes "Logging out and abandoning will have penalties for this event."; close; } //====================================================================== //===================Domination BG Mechanics============================ //====================================================================== if([email protected] == 2) { mes "[ ^FF0000"+.eventname$[[email protected]]+"^000000 ]"; mes "Capture several flags on the map to gain points more flags captured at a given time will provide more points overtime."; next; mes "[ ^FF0000"+.eventname$[[email protected]]+"^000000 ]"; mes "Whichever team has the most points before the game ends wins."; mes "Logging out and abandoning will have penalties for this event."; close; } //====================================================================== } } //====================================================================== }
  6. Looking for a script with save point on guild location and kick charachters if they are not in guild.
  7. 3TAJIOH

    Old Glast bug

    Just change (rand(50) == 0) to (rand(50) < 5)
  8. 3TAJIOH

    Old Glast bug

    Yes, new monsters don't spawn.
  9. 3TAJIOH

    Old Glast bug

    Sometimes on 2nd floor after killing all monsters, mini-boss Commander doesn't appear. // Commander 1 [email protected]_k,1,1,0 script #ghmemorialmob05 HIDDEN_WARP_NPC,{ end; OnStart: enablenpc instance_npcname("#ghmemorialmob05"); for ( [email protected] = 1; [email protected] <= 7; [email protected]++ ) enablenpc instance_npcname("#ogh_2-" + [email protected]); end; OnMyMobDead: if (rand(50) == 0) {// can re-spawn mapannounce 'map_name$[1], "Evil Forces are appearing in this area.", bc_map,0xFFFF44,FW_NORMAL,15; killmonster 'map_name$[1], instance_npcname("#ghmemorialmob05") + "::OnBossDead"; [email protected] = rand(4) * 2; setarray [email protected][0], 41,146, 58,44, 122,148, 131,64; monster 'map_name$[1],[email protected][[email protected]],[email protected][[email protected]+1], "1st Commander of Destruction",2473,1, instance_npcname("#ghmemorialmob05") + "::OnBossDead"; } end; OnBossDead: mapannounce 'map_name$[1], "A portal has opened to the east in the central hallway.", bc_map,0xFFFF00; enablenpc instance_npcname("#23 Control"); enablenpc instance_npcname("#23 Control2"); donpcevent instance_npcname("#ghmemorialmob06") + "::OnStart"; disablenpc instance_npcname("#ghmemorialmob05"); for ( [email protected] = 1; [email protected] <= 7; [email protected]++ ) donpcevent instance_npcname("#ogh_2-" + [email protected]) + "::OnStop"; end; }
  10. First killed SuperNovice by GM, then killed GM by SuperNovice. ID 8 is another character on Supernovice's account. Didn't change ur code. }else if(strcharinfo(3) == "pvp_n_1-5"){ // This is PVP MAP restriction if(getcharid(3)==killedrid) end; set PvPpoints, PvPpoints+.PvP_Point; query_sql( "SELECT * FROM pvp_ranking WHERE `Char_ID` = '"+getcharid(0)+"'", [email protected], [email protected]$, [email protected], [email protected]); set ToTalPvPoints , [email protected]lls + .PvP_Point; if(getcharid(0) == [email protected]){ query_sql("UPDATE `pvp_ranking` SET `Kills` = '"+ToTalPvPoints+"' WHERE `Char_ID` = '"+getcharid(0)+"'"); }else{ query_sql("INSERT INTO `pvp_ranking` (`Char_ID`,`PlayerName`,`Kills`,`Deaths`) VALUES ('"+getcharid(0)+"', '"+strcharinfo(0)+"', '"+.PvP_Point+"', '"[email protected]+"')"); } //This is the point system on the player, you can disable this anytime by adding comment " // " dispbottom "Вы убили "+rid2name(killedrid)+" и получили "+.PvP_Point+" очка."; attachrid(killedrid); set PvPpoints, PvPpoints-.PvP_Deductpoint; dispbottom "Вас убил "+rid2name(killerrid)+", Вы потеряли "+.PvP_Deductpoint+" очка."; ////////query for the deaths query_sql( "SELECT `char_id`, `account_id` FROM `char` WHERE `account_id` = '"+getcharid(3)+"' ", [email protected]_id, [email protected]); query_sql( "SELECT * FROM pvp_ranking WHERE `Char_ID` = '"[email protected]_id+"'", [email protected], [email protected]$, [email protected], [email protected]); set ToTalDeathPvPoints , [email protected] + .PvP_Deductpoint; if([email protected] != [email protected]_id){ query_sql("INSERT INTO `pvp_ranking` (`Char_ID`,`PlayerName`,`Kills`,`Deaths`) VALUES ('"[email protected]_id+"', '"+strcharinfo(0)+"', '0', '"+ToTalDeathPvPoints+"')"); }else{ query_sql("UPDATE pvp_ranking SET Deaths = '"+ToTalDeathPvPoints+"' WHERE `Char_ID` = '"[email protected]_id+"'"); } end; } } end; After few kills So after WOE
  11. No emperium breaker statistics on Woe SE. How can i Fix it? Also bug with nicknames. 2180 - another char on account of KeeperSura, but I killed KeeperSura, nickname is true.
  12. Need Expanded Super Novice. Or how can I block bodystyle for them? Solved. Edited atcommands.
  13. May-June version. Try to learn skill Mainframe Restructure (Skill ID# 2266, iRO Name: Remodel Mainframe)
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use and Privacy Policy.