-
Posts
105 -
Joined
-
Last visited
Content Type
Profiles
Forums
Downloads
Jobs Available
Server Database
Third-Party Services
Top Guides
Store
Crowdfunding
Everything posted by markiez22
-
Cyrix made Index: src/map/battle.c =================================================================== --- src/map/battle.c (revision 15817) +++ src/map/battle.c (working copy) @@ -233,10 +233,8 @@ nullpo_ret(target); sc = status_get_sc(target); - - if( sc && sc->data[sC_DEVOTION] && damage > 0 && skill_id != PA_PRESSURE && skill_id != CR_REFLECTSHIELD ) + //devotion patch by Cyrix (rathena) ([email protected]) +//https://www.facebook.com/ragdb.ragnarok +if( sc && sc->data[sC_DEVOTION] && damage > 0 && skill_id != PA_PRESSURE && skill_id != CR_REFLECTSHIELD ) damage = 0; - if ( !battle_config.delay_battle_damage || amotion <= 1 ) { map_freeblock_lock(); status_fix_damage(src, target, damage, ddelay); // We have to seperate here between reflect damage and others [icescope] @@ -4186,7 +4184,7 @@ } else status_change_end(target, SC_DEVOTION, INVALID_TIMER); - } + } if (sc && sc->data[sC_AUTOSPELL] && rnd()0 < sc->data[sC_AUTOSPELL]->val4) { int sp = 0; Index: src/map/pc.c =================================================================== --- src/map/pc.c (revision 15817) +++ src/map/pc.c (working copy) @@ -6078,8 +6078,7 @@ for(k = 0; k < 5; k++) if (sd->devotion[k]){ struct map_session_data *devsd = map_id2sd(sd->devotion[k]); - if (devsd) - status_change_end(&devsd->bl, SC_DEVOTION, INVALID_TIMER); + //devotion patch by Cyrix (rathena) ([email protected]) +//https://www.facebook.com/ragdb.ragnarok + if (devsd) status_change_end(&devsd->bl,SC_DEVOTION,-1); sd->devotion[k] = 0; } Index: src/map/status.c =================================================================== --- src/map/status.c (revision 15817) +++ src/map/status.c (working copy) @@ -1015,31 +1015,43 @@ // if (!target->prev && !(flag&2)) // return 0; //Cannot damage a bl not on a map, except when "charging" hp/sp - sc = status_get_sc(target); - if( hp && battle_config.invincible_nodamage && src && sc && sc->data[sC_INVINCIBLE] && !sc->data[sC_INVINCIBLEOFF] ) - hp = 1; + //devotion patch by Cyrix (rathena) ([email protected]) +//https://www.facebook.com/ragdb.ragnarok + sc = status_get_sc(target); + - if( hp && !(flag&1) ) { + if( hp && !(flag&(1|8)) ) { if( sc ) { struct status_change_entry *sce; + if( (sce = sc->data[sC_DEVOTION]) && src && battle_getcurrentskill(src) != PA_PRESSURE ) + { // Devotion prevents any of the other ailments from ending. + struct block_list *d_bl = map_id2bl(sce->val1); + + if( d_bl && ( + (d_bl->type == BL_MER && ((TBL_MER*)d_bl)->master && ((TBL_MER*)d_bl)->master->bl.id == target->id) || + (d_bl->type == BL_PC && ((TBL_PC*)d_bl)->devotion[sce->val2] == target->id) + ) && check_distance_bl(target, d_bl, sce->val3) ) + { + clif_damage(d_bl, d_bl, gettick(), 0, 0, hp, 0, 0, 0); + status_fix_damage(NULL, d_bl, hp, 0); + return 0; + } + + status_change_end(target, SC_DEVOTION, -1); + } if (sc->data[sC_STONE] && sc->opt1 == OPT1_STONE) - status_change_end(target, SC_STONE, INVALID_TIMER); - status_change_end(target, SC_FREEZE, INVALID_TIMER); - status_change_end(target, SC_SLEEP, INVALID_TIMER); - status_change_end(target, SC_WINKCHARM, INVALID_TIMER); - status_change_end(target, SC_CONFUSION, INVALID_TIMER); - status_change_end(target, SC_TRICKDEAD, INVALID_TIMER); - status_change_end(target, SC_HIDING, INVALID_TIMER); - status_change_end(target, SC_CLOAKING, INVALID_TIMER); - status_change_end(target, SC_CHASEWALK, INVALID_TIMER); - status_change_end(target, SC_CAMOUFLAGE, INVALID_TIMER); - status_change_end(target, SC__INVISIBILITY, INVALID_TIMER); - status_change_end(target, SC_DEEPSLEEP, INVALID_TIMER); + status_change_end(target,SC_STONE,-1); + status_change_end(target,SC_FREEZE,-1); + status_change_end(target,SC_SLEEP,-1); + status_change_end(target,SC_WINKCHARM,-1); + status_change_end(target,SC_CONFUSION,-1); + status_change_end(target,SC_TRICKDEAD,-1); + status_change_end(target,SC_HIDING,-1); + status_change_end(target,SC_CLOAKING,-1); + status_change_end(target,SC_CHASEWALK,-1); if ((sce=sc->data[sC_ENDURE]) && !sce->val4) { //Endure count is only reduced by non-players on non-gvg maps. //val4 signals infinite endure. [skotlex] if (src && src->type != BL_PC && !map_flag_gvg(target->m) && !map[target->m].flag.battleground && --(sce->val2) < 0) - status_change_end(target, SC_ENDURE, INVALID_TIMER); + status_change_end(target, SC_ENDURE, -1); } if ((sce=sc->data[sC_GRAVITATION]) && sce->val3 == BCT_SELF) { struct skill_unit_group* sg = skill_id2group(sce->val4); @@ -8235,14 +8247,14 @@ for( i = 0; i < 5; i++ ) { if( sd->devotion && (tsd = map_id2sd(sd->devotion)) && tsd->sc.data[type] ) - status_change_end(&tsd->bl, type, INVALID_TIMER); + status_change_end(&tsd->bl, type, -1); } } else if( bl->type == BL_MER && ((TBL_MER*)bl)->devotion_flag ) { // Clear Status from Master tsd = ((TBL_MER*)bl)->master; if( tsd && tsd->sc.data[type] ) - status_change_end(&tsd->bl, type, INVALID_TIMER); + status_change_end(&tsd->bl, type, -1); } } break; @@ -8258,10 +8270,10 @@ clif_devotion(d_bl, NULL); } - status_change_end(bl, SC_AUTOGUARD, INVALID_TIMER); - status_change_end(bl, SC_DEFENDER, INVALID_TIMER); - status_change_end(bl, SC_REFLECTSHIELD, INVALID_TIMER); - status_change_end(bl, SC_ENDURE, INVALID_TIMER); + status_change_end(bl,SC_AUTOGUARD,-1); + status_change_end(bl,SC_DEFENDER,-1); + status_change_end(bl,SC_REFLECTSHIELD,-1); + status_change_end(bl,SC_ENDURE,-1); } break;
-
sry its working thx . . .!
-
@cynx new problem devo not working at party members . .
-
same problem . . . some1 help ups!
-
Try. http://www.eathena.ws/board/index.php?autocom=bugtracker&showbug=4957
-
how to make NPC rent into 10min??? Super Like Script!
-
Flux-CP Addon V4P, problem with voting sites listing!
markiez22 replied to Keitaro Urashima's question in Web Support
No voting sites found . . i try to add but no site found DUMP! can u help me sir! -
w0w Now its easy to make Log In screen 100% good Job!
-
what about BOT POLICE LIKE oldschool RO??? can u give the Link? THX
-
Capture the Flag v2 [custom map added]
markiez22 replied to PewN's topic in Game, Event, Quest Script Releases
any script w/ no custom map to add??? thx -
have any video to see it 1st?
-
Tools/config edit Config
-
Thor Patcher Skin [Please rate and comment]
markiez22 replied to DR4LUC0N's topic in Arts & Writings
w0w its realy great . . -
rate 9 can u make that free to all newbie like me! XD
-
what About neoncube background Music ?
-
Thx . . for the guides . . . its working for the /idealhostingsolutions.net
-
Request Socket enchant all equips except weapon
markiez22 replied to Ragnar Lothbrok's question in Script Requests
prontera,129,166,6 script Socket Master#r1 864,{ mes "["+strnpcinfo(1)+"]"; if (Sex) mes "Hello sir ^0000FF"+strcharinfo(0)+"^000000, how may I help you?"; else mes "Hello lady ^0000FF"+strcharinfo(0)+"^000000, how may I help you?"; next; if (getgmlevel() < 0) set [email protected], select("Enchant:No Thanks"); else { set [email protected], select("Random Enchant Effect:No Thanks:^FF0000Choose Enchant Effect^000000"); if ([email protected] == 3) { set [email protected], 1; goto L_EnchantLoc; } } if ([email protected] == 2) { mes "["+strnpcinfo(1)+"]"; mes "ok come back again if u want"; close; } if ([email protected] == 1) { L_EnchantLoc: mes "["+strnpcinfo(1)+"]"; mes "Select an equipment first, then I'll ask you the ^FF0000Enchantment Type^000000, ^FF0000Class Type^000000 (If necessary), ^0000FFSlot Number^000000, and give you the final ^009900Zeny Cost^000000 for my services."; next; setarray [email protected]$[1], "Headgear","Armor","Invalid","Invalid","Invalid","Invalid","Invalid","Invalid","Mid-Headgear","Lower-Headgear"; set [email protected]$,""; deletearray [email protected]; set [email protected], 1; for( set [email protected],1; [email protected] <= 10; set [email protected],[email protected]+1 ) { if(getequipisequiped([email protected]) && ([email protected] !=4 ) && ([email protected] !=5 ) && ([email protected] !=6 ) && ([email protected] != 7) && ([email protected] !=8 ) && ([email protected] !=3 )) { set [email protected]$, [email protected]$ + [email protected]$[[email protected]] + "-" + "[" + getequipname([email protected]) + "]"; set [email protected][[email protected]], [email protected]; set [email protected], [email protected] + 1; set [email protected]$, [email protected]$ + ":"; } } if ([email protected]$ == "") { mes "["+strnpcinfo(1)+"]"; mes "Errr wait. Oh Sorry but you must have armors equipped to enchant them!"; close; } // Calibrating menu set [email protected], select([email protected]$); if ([email protected][[email protected]] == 1) set [email protected], 1; else if ([email protected][[email protected]] == 2) set [email protected], 2; else if ([email protected][[email protected]] == 9) set [email protected], 9; else if ([email protected][[email protected]] == 10) set [email protected], 10; if ([email protected]) goto L_SelectSlot; // Selecting Slots L_SelectSlot: set [email protected]_num, 1; if (([email protected]_num > 1)) { mes "["+strnpcinfo(1)+"]"; mes "Sorry but you must select a valid slot number."; close; } // Gm Option Select if ([email protected]) set [email protected]_type, 1; // Special Specific Enchant Selection if ([email protected]_type == 1) { L_SelectEnc: mes "["+strnpcinfo(1)+"]"; mes "Please now select the specific enchantment. First you choose the class type, then you select the specific enchant."; next; set [email protected]$, ""; set [email protected]_bonus, 0; if ([email protected]) { set [email protected]$, [email protected]$ + ":^0000FFStr+1^000000"; set [email protected]$, [email protected]$ + ":^0000FFStr+2^000000"; set [email protected]$, [email protected]$ + ":^0000FFStr+3^000000"; set [email protected]$, [email protected]$ + ":^0000FFStr+4^000000"; set [email protected]$, [email protected]$ + ":^0000FFStr+5^000000"; set [email protected]$, [email protected]$ + ":^0000FFStr+6^000000"; set [email protected]$, [email protected]$ + ":^0000FFStr+7^000000"; set [email protected]$, [email protected]$ + ":^0000FFStr+8^000000"; set [email protected]$, [email protected]$ + ":^0000FFStr+9^000000"; set [email protected]$, [email protected]$ + ":^0000FFStr+10^000000"; set [email protected]$, [email protected]$ + ":^0000FFAgi+1^000000"; set [email protected]$, [email protected]$ + ":^0000FFAgi+2^000000"; set [email protected]$, [email protected]$ + ":^0000FFAgi+3^000000"; set [email protected]$, [email protected]$ + ":^0000FFAgi+4^000000"; set [email protected]$, [email protected]$ + ":^0000FFAgi+5^000000"; set [email protected]$, [email protected]$ + ":^0000FFAgi+6^000000"; set [email protected]$, [email protected]$ + ":^0000FFAgi+7^000000"; set [email protected]$, [email protected]$ + ":^0000FFAgi+8^000000"; set [email protected]$, [email protected]$ + ":^0000FFAgi+9^000000"; set [email protected]$, [email protected]$ + ":^0000FFAgi+10^000000"; set [email protected]$, [email protected]$ + ":^0000FFVit+1^000000"; set [email protected]$, [email protected]$ + ":^0000FFVit+2^000000"; set [email protected]$, [email protected]$ + ":^0000FFVit+3^000000"; set [email protected]$, [email protected]$ + ":^0000FFVit+4^000000"; set [email protected]$, [email protected]$ + ":^0000FFVit+5^000000"; set [email protected]$, [email protected]$ + ":^0000FFVit+6^000000"; set [email protected]$, [email protected]$ + ":^0000FFVit+7^000000"; set [email protected]$, [email protected]$ + ":^0000FFVit+8^000000"; set [email protected]$, [email protected]$ + ":^0000FFVit+9^000000"; set [email protected]$, [email protected]$ + ":^0000FFVit+10^000000"; set [email protected]$, [email protected]$ + ":^0000FFInt+1^000000"; set [email protected]$, [email protected]$ + ":^0000FFInt+2^000000"; set [email protected]$, [email protected]$ + ":^0000FFInt+3^000000"; set [email protected]$, [email protected]$ + ":^0000FFInt+4^000000"; set [email protected]$, [email protected]$ + ":^0000FFInt+5^000000"; set [email protected]$, [email protected]$ + ":^0000FFInt+6^000000"; set [email protected]$, [email protected]$ + ":^0000FFInt+7^000000"; set [email protected]$, [email protected]$ + ":^0000FFInt+8^000000"; set [email protected]$, [email protected]$ + ":^0000FFInt+9^000000"; set [email protected]$, [email protected]$ + ":^0000FFInt+10^000000"; set [email protected]$, [email protected]$ + ":^0000FFDex+1^000000"; set [email protected]$, [email protected]$ + ":^0000FFDex+2^000000"; set [email protected]$, [email protected]$ + ":^0000FFDex+3^000000"; set [email protected]$, [email protected]$ + ":^0000FFDex+4^000000"; set [email protected]$, [email protected]$ + ":^0000FFDex+5^000000"; set [email protected]$, [email protected]$ + ":^0000FFDex+6^000000"; set [email protected]$, [email protected]$ + ":^0000FFDex+7^000000"; set [email protected]$, [email protected]$ + ":^0000FFDex+8^000000"; set [email protected]$, [email protected]$ + ":^0000FFDex+9^000000"; set [email protected]$, [email protected]$ + ":^0000FFDex+10^000000"; set [email protected]$, [email protected]$ + ":^0000FFLuk+1^000000"; set [email protected]$, [email protected]$ + ":^0000FFLuk+2^000000"; set [email protected]$, [email protected]$ + ":^0000FFLuk+3^000000"; set [email protected]$, [email protected]$ + ":^0000FFLuk+4^000000"; set [email protected]$, [email protected]$ + ":^0000FFLuk+5^000000"; set [email protected]$, [email protected]$ + ":^0000FFLuk+6^000000"; set [email protected]$, [email protected]$ + ":^0000FFLuk+7^000000"; set [email protected]$, [email protected]$ + ":^0000FFLuk+8^000000"; set [email protected]$, [email protected]$ + ":^0000FFLuk+9^000000"; set [email protected]$, [email protected]$ + ":^0000FFLuk+10^000000"; set [email protected]$, [email protected]$ + ":^0000FFMATK+1%^000000"; set [email protected]$, [email protected]$ + ":^0000FFMATK+2%^000000"; set [email protected]$, [email protected]$ + ":^0000FFFlee+6^000000"; set [email protected]$, [email protected]$ + ":^0000FFFlee+12^000000"; set [email protected]$, [email protected]$ + ":^0000FFCRI+5^000000"; set [email protected]$, [email protected]$ + ":^0000FFCRI+7^000000"; set [email protected]$, [email protected]$ + ":^0000FFATK+2%^000000"; set [email protected]$, [email protected]$ + ":^0000FFATK+3%^000000"; set [email protected]_bonus, select([email protected]$) + 4699; next; } set [email protected]_enchant, [email protected]; set [email protected], 0; } // Giving Zeny Cost, and Chance set [email protected]_cardid, getequipcardid([email protected],(4 - [email protected]_num)); set [email protected], getequipid([email protected]); if (countitem([email protected]) > 1) { mes "["+strnpcinfo(1)+"]"; mes "Ah, looks like you have more than one of the same item in your inventory, I'm sorry but you must store them first before proceeding."; close; } mes "["+strnpcinfo(1)+"]"; if ([email protected]_cardid <= 0) mes "So far so good, please confirm your enchantment."; else mes "Please confirm your enchantment. ^FF0000Overplaced old effects will be lost^000000"; // First Enchantment Type ------------------------------------------------------------------------------------------------ if ([email protected]_type == 1) { // Confirmation if ([email protected]) set [email protected]_cost, 1; else set [email protected]_cost, 5000000; if ([email protected]) set [email protected], 100; else set [email protected], (110 - (10*[email protected]_num)); mes "^0000FFEquip^000000 = "+getitemname([email protected]); mes "^0000FFChance^000000 = "[email protected]+"%"; mes "^0000FFSlot Number^000000 = "+( ([email protected]_num == 1) ? "1st Slot" : ([email protected]_num == 2 ? "2nd Slot" : "3rd Slot") ); mes "^0000FFZeny Cost^000000 = "[email protected]_cost+"z"; if ([email protected]) mes "^0000FFDark Destiny Crystal^000000 = 3 Consumed"; mes "^0000FFSelected Enchantment^000000 = "+getitemname([email protected]_bonus); if ([email protected]_cardid > 0) mes "^FF0000Overplace^000000 = "+getitemname([email protected]_cardid); next; if (Select("Confirm:Cancel") == 2) close; // Check Zeny if (Zeny < [email protected]_cost) { mes "["+strnpcinfo(1)+"]"; mes "Sorry, but you are broke."; close; } if ((countitem(30041) < 3) && ([email protected])) { mes "["+strnpcinfo(1)+"]"; mes "Hey! You can't Power Refine without Power Stones!"; close; } // Refine Attempt progressbar "ffff00",3; // Double Check after progress bar if (Zeny < [email protected]_cost) { mes "["+strnpcinfo(1)+"]"; mes "Are you trying to fool me?! You don't have zeny anymore!"; close; } if ( (countitem(30041) < 3) && ([email protected]) ) { mes "["+strnpcinfo(1)+"]"; mes "Hey! You can't Power Refine without Power Stones!"; close; } if (getequipid([email protected]) != [email protected]) { mes "["+strnpcinfo(1)+"]"; mes "What do you think you are doing, your punk?! You switched your equipment! Get lost before I sue you."; close; } // Fail if (rand(0,100) > [email protected]) { specialeffect2 306; mes "["+strnpcinfo(1)+"]"; mes "Wooops! I'm sorry, but it broke. There's nothing I can do about it anymore."; set Zeny, Zeny - [email protected]_cost; if ([email protected]) delitem 30041,3; delitem [email protected],1; close; } else { // Success set [email protected]_bonus, [email protected]_bonus; mes "["+strnpcinfo(1)+"]"; mes "Ha! There you go, your brand new enchanted equipment!"; set [email protected], getequiprefinerycnt([email protected]); for (set [email protected], 0; [email protected] < 4; set [email protected], [email protected] + 1) set [email protected][[email protected]], getequipcardid([email protected],[email protected]); delitem [email protected],1; if ([email protected]) delitem 30041,3; set Zeny, Zeny - [email protected]_cost; specialeffect2 305; if ([email protected]_num == 1) getitem2 [email protected], 1, 1, [email protected], 0, [email protected][0], [email protected][1], [email protected][2], [email protected]_bonus; close; } } if ([email protected]_type == 0) { // Confirmation // The random bonus is given before the actual success... But it's hidden, obviously. set [email protected]_bonus, rand(4700,4767); if ([email protected]_num == 1) set [email protected]_cost, 1000000; mes "^0000FFEquip^000000 = "+getitemname([email protected]); mes "^0000FFChance^000000 = "+(110 - (10*[email protected]_num))+"%"; mes "^0000FFSlot Number^000000 = "+( ([email protected]_num == 1) ? "1st Slot" : ([email protected]_num == 2 ? "2nd Slot" : "3rd Slot") ); mes "^0000FFZeny Cost^000000 = "[email protected]_cost+"z"; mes "^0000FFDark Destiny Crystal^000000 = 1 Consumed"; if ([email protected]_cardid > 0) mes "^FF0000Overplace^000000 = "+getitemname([email protected]_cardid); next; if (Select("Confirm:Cancel") == 2) close; // Check Zeny if (Zeny < [email protected]_cost || countitem(30041) < 1) { mes "["+strnpcinfo(1)+"]"; mes "Sorry, but you are broke."; close; } // Refine Attempt progressbar "ffff00",3; // Double Check after progress bar if (Zeny < [email protected]_cost) { mes "["+strnpcinfo(1)+"]"; mes "Are you trying to fool me?! You don't have zeny anymore!"; close; } if (getequipid([email protected]) != [email protected]) { mes "["+strnpcinfo(1)+"]"; mes "What do you think you are doing, your punk?! You switched your equipment! Get lost before I sue you."; close; } // Fail if (rand(0,100) > (90 - (10*[email protected]_num))) { specialeffect2 306; mes "["+strnpcinfo(1)+"]"; mes "Wooops! I'm sorry, but it broke. There's nothing I can do about it anymore."; set Zeny, Zeny - [email protected]_cost; delitem 30041,1; //delitem [email protected],1; close; } else { // Success mes "["+strnpcinfo(1)+"]"; mes "Ha! There you go, your brand new enchanted equipment!"; set [email protected], getequiprefinerycnt([email protected]); for (set [email protected], 0; [email protected] < 4; set [email protected], [email protected] + 1) set [email protected][[email protected]], getequipcardid([email protected],[email protected]); delitem [email protected],1; delitem 30041,1; set Zeny, Zeny - [email protected]_cost; specialeffect2 305; if ([email protected]_num == 1) getitem2 [email protected], 1, 1, [email protected], 0, [email protected][0], [email protected][1], [email protected][2], [email protected]_bonus; } close; } } } } Some1 Give that to my. . . im just share it. . that is not my work -
i have question aboutBeginner eAthena V4 the Beginner eAthena V4 is compatible to recompile the src? bcuz if i try to re compile i can't log in and map char are missing . . like that?
-
can u give me a script that. . Menu: Addstr +5 AddAgi +5 AddInt +5 AddVit +5 AddDex +5 AddLuk +5 like thats? can u help me about that???
-
404 Not Found The resource requested could not be found on this server! Powered By LiteSpeed Web Server LiteSpeed Technologies is not responsible for administration and contents of this web site! that's my problem can u help me !