Jump to content

Patskie

Members
  • Posts

    1702
  • Joined

  • Last visited

  • Days Won

    18

Posts posted by Patskie

  1. Go to config/error.php :

    Find these :

    $showExceptions  = false;              // Whether or not to show exceptions (only applies to error.php)
    

    Set to

    $showExceptions  = true;              // Whether or not to show exceptions (only applies to error.php)
    

    Submit all errors here and we can help you.

  2. Hello rAthena, I have problem with this piece of codes. It's working though and you can strip a player even he/she is in fcp. But the chance is 100%. Can anyone edit this code to 20% chance.

    
    //Special message when trying to use strip on FCP [Jobbie]
    if( sd && skillid == ST_FULLSTRIP && tsc && tsc->data[sC_CP_WEAPON] && tsc->data[sC_CP_HELM] && tsc->data[sC_CP_ARMOR] && tsc->data[sC_CP_SHIELD])
    {
    clif_gospel_info(sd, 0x28);
    break;
    }
    if ( sd && tsc && sd->sc.data[sC_SPIRIT] && sd->sc.data[sC_SPIRIT]->val2 == SL_ROGUE &&
    ( skillid == RG_STRIPWEAPON && tsc->data[sC_CP_WEAPON] ||
    skillid == RG_STRIPSHIELD && tsc->data[sC_CP_SHIELD] ||
    skillid == RG_STRIPARMOR && tsc->data[sC_CP_ARMOR] ||
    skillid == RG_STRIPHELM && tsc->data[sC_CP_HELM] ) ) {
    int item_id = 7139; // Glistening Coat
    int ii;
    ARR_FIND( 0, MAX_INVENTORY, ii, sd->status.inventory[ii].nameid == item_id );
    if ( ii < MAX_INVENTORY ) {
    pc_delitem( sd, ii, 1, 0, 0, LOG_TYPE_CONSUME);
    switch ( skillid ) {
    case RG_STRIPWEAPON:
    status_change_end( bl, SC_CP_WEAPON, INVALID_TIMER );
    sc_start( bl, SC_STRIPWEAPON, 100, skilllv, d );
    break;
    case RG_STRIPSHIELD:
    status_change_end( bl, SC_CP_SHIELD, INVALID_TIMER );
    sc_start( bl, SC_STRIPSHIELD, 100, skilllv, d );
    break;
    case RG_STRIPARMOR:
    status_change_end( bl, SC_CP_ARMOR, INVALID_TIMER );
    sc_start( bl, SC_STRIPARMOR, 100, skilllv, d );
    break;
    case RG_STRIPHELM:
    status_change_end( bl, SC_CP_HELM, INVALID_TIMER );
    sc_start( bl, SC_STRIPHELM, 100, skilllv, d );
    break;
    }
    clif_skill_nodamage( src, bl, skillid, skilllv, i );
    break;
    }
    }
    

  3. on your trunk/src/map/skill.c

    Remove these lines of codes

    clif_damage(d_bl, d_bl, gettick(), 0, 0, damage, 0, 0, 0);
    status_fix_damage(NULL, d_bl, damage, 0);
    

    And add these line of codes

    bool devo_flag = false; /* false = paladin devoing; true = player */
    if ( src )
    {
    struct status_change *tsc;
    tsc = status_get_sc(src);
    
    /* Per official standards, following skills should reflect at the bl */
    if( (tsc->data[sC_KAITE] && attack_type == BF_MAGIC) ||
    (tsc->data[sC_REFLECTDAMAGE] && attack_type != BF_MAGIC)
     )
    devo_flag = true;
    }
    
    clif_damage(
    ( (devo_flag) ? bl:d_bl),  
    ( (devo_flag) ? bl:d_bl), gettick(), 0, 0, damage, 0, 0, 0);
    status_fix_damage(
    ( (devo_flag) ? bl:NULL),  
    ( (devo_flag) ? bl:d_bl), damage, 0, 0);
    

    Recompile your server. I never tested it. Try for yourself. DON'T FORGET TO BACK UP YOUR FILES.

  4. I need help regarding the source because i don't know how to modify the following, i am using r17026 and the following are my concern :

    1. Every time the clown / gypsy cast slow grace or please don't forget me everything is affected even the guild mates / party mates and also the caster.

    2. Regarding the union skill how can i remove the hp formula?

    3. How to add lord of vermilion and parrying level 10 when star gladiator is linked?

    I saw lots of posts regarding my concern yet it doesn't fix my concern. Anyone here who's willing to help me? :l

  5. When i link my clown / gypsy then i use please don't forget me skill it affects all people including the caster. Is there any way i can do to prevent this instead when the caster use please don't forget me. The only people who will receive the slow effect are the enemies? Sorry for my bad english. And i don't know if this is the right section. Please correct me if i am wrong. More power rAthena. /no1

  6. I know that the official behavior of the union skill is to drain hp everytime they hit. Can i revised those formula which is responsible for the hp drain to sp drain? So that every time the star gladiator hit an enemy hp will not be drained from them instead sp will do drain. Sorry for my bad english. Anyone can help me with this stuff? Thanks in advance. More power rAthena :P

  7. I have a dice script here. Works fine, the only problem is when there is a winner. NPC didn't show. Anyone who can give or help me out with this script?

    Here's my script :

    
    //##########################################################################
    //By: ____					_	  __		__		   ____	_____  #
    //   |	\   ___ __	__ _ | |	 \ \	  / /_  _   _  / ___\  / ____| #
    //   | ||  | / _ \\ \  / /| || |	  \ \	/ /| || \ | || | ___ | (___   #
    //   | ||  ||  __/ \ \/ / | || |__	 \ \/\/ / | ||  \| || |___|\ \___ \  #
    // __|____/__\___|__\__/__|_||____|_____\_/\_/__|_||_|\__|_\_____/_____) | #
    //|_____________________________________________________________________/  #
    //																		 #
    //##########################################################################
    //																		 #
    //== Dice Event															#
    //																		 #
    //##########################################################################
    //																		 #
    //== Automatically starts a dice event every 30 minutes of every hour	  #
    //																		 #
    //== Prize- Change 13723 to any item ID you want the winner to recieved	#
    //																		 #																		
    //##########################################################################
    
    - script Dice#announcer -1,{
    
    OnInit:
    disablenpc "prtevent";
    hideonnpc "Dice#evnt1";
    end;
    
    OnMinute30:
    announce "Dice: We are going to have a Dice event.",0;
    sleep2 10000;
    announce "Dice: For those who wants to join, Please proceed to the center of Prontera and enter the Warp Portal.",0;
    sleep2 10000;
    announce "Dice: After 1 Minute the Portal will close.",0;
    sleep2 10000;
    announce "Dice: So please go to the middle of Prontera and enter the Warp Portal now if you want to join.",0;
    enablenpc "prtevent";
    initnpctimer;
    end;
    
    OnTimer30000:
    announce "Dice: Last 30 seconds.",0;
    sleep2 5000;
    announce "Dice: If you want to join please enter the Warp Portal beside me here in Prontera.",0;
    end;
    
    OnTimer50000:
    announce "Dice: Last 10 seconds.",0;
    end;
    
    OnTimer55000:
    announce "Dice: 5.",0;
    end;
    
    OnTimer56000:
    announce "Dice: 4.",0;
    end;
    
    OnTimer57000:
    announce "Dice: 3.",0;
    end;
    
    OnTimer58000:
    announce "Dice: 2.",0;
    end;
    
    OnTimer59000:
    announce "Dice: 1.",0;
    end;
    
    OnTimer60000:
    announce "Dice: Time's up.",0;
    end;
    
    OnTimer61000:
    disablenpc "prtevent";
    donpcevent "Dice#evnt1::OnEnable";
    stopnpctimer;
    end;
    
    OnTimer62000:
    announce "Dice: The next Dice event will begin after 30 minutes.",0;
    end;
    }
    
    //--------------------------------------------------
    
    prontera,155,182,0 warp prtevent 2,2,quiz_01,204,90
    
    //--------------------------------------------------
    
    quiz_01,204,93,6 script Dice#evnt1 715,{
    
    //--------------------------------------------------
    
    mes "[Dice]";
    mes "Please tell me your name";
    next;
    input .@name$;
    if(.@name$ != strcharinfo(0)) {
    mes "[Dice]";
    mes "Are you sure thats your character name?";
    close;
    }
    mes "[Dice]";
    mes "Congrats. You've won.";
    close2;
    announce "Dice: We have a winner, "+.@name$+".",0;
    getitem 7227,10;
    warp "prontera",155,185;
    disablenpc "Dice#evnt1";
    end;
    
    OnEnable:
    mapannounce "quiz_01","Dice: We are about to start the Dice event.",0;
    sleep2 10000;
    mapannounce "quiz_01","Dice: But before we start the event here's how to play the game. . .",0;
    sleep2 10000;
    mapannounce "quiz_01","Dice: I'm only gonna say this once so read carefully.",0;
    sleep2 10000;
    mapannounce "quiz_01","Dice: I'm going to pick a number, 1 to 4. Then I'll do a count down from 5 to 0.",0;
    sleep2 10000;
    mapannounce "quiz_01","Dice: All you have to do is go to the box of the number you want.",0;
    sleep2 10000;
    mapannounce "quiz_01","Dice: Example, If I get the number of 4, All the players standing on numbers 1 to 3 will be warped back to town.",0;
    sleep2 10000;
    mapannounce "quiz_01","Dice: We will do it again and again until we only have 1 player left on the map.",0;
    sleep2 10000;
    mapannounce "quiz_01","Dice: Oh yeah! Before I forget you MUST GO INSIDE THE BOX, because if you're caught standing on the stairs you'll be automatically disqualified.",0;
    sleep2 10000;
    mapannounce "quiz_01","Dice: That's that.. Now let's play...",0;
    sleep2 10000;
    goto L_Start;
    end;
    
    L_Start:
    if(getmapusers("quiz_01") == 1) goto L_Champ;
    if(getmapusers("quiz_01") == 0) goto L_None;
    if(getmapusers("quiz_01") > 1) {
    announce "Dice: . . . . .",0;
    set $@number, rand(1,4);
    sleep2 10000;
    announce "Dice: I have a number now. Please go to the box of the number you want.... GO!",0;
    sleep2 10000;
    announce "Dice: 5",0;
    sleep2 5000;
    announce "Dice: 4",0;
    sleep2 4000;
    announce "Dice: 3",0;
    sleep2 3000;
    announce "Dice: 2",0;
    sleep2 2000;
    announce "Dice: 1",0;
    sleep2 1000;
    announce "Dice: Time's up.",0;
    donpcevent "evnt#1::OnEnable";
    announce "Dice: Winning number "+$@number+".",0;
    if(($@number != 1) && ($@number != 2) && ($@number != 3)) goto L_Lose1;
    if(($@number != 1) && ($@number != 2) && ($@number != 4)) goto L_Lose2;
    if(($@number != 1) && ($@number != 3) && ($@number != 4)) goto L_Lose3;
    if(($@number != 2) && ($@number != 3) && ($@number != 4)) goto L_Lose4;
    end;
    }
    
    L_Lose1:
    areawarp "quiz_01",183,81,191,60,"prontera",155,182;
    areawarp "quiz_01",195,81,203,60,"prontera",155,182;
    areawarp "quiz_01",207,81,215,60,"prontera",155,182;
    goto L_Start;
    end;
    
    L_Lose2:
    areawarp "quiz_01",183,81,191,60,"prontera",155,182;
    areawarp "quiz_01",195,81,203,60,"prontera",155,182;
    areawarp "quiz_01",219,81,227,60,"prontera",155,182;;
    goto L_Start;
    end;
    
    L_Lose3:
    areawarp "quiz_01",183,81,191,60,"prontera",155,182;
    areawarp "quiz_01",207,81,215,60,"prontera",155,182;
    areawarp "quiz_01",219,81,227,60,"prontera",155,182;
    goto L_Start;
    end;
    
    L_Lose4:
    areawarp "quiz_01",195,81,203,60,"prontera",155,182;
    areawarp "quiz_01",207,81,215,60,"prontera",155,182;
    areawarp "quiz_01",219,81,227,60,"prontera",155,182;
    goto L_Start;
    end;
    
    L_Champ:
    mapannounce "quiz_01","Dice: Come to me and tell me your name.",0;
    hideoffnpc "Dice#evnt1";
    end;
    
    L_None:
    disablenpc "Dice#evnt1";
    end;
    }
    
    - script evnt#1 -1,{
    
    OnEnable:
    areawarp "quiz_01",182,94,228,88,"prontera",155,182;
    areawarp "quiz_01",185,87,188,82,"prontera",155,182;
    areawarp "quiz_01",197,87,200,82,"prontera",155,182;
    areawarp "quiz_01",209,87,212,82,"prontera",155,182;
    areawarp "quiz_01",221,87,224,82,"prontera",155,182;
    end;
    }
    

×
×
  • Create New...