Jump to content

Jaburak

Members
  • Posts

    1125
  • Joined

  • Days Won

    31

Posts posted by Jaburak

  1. Try this;

    prontera,200,180,4	script	Prize Sender Test	123,{
    if(!getgmlevel())end;
    set .@itemtoonlineplayers$,strcharinfo(0);
    
    mes "Input Item ID";
    	Input .@item;
    	if (getitemname(.@item) == "null") {
    		mes "Invalid Item ID";
    		close;
    	}
    
    mes "Input Amount";
    	input .@inum;
    	if( .@inum <= 0  ) {
    		mes "Invalid Amount";
    		close;
    	}
    
    	while( .@V < $PlayerNumber ){
    		set .@V,.@V+1;
    		message getd("$RecordAID"+.@V),"[[[ System ]]] : "+.@itemtoonlineplayers$+" give you "+getitemname(.@item)+"x"+.@inum;
    		getitem .@item,.@inum,getd("$RecordAID"+.@V);
    	}
    
    close;
    }
    
    -	script	PrizeSenderEvent	-1,{
    OnInit:
    	if(!getusers(1))while($PlayerNumber)setd "$RecordAID"+(set($PlayerNumber,
    
    $PlayerNumber-1)+1),0;
    	end;
    
    OnPCLoginEvent:
    	setd "$RecordAID"+set(@AIDNumber,set($PlayerNumber,$PlayerNumber+1)),getcharid(3);
    	end;
    
    OnPCLogoutEvent:
    	setd "$RecordAID"+@AIDNumber,getd("$RecordAID"+(set(.@AIDNumber,set($PlayerNumber,
    
    $PlayerNumber-1)+1)));
    	attachrid getd("$RecordAID"+@AIDNumber);
    	setd "$RecordAID"+@AIDNumber,0;
    	set @AIDNumber,.@AIDNumber;
    
    }
  2. set #questpoints,#questpoints+1;

     

    prontera,200,180,1    script    Test    853,{
    
    query_sql "SELECT `account_id`,`value` FROM `global_reg_value` WHERE `str` = '#questpoints' ORDER BY CAST(`value` AS UNSIGNED) DESC LIMIT 20",.@aid,.@var;
                    for(set .@i,0;.@aid[.@i];set .@i,.@i+1)
                        mes "AID:"+.@aid[.@i]+" | VALUES: ^FF0000"+.@var[.@i]+"^000000";
                    close;
            }
    }
    
  3. Set the prizes first.

     

        setarray .Package1[0],501,1,502,2,503,3;
        setarray .Package2[0],601,5,602,10;
        setarray .Package3[0],607,10;

    Talk to the npc then input the player name then select the package.

    After that; the player need to talk to the NPC to get the reward.

  4. Edit:

     

    -    script    poringwin    -1,{
    
    
    OnMobKilled:
        dispbottom "Poring : مبروك لقد نلت مني ^^";
        set PORING,1;
        atcommand "@doommap";
        killmonster "poring_w01","All";
        mapannounce "poring_w01","Poring Catcher : تعال و قل لي أسمك",0;
        hideoffnpc "Poring Catcher#evnt2";
        end;
    }
    

    To:

     

    -    script    poringwin    -1,{
    
    
    OnMobKilled:
        dispbottom "Poring : مبروك لقد نلت مني ^^";
        set PORING,1;
        atcommand "@doommap";
        killmonster "poring_w01","All";
        mapannounce "poring_w01","Poring Catcher : تعال و قل لي أسمك",0;
        hideoffnpc "Poring Catcher#evnt2";
        enablenpc "Poring Catcher#evnt2";
        end;
    }

     

    You can also try this one; http://rathena.org/board/files/file/2742-poring-catcher/

  5. src/map/config/renewal.h

    /// game renewal server mode
    /// (disable by commenting the line)
    ///
    /// leave this line to enable renewal specific support such as renewal formulas
    //#define RENEWAL << Comment
    /// renewal cast time
    /// (disable by commenting the line)
    ///
    /// leave this line to enable renewal casting time algorithms
    /// cast time is decreased by DEX * 2 + INT while 20% of the cast time is not reduced by stats.
    /// example:
    /// on a skill whos cast time is 10s, only 8s may be reduced. the other 2s are part of a
    /// "fixed cast time" which can only be reduced by specialist items and skills
    //#define RENEWAL_CAST << Comment
    /// renewal drop rate algorithms
    /// (disable by commenting the line)
    ///
    /// leave this line to enable renewal item drop rate algorithms
    /// while enabled a special modified based on the difference between the player and monster level is applied
    /// based on the http://irowiki.org/wiki/Drop_System#Level_Factor table
    //#define RENEWAL_DROP << Comment
    /// renewal exp rate algorithms
    /// (disable by commenting the line)
    ///
    /// leave this line to enable renewal item exp rate algorithms
    /// while enabled a special modified based on the difference between the player and monster level is applied
    //#define RENEWAL_EXP << Comment
    /// renewal cast time variable cast requirement
    ///
    /// this is the value required for no variable cast-time with stats.
    /// formula: (DEX * 2) + INT
    /// default: 530
    #define RENEWAL_CAST_VMIN 530
    
    • Upvote 2
  6. db/cash_shop_db2.txt

    // This file contains the items sold in the ingame cash shop
    //
    // The structure of the file is
    // type, item ID, price
    //
    // type:
    //    0: New
    //    1: Hot
    //    2: Limited
    //    3: Rental
    //    4: Gear
    //    5: Buff
    //    6: Heal
    //    7: Other
    //
    // price:
    //    price of the defined item in cash points
    
    
    0,2357,100
    
×
×
  • Create New...