Jump to content

Erba

Members
  • Posts

    550
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by Erba

  1. sorry im not that good in making scripts specially when dealing with sql queries , and thankyou for spoon feeding me mam, thank you again ill try this later
  2. KOEH script doesnt give the Guild Master the Rewarded items
  3. i successfully added those sql queries in my phpmyadmin database mam annie but still the problem is that it doesnt add a Kills or Deaths upon pvping in PVP or GVG arenas
  4. Hello, i am using this kind of PVP Warper with PVP Ladder Script, the script is originally created by Sir Brian this script doesnt have any errors but it doesnt add kills or deaths when a player kills or dies inside a pvp or gvg mapflag. i am using rathena 16797.. Help is greatly appreciated thank you! prontera,161,187,5 script PVP Master 86,{ mes "[PvP Warper]"; if(.locked){mes "Sorry, PVP Rooms are Locked During WOE."; close;} mes "Which arena do you want to go to?"; switch(select("View PvP stats of my Char:PVP Square ["+getmapusers("cell_game")+"/100]:PVP NoPotion ["+getmapusers("cell_game2")+"/100]:Non Donator PVP ["+getmapusers("cell_game3")+"/100]:GvG Arena [^FF0000" + getmapusers("guild_vs3") + "^000000/100]")) { case 1: // VIEW STATUS mes "Your PvP stats are:"; query_sql ("SELECT `char`.`kills` FROM `char` WHERE `char`.`char_id` = "+ getcharid(0), .@kills); query_sql ("SELECT `char`.`deaths` FROM `char` WHERE `char`.`char_id` = "+ getcharid(0), .@deaths); mes "^009500 Kills: " + .@kills; mes "^FF0000 Deaths: " + .@deaths; break; default: break; case 2: // PVP Square if (getmapusers("cell_game") > 99) callsub S_full; warp "cell_game",0,0; end; case 3: // PVP NoPotion if (getmapusers("cell_game2") > 99) callsub S_full; warp "cell_game2",0,0; end; case 4: // Non Donator PVP if (getmapusers("cell_game3") > 99) callsub S_full; warp "cell_game3",0,0; end; case 5: // GVG if (getmapusers("guild_vs3") > 99) callsub S_full; if (!getcharid(2)) { mes " "; mes "Please join a guild before entering..."; close; } warp "guild_vs3",0,0; end; } close; S_full: mes " "; mes "I'm sorry, this arena is full. Please try again later..."; close; OnInit: waitingroom "Special PVP/GVG",0; end; //====================================== // OnPCKillEvent //====================================== OnPCKillEvent: getmapxy(.@map$,.@x,.@y, 0); set .@killer$, strcharinfo(0); if( getmapflag(.@map$,mf_gvg) ) { // on GVG maps, and during WoE query_sql "UPDATE `char` SET `kills` = `kills`+1 WHERE `char_id` = "+ getcharid(0); query_sql "SELECT `kills` FROM `char` WHERE `char_id` = "+ getcharid(0), .@kills; dispbottom "You have killed "+ rid2name(killedrid) +". [Total Kills = "+ .@kills +"]"; if (attachrid(killedrid)) { query_sql "UPDATE `char` SET `deaths` = `deaths`+1 WHERE `char_id` = "+ getcharid(0); query_sql "SELECT `deaths` FROM `char` WHERE `char_id` = "+ getcharid(0), .@deaths; dispbottom "You have been killed by "+ .@killer$ +". [Total Deaths = "+ .@deaths +"]"; } } else if( getmapflag(.@map$,mf_pvp) ) { // on PVP and Battleground maps dispbottom "You have killed "+ rid2name(killedrid) +"."; if (attachrid(killedrid)) { dispbottom "You have been killed by "+ .@killer$ +"."; } } end;
  5. use search this is already requested and answered
  6. Erba

    Soul Link Scroll

    annie, how can i do it im using the soul link function for the item
  7. I am having trouble with Star Gladiator's Soul Link effect, but after trying, asking and searching rAthena and Google i came up with the answer of sir MarkZD and sir Kichi, Thank you for your help! Enabling Lord of Vermillion level 10 and LK Parrying Level 10 using Book Open your src/map/pc.c Find: for( i = 0; i < MAX_SKILL; i++ ) { if( sd->status.skill[i].flag != SKILL_FLAG_PLAGIARIZED ) //Don't touch plagiarized skills sd->status.skill[i].id = 0; //First clear skills. } Add this Below it: +if( sd->sc.count && sd->sc.data[SC_SPIRIT] && sd->sc.data[SC_SPIRIT]->val2 == SL_STAR) + { + sd->status.skill[85].id = 85; + sd->status.skill[85].lv = 10; + sd->status.skill[85].flag = SKILL_FLAG_PERMANENT; + sd->status.skill[356].id = 356; + sd->status.skill[356].lv = 10; + sd->status.skill[356].flag = SKILL_FLAG_PERMANENT; + } Final Output: for( i = 0; i < MAX_SKILL; i++ ) { if( sd->status.skill[i].flag != SKILL_FLAG_PLAGIARIZED ) //Don't touch plagiarized skills sd->status.skill[i].id = 0; //First clear skills. } if( sd->sc.count && sd->sc.data[SC_SPIRIT] && sd->sc.data[SC_SPIRIT]->val2 == SL_STAR) { sd->status.skill[85].id = 85; sd->status.skill[85].lv = 10; sd->status.skill[85].flag = SKILL_FLAG_PERMANENT; sd->status.skill[356].id = 356; sd->status.skill[356].lv = 10; sd->status.skill[356].flag = SKILL_FLAG_PERMANENT; } = This will make Star Gladiators be able to use skill LOV and Parrying lvl 10 now about enabling Star Gladiators to Use Parryling lvl 10 with Books Open src/map/skill.c Find: int skill_check_condition_castend(struct map_session_data* sd, short skill, short lv) { struct skill_condition require; struct status_data *status; int i; int index[MAX_SKILL_ITEM_REQUIRE]; Add this below: struct status_change *sc = &sd->sc; Final Output: int skill_check_condition_castend(struct map_session_data* sd, short skill, short lv) { struct skill_condition require; struct status_data *status; int i; int index[MAX_SKILL_ITEM_REQUIRE]; struct status_change *sc = &sd->sc; [still at src/map/skill.c] Now Find: if(require.weapon && !(pc_check_weapontype(sd,require.weapon) Replace it by this: if(require.weapon && !(pc_check_weapontype(sd,require.weapon) || (skill == LK_PARRYING && sc && sc->data[SC_SPIRIT] && sc->data[SC_SPIRIT]->val2 == SL_STAR && sd->status.weapon == W_BOOK)) ){ clif_skill_fail(sd,skill,USESKILL_FAIL_THIS_WEAPON,0); return 0; } Finally you can now RECOMPILE i am using rev16797 and this is working on.
  8. Can someone help me how can i make my soul link scroll cannot be used by owner but will use it to buff others, like the provoke skill of Swordsman which cannot be casted on self but can be casted to enemies/monsters. how can i do it with an item[soul link scroll]? sorry if i posted on the wrong section
  9. Erba

    Dragon Breath

    How can i make Dragon breath be ignored when player is using GTB? Thank you
  10. svn "11771" the one i checked out at github the problem is that i am always having problem with rejected from server in my packet_db: 30 in my mmo.h : 20120410 my client is 20120410aRagexeRE diffed with skip packet header obfuscation in my clientinfo.xml the version : 30 i am running the server with the same ip of my current running server, but i am just using char port: 6122 map port: 5122 login port: 6902 all is recompiled and no more error is popping out except for rejected from server. after rejected from server it just automatically go to Failed to connect to server.. all my IP configuration is correct i already triple checked it bump bump
  11. I tried adding Coup de Grace by Goddameit Wind Run by Madalilang but all i got was undeclared Identifier. now i tried to Mimic Hallucination Walk of Guillotine Cross and rename it to Wind Run but as i recompile i always got these erros: Error: 2 error C2065: 'RA_WINDRUN' : undeclared identifier D:\Gaming\revision17049\src\map\status.c 550 1 map-server_sql (Visual Studio 2010) 4 IntelliSense: argument of type "int" is incompatible with parameter of type "sc_type" d:\Gaming\revision17049\src\map\status.c 10259 5 map-server_sql (Visual Studio 2010) 3 IntelliSense: identifier "RA_WINDRUN" is undefined d:\Gaming\revision17049\src\map\status.c 550 10 map-server_sql (Visual Studio 2010) This is what ive done: Skill.c case GC_HALLUCINATIONWALK: { int heal = status_get_max_hp(bl) / 10; if( status_get_hp(bl) < heal ) { // if you haven't enough HP skill fails. if( sd ) clif_skill_fail(sd,skillid,USESKILL_FAIL_HP_INSUFFICIENT,0); break; } if( !status_charge(bl,heal,0) ) { if( sd ) clif_skill_fail(sd,skillid,USESKILL_FAIL_HP_INSUFFICIENT,0); break; } clif_skill_nodamage(src,bl,skillid,skilllv,sc_start(bl,type,100,skilllv,skill_get_time(skillid,skilllv))); } break; case RA_WINDRUN: { int heal = status_get_max_hp(bl) / 10; if( status_get_hp(bl) < heal ) { // if you haven't enough HP skill fails. if( sd ) clif_skill_fail(sd,skillid,USESKILL_FAIL_HP_INSUFFICIENT,0); break; } if( !status_charge(bl,heal,0) ) { if( sd ) clif_skill_fail(sd,skillid,USESKILL_FAIL_HP_INSUFFICIENT,0); break; } clif_skill_nodamage(src,bl,skillid,skilllv,sc_start(bl,type,100,skilllv,skill_get_time(skillid,skilllv))); } break; Skill.h EL_STONE_RAIN, RA_WINDRUN = 8443, // i added this one Status.c set_sc( GC_HALLUCINATIONWALK , SC_HALLUCINATIONWALK, SI_HALLUCINATIONWALK, SCB_FLEE ); set_sc( RA_WINDRUN , SC_HALLUCINATIONWALK, SI_HALLUCINATIONWALK, SCB_FLEE ); //i added this one Waiting for help.. thank you! please mark this solve! thank you
  12. Having Compilation error sir
  13. thank you sir! btw i admire your work ! Looking forward to your next invention hehe ^^
  14. same error with ganja.. not working
  15. as the title says.. sorry im newbie in this kind of field.. i know that there is a guide in adding custom skills but for me its complicated.. can someone help me with this one? thank you in advance
  16. Erba

    Help custom skill

    Skill Shortcut F1 - F9 i cant put the skill in it sir.. i already followed that guide bump please? bump please buuuuump pleasseee buuuuuump
  17. Erba

    Help custom skill

    thanks .. now the problem is that i can put it in the skill shortcut tab.. how to deal with it sir?
  18. I followed the the guide on how to add custom skill in the rathena.org/wiki i already added the desired .bmp and .spr in the texture/item and sprite/¾ÆÀÌÅÛ but the problem is this: i already added it in the luafiles/skillinfoz/... still cant be learned.. but when i make the skill usable via item it is now drag able but cant be put in skill shortcut tab how can i fix this? can someone help me please? thank you
  19. Erba

    Earthquake Skill

    i did follow the right source modification for adding custom skills now i successfully added.. WL_INTENSEEARTHQUAKE but the problem is after i add the drop: WL_INTENSEEARTHQUAKE.spr WL_INTENSEEARTHQUAKE.act item: WL_INTENSEEARTHQUAKE.bmp the skill which i made still cannot be drag into the Skill tab? how to fix this?
×
×
  • Create New...