Jump to content

itsmeyoe

Members
  • Posts

    54
  • Joined

  • Last visited

Posts posted by itsmeyoe

  1. Please Help. I want to put penalty when player killing the same person 10x -30 #pvppoints, 1 minute mute then warp save point.

     

    -    script    pvppoint    -1,{
    OnInit:

    set .killaddpoint, 1; //points to add when kill
    set .diedeductpoint, 1; //points to deduct when died
    setarray .points,"#pvppoints","PVP Points";end;

    OnPCKillEvent:
    if(!getmapflag(strcharinfo(3),mf_pvp)) end;

    if(getcharid(3)==killedrid) end;

    set #pvppoints, #pvppoints+.killaddpoint;

    dispbottom "You killed "+rid2name(killedrid)+" you gained "+.killaddpoint+" PVP Points.";
    dispbottom "You got total "+#pvppoints+" Points.";

    attachrid(killedrid);

    set #pvppoints, #pvppoints-.diedeductpoint;

    dispbottom "You are killed by "+rid2name(killerrid)+" you lost "+.diedeductpoint+" PVP Points.";
    dispbottom "You got total "+#pvppoints+" Points.";

    end;

    }
     

  2. This script on my item_db2

    20507,Spirit_of_Wizard,Spirit of Wizard,2,2,,10,,,,,0x00000200,7,2,,,,,,{ if(Class==Job_Wizard||Class==Job_High_Wizard) { delitem 20507,1; callfunc "Linked"; } },{ },{}

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

    function    script    Linked    {
    switch ( basejob ) {
    case Job_Wizard:    set .@spirit, 453; break;
     default:
    if ( upper == 1 && baselevel < 70 )
    set .@spirit, 494;
    }
    if ( .@spirit ) {
     sc_start4 sc_spirit, 360000, 5, .@spirit,0,0;
     specialeffect2 503;
     specialeffect2 6;
     message strcharinfo(0), ""+strcharinfo(0)+" soul is now linked.";
    if (SkillPoint) {
    atcommand "@allskill";
    }
    if (Class == Job_Wizard || Class == Job_High_Wizard) {
    if( getstatus( SC_SPIRIT ) ){
    bonus bMaxHPRate,10;
    }
    }
    }
    end;
    }

    -    script    SKILLZ    -1,{
    OnPCStatCalcEvent:
    if (SkillPoint) {
    atcommand "@allskill";
    }
    if (Class == Job_Wizard || Class == Job_High_Wizard) {
    if( getstatus( SC_SPIRIT ) ){
    bonus bMaxHPRate,10;
    }
    }
    end;
    }

  3. prontera,131,207,5    script    WoE Rank#PvP    421,{
        mes "[ ^FF0000Top 10 WoE Killers^000000 ]";
        if ( .@size  = getarraysize( $topwoe1pvp_name$ ) ) {
            for ( .@i = 0; .@i < .@size; .@i++ )
                mes ""+( .@i +1 )+": ^0000FF"+ $topwoe1pvp_name$[.@i] +"^000000 - ^FF0000"+ $topwoe1pvp_points[.@i] +"^000000 Kill.";
        }
        else
            mes "<empty>";
        close;
    OnPCKillEvent:
        if ( !getmapflag( strcharinfo(3), mf_gvg_castle ) ) end;
        topwoe1pvp_points++;
        .@i = 0;
        while ( .@i < .ladderlength ) {
            if ( topwoe1pvp_points > $topwoe1pvp_points[.@i] ) { // if found
                if ( $topwoe1pvp_name$[.@i] == strcharinfo(0) ) { // update your own points
                    $topwoe1pvp_points[.@i] = topwoe1pvp_points;
                    break;
                }
                else if ( .@i == .ladderlength - 1 ) { // last position of the ladder, just overwrite the value
                    $topwoe1pvp_points[.@i] = topwoe1pvp_points;
                    $topwoe1pvp_name$[.@i] = strcharinfo(0);
                    break;
                }
                // if more points, but somehow its not your own name
                .@j = .@i +1 ; // save the index
                while ( $topwoe1pvp_name$[.@j] != strcharinfo(0) && .@j < .ladderlength ) .@j++;
                if ( .@j < .ladderlength ) // found your name
                    .@moveamount = .@j - .@i; // save amount to move
                else // if not found ...
                    .@moveamount = .ladderlength - 1 - .@i; // means move the whole ladder from the last index
                copyarray $topwoe1pvp_points[.@i +1], $topwoe1pvp_points[.@i], .@moveamount;
                copyarray $topwoe1pvp_name$[.@i +1], $topwoe1pvp_name$[.@i], .@moveamount;
                $topwoe1pvp_points[.@i] = topwoe1pvp_points;
                $topwoe1pvp_name$[.@i] = strcharinfo(0);
                break;
            }
            .@i++;
        }
        end;
    OnInit:
        .ladderlength = 10;
        end;
    }

     

  4. prontera,159,184,3    script    Disc Jockey::dj    756,{
    
    
        emotion e_ho, 1;
        mes "[ Disc Jockey ]";
        mes "You can choose any song you desire for only 1 Bronze Coin.";
        menu "Yes",-,"No",end2;
        if (countitem(673) < 1 ) goto L_NOTENOUGH;
        next;
    
    
        mes "What Song Would you like to play?";
        switch(select("Ignition:Trap Queen:Closer - The Chainsmokers:PPAP:GDFR:Worth It:Nobody's Better:Toxicity:Courtesy Call:Better Days:Song for the Suspect:Californication:7 Years:None")) {
        case 1:
            playBGMall "001";
            announce "[ Now playing Ignition ] - "+strcharinfo(0)+" ",bc_all,0xFFFF00;
            delitem 673,1;
            close;
    
        case 2:
            playBGMall "002";
            announce "Now playing [ Trap Queen ] - "+strcharinfo(0)+" ",bc_all,0xFFFF00;
            delitem 673,1;
            close;
    
        case 3:
            playBGMall "003";
            announce "Now playing [ Closer ] - "+strcharinfo(0)+" ",bc_all,0xFFFF00;
            delitem 673,1;
            close;
    
        case 4:
            playBGMall "004";
            announce "Now playing [ PPAP ] - "+strcharinfo(0)+" ",bc_all,0xFFFF00;
            delitem 673,1;
            close;
    
        case 5:
            playBGMall "005";
            announce "Now playing [ GDFR ] - "+strcharinfo(0)+" ",bc_all,0xFFFF00;
            delitem 673,1;
            close;
    
        case 6:
            playBGMall "006";
            announce "Now playing [ Worth IT ] - "+strcharinfo(0)+" ",bc_all,0xFFFF00;
            delitem 673,1;
            close;
    
    
        case 7:
            playBGMall "007";
            announce "Now playing [ Nobody's Better ] - "+strcharinfo(0)+" ",bc_all,0xFFFF00;
            delitem 673,1;
            close;
    
        case 8:
            playBGMall "008Toxicity";
            announce "Now playing [ Toxicity ] - "+strcharinfo(0)+" ",bc_all,0xFFFF00;
            delitem 673,1;
            close;
    
        case 9:
            playBGMall "009Courtesy Call";
            announce "Now playing [ Courtesy Call ] - "+strcharinfo(0)+" ",bc_all,0xFFFF00;
            delitem 673,1;
            close;
    
        case 10:
            playBGMall "010Better days";
            announce "Now playing [ Better Days ] - "+strcharinfo(0)+" ",bc_all,0xFFFF00;
            delitem 673,1;
            close;
    
        case 11:
            playBGMall "013Song For The Suspect";
            announce "Now playing [ Song for the Suspect ] - "+strcharinfo(0)+" ",bc_all,0xFFFF00;
            delitem 673,1;
            close;
    
        case 12:
            playBGMall "015Californication";
            announce "Now playing [ Californication ] - "+strcharinfo(0)+" ",bc_all,0xFFFF00;
            delitem 673,1;
            close;
    
        case 13:
            playBGMall "0167 years";
            announce "Now playing [ 7 Years ] - "+strcharinfo(0)+" ",bc_all,0xFFFF00;
            delitem 673,1;
            close;
    
    
        case 14:
            mes "Okay Bye Cya Later";
            close;
    
    end2:
    next;
        mes "[ Disc Jockey ]";
        mes "Okay...Maybe next time!~";
        mes "Come back again.";
        close;
    L_NOTENOUGH:
        next;
        mes "[ Disc Jockey ]";
        mes "You need Bronze Coin if you want your song to be played.";
            close;
            }
    
    
        }
    
    morocc,171,99,4    duplicate(dj)    Disc Jockey    756

     

  5. Here is the code for demon i don't know how to input the Ghost property


     




    case UNT_MAGNUS:
    if (!battle_check_undead(tstatus->race,tstatus->def_ele) && tstatus->race!=RC_DEMON)
    break;
    skill_attack(BF_MAGIC,ss,&unit->bl,bl,sg->skill_id,sg->skill_lv,tick,0);
    break;

  6. 
    

    if (!battle_check_undead(tstatus->race,tstatus->def_ele) && tstatus->race!=RC_DEMON && tstatus->race!=RC_GHOST 

    
    

    skill.c: In function 'skill_castend_pos2':

    skill.c:11539: warning: suggest parentheses around '&&' within '||'

    skill.c:11540: error: 'skillid' undeclared (first use in this function)

    skill.c:11540: error: (Each undeclared identifier is reported only once

    skill.c:11540: error: for each function it appears in.)

    skill.c: In function 'skill_unit_onplace_timer':

    skill.c:13298: error: 'RC_GHOST' undeclared (first use in this function)

    make[1]: *** [obj/skill.o] Error 1

    make[1]: Leaving directory `/root/trunk/src/map'

    make: *** [map] Error 2

  7. About snap is this right or wrong? 

    case MO_BODYRELOCATION:
    if( sc && sc->data[SC_CLOSECONFINE2] || sc->data[SC_ANKLE] || sc->data[SC_SPIDERWEB] ){
    clif_skill_fail(sd,skillid,USESKILL_FAIL_LEVEL,0);
    }

     

    if player has been closeconfine/anklesnare/spiderweb he/she can't use snap skill?

  8. i coded magnus exorcismus like this one, if someone use ghostring & evil druid it will damage you.

     

    original is this

    if (!battle_check_undead(tstatus->race,tstatus->def_ele) && tstatus->race!=RC_DEMON)

    and i made it like this one

    if (!battle_check_undead(tstatus->race,tstatus->def_ele) && tstatus->race!=RC_DEMON||RC_GHOST)

    or it should be like this?

    if (!battle_check_undead(tstatus->race,tstatus->def_ele) && tstatus->race!=RC_DEMON && tstatus->race!=RC_GHOST)

    Thank you for helping me :)

  9. I want this script to be like this

    Each players can use this NPC 10x every 24 hours after that it will reload again to 0/10 then

    when you click the npc it will show Lotti Girl Use 10/10 after you use it. 

    Next it will say 

    You can't use Lotti Girl now comeback tomorrow.

     



    prontera,163,193,5 script Lotti Girl 719,{
    mes "[Lotti Girl]";
    mes "It costs ["+.Price+"] Zeny to play.";
    mes "This are the list of prizes:";
    mes "1 Bronze Coin, 1 Silver Coin, 1 Gold Coin, 1 Mithril Coin, 2 Convex Mirror and 3 TCG for the JACKPOT!";
    if (Zeny < .Price) end;
    next;
    if(select("Deal me in!:No way...")==2) end;
    mes "[Lotti Girl]";
    mes "Here we go...";
    progressbar "",2;
    set Zeny, Zeny-.Price;
    set .@i, rand(1,.Total);
    if (rand(1,100) > getd(".P"+.@i+"[0]")) {
    for(set .@j,0; .@j<getarraysize(.Default); set .@j,.@j+2) {
    getitem .Default[.@j], .Default[.@j+1];
    if (!.@k[0]) setarray .@k[0], .Default[.@j], .Default[.@j+1]; } }
    else {
    for(set .@j,1; .@j<getarraysize(getd(".P"+.@i)); set .@j,.@j+2) {
    getitem getd(".P"+.@i+"["+.@j+"]"), getd(".P"+.@i+"["+(.@j+1)+"]");
    if (!.@k[0]) setarray .@k[0], getd(".P"+.@i+"["+.@j+"]"), getd(".P"+.@i+"["+(.@j+1)+"]"); } }
    //announce "Congratulations to "+strcharinfo(0)+" for getting "+.@k[1]+"x "+getitemname(.@k[0])+"!",0;
    specialeffect2 248;
    end;
    OnInit:
    // Format: <%>,<item ID>,<count>{,...};
    setarray .P1[0],50,675,1; //Baphomet Card 1 PC 50%
    setarray .P2[0],50,671,1; //Alice Apron 50%
    setarray .P3[0],50,674,1; //Cursed Baphomet Doll 5 pcs 40%
    setarray .P4[0],2,7199,10; //Berry Ticket
    setarray .P4[0],2,7227,3; //TCG
    //setarray .P5[0],2,12214,3; //Convex Mirror 1pc
    setarray .Default[0],673,1; //convex mirror default 1pcs
    //setarray .Cost[0],6242,1; // 1pcs Woe coinrequired para makalaro sa lotti
    .Price = 10000000;
    set .Total,8;
    end;
    }

  10. Hi guys i need help i put global_reg_value in phpmyadmin so that when i break emp 'brokeemp' will go inside global_reg_value but the main problem is the View Breaker Ladder got 0 - points in ranking, and if i check emperium break points it still show me how many points i have.

     

    here is the query:

    do i still need to make a insert into in agit_main? if yes can you make one?

    OnAgitBreak:
    set brokeemp,brokeemp+1;
    query_sql "SELECT `char`.char_id,`char`.`name`,global_reg_value.`value` FROM global_reg_value LEFT JOIN `char` ON global_reg_value.char_id=`char`.char_id WHERE global_reg_value.str='brokeemp' ORDER BY CAST(`global_reg_value`.`value` AS UNSIGNED) DESC LIMIT 10", .@char_id, .@name$, .@count;

    Thanks in advance

×
×
  • Create New...