Jump to content

GiovanT

Members
  • Posts

    46
  • Joined

  • Last visited

Posts posted by GiovanT

  1. On 2/9/2025 at 3:43 PM, Sallycantdance said:

    hello is there anyway to add option to this script example i want to add 10 rolls 20 rolls and 50 rolls 

     

     

    try this

    	mes "Grand Prize:[1%]";
        mes "<ITEM>^00bfffC. PVP Ticket ^000000<INFO>61966</INFO></ITEM>";
        next;
    	if(select("Deal me in!:No way...")==2)
            close;
    	
    	switch(select("1x Roll:10x Roll:20x Roll:50x Roll")){
    		case 1:
    			if (countitem(7960) < 5) goto L_Sorry;
    			mes "[ ^FF7700PVP Girl^000000 ]";
    			mes "Here we go...";
    			delitem 7960,5;
    			set .@roll_count, 1;
    			break;
    		case 2:
    			if (countitem(7960) < 5*10) goto L_Sorry;
    			mes "[ ^FF7700PVP Girl^000000 ]";
    			mes "Here we go...";
    			delitem 7960,5*10;
    			set .@roll_count, 10;
    			break;
    		case 3:
    			if (countitem(7960) < 5*20) goto L_Sorry;
    			mes "[ ^FF7700PVP Girl^000000 ]";
    			mes "Here we go...";
    			delitem 7960,5*20;
    			set .@roll_count, 20;
    			break;
    		case 4:
    			if (countitem(7960) < 5*50) goto L_Sorry;
    			mes "[ ^FF7700PVP Girl^000000 ]";
    			mes "Here we go...";
    			delitem 7960,5*50;
    			set .@roll_count, 50;
    			break;
    	}
    	
    	set .@Total,9;
    			setarray .@P1[0],1,61966,1;  // PVP Ticket
    			setarray .@P2[0],50,11501,5; // Light Whites
    			setarray .@P3[0],50,11502,5; // Light Blues        
    			setarray .@P4[0],40,12216,5; // Agi scroll 5x
    			setarray .@P5[0],40,12215,5; // Blessing Scroll 5x        
    			setarray .@P6[0],30,7059,1;  // Kafra Storage            
    			setarray .@P7[0],80,909,1;   // Royal Jelly
    			setarray .@P8[0],100,909,1;  // Royal Jelly
    			setarray .@P9[0],100,909,1;  // Royal Jelly
    	
    	for ( .@i = 1; .@i <= .@roll_count; .@i++) {
    		set .@roll, rand(1, .@Total);
    		
    		while (rand(1, 100) > getd(".@P" + .@roll + "[0]")) {
    			set .@roll, rand(1, .@Total);
        }
    	
        for (set .@j, 1; .@j < getarraysize(getd(".@P" + .@roll)); set .@j, .@j + 2) {
            getitem getd(".@P" + .@roll + "[" + .@j + "]"), getd(".@P" + .@roll + "[" + (.@j + 1) + "]");
            if (!.@k[0]) {
                set .@gz, .@roll;
                setarray .@k[0], getd(".@P" + .@roll + "[" + .@j + "]"), getd(".@P" + .@roll + "[" + (.@j + 1) + "]");
                break;
            }
        }
    	
        if (.@gz && .@gz <= 1) {
            announce "Congratulations! " + strcharinfo(0) + " just received " + getitemname(.@k[0]) + " x " + .@k[1] + " from PVP Gacha NPC", 0;
        }
        specialeffect2 248;
    }
    
    close;

     

  2. 35 minutes ago, Ciel Phantomhive said:

    conf\battle\drops.conf line:77

    set

    item_rate_mvp: 0

    
    // The rate adjustment for the MVP items that the MVP gets directly in their inventory
    // Mode: 0 - official order, 1 - random order, 2 - all items
    item_rate_mvp: 100
    item_drop_mvp_min: 1
    item_drop_mvp_max: 10000
    item_drop_mvp_mode: 0

     

    ty

  3. 30 minutes ago, sader1992 said:

    you can edit the mob_db

    ID,Sprite_Name,kROName,iROName,LV,HP,SP,EXP,JEXP,Range1,ATK1,ATK2,DEF,MDEF,STR,AGI,VIT,INT,DEX,LUK,Range2,Range3,Scale,Race,Element,Mode,Speed,aDelay,aMotion,dMotion,MEXP,MVP1id,MVP1per,MVP2id,MVP2per,MVP3id,MVP3per,Drop1id,Drop1per,Drop2id,Drop2per,Drop3id,Drop3per,Drop4id,Drop4per,Drop5id,Drop5per,Drop6id,Drop6per,Drop7id,Drop7per,Drop8id,Drop8per,Drop9id,Drop9per,DropCardid,DropCardper
     

    MVP1id,MVP1per,MVP2id,MVP2per,MVP3id,MVP3per >> those are the mvp drop

     

    example

    this is moonlight

    1150,MOONLIGHT,Moonlight Flower,Moonlight Flower,67,120000,0,27500,14300,1,1200,1700,10,55,55,99,55,82,95,120,10,12,1,6,63,0x37B5,150,1276,576,288,13750,1022,5000,504,1500,728,500,1477,500,1234,100,1525,150,10008,500,638,650,985,2600,1648,100,0,0,0,0,4131,1

    MVP Drops
    504.gif White Potion (15%) 728.gif Topaz (5%) 1022.gif Nine Tails (50%)

    = 1022,5000,504,1500,728,500

    if you remove the mvp drop it must be like this

    1150,MOONLIGHT,Moonlight Flower,Moonlight Flower,67,120000,0,27500,14300,1,1200,1700,10,55,55,99,55,82,95,120,10,12,1,6,63,0x37B5,150,1276,576,288,13750,0,0,0,0,0,0,1477,500,1234,100,1525,150,10008,500,638,650,985,2600,1648,100,0,0,0,0,4131,1

     

    so

    this is ifrit (from pre-re)

    
    1832,IFRIT,Ifrit,Ifrit,99,7700000,0,3154321,3114520,3,13530,17000,40,50,120,180,25,190,199,50,10,12,2,0,83,0x37B5,130,212,384,360,1577160,603,5500,617,5000,616,2000,994,10000,2677,3000,2678,200,2679,200,1471,2000,1133,2000,2345,100,0,0,0,0,4430,1

    the old blue box = 603,5500

    it will became 

    
    1832,IFRIT,Ifrit,Ifrit,99,7700000,0,3154321,3114520,3,13530,17000,40,50,120,180,25,190,199,50,10,12,2,0,83,0x37B5,130,212,384,360,1577160,0,0,617,5000,616,2000,994,10000,2677,3000,2678,200,2679,200,1471,2000,1133,2000,2345,100,0,0,0,0,4430,1

     

    so the 2nd line is without old blue box

    (edit what you want ,don't copy and paste)

    ofc if you are pre-re edit the 

    rathena-master\db\pre-re\mob_db.txt

    and if you are re edit the

    rathena-master\db\re\mob_db.txt

    and if you use sql edit the sql

    item_db for pre-re

    and item_db_re for re

    lol its so easy haha, thx :0

  4.  

    -	script	#mvp_drop	-1,{
    OnNPCKillEvent:
    if (getmonsterinfo(killedrid,22)) // If mob has MOB_MVPEXP, it's an MVP.
    	if (rand(0) < 0) //chnage % as your needs
    		getitem 603,0;  // your item id here
    }

    still same, i still auto got OBB after kill ifrit

    i dont wanna get that OBB or specific item, i wanna to turn it off

  5. -	script	DayNight	-1,{
    
    OnClock0600:
       announce "Disgusting morning!",bc_blue|bc_all;
       day;
       setbattleflag "base_exp_rate", .bexp_rate*100;
       end;
    OnClock2300:
       announce "Disgusting night!",bc_blue|bc_all;
       night;
       setbattleflag "base_exp_rate", .bexp_rate*100 * 2;
       end;
    OnInit:
       set .bexp_rate, 300; //Change that 300 to your server exp rate
       if(gettime(3)>=6 && gettime(3)<23)
           end;
       else
           night;
    end;
    }

    try that

    • Upvote 1
×
×
  • Create New...