Jump to content

cook1e

Members
  • Posts

    129
  • Joined

  • Last visited

  • Days Won

    4

Posts posted by cook1e

  1. prontera,155,173,5	script	Healer	123,{
    [email protected] = 1000; // Zeny Cost
    
    mes "[Healer]";
    mes "Hello " + strcharinfo(0) + ".";
    mes "What you want?";
    next;
    	switch(select("Free Healer:Paid Healer"))
    	{
    		case 1:
    			mes "[Healer]";
    			mes "You only will get Heal.";
    				switch(select("Yes, please.:No, thanks."))
    				{
    					case 1:
    							specialeffect2 EF_HEAL2;
    							percentheal 100,100;
    							close;
    					case 2:
    							mes "As you wish.";
    							close;
    				}
    		case 2:
    			mes "[Healer]";
    			mes "Paid Healer will give you Heal + Buffs.";
    				switch(select("Yes, please.:No, thanks."))
    				{
    					case 1:
    						if (Zeny < [email protected]) end;
    							specialeffect2 EF_HEAL2;
    							percentheal 100,100;
    							specialeffect2 EF_INCAGILITY;
    							sc_start SC_INCREASEAGI,240000,10;
    							specialeffect2 EF_BLESSING;
    							sc_start SC_BLESSING,240000,10;
    							Zeny -= [email protected];
    							close;
    					case 2:
    							mes "As you wish.";
    							close;
    				}
    		}
    }

     

    • Love 1
  2.   - Id: 368
        Name: PA_SACRIFICE
        Description: Martyr's Reckoning
        MaxLevel: 5
        Type: Weapon
        TargetType: Self
        DamageFlags:
          NoDamage: true
          IgnoreAtkCard: true
          IgnoreDefense: true
          IgnoreFlee: true
        Flags:
          IgnoreAutoGuard: true
          IgnoreCicada: true
        Hit: Single
        HitCount: 1
        CastCancel: true
        CopyFlags:
          Skill:
            Plagiarism: true
            Reproduce: true
        Requires:
          SpCost: 100

    this?

  3. #   Trade:                  Trade restrictions. (Default: null)
    #     Override              Group level to override these conditions.
    #     NoDrop                If the item can not be dropped. (Default: false)
    #     NoTrade               If the item can not be traded. (Default: false)
    #     TradePartner          If the item can not be traded to the player's partner. (Default: false)
    #     NoSell                If the item can not be sold. (Default: false)
    #     NoCart                If the item can not be put in a cart. (Default: false)
    #     NoStorage             If the item can not be put in a storage. (Default: false)
    #     NoGuildStorage        If the item can not be put in a guild storage. (Default: false)
    #     NoMail                If the item can not be put in a mail. (Default: false)
    #     NoAuction             If the item can not be put in an auction. (Default: false)

    example.
     

      - Id: ID
        AegisName: ITEM_NAME
        Name: ITEM_NAME
        Type: TYPE
        Trade:
          NoDrop: true
          NoTrade: true
          NoSell: true
          NoCart: true
          NoGuildStorage: true
          NoMail: true
          NoAuction: true

     

  4. Let me know how it went.

    /npc/custom/custom_mob.txt // create custom_mob.txt as a clean .txt file

    // format "map",x,y%TAB%monster%TAB%Monster Name%TAB%,MonsterID,amount
    custom_map,0,0	monster	Poring	1002,30


    and 

    /npc/scripts_custom.conf

    npc: npc/custom/custom_mob.txt

    add this line

    • Upvote 1
  5. 18 hours ago, Rizz said:

    Other class still can access the shop 😅

    ssss.jpg.781a66c2d5c3784962a515ded3c6af20.jpg

    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", [email protected];
    if ([email protected]) {
    callshop "fame_shop";
    }else{
    dispbottom "you don't have fame points.";
    }
    end;
    }

     

  6. .unique_id$ = get_unique_id();

    to

    [email protected]_unique_id$ = get_unique_id();

     

    On 6/24/2021 at 11:15 PM, cook1e said:
    //new_1-4,145,179,4	script	Freebies Reward	691,{
    	[email protected]_unique_id$ = get_unique_id();
    
    	if(getd("$ID_" + [email protected]_unique_id$) > 0 || #N > 0){
    		mes "[ Reward NPC ]";
    		mes "You have already claimed your reward.";
    		close;
    	}
    	mes "[ Reward NPC ]";
    	mes "Here's your reward. Have a nice day!";
    	setd "$ID_" + [email protected]_unique_id$,1;
    	#N = 1;
    	$reward_count -= 1;
    	for([email protected] = 0; [email protected] < getarraysize(.rewards); [email protected] += 2)
    		getitem .rewards[[email protected]],.rewards[[email protected]+1];
    	if($reward_count == 0)
    		$reward_status = 1;
    	end;
    	
    OnInit:
    	setarray .rewards,50000,1,12535,20,12534,20,13550,20,3100,100,13758,1;
    	while (1) {
    	showscript "Freebies Rental NPC!";
    	sleep 1000;
    	}
    	end;
    }

    I think changing the unique_id variable can solve your problem, try it.

     

  7. //new_1-4,145,179,4	script	Freebies Reward	691,{
    	[email protected]_unique_id$ = get_unique_id();
    
    	if(getd("$ID_" + [email protected]_unique_id$) > 0 || #N > 0){
    		mes "[ Reward NPC ]";
    		mes "You have already claimed your reward.";
    		close;
    	}
    	mes "[ Reward NPC ]";
    	mes "Here's your reward. Have a nice day!";
    	setd "$ID_" + [email protected]_unique_id$,1;
    	#N = 1;
    	$reward_count -= 1;
    	for([email protected] = 0; [email protected] < getarraysize(.rewards); [email protected] += 2)
    		getitem .rewards[[email protected]],.rewards[[email protected]+1];
    	if($reward_count == 0)
    		$reward_status = 1;
    	end;
    	
    OnInit:
    	setarray .rewards,50000,1,12535,20,12534,20,13550,20,3100,100,13758,1;
    	while (1) {
    	showscript "Freebies Rental NPC!";
    	sleep 1000;
    	}
    	end;
    }

    I think changing the unique_id variable can solve your problem, try it.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use and Privacy Policy.