Jump to content

Erba

Members
  • Posts

    550
  • Joined

  • Last visited

  • Days Won

    1

Posts posted by Erba

  1. 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;
    
    
  2. 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

     

     

    I dont know how to make diff patches.

    tested on r16797

     

    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.

     

  3. 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

  4. 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

     

    34o5z6s.png


    bump


    bump

  5. 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

  6. 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:

     

    n5plar.png

     

    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

  7. 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? 

  8. in my phpmyadmin i granted all the permission 

     

    for the second one i cant fine the file for me to check the spaces even if i follow the path

     

    the last one.. actually im poor with php or any website related stuff.. can you teach me how to fix this? thank you for your reply

  9. I am having problem with these:

     

    [03-Dec-2013 01:39:31 UTC] PHP Warning:  Unknown: Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/tmp) in Unknown on line 0
    
    [03-Dec-2013 01:39:59 UTC] PHP Warning:  Unknown: open(/tmp/sess_228e9698cb93dcc449b6e0585c6acd4d, O_RDWR) failed: No space left on device (28) in Unknown on line 0
    
    [03-Dec-2013 08:34:20 UTC] PHP Notice:  Undefined offset: 0 in /home/alapakapa61/public_html/lib/Flux/Template.php on line 1161
    

    this is the content of my Template.php on line 1161

    		else if (count($jobs) === count($equipJobs) - 1 && !in_array($equipJobs[0], $jobs)) {
    

    how to fix this one? :(

×
×
  • Create New...