Jump to content

Frhysthia

Members
  • Posts

    52
  • Joined

  • Last visited

Posts posted by Frhysthia

  1. [Debug]: mapindex_name2id: Map "+$TvTMap$[0" not found in index list!
    [Warning]: Unexpected type for argument 4. Expected number.
    [Debug]: Data: variable name='$BlueTeam$' index=0
    [Debug]: Function: warpchar
    [Debug]: Source (NPC): TvTEventStart (invisible/not on a map)
    [Warning]: Unexpected type for argument 4. Expected number.
    [Debug]: Data: variable name='$RedTeam$' index=0
    [Debug]: Function: warpchar
    [Debug]: Source (NPC): TvTEventStart (invisible/not on a map)

    Need some help?

  2. @ t3quila

    Error in compiling.

    skill.c: At top level:

    skill.c:10236: error: expected identifier or '(' before 'if'

    skill.c:10242: error: expected identifier or '(' before 'if'

    skill.c:10247: error: expected identifier or '(' before 'if'

    skill.c:10260: warning: data definition has no type or storage class

    skill.c:10260: warning: type defaults to 'int' in declaration of 'map_freeblock_unlock'

    skill.c:10261: error: expected identifier or '(' before 'return'

    skill.c:10262: error: expected identifier or '(' before '}' token

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

  3.  

    I'm not sure if this fixes it, but try this:

    /* =============================================================
    /* Slot Machine - Triple Slot Machine
    /* =============================================================
    /* Version: v1.9
    /* v0.1 - Original Script Created.
    /* v0.2 - Added Option for Triple Slot Machine with animations.
    /* =============================================================
    /* Description
    /* =============================================================
    /* This script will allow users to spend zeny for a chance to
    /* win a prize from the slot machine. Currently there are 2
    /* versions. First is a Single Slot Machine, where only 1 slot
    /* is rolled. Second is the Triple Slot machine, where 3 slots
    /* are rolled. For either version, SUCCESS must be the only
    /* thing displayed in order to win.
    /* =============================================================
    /* Created By: GmOcean
    /* ===========================================================*/
    
    prontera,152,176,4	script	SlotMachine	563,{
    switch( .mode ){
    	case 0: // Single Slot machine mode.
    		mes "Do you want to play a game?","It costs: "+ .zeny[0] +" zeny to play.";
    		if( select("YES:NO") == 2 || Zeny < .zeny[0] ){ close; }
    		while( @menu == 1 ){
    		Zeny -= .zeny[0];
    		.@a = rand(1,100);
    		if( .@a < atoi(.1animate$[0]) ){ .@a = 1; } else { .@a = 2; }
    		.@b = 1;
    		while( .@b < atoi(.1animate$[.@a]) ) {
    			cutin .1animate$[3] + .@b,4; sleep2 ( ( atoi(.1animate$[4]) * 1000 ) / atoi(.1animate$[.@a]) ); .@b++;
    			}
    		if( .@a == 1 ){ 
    			cutin .1animate$[3] + atoi(.1animate$[.@a]),4;
    			dispbottom "Failed";
    			} 
    		else {
    			cutin .1animate$[3] + atoi(.1animate$[.@a]),4;
    			getitem .1prize[0], .1prize[1];
    			}
    		if( select("Another Round:I am done") == 2 || Zeny < .zeny[0] ){ cutin "",255; close; }
    		}
    	end;
    	
    	case 1: // Triple Slot machine mode.
    		mes "Do you want to play a game?","It costs: "+ .zeny[1] +" zeny to play.";
    		if( select("YES:NO") == 2 || Zeny < .zeny[1] ){ close; }
    		while( @menu == 1 ){
    			Zeny -= .zeny[1];
    			// Slot 1 = 100% Chance for success. (Because I didn't make a fail animation for it.
    			.@2 = rand(1,100); //Rolls dice for Slot 2
    			.@3 = rand(1,100); //Rolls dice for Slot 3
    				if( .@2 <= atoi(.3animate$[0]) && .@3 <= atoi(.3animate$[1]) ){ .@a = 8; }
    				else if( .@2 <= atoi(.3animate$[0]) && .@3 > atoi(.3animate$[1]) ){ .@a = 6; }
    				else if( .@2 > atoi(.3animate$[0]) && .@3 <= atoi(.3animate$[1]) ){ .@a = 4; }
    				else { .@a = 2; }
    			.@b = 1;
    			while( .@b < atoi(.3animate$[.@a+1]) ) {
    				cutin .3animate$[.@a] + .@b,4; sleep2 ( ( atoi(.3animate$[10]) * 1000 ) / atoi(.3animate$[.@a+1]) ); .@b++;
    				}
    			cutin .3animate$[.@a] + atoi(.3animate$[.@a+1]),4;
    				if( .@a == 2 ){ getitem .3prize[0], .3prize[1]; }
    				else { dispbottom "Failed"; }
    			if( select("Another Round:I am done") == 2 || Zeny < .zeny[1] ){ cutin "",255; close; }
    			}
    		end;
    	}
    	
    
    OnInit:
    //[ 0 = Single Slot Machine Mode ]_[ 1 = Triple Slot Machine Mode ]
    .mode = 1;
    //[0] = Fail Rate
    //[1] = Fail (Do not change)
    //[2] = Success (Do not change)
    //[3] = File Name (Do not change)
    //[4] = Animation Time (Do not change, for best results )
    setarray .1animate$[0],"30","29","33","slot_","3";
    //[0] = Fail Rate "Slot 2"
    //[1] = Fail Rate "Slot 3"
    //[2] = SSS (Do not change)
    //[3] = SSS_Count (Do not change)
    //[4] = SSF (Do not change)
    //[5] = SSF_Count (Do not change)
    //[6] = SFS (Do not change)
    //[7] = SFS_Count (Do not change)
    //[8] = SFF (Do not change)
    //[9] = SFF_Count (Do not change)
    //[10] = Animation Time (Do not change, for best results )
    setarray .3animate$[0],"30","30","SSS_","41","SSF_","37","SFS_","41","SFF_","45","3";
    setarray .1prize[0],501,10;
    setarray .3prize[0],501,30;
    setarray .zeny[0],100,300;
    end;
    }
    
    

    (Maybe apostrophes are not allowed in this kind of switch)

    thanks Antares:

    and lastly if its okay? 

    how to lower the success rate?

    cuz its like 8/10 i won..  thank you!

     

     

                .@2 = rand(1,100); //Rolls dice for Slot 2

                .@3 = rand(1,100); //Rolls dice for Slot 3

     

    Change it to :

     

                .@2 = rand(1,50); //Rolls dice for Slot 2

                .@3 = rand(1,50); //Rolls dice for Slot 3

    • Upvote 1
  4. Requesting for Geffen Scroll Script.

     

    12746,Destruction_Scroll,Destruction Scroll,2,20,,10,,,,,0xFFFFFFFF,7,2,,,,,,{},{},{}

    Use this item to increase your physical damage against Angel, Holy, and Boss monsters by 5% for 30 minutes. This effect persists through death.
    12747,Royal_Scroll,Royal Scroll,2,20,,10,,,,,0xFFFFFFFF,7,2,,,,,,{},{},{}

    Use this item to reduce Boss monsters damage by 5% for 30 minutes. This effect persists through death.
    12748,Immune_Scroll,Immune Scroll,2,20,,10,,,,,0xFFFFFFFF,7,2,,,,,,{},{},{}

    Use this item to reduce Neutral damage by 5% for 30 minutes. This effect persists through death.
    12749,Mystic_Scroll,Mystic Scroll,2,20,,10,,,,,0xFFFFFFFF,7,2,,,,,,{},{},{}

    Use this item to increase your magical damage by 5% and decrease casting time by 5%. This effect persists through death.
    12750,Battle_Scroll,Battle Scroll,2,20,,10,,,,,0xFFFFFFFF,7,2,,,,,,{},{},{}

    Use this item to increase your physical damage by 5% and increase ASPD by 5% for 30 minutes. This effect persists through death.
    12751,Armor_Scroll,Armor Scroll,2,20,,10,,,,,0xFFFFFFFF,7,2,,,,,,{},{},{}

    Use this item to increase your Def by 5 and Flee by 10 for 30 minutes. This effect persists through death.
    12752,Prayer_Scroll,Prayer Scroll,2,20,,10,,,,,0xFFFFFFFF,7,2,,,,,,{},{},{}

    Use this item to increase your MDef by 5 and Perfect Dodge by 10 for 30 minutes. This effect persists through death.
    12753,Soul_Scroll,Soul Scroll,2,20,,10,,,,,0xFFFFFFFF,7,2,,,,,,{},{},{} 

    Use this item to increase your MaxHP by 5% and MaxSP by 5% for 30 minutes. This effect persists through death.

     

    Thanks. :)

  5. i tested summon fire , water , lightning, and stone ball, but then.

    this is example, i use summon lightning ball level 1 5times. ..it does not stock 5 lightning balls, it only stock 1 lightning ball,. but when i use level 5 summon lightning ball 5times., it stocks 5 lightning ball, where can i fix this when i cast level 1 summoning stone 5times it will stack 5 stones? thanks to those will help me in advance 

     

    BTW, i solve it on my own.

    skill.c

     

    if( !sctype || j >= skill_lv ) {
    if( sd ) // No free slots to put SC

    clif_skill_fail(sd,skill_id,USESKILL_FAIL_SUMMON,0);
    break;

    to

    if( !sctype || j >= 5 ) {
    if( sd ) // No free slots to put SC
    clif_skill_fail(sd,skill_id,USESKILL_FAIL_SUMMON,0);
    break;

  6. i tested summon fire , water , lightning, and stone ball, but then.

    this is example, i use summon lightning ball level 1 5times. ..it does not stock 5 lightning balls, it only stock 1 lightning ball,. but when i use level 5 summon lightning ball 5times., it stocks 5 lightning ball, where can i fix this when i cast level 1 summoning stone 5times it will stack 5 stones? thanks to those will help me in advance 

     

    Ooops. sorry wrong thread.

  7. Can someone make this script?

    A girlish hairband decorated with little heart wings and laces.
    Decrease 5% of delay after skill, and 10% of SP consumption by skill. And both effect will be increase 3% by each refine 3Lv.
    Class : Headgear
    Defense : 0
    Location : Upper
    Weight : 30
    Required Lv : 50
    Jobs : All

     

    Thanks in advance.

  8. http://svn.code.sf.net/p/rathena/svn/trunk/src/map/status.c

    	// Basic ASPD value
    	i = status_base_amotion_pc(sd,status);
    	status->amotion = cap_value(i,((sd->class_&JOBL_THIRD) ? battle_config.max_third_aspd : battle_config.max_aspd),2000);
    

    edit to:

    	// Basic ASPD value
    	i = status_base_amotion_pc(sd,status);
    	status->amotion = cap_value(i-50,((sd->class_&JOBL_THIRD) ? battle_config.max_third_aspd : battle_config.max_aspd),2000);
    
    

    please tested and say result.

    nothing change.

×
×
  • Create New...