Jump to content

hendra814

Members
  • Posts

    1191
  • Joined

  • Last visited

  • Days Won

    17

Everything posted by hendra814

  1. Need help, how to skip player checking when player doing instance. currently i'm used if condition to check instance map, if player at instance map it will skip kill counter. but i want this script work for another instance tpp, so instead of check the player at the instance map are there have any other script command ? For check if player doing instance the script will skip the counter here the script i'm used. //===== eAthena Script ======================================= //= AntiBot Login //===== By: ================================================== // Create By - Mr.CoolZ // Modify By - pizan // Modify By - hendra814 //===== Current Version: ===================================== //= 3.0 //===== Compatible With: ===================================== //= eAthena //===== Description: ========================================= //= AntiBotLogin Script // You can Change The GM lv // if (getgmlevel()>=85) goto gm_admin; ' GM lv i Set on This Script 85 You May Change it ' //============================================================ prontera.gat,0,0,0 script AntiBot -1,{ OnPCLoginEvent: set @Fail,0; set @killmonster,1; set @killcekmin,rand(500,1000); OnNPCKillEvent: if( strcharinfo(3) == "1@tower" ) end; else if ( strcharinfo(3) == "2@tower" ) end; else if ( strcharinfo(3) == "3@tower" ) end; else if ( strcharinfo(3) == "4@tower" ) end; else if ( strcharinfo(3) == "5@tower" ) end; else if ( strcharinfo(3) == "1@nyd" ) end; else if ( strcharinfo(3) == "2@nyd" ) end; else if ( strcharinfo(3) == "1@orcs" ) end; else if ( strcharinfo(3) == "2@orcs" ) end; else if ( strcharinfo(3) == "1@cata" ) end; else if ( strcharinfo(3) == "2@cata" ) end; else if ( strcharinfo(3) == "1@spa" ) end; else if ( strcharinfo(3) == "1@lhz" ) end; else if ( strcharinfo(3) == "1@sara" ) end; else if ( strcharinfo(3) == "1@gl_k" ) end; else if ( strcharinfo(3) == "2@gl_k" ) end; else if ( strcharinfo(3) == "1@cash" ) end; else if ( strcharinfo(3) == "1@pump" ) end; else if ( strcharinfo(3) == "2@pump" ) end; else if ( strcharinfo(3) == "1@xm_d" ) end; else if ( strcharinfo(3) == "1@mist" ) end; else if ( strcharinfo(3) == "1@ecl" ) end; else if ( strcharinfo(3) == "1@ma_c" ) end; else if ( strcharinfo(3) == "1@ma_h" ) end; else if ( strcharinfo(3) == "1@ma_b" ) end; else{ set @killmonster,@killmonster+1; if (@killmonster >= @killcekmin) { set @killmonster,1; set @killcekmin,rand(500,1000); cutin "ein_soldier",2; if (getgmlevel()>60) goto gm_admin; setoption 0x40; setoption 0x2000; pcblockmove getcharid(3),1; mes "Hello, are you a bot ?? if not.. please fill the numbers."; atcommand "@noask"; mes "This is antibot checking."; mes "Fill the correct numbers matching with the correct color."; attachnpctimer; initnpctimer; next; goto Code; Code: set number1, rand (1000000,9999999); set number2, rand (1000000,9999999); set number3, rand (1000000,9999999); set number4, rand (1000000,9999999); set number5, rand (1000000,9999999); set number6, rand (1000000,9999999); set number00, rand (1000000,9999999); set number01, rand (1000000,9999999); set number02, rand (1000000,9999999); set number03, rand (1000000,9999999); set number04, rand (1000000,9999999); set number05, rand (1000000,9999999); set number06, rand (1000000,9999999); set number07, rand (1000000,9999999); set number08, rand (1000000,9999999); set number09, rand (1000000,9999999); set number10, rand (1000000,9999999); set number66, rand (1000,9999); set number99, rand (100,999); set @Col, rand (0,6); if(@Col == 0) goto colred; if(@Col == 1) goto colorg; if(@Col == 2) goto colblu; if(@Col == 3) goto colvio; if(@Col == 4) goto colgre; mes "^F5F9FD"+ number99 +"^000000^FFF9EE"+ number66 +"^000000^FF8C00"+ number2 +"^000000^F5F9FD"+ number05 +"^000000"; mes "^F8F8FF"+ number66 +"^000000^F7F7FF"+ number99 +"^000000^A52A2A"+ number6 +"^000000^F5F9FD"+ number05 +"^000000"; mes "^F5F9FD"+ number99 +"^000000^FFF9EE"+ number66 +"^000000^9400D3"+ number4 +"^000000^F8F8FF"+ number06 +"^000000"; mes "^F5F9FD"+ number66 +"^000000^F7F7FF"+ number99 +"^000000^FF0000"+ number1 +"^000000^F5F9FD"+ number02 +"^000000"; mes "^F8F8FF"+ number99 +"^000000^FFF9EE"+ number66 +"^000000^0000FF"+ number3 +"^000000^F8F8FF"+ number01 +"^000000"; mes "^F5F9FD"+ number99 +"^000000^F7F7FF"+ number66 +"^000000^008000"+ number5 +"^000000^F5F9FD"+ number03 +"^000000"; mes "^F7F7FF#^F5F9FD#^FFF9FA#^A52A2A####^FFF9EE##^F8F8FF#"; next; input number; next; goto brochk; close; colgre: mes "^FFF9EE"+ number66 +"^000000^FFF9EE"+ number99 +"^000000^008000"+ number5 +"^000000^F5F9FD"+ number04 +"^000000"; mes "^FFF9FA"+ number99 +"^000000^F7F7FF"+ number66 +"^000000^FFA500"+ number2 +"^000000^F5F9FD"+ number03 +"^000000"; mes "^F5F9FD"+ number66 +"^000000^FFF9EE"+ number99 +"^000000^FF0000"+ number1 +"^000000^F5F9FD"+ number00 +"^000000"; mes "^FFF9EE"+ number99 +"^000000^FFF9EE"+ number66 +"^000000^9400D3"+ number4 +"^000000^F5F9FD"+ number01 +"^000000"; mes "^F7F7FF"+ number66 +"^000000^FFF9FA"+ number99 +"^000000^0000FF"+ number3 +"^000000^F5F9FD"+ number06 +"^000000"; mes "^FFF9EE"+ number99 +"^000000^F5F9FD"+ number66 +"^000000^A52A2A"+ number6 +"^000000^F5F9FD"+ number05 +"^000000"; mes "^F7F7FF#^FFF9FA#^F5F9FD#^008000####^F5F9FD#^F8F8FF#^FFF9EE##"; next; input number; next; goto grechk; close; colvio: mes "^F7F7FF"+ number66 +"^000000^FFF9EE"+ number99 +"^000000^9400D3"+ number4 +"^000000^F5F9FD"+ number09 +"^000000"; mes "^F7F7FF"+ number66 +"^000000^FFF9EE"+ number99 +"^000000^FFA500"+ number2 +"^000000^F5F9FD"+ number04 +"^000000"; mes "^F7F7FF"+ number66 +"^000000^FFF9EE"+ number99 +"^000000^A52A2A"+ number6 +"^000000^F5F9FD"+ number05 +"^000000"; mes "^FFF9EE"+ number99 +"^000000^F7F7FF"+ number66 +"^000000^FF0000"+ number1 +"^000000^F5F9FD"+ number06 +"^000000"; mes "^FFF9EE"+ number99 +"^000000^F7F7FF"+ number66 +"^000000^0000FF"+ number3 +"^000000^F5F9FD"+ number08 +"^000000"; mes "^FFF9EE"+ number99 +"^000000^F7F7FF"+ number66 +"^000000^008000"+ number5 +"^000000^F5F9FD"+ number01 +"^000000"; mes "^F5F9FD#^FFF9EE#^FFF9FA#^9400D3####^F8F8FF#^F5F9FD##^F7F7FF##"; next; input number; next; goto viochk; close; colblu: mes "^F8F8FF"+ number01 +"^000000^FFA500"+ number2 +"^000000^F7F7FF"+ number66 +"^000000^F5F9FD"+ number99 +"^000000"; mes "^FFF9EE"+ number09 +"^000000^A52A2A"+ number6 +"^000000^F5F9FD"+ number66 +"^000000^FFF9EE"+ number99 +"^000000"; mes "^F5F9FD"+ number08 +"^000000^FF0000"+ number1 +"^000000^F7F7FF"+ number66 +"^000000^FFF9EE"+ number99 +"^000000"; mes "^F8F8FF"+ number07 +"^000000^0000FF"+ number3 +"^000000^F5F9FD"+ number66 +"^000000^F5F9FD"+ number99 +"^000000"; mes "^FFF9EE"+ number06 +"^000000^008000"+ number5 +"^000000^F5F9FD"+ number66 +"^000000^FFF9EE"+ number99 +"^000000"; mes "^F5F9FD"+ number05 +"^000000^9400D3"+ number4 +"^000000^F7F7FF"+ number66 +"^000000^F5F9FD"+ number99 +"^000000"; mes "^FFF9EE###^0000FF####^F8F8FF####^F5F9FD#^FFF9FA#^F7F7FF##"; next; input number; next; goto bluchk; close; colorg: mes "^FFF9EE"+ number4 +"^000000^A52A2A"+ number6 +"^000000^F5F9FD"+ number07 +"^000000"; mes "^F8F8FF"+ number3 +"^000000^9400D3"+ number4 +"^000000^F5F9FD"+ number00 +"^000000"; mes "^F5F9FD"+ number1 +"^000000^FF0000"+ number1 +"^000000^F5F9FD"+ number06 +"^000000"; mes "^F8F8FF"+ number2 +"^000000^0000FF"+ number3 +"^000000^F5F9FD"+ number04 +"^000000"; mes "^F5F9FD"+ number5 +"^000000^FF8C00"+ number2 +"^000000^F5F9FD"+ number08 +"^000000"; mes "^F5F9FD"+ number6 +"^000000^008000"+ number5 +"^000000^F8F8FF"+ number10 +"^000000"; mes "^F5F9FD#^FFF9EE####^FFA500####^F5F9FD#^F5F9FD####^F7F7FF##^FFF9FA##"; next; input number; next; goto orgchk; close; colred: mes "^F5F9FD"+ number6 +"^000000^A52A2A"+ number6 +"^000000^F8F8FF"+ number10 +"^000000"; mes "^F8F8FF"+ number5 +"^000000^008000"+ number5 +"^000000^F5F9FD"+ number09 +"^000000"; mes "^F5F9FD"+ number3 +"^000000^9400D3"+ number4 +"^000000^F8F8FF"+ number08 +"^000000"; mes "^F8F8FF"+ number1 +"^000000^0000FF"+ number3 +"^000000^F5F9FD"+ number07 +"^000000"; mes "^F5F9FD"+ number2 +"^000000^FFA500"+ number2 +"^000000^F5F9FD"+ number05 +"^000000"; mes "^F8F8FF"+ number5 +"^000000^FF0000"+ number1 +"^000000^F5F9FD"+ number02 +"^000000"; mes "^F5F9FD##^FF0000####^F8F8FF####^FFF9FA#^FFF9EE#^F7F7FF#"; next; input number; next; goto redchk; close; redchk: if(number < number1 || number > number1) goto LOG_FAIL; goto OK; close; orgchk: if(number < number2 || number > number2) goto LOG_FAIL; goto OK; close; bluchk: if(number < number3 || number > number3) goto LOG_FAIL; goto OK; close; viochk: if(number < number4 || number > number4) goto LOG_FAIL; goto OK; close; grechk: if(number < number5 || number > number5) goto LOG_FAIL; goto OK; close; brochk: if(number < number6 || number > number6) goto LOG_FAIL; goto OK; close; LOG_FAIL: if (@Fail <3) { mes "Please try it again."; set @Fail, @Fail+1; next; goto Code; } mes "^FF0000Wrong numbers.^000000."; next; mes "Bye... Bye...!"; next; warp "lhz_in03", 260, 261; setoption 0x40,0; setoption 0x2000,0; pcblockmove getcharid(3),0; sc_end sc_stone; sc_end sc_freeze; sc_end sc_sleep; sc_end sc_curse; sc_end sc_silence; sc_end sc_confusion; sc_end sc_blind; sc_end sc_bleeding; sc_end sc_decreaseagi; sc_end sc_poison; sc_end sc_hallucination; sc_end sc_stripweapon; sc_end sc_striparmor; sc_end sc_striphelm; sc_end sc_stripshield; atcommand "@noask"; stopnpctimer; end; OK: mes "^4233F4"+strcharinfo(0)+"^000000!"; mes "Thank you for not use bot in this server."; announce "Player "+strcharinfo(0)+" Online!!",bc_all; setoption 0x40,0; setoption 0x2000,0; pcblockmove getcharid(3),0; sc_start SC_GLORIA,1800000,2; sc_start SC_ANGELUS,1800000,10; sc_start SC_MAGNIFICAT,1800000,5; skilleffect 34,0; sc_start SC_BLESSING,1800000,10; sc_start SC_INCREASEAGI,1800000,10; percentheal 100,100; sc_end sc_stone; sc_end sc_freeze; sc_end sc_sleep; sc_end sc_curse; sc_end sc_silence; sc_end sc_confusion; sc_end sc_blind; sc_end sc_bleeding; sc_end sc_decreaseagi; sc_end sc_poison; sc_end sc_hallucination; sc_end sc_stripweapon; sc_end sc_striparmor; sc_end sc_striphelm; sc_end sc_stripshield; atcommand "@noask"; stopnpctimer; cutin "ein_soldier",255; close; gm_admin: cutin "ein_soldier",255; sc_start SC_GLORIA,1800000,2; sc_start SC_ANGELUS,1800000,10; sc_start SC_MAGNIFICAT,1800000,5; skilleffect 34,0; sc_start SC_BLESSING,1800000,10; sc_start SC_INCREASEAGI,1800000,10; percentheal 100,100; sc_end sc_stone; sc_end sc_freeze; sc_end sc_sleep; sc_end sc_curse; sc_end sc_silence; sc_end sc_confusion; sc_end sc_blind; sc_end sc_bleeding; sc_end sc_decreaseagi; sc_end sc_poison; sc_end sc_hallucination; sc_end sc_stripweapon; sc_end sc_striparmor; sc_end sc_striphelm; sc_end sc_stripshield; stopnpctimer; close; OnTimer30000: dispbottom "You failed to answer the question within 30 seconds."; warp "lhz_in03", 260, 261; setoption 0x40,0; setoption 0x2000,0; pcblockmove getcharid(3),0; sc_end sc_stone; sc_end sc_freeze; sc_end sc_sleep; sc_end sc_curse; sc_end sc_silence; sc_end sc_confusion; sc_end sc_blind; sc_end sc_bleeding; sc_end sc_decreaseagi; sc_end sc_poison; sc_end sc_hallucination; sc_end sc_stripweapon; sc_end sc_striparmor; sc_end sc_striphelm; sc_end sc_stripshield; atcommand "@noask"; stopnpctimer; } } } // - The Script lhz_in03,260,266,4 script Bot Checker 75,{ mes "You failed to prove that you're not a bot"; mes "to get out from this room"; mes "you must pay 10.000.000 zeny."; next; switch(select("Pay:No")) { case 1: if (zeny < 10000000) { mes "You're zeny aren't enough"; close; } set zeny, zeny - 10000000; set @Fail, 0; warp lastwarp$,lastwarpx,lastwarpy; close; case 2: mes "[ GM Staff ]"; mes "Ok, Bye... Bye..."; close; } } // - The Mapflags lhz_in03 mapflag nowarpto lhz_in03 mapflag nowarp lhz_in03 mapflag noreturn lhz_in03 mapflag noteleport lhz_in03 mapflag nomemo lhz_in03 mapflag noskill lhz_in03 mapflag noicewall lhz_in03 mapflag nobranch
  2. try change this line else if(BaseClass==Job_Clown||BaseClass==Job_Gypsy) { into this else if((BaseClass==Job_Clown)||(BaseClass==Job_Gypsy)) {
  3. Fix by my self using this script sc_start SC_MEDIALE,600000,5;
  4. Hi Dev team, i want ask about cardinal skill i put this script into my healer script specialeffect2 CD_MEDIALE_VOTUM; sc_start CD_MEDIALE_VOTUM,6000000,5; but when my char get buff it's causing my char get buff stone curse, not receving the correct skill buff even when the char in party have the same result. but using character with cardinal 4th job, it's working. so i want to know what the different via script and char skill.
  5. I don't have idea for your concept. maybe other members have the scripting concept for that.
  6. teleport using item (consume the item to teleport like butterfly wing) or the NPC will teleport the char and delete the items?
  7. i think don't have, i back to my old post to check it. Btw thanks for remind me.
  8. try change at this part ( .@party_id && .@has_instance )? "Enter the dungeon": "", change it into ( .@party_id && .@has_instance )? "Enter the dungeon: ",
  9. omg, i'm sorry. I'm forget about my old post, don't change it, just use like that.
  10. cashpoint isn't an item. it's use for buy item at cash shop.
  11. you change from cashpoint into item proof of donation to get VIP service?
  12. at line 185 until 187 for premium cashpoint price.
  13. must check with chris, his translation files for pre-renewal is it support for 2022 client or not. but check on client support for pre-renewal on chris translation project, lastest client is for 2018-01-24
  14. are you using pre_renewal chris translation data folder?
  15. try link https://drive.google.com/drive/folders/1NKzHYH4o2KUMxR5yFeVxV6iKkD11MLSr from Checkmate, above your post.
  16. try import file at your flux folder\data\schemas\charmapdb\cp_commands.20160608065501.sql if you don't have it you can trry download from this link https://github.com/rathena/FluxCP
  17. i'm suggest change it into monster_size_effect_new.lub it's show like this
  18. try zackdreaver translation data files at here click
  19. Try change your Oninit part into this Oninit: OnTimer5000: delwaitingroom; switch(rand(1,3)) { Case 1: waitingroom getmapusers(.@room1$)+" player"+( getmapusers(.@room1$) > 1 ? "s":"") +" in map", 0; goto Timer; end; break; Case 2: waitingroom getmapusers(.@room2$)+" player"+( getmapusers(.@room2$) > 1 ? "s":"") +" in map", 0; goto Timer; end; break; Case 3: waitingroom getmapusers(.@room3$)+" player"+( getmapusers(.@room3$) > 1 ? "s":"") +" in map", 0; goto Timer; end; break; Timer: initnpctimer; } while(1) { showscript "PVP MASTER", getnpcid(0); sleep 1000; } end; } pvp_y_1-2 mapflag nowarpto pvp_y_1-2 mapflag nowarp pvp_y_1-2 mapflag noreturn pvp_y_1-2 mapflag loadevent
  20. put it in array, at this part setarray .p_rwd, 607,1; // Party reward <item>,<amount> setarray .s_rwd, 60001,1; // Solo reward <item>,<amount> * not working after try it. i think must add more getitem at this part if (rand(100) < .chance) getitem .p_rwd[0], .p_rwd[1], .@partymemberaid[ rand( .@c ) ]; and if (rand(100) < .chance) getitem .s_rwd[0], .s_rwd[1];
  21. you can download it at this link here from my collection 2018-06-20eRagexeRE.rar 2018-06-21aRagexeRE.rar
  22. you can use identify the item with Deckard Cain without quest first with price 50z for each item. but if you complete quest first with NPC Kashya, you will get free cost how many item you bring in your inventory.
  23. Try this, include quest to get cheaper price at this part // Prices set @price, 50; // Price to identify one item, BEFORE finishing quest set @price2, 0; // Price to identify one item, AFTER quest identification.txt
  24. here the script with mapflag no teleport //===== rAthena Script ============================================= //= Punching Bag NPC //===== By: ======================================================== //= Secretdataz //===== Current Version: =========================================== //= 0.2 //===== Changelog: ================================================= //= 0.1 Initial commit //= 0.2 Add MD_KNOCKBACK_IMMUNE //===== Compatible With: =========================================== //= rAthena Project //===== Additional Comments: ======================================= //= When duplicating this NPC. Only use NUMBER after the # [secret] //================================================================== prontera,215,78,0 script PunchingBag#0 844,{ end; OnMyMobDead: OnInit: getunitdata(getnpcid(0), .@d); monster strnpcinfo(4),.@d[UNPC_X],.@d[UNPC_Y],"Punching Bag",2411,1,strnpcinfo(0)+"::OnMyMobDead"; .@dupid = atoi(strnpcinfo(2)); .gid[.@dupid] = $@mobid[0]; .mhp[.@dupid] = strmobinfo(4,2411); setunitdata .gid[.@dupid],UMOB_MODE,.@d[UMOB_MODE]|0x4000000|0x0200000; // Set MD_STATUS_IMMUNE (0x4000000) because EDP/burn/%MHP based status can skew the DPS counter so much. initnpctimer; end; OnTimer5000: .@dupid = atoi(strnpcinfo(2)); if(unitexists(.gid[.@dupid])){ getunitdata(.gid[.@dupid],.@d); .@diff = (.mhp[.@dupid] - .@d[UMOB_HP]); if(.@diff > 0){ npctalk "Punching Bag : I've taken " + (.@diff/5) + " DPS in last 5 seconds."; setunitdata .gid[.@dupid],UMOB_HP,.mhp[.@dupid]; specialeffect EF_HEAL; setmapflag( "prontera",mf_monster_noteleport ); } } initnpctimer; } prontera,224,78,0 duplicate(PunchingBag#0) PunchingBag#1 844 prontera,224,66,0 duplicate(PunchingBag#0) PunchingBag#2 844 prontera,215,66,0 duplicate(PunchingBag#0) PunchingBag#3 844 Welgaia,182,143,0 duplicate(PunchingBag#0) PunchingBag#4 844 Welgaia,157,143,0 duplicate(PunchingBag#0) PunchingBag#5 844 Welgaia,132,143,0 duplicate(PunchingBag#0) PunchingBag#6 844 // Mapflag prontera mapflag monster_noteleport
×
×
  • Create New...