Jump to content

Rizz

Members
  • Posts

    72
  • Joined

  • Last visited

Posts posted by Rizz

  1. On 6/28/2021 at 2:33 AM, cook1e said:

    Only Blacksmith/Whitesmith can open this shop, working for me.

    
    -	shop	fame_shop	-1,501:-1,502:-1,503:-1,504:-1
    prontera,156,168,5	script	fame shop	123,{
    query_sql "SELECT `fame` FROM `char` WHERE `fame`>0 AND (`class`='10' OR `class`='4011') ORDER BY `fame` DESC LIMIT 10", .@fame;
    if (.@fame) {
    callshop "fame_shop";
    }else{
    dispbottom "you don't have fame points.";
    }
    end;
    }

     

    I have tested it, but it does not work on me, other class can access the shop.?
    Thanks for helping.

  2. On 6/25/2021 at 1:54 PM, cook1e said:

    Try this one.
     

    
    -	shop	fame_shop	-1,501:-1,502:-1,503:-1,504
    prontera,156,168,5	script	fame shop	123,{
    query_sql "SELECT `fame` FROM `char` WHERE `fame`>0 AND (`class`='10') ORDER BY `fame` DESC LIMIT 10", .@fame;
    if (.@fame) {
    callshop "fame_shop";
    }else{
    dispbottom "you don't have fame points.";
    }
    end;
    }

    Thanks for the response. I have tested it but the other class can access the shop ?

     

     

  3. On 1/21/2021 at 11:20 PM, Mastagoon said:

    if you're talking about a certain boss monster, like a quest monster or so you can spawn that monster with a script and execute the reward command on the death trigger

    for example:

    
    -   script  boss_summoner   -1,{
    
    
    OnMobDead:
        addrid(1);
        getitem 909,1;
        end;
    
    OnInit:
        monster .map$,"--ja--",1002,1,strnpcinfo(3)+"::OnMobDead";
        end;
    }

    if you're talking about all the field & dungeon boss monsters that spawn naturally, then you can try this:

    
    -   script  boss_rewards   -1,{
    
    
    OnNPCKillEvent:
        if(getmonsterinfo(killedrid, MOB_MVPEXP) > 1) {
            addrid(1);
            getitem 909,1;
        }
        end;
    }

     

    Thank you so much for the response, I will test it first

  4. Hello, I have tested a script made by Emistry called Usable Enchant item. However, the script doesn't work properly in latest Ra. For that reason, I ask a help to create or modify the existing script so that It can enchant 3rd hidden slot with a specific status stone like STR+1 etc to specific headgear/equipment. 

    For example an item like Magic Scroll can be used to enchant Hat [1] with random Status stone.

     

    // usage:
    // callfunc( "F_DiabloEnchant",<delete item id>,<bonus item id> );
    
    function	script	F_DiabloEnchant	{
    	.@itemid = getarg( 0,0 );
    	.@enchant = getarg( 1,0 );
    	if ( .@itemid && .@enchant ) {
    		for ( .@i = EQI_HEAD_TOP; .@i < EQI_ACC_R; .@i++ ) {
    			.@equip_itemid = getequipid( .@i );
    			.@menu$ = .@menu$ + ( .@equip_itemid == -1 ? "": getitemname( .@equip_itemid ) ) + ":";
    		}
    		.@i = select( .@menu$ );
    		.@equip_itemid = getequipid( .@i );
    		.@equip_refine = getequiprefinerycnt( .@i );
    		for ( .@c = 0; .@c < 4; .@c++ ) 
    			.@card[.@c] = getequipcardid( .@i,.@c );
    		
    		if ( .@card[0] && .@card[0] < 4001 ) {
    			mes "Signed Item can't be enchanted.";
    		}
    		// else if ( .@card[3] ) {
    			// mes "This item has been enchanted. Cant enchant twice.";
    		// }
    		else {
    			delequip .@i;
    			delitem .@itemid,1;
    			.@card[3] = .@enchant;
    			getitem2 .@equip_itemid,1,1,.@equip_refine,0,.@card[0],.@card[1],.@card[2],.@card[3];
    			// equip2 .@equip_itemid,.@equip_refine,0,.@card[0],.@card[1],.@card[2],.@card[3];
    			specialeffect2 154;
    			message strcharinfo(0),"Enchant Success!";
    		}
    		close;
    	}
    	return;
    }



     

  5. Hello, I found a party drop script made by llchrisll, however I need a help to modify this script only give the drop share within screen 15x15 area so the party member outside the screen can't leech. 

    Moreover, this scripts uses general drop chance, would you like to help me changing this into specific one?
    For example:
    OnInit:
    setarray .drop_id[0],15378, // Lava Leather Armor - 2% chance
                         15379, // Lava Leather Suit - 5%
                         15380, // Lava Leather Robe - 2%

     

    //==================================================
    // Party Drop Script
    //==================================================
    mag_dun03,0,0,0	script	#MagmaF3_Drop	-1,{
    
    OnMagma3MobDead:
    if(getcharid(1)) {
        getpartymember getcharid(1),1;
        getpartymember getcharid(1),2;
        
        for ( .@p = 0; .@p < $@partymembercount; .@p++)
            if(attachrid($@partymemberaid[.@p],$@partymembercid[.@p]) == 1) {
                if(strcharinfo(3) != strnpcinfo(4)) continue;
                if(rand(1,10000) >= (10000 - .chance)) 
                    getitem .drop_id[rand(getarraysize(.drop_id))],1;
            }
    
    } else {
    	if(rand(1,10000) >= (10000 - .chance)) 
    		getitem .drop_id[rand(getarraysize(.drop_id))],1;
    }
    end;
    
    OnInit:
    setarray .drop_id[0],15378, // Lava Leather Armor
    					 15379, // Lava Leather Suit
    					 15380, // Lava Leather Robe
    					 20935, // Lava Leather Manteau
    					 20936, // Lava Leather Muffler
    					 20937, // Lava Leather Hood
    					 22199, // Lava Leather Boots
    					 22200, // Lava Leather Shoes
    					 22201; // Lava Leather Sandals
    // ==== Drop Settings ====
    // Multiply the Drop Chance below with the Server Drop Chance for Equipment
    // 1 = Yes
    // 0 = No
    .battleconf_drop = 0;
    // General Drop Chance
    .drop = 50; // 50 = 0.5%
    // Calculation
    .chance = .drop * ( (.battleconf_drop)?( (getbattleflag("item_rate_equip")%100 > 0)? (getbattleflag("item_rate_equip")/100):1):1);
    end;
    }

     

  6. Hello, I have a problem in altering Dancer's Ugly Dance/Hip Shaker skill, I would like to make this skill works like Bard's Dissonance. I tried to modify the skill.cpp like this:
     

    	if (battle_check_target(src, target, flag) > 0) {
    		switch (skill_id) {
    			// Attack type songs
    		case BA_DISSONANCE:
    		case DC_UGLYDANCE:
    			skill_attack(BF_MAGIC, src, src, target, skill_id, skill_lv, tick, 0);
    			return 1;

    However, this modification is not worked in the game. If anyone know how to modify it, please help me ?

  7. Thanks for your help Haruka ?

    May I ask one more question?

    How to add partycheck in this script, since I always got an error (missing curlys) when I added one . For example

    prontera,141,181,4	script	PvP Warper	10210,{
    
    	.@npc$ = "["+strnpcinfo(0)+"]";
    	if (getcharid(1) == 0){
    	mes "^ff0000To enter, you must create or join a party of 1 or more members.^000000";
    	close;
    	}
    	mes .@npc$;
    	mes "Would you like to enter the PvP Room?";
    	next;
    	switch(select("Enter Room [Current Users ~ "+getmapusers("pvp_n_1-1")+" ~]:Leave")) {	// Change pvp_y_2-2 into your PvP Map
    	
    		case 1:
    			warp "pvp_n_1-1",0,0;	// Change pvp_y_2-2 into your PvP Map
    			end;
    			
    		case 2:
    			close;
    	}
    	end;
    }

     

     

  8. Hi guys, I tried to make an npc which can teleport a player as long as he is in a party. If player doesnt, they cant use the warper.
    However, I always got an error which told me that I failed to put a curly in my script.

     

    prontera,145,199,4	script	Struggler	10059,{
    	if (getcharid(1) == 0){
    		mes "^ff0000To enter, you must create or join a party of 1 or more members.^000000";
    		close;
    	}
    	else {
    		mes .@npc$;
    		mes "Would you like to enter the dungeon?";
    		close2;
    		warp "chalo2",70,114;
    		end;
    	}
    }

    I hope anyone can tell me where my mistake is. Thank you.

  9. Hello, I have a problem in defining skill damage in skilldamage_db.txt. I want to edit skill damage which will take effect in every map.
     
    Previously I put this in skilldamage_db.txt:
    MO_FINGEROFFENSIVE,1,15,-60,-60,-60

    However, it didn't affect the town/main town map or the reduction didn't occur in the town. It only affected the normal (?), pvp, gvg, and battleground maps.
    I hope someone tell me ragarding the solution

  10. Hello, previously I tried to apply refineUI based on Cydh and other fellow rathena contributor works (https://github.com/rathena/rathena/compare/master...cydh:feature/refineui_bs_blessing).
    I successfully enable the refineUI, however, after compiling I got these errors.

    errors.jpg.7d8c52b32576a4892b1b98209c5a5150.jpg

     

    I tried my best to fix it, but I failed to understand where my mistakes are.

    Moreover, when testing the refineUI, I got other problems:
    1. Every oridecon/elunium types give 100% success chance regardless the refine level (+10 still give 100%).
    2. There is no option to use ordinary oridecon/elunium (I can only use HD ori/elu, Blessed ore, and Old enriched).
    3. I can use HD oridecon and elunium without following the item restriction. It should be available when the weapon surpasses +7, but I can use it even my weapon is +1.
    4. The blacksmith blessing does not occur in refineUI option.
    5. I always got this notification when compiling: 1>e:\fantasmagorica\server\lapine cdh\project lapine\src\map\pc.hpp(919): warning C4005: 'pc_cant_act': macro redefinition
    It happened after I put:
    #define pc_cant_act(sd)       ( (sd)->npc_id || (sd)->state.vending || (sd)->state.buyingstore || (sd)->chatID || ((sd)->sc.opt1 && (sd)->sc.opt1 != OPT1_BURNING) || (sd)->state.trading || (sd)->state.storage_flag || (sd)->state.prevend || (sd)->state.lapine_ui )
    #define pc_cant_act(sd)       ( (sd)->npc_id || (sd)->state.vending || (sd)->state.buyingstore || (sd)->chatID || ((sd)->sc.opt1 && (sd)->sc.opt1 != OPT1_BURNING) || (sd)->state.trading || (sd)->state.storage_flag || (sd)->state.prevend || (sd)->state.refineui_open ) --->> this

     


    screenrAthena000.thumb.jpg.f02d7664f8edc06c53435d126900ebbd.jpg
    -----------------------
    screenrAthena001.thumb.jpg.245c5f4a13e9bb3c7a4d762b2265793c.jpg

    Here my src files that have been edited. I hope someone can tell me what should I do with these errors. Thanks in advance.
    1.clif.cpp
    2.status.cpp
    3. status.hpp
    4.skill.cpp
    5.pc.cpp
    6.pc.hpp

  11. Hello, I'd like to change several skill-based on kRO update, those skills are:

    -Bowling Bash: Will hit 4 times when mobs are more than 3.
    -Chain Combo: Having a 200% damage increase and 6 hits if players using knuckle.
    -BackStab: No longer need to be cast behind the target, will hit twice if using the dagger.
    -Crazy uppoar, Assumptio, Suffragium, Impositio manus, and song-based skills work to the user and nearby party members. (works like Gloria/Clementia etc)

    However, I am still confused about where should I edit in src. Any helps or directions given are appreciated. ?

×
×
  • Create New...