Jump to content

coconutswt

Members
  • Posts

    32
  • Joined

  • Last visited

Posts posted by coconutswt

  1. I got some error in line 27

    [Error]:
    script error on npc/custom/job.txt line 27
        parse_simpleexpr: unmatch ')'
        22 :        mes "[Job Master]";
        23 :        if (Class > 4049) {
        24 :                mes "No more jobs are available.";
        25 :                close;
        26 :        }
    *   27 :        if (checkfalcon() || checkcart() || checkriding() || ismounting'
    (')) {
        28 :                mes "Please remove your "+((checkfalcon())?"falcon":"")+
    ((checkcart())?"cart":"")+((checkriding())?"Peco":"")+((ismounting())?"mount":""
    )+" before proceeding.";
        29 :                close;
        30 :        }
        31 :        if (.SkillPointCheck && SkillPoint) {
        32 :                mes "Please use all your skill points before proceeding.

  2. first :

    1. I want a simple disguise event but it will announce the disguise event when it want to start ( disguise event start every 1 hours )

    2. i want a simple daily rewards , it will give you :  day 1 ( 5 poring coin ) , day 2 ( 10 poring coin ) , day 3 ( 15 poring coin ) , day 4 ( 20 poring coin ) , day 5 ( 25 poring coin )+ bonus 5 poring coin , but when player login in day 1 and not login in day 2 , it will count back as day 1 prize for next login

     

     

    Sorry my english was bad , i' hope you can help me

  3. prontera,155,170,4 script Ore Exchanger 100,{
    
    mes "^3363A6[ Ore Exchanger ]^000000";
    mes "Hello, dear Adventure! How can i help you?";
    next;
    menu "Exchange Bronze Coins 2 Silver Coins", BrC2SiC,
    "Exchange Silver Coins 2 Gold Coins", SiC2GoC,
    "Exchange Gold Coins 2 Platinum Coins", GoC2PlC;
    
    BrC2SiC:
    mes "^3363A6[ Ore Exchanger ]^000000";
    mes "I want to note, that 1 Silver Coin cost 10 Brozne Coins, so do you want to continue?";
    next;
    if( select( "No, i want to leave", "Yes, exchange please" ) == 1 ) {
    mes "^3363A6[ Ore Exchanger ]^000000";
    mes "So, see you next time, and good luck!";
    close;
    }
    if( countitem(673) < 1 ) {
    mes "^3363A6[ Ore Exchanger ]^000000";
    mes "Excuse me, but you have no even 1 Bronze Coin... Come back later.";
    emotion e_sry;
    close;
    }
    if( countitem(673) < 10 ) {
    mes "^3363A6[ Ore Exchanger ]^000000";
    mes "Excuse me, but you dont have enought Bronze Coins to exchange for our today course. You must have at least 10 Bronze Coins.";
    close;
    }
    mes "^3363A6[ Ore Exchanger ]^000000";
    mes "Do you want to exchange all your Bronze Coins or just step by step 10 to 1?";
    next;
    switch( select( "Exchange all my Bronze Coins", "Exchange 10 to 1" ) ) {
    case 1:
    //set .@curr_bc_count, countitem(673);
    set .@exchanged_coins, ( countitem(673) / 10 );
    mes "^3363A6[ Ore Exchanger ]^000000";
    mes "Here you are!";
    delitem 673, .@exchanged_coins * 10;
    getitem 675, .@exchanged_coins;
    close;
    
    case 2:
    mes "^3363A6[ Ore Exchanger ]^000000";
    mes "Here you are!";
    delitem 673, 10;
    getitem 675, 1;
    close;
    }
    
    SiC2GoC:
    mes "^3363A6[ Ore Exchanger ]^000000";
    mes "I want to note, that 1 Gold Coin cost 10 Silver Coins, so do you want to continue?";
    next;
    if( select( "No, i want to leave", "Yes, exchange please" ) == 1 ) {
    mes "^3363A6[ Ore Exchanger ]^000000";
    mes "So, see you next time, and good luck!";
    close;
    }
    if( countitem(675) < 1 ) {
    mes "^3363A6[ Ore Exchanger ]^000000";
    mes "Excuse me, but you have no even 1 Bronze Coin... Come back later.";
    emotion e_sry;
    close;
    }
    if( countitem(675) < 10 ) {
    mes "^3363A6[ Ore Exchanger ]^000000";
    mes "Excuse me, but you dont have enought Silver Coins to exchange for our today course. You must have at least 10 Silver Coins.";
    close;
    }
    mes "^3363A6[ Ore Exchanger ]^000000";
    mes "Do you want to exchange all your Bronze Coins or just step by step 10 to 1?";
    next;
    switch( select( "Exchange all my Silver Coins", "Exchange 10 to 1" ) ) {
    case 1:
    //set .@curr_gc_count, countitem(675);
    set .@exchanged_coins, ( countitem(675) / 10 );
    mes "^3363A6[ Ore Exchanger ]^000000";
    mes "Here you are!";
    delitem 675, .@exchanged_coins * 10;
    getitem 671, .@exchanged_coins;
    close;
    
    case 2:
    mes "^3363A6[ Ore Exchanger ]^000000";
    mes "Here you are!";
    delitem 675, 10;
    getitem 671, 1;
    close;
    }
    
    GoC2PlC:
    mes "^3363A6[ Ore Exchanger ]^000000";
    mes "I want to note, that 1 Platinum Coin cost 10 Gold Coins, so do you want to continue?";
    next;
    if( select( "No, i want to leave", "Yes, exchange please" ) == 1 ) {
    mes "^3363A6[ Ore Exchanger ]^000000";
    mes "So, see you next time, and good luck!";
    close;
    }
    if( countitem(671) < 1 ) {
    mes "^3363A6[ Ore Exchanger ]^000000";
    mes "Excuse me, but you have no even 1 Bronze Coin... Come back later.";
    emotion e_sry;
    close;
    }
    if( countitem(671) < 10 ) {
    mes "^3363A6[ Ore Exchanger ]^000000";
    mes "Excuse me, but you dont have enought Silver Coins to exchange for our today course. You must have at least 10 Silver Coins.";
    close;
    }
    mes "^3363A6[ Ore Exchanger ]^000000";
    mes "Do you want to exchange all your Gold Coins or just step by step 10 to 1?";
    next;
    switch( select( "Exchange all my Gold Coins", "Exchange 10 to 1" ) ) {
    case 1:
    //set .@curr_pc_count, countitem(671);
    set .@exchanged_coins, ( countitem(671) / 10 );
    mes "^3363A6[ Ore Exchanger ]^000000";
    mes "Here you are!";
    delitem 671, .@exchanged_coins * 10;
    getitem 677, .@exchanged_coins;
    close;
    
    case 2:
    mes "^3363A6[ Ore Exchanger ]^000000";
    mes "Here you are!";
    delitem 671, 10;
    getitem 677, 1;
    close;
    }
    }
    
    

    Can anyone give me a little change to this script , i want this script to exchange :

     

    1. 30 silver ore = 1 silver coin

    2. 20 gold ore = 1 gold coin

    3. 10 mithril ore = 1 mithril coin

  4. That's weird, why would it freeze? What's your revision #?

     

    can you give this mining script with difference drop ( id: 7232 , id: 7231 , id: 7233 ) with 35% drop on mithril_ore , 45% drops on gold_ore , 55% on silver_ore  and place it in prontera and without buy pickaxe

     

    I HOPE YOU CAN GIVE ME THIS SCRIPT , THANKS

  5. buka folder src/renewal

     

    buka file: renewal.h pake notepad boleh. trus, di comment "#define RENEWAL" nya, jadi:

    //#define RENEWAL
    //#define RENEWAL_CAST
    dst..
    

    trus, recompile. kl udh, smua konfigurasinya hrs di pre-re. (mksdnya yang di folder db sama di folder npc)

    recompile itu gmn ? bisa lebih mendetail , trs folder db ama folder npc yang mana aja ?

  6. prontera,155,170,4    script    Ore Exchanger    100,{
    
        mes "^3363A6[ Ore Exchanger ]^000000";
        mes "Hello, dear Adventure! How can i help you?";
        next;
        menu    "Exchange " + getitemname(7757) + " to Coins",    ExMithril2Coins,
                "Exchange " + getitemname(7233) + " to Coins",    ExMithrilOre2Coins;
                
            ExMithril2Coins:
                if( countitem(7757) < 1 ) {
                    mes "^3363A6[ Ore Exchanger ]^000000";
                    mes "You dont have event 1 " + getitemname(7757) + "...";
                    emotion e_heh;
                    close;
                }
                if( countitem(7757) < 10 ) {
                    mes "^3363A6[ Ore Exchanger ]^000000";
                    mes "Minimum exchange rate is: " + getitemname(7757) + " x 10 to " + getitemname(673) + " x 1 ";
                    close;
                }
                switch( select( "Exchange to Bronze Coin", "Exchange to Silver Coin", "Exchange to Gold Coin", "Exchange to Mithril Coin" ) ) {
                    case 1:
                    if( countitem(7757) < 10 ) {
                        mes "^3363A6[ Ore Exchanger ]^000000";
                        mes "Oops, where is your items? You need 10 " + getitemname(7757) + " at least...";
                        close;
                    }
                    delitem 7757, 10;
                    getitem 673, 1;
                    mes "^3363A6[ Ore Exchanger ]^000000";
                    mes "Here you are!";
                    close;
                    
                    case 2:
                    if( countitem(7757) < 20 ) {
                        mes "^3363A6[ Ore Exchanger ]^000000";
                        mes "Oops, where is your items? You need 20 " + getitemname(7757) + " at least...";
                        close;
                    }
                    delitem 7757, 20;
                    getitem 675, 1;
                    mes "^3363A6[ Ore Exchanger ]^000000";
                    mes "Here you are!";
                    close;
                    
                    case 3:
                    if( countitem(7757) < 30 ) {
                        mes "^3363A6[ Ore Exchanger ]^000000";
                        mes "Oops, where is your items? You need 30 " + getitemname(7757) + " at least...";
                        close;
                    }
                    delitem 7757, 30;
                    getitem 671, 1;
                    mes "^3363A6[ Ore Exchanger ]^000000";
                    mes "Here you are!";
                    close;
                    
                    case 4:
                    if( countitem(7757) < 50 ) {
                        mes "^3363A6[ Ore Exchanger ]^000000";
                        mes "Oops, where is your items? You need 50 " + getitemname(7757) + " at least...";
                        close;
                    }
                    delitem 7757, 50;
                    getitem 674, 1;
                    mes "^3363A6[ Ore Exchanger ]^000000";
                    mes "Here you are!";
                    close;
                }
                
            ExMithrilOre2Coins:
                if( countitem(7233) < 1 ) {
                    mes "^3363A6[ Ore Exchanger ]^000000";
                    mes "You dont have event 1 " + getitemname(7233) + "...";
                    emotion e_heh;
                    close;
                }
                if( countitem(7233) < 20 ) {
                    mes "^3363A6[ Ore Exchanger ]^000000";
                    mes "Minimum exchange rate is: " + getitemname(7233) + " x 10 to " + getitemname(673) + " x 1 ";
                    close;
                }
                switch( select( "Exchange to Bronze Coin", "Exchange to Silver Coin", "Exchange to Gold Coin", "Exchange to Mithril Coin" ) ) {
                    case 1:
                    if( countitem(7233) < 20 ) {
                        mes "^3363A6[ Ore Exchanger ]^000000";
                        mes "Oops, where is your items? You need 20 " + getitemname(7233) + " at least...";
                        close;
                    }
                    delitem 7233, 20;
                    getitem 673, 1;
                    mes "^3363A6[ Ore Exchanger ]^000000";
                    mes "Here you are!";
                    close;
                    
                    case 2:
                    if( countitem(7233) < 30 ) {
                        mes "^3363A6[ Ore Exchanger ]^000000";
                        mes "Oops, where is your items? You need 30 " + getitemname(7233) + " at least...";
                        close;
                    }
                    delitem 7233, 30;
                    getitem 675, 1;
                    mes "^3363A6[ Ore Exchanger ]^000000";
                    mes "Here you are!";
                    close;
                    
                    case 3:
                    if( countitem(7233) < 50 ) {
                        mes "^3363A6[ Ore Exchanger ]^000000";
                        mes "Oops, where is your items? You need 50 " + getitemname(7233) + " at least...";
                        close;
                    }
                    delitem 7233, 50;
                    getitem 671, 1;
                    mes "^3363A6[ Ore Exchanger ]^000000";
                    mes "Here you are!";
                    close;
                    
                    case 4:
                    if( countitem(7233) < 60 ) {
                        mes "^3363A6[ Ore Exchanger ]^000000";
                        mes "Oops, where is your items? You need 60 " + getitemname(7233) + " at least...";
                        close;
                    }
                    delitem 7233, 60;
                    getitem 674, 1;
                    mes "^3363A6[ Ore Exchanger ]^000000";
                    mes "Here you are!";
                    close;
                }
                
    }
    

    I want to make it to change :

    <ammount><id> to <ammount><id>

    10 , 7232 , to 1 , 675

    10 , 7231 , to 1 , 671

    10 , 7233 , to 1 , 674

  7. Does your server have item id 6010? Or you hanged when the shop was currently opened and you bought pickaxes?

    yes when the store opens to buy a pickaxe, my char can not move

     

    and i have id 6010 ( pickaxe/ hoe ) my server is renewal

    can you give this mining script with difference drop ( id: 7232 , id: 7231 , id: 7233 ) with 35% drop on mithril_ore , 45% drops on gold_ore , 55% on silver_ore  and place it in prontera

  8.  

     

    You're asking two different things, if you are asking what is said on your title, the script below would broadcast everytime a player kills an MvP

    -	script	MvPannounce	-1,{
    
    OnNPCKillEvent:
    	if(getmonsterinfo(killedrid,22) > 0) {
    		announce strcharinfo(0)+" just killed "+getmonsterinfo(killedrid,0)+"!",0;
    	}
    end;
    
    }
    

    when i load this , script error -_-

     

    sorry my bad , i change tab to space

    can you give me script MvP announce that can displaye <name> <MvP> < duration MvP will respawn>

  9.  

    You're asking two different things, if you are asking what is said on your title, the script below would broadcast everytime a player kills an MvP

    -	script	MvPannounce	-1,{
    
    OnNPCKillEvent:
    	if(getmonsterinfo(killedrid,22) > 0) {
    		announce strcharinfo(0)+" just killed "+getmonsterinfo(killedrid,0)+"!",0;
    	}
    end;
    
    }
    

    when i load this , script error -_-

  10. prontera,100,200,3	script	Coin Trader	90,{
    
    mes .Npc_Name$;
    mes "What do you want to do today "+strcharinfo(0)+"?";
    menu "Exchange Zeny to "+getitemname(.Coin_Cfg[0]),L_zc,"Exchange "+getitemname(.Coin_Cfg[0])+" to Zeny",L_cz;
    L_zc:
    	next;
    	mes .Npc_Name$;
    	if(.CDelay && CDelay < gettimetick(2)) {
    		mes "You can only exchange coins every 1 hr!";
    		close;				
    		}
    	mes "How much "+getitemname(.Coin_Cfg[0])+" do you need?";
    	mes getitemname(.Coin_Cfg[0])+" costs "+.Coin_Cfg[2]+"z";
    	input .@coin;
    	if(Zeny/.Coin_Cfg[2] < .@coin || !.@coin) goto L_NotEnough;
    	next;
    	mes .Npc_Name$;
    	mes "Here you go!";
    	set Zeny,Zeny-(.@coin*.@Coin_Cfg[2]);
    	getitem .Coin_Cfg[0],.@coin;
    	CDelay = gettimetick(2)+.Coin_Cfg[3];
    	close;
    
    L_cz:
    	next;
    	mes .Npc_Name$;
    	mes "I can buy your "+getitemname(.Coin_Cfg[0])+" for "+.Coin_Cfg[1]+"z a piece, how much would you want to sell?";
    	input .@coin;
    	if(countitem(.Coin_Cfg[0]) < .@coin || !.@coin) goto L_NotEnough;
    	next;
    	mes .Npc_Name$;
    	mes "Here you go!";
    	delitem .Coin_Cfg[0],.@coin;
    	set Zeny,Zeny+(.@coin*.@Coin_Cfg[1]);
    	close;
    	
    L_NotEnough:
    mes .Npc_Name$;
    mes "Are you trying to fool me?";
    close;
    
    
    OnInit:
    	set .Npc_Name$,"[^0000FF "+strnpcinfo(1)+" ^000000]";
    	
    	setarray .Coin_Cfg[0],674,1000000,1050000,3600;
    	/* Configure the coin id, conversion rate, and delay using the array above
    	Defaults:
    		.Coin_Cfg[0] = Item ID of Coin (Mithril Coin)
    		.Coin_Cfg[1] = Coin to Zeny Rate (1m)
    		.Coin_Cfg[2] = Zeny to Coin Rate (1.05m)
    		.Coin_Cfg[3] = Delay when exchanging Zeny to Coins*/
    	
    	//Enable Delay? Default: 1hr.
    	.CDelay = 1;
    end;
    }
    

    Edit to your liking

     

    no , this is not the script i looking for , but i'm looking for script ore exchanger that can exchange ore from sanbox mining NPC

  11. //	Simple Ore Excange to coconutswt, user of rAthena community
    //	============================================================
    prontera,155,170,4	script	Ore Exchanger	100,{
    
    	mes "^3363A6[ Ore Exchanger ]^000000";
    	mes "Hello, dear Adventure! How can i help you?";
    	next;
    	menu	"Exchange " + getitemname(7757) + " to Coins",	ExMithril2Coins,
    			"Exchange " + getitemname(7233) + " to Coins",	ExMithrilOre2Coins;
    			
    		ExMithril2Coins:
    			if( countitem(7757) < 1 ) {
    				mes "^3363A6[ Ore Exchanger ]^000000";
    				mes "You dont have event 1 " + getitemname(7757) + "...";
    				emotion e_heh;
    				close;
    			}
    			if( countitem(7757) < 10 ) {
    				mes "^3363A6[ Ore Exchanger ]^000000";
    				mes "Minimum exchange rate is: " + getitemname(7757) + " x 10 to " + getitemname(673) + " x 1 ";
    				close;
    			}
    			switch( select( "Exchange to Bronze Coin", "Exchange to Silver Coin", "Exchange to Gold Coin", "Exchange to Mithril Coin" ) ) {
    				case 1:
    				if( countitem(7757) < 10 ) {
    					mes "^3363A6[ Ore Exchanger ]^000000";
    					mes "Oops, where is your items? You need 10 " + getitemname(7757) + " at least...";
    					close;
    				}
    				delitem 7757, 10;
    				getitem 673, 1;
    				mes "^3363A6[ Ore Exchanger ]^000000";
    				mes "Here you are!";
    				close;
    				
    				case 2:
    				if( countitem(7757) < 20 ) {
    					mes "^3363A6[ Ore Exchanger ]^000000";
    					mes "Oops, where is your items? You need 20 " + getitemname(7757) + " at least...";
    					close;
    				}
    				delitem 7757, 20;
    				getitem 675, 1;
    				mes "^3363A6[ Ore Exchanger ]^000000";
    				mes "Here you are!";
    				close;
    				
    				case 3:
    				if( countitem(7757) < 30 ) {
    					mes "^3363A6[ Ore Exchanger ]^000000";
    					mes "Oops, where is your items? You need 30 " + getitemname(7757) + " at least...";
    					close;
    				}
    				delitem 7757, 30;
    				getitem 671, 1;
    				mes "^3363A6[ Ore Exchanger ]^000000";
    				mes "Here you are!";
    				close;
    				
    				case 4:
    				if( countitem(7757) < 50 ) {
    					mes "^3363A6[ Ore Exchanger ]^000000";
    					mes "Oops, where is your items? You need 50 " + getitemname(7757) + " at least...";
    					close;
    				}
    				delitem 7757, 50;
    				getitem 674, 1;
    				mes "^3363A6[ Ore Exchanger ]^000000";
    				mes "Here you are!";
    				close;
    			}
    			
    		ExMithrilOre2Coins:
    			if( countitem(7233) < 1 ) {
    				mes "^3363A6[ Ore Exchanger ]^000000";
    				mes "You dont have event 1 " + getitemname(7233) + "...";
    				emotion e_heh;
    				close;
    			}
    			if( countitem(7233) < 20 ) {
    				mes "^3363A6[ Ore Exchanger ]^000000";
    				mes "Minimum exchange rate is: " + getitemname(7233) + " x 10 to " + getitemname(673) + " x 1 ";
    				close;
    			}
    			switch( select( "Exchange to Bronze Coin", "Exchange to Silver Coin", "Exchange to Gold Coin", "Exchange to Mithril Coin" ) ) {
    				case 1:
    				if( countitem(7233) < 20 ) {
    					mes "^3363A6[ Ore Exchanger ]^000000";
    					mes "Oops, where is your items? You need 20 " + getitemname(7233) + " at least...";
    					close;
    				}
    				delitem 7233, 20;
    				getitem 673, 1;
    				mes "^3363A6[ Ore Exchanger ]^000000";
    				mes "Here you are!";
    				close;
    				
    				case 2:
    				if( countitem(7233) < 30 ) {
    					mes "^3363A6[ Ore Exchanger ]^000000";
    					mes "Oops, where is your items? You need 30 " + getitemname(7233) + " at least...";
    					close;
    				}
    				delitem 7233, 30;
    				getitem 675, 1;
    				mes "^3363A6[ Ore Exchanger ]^000000";
    				mes "Here you are!";
    				close;
    				
    				case 3:
    				if( countitem(7233) < 50 ) {
    					mes "^3363A6[ Ore Exchanger ]^000000";
    					mes "Oops, where is your items? You need 50 " + getitemname(7233) + " at least...";
    					close;
    				}
    				delitem 7233, 50;
    				getitem 671, 1;
    				mes "^3363A6[ Ore Exchanger ]^000000";
    				mes "Here you are!";
    				close;
    				
    				case 4:
    				if( countitem(7233) < 60 ) {
    					mes "^3363A6[ Ore Exchanger ]^000000";
    					mes "Oops, where is your items? You need 60 " + getitemname(7233) + " at least...";
    					close;
    				}
    				delitem 7233, 60;
    				getitem 674, 1;
    				mes "^3363A6[ Ore Exchanger ]^000000";
    				mes "Here you are!";
    				close;
    			}
    			
    }
    
    

    And dont forget about this: prontera,155,170,4%TAB%script%TAB%Ore Exchanger%TAB%100,{

     

    when i click exchange mithril ore to coins , it appear : minimum exchange rate is : mithril ore x 10 bronze coin x 1 , why ? I have 10 mithril coin in my inventory

  12. I want to create a script for converting ore into (bronze, silver, gold, mithril) coins, like this:
    10 Mithril = 1 bronze coin

    20 Mithril = 1 silver coin

    30 Mithril = 1 gold coin

    50 = 1 Mithril Mithril coin


    20 Mithril ore = 1 bronze coin

    30 Mithril ore = 1 silver coin

    40 Mithril ore = 1 gold coin

      60 Mithril ore = 1 Mithril coin


    explanation:
      Mithril I mean the 7757 (Mithril) & 7233 (Mithril ore)

    is this enough?

     

    sorry my english is very bad

  13. Omg, did you see errors? And i 100% sure, that this %TAB%s

    Use next syntax:

     

    prontera,155,170,4%TAB%script%TAB%Ore Exchanger%TAB%100,{

     

    and all work...

    and one more thing: please, dont write posts with sence as anyone here owe you anything, no help for lazy people or without correct information

     

    if this freeware community - please respect others work

    oke thanks about that , but this script not what i'm looking for

    why 10 bronze = 1 silver coins ? that not what i want to . I have coin exchanger to in my server

    sorry because my english was bad

  14.  

    Hm... How does this script must look like? Any suggestions or anything else? And 50 mithril = 1 mithril coin?? What the crap? :)

     

    so, simple exchanger:

    //    Simple Ore Excange to coconutswt, user of rAthena community
    //    ============================================================
    prontera,155,170,4    script    Ore Exchanger    100,{
    
        mes "^3363A6[ Ore Exchanger ]^000000";
        mes "Hello, dear Adventure! How can i help you?";
        next;
        menu    "Exchange Bronze Coins 2 Silver Coins",    BrC2SiC,
                "Exchange Silver Coins 2 Gold Coins",    SiC2GoC,
                "Exchange Gold Coins 2 Platinum Coins",    GoC2PlC;
                
            BrC2SiC:
                mes "^3363A6[ Ore Exchanger ]^000000";
                mes "I want to note, that 1 Silver Coin cost 10 Brozne Coins, so do you want to continue?";
                next;
                if( select( "No, i want to leave", "Yes, exchange please" ) == 1 ) {
                    mes "^3363A6[ Ore Exchanger ]^000000";
                    mes "So, see you next time, and good luck!";
                    close;
                }
                if( countitem(673) < 1 ) {
                    mes "^3363A6[ Ore Exchanger ]^000000";
                    mes "Excuse me, but you have no even 1 Bronze Coin... Come back later.";
                    emotion e_sry;
                    close;
                }
                if( countitem(673) < 10 ) {
                    mes "^3363A6[ Ore Exchanger ]^000000";
                    mes "Excuse me, but you dont have enought Bronze Coins to exchange for our today course. You must have at least 10 Bronze Coins.";
                    close;
                }
                mes "^3363A6[ Ore Exchanger ]^000000";
                mes "Do you want to exchange all your Bronze Coins or just step by step 10 to 1?";
                next;
                switch( select( "Exchange all my Bronze Coins", "Exchange 10 to 1" ) ) {
                    case 1:
                    //set .@curr_bc_count, countitem(673);
                    set .@exchanged_coins, ( countitem(673) / 10 );
                    mes "^3363A6[ Ore Exchanger ]^000000";
                    mes "Here you are!";
                    delitem 673, .@exchanged_coins * 10;
                    getitem 675, .@exchanged_coins;
                    close;
                    
                    case 2:
                    mes "^3363A6[ Ore Exchanger ]^000000";
                    mes "Here you are!";
                    delitem 673, 10;
                    getitem 675, 1;
                    close;
                }
                
            SiC2GoC:
                mes "^3363A6[ Ore Exchanger ]^000000";
                mes "I want to note, that 1 Gold Coin cost 10 Silver Coins, so do you want to continue?";
                next;
                if( select( "No, i want to leave", "Yes, exchange please" ) == 1 ) {
                    mes "^3363A6[ Ore Exchanger ]^000000";
                    mes "So, see you next time, and good luck!";
                    close;
                }
                if( countitem(675) < 1 ) {
                    mes "^3363A6[ Ore Exchanger ]^000000";
                    mes "Excuse me, but you have no even 1 Bronze Coin... Come back later.";
                    emotion e_sry;
                    close;
                }
                if( countitem(675) < 10 ) {
                    mes "^3363A6[ Ore Exchanger ]^000000";
                    mes "Excuse me, but you dont have enought Silver Coins to exchange for our today course. You must have at least 10 Silver Coins.";
                    close;
                }
                mes "^3363A6[ Ore Exchanger ]^000000";
                mes "Do you want to exchange all your Bronze Coins or just step by step 10 to 1?";
                next;
                switch( select( "Exchange all my Silver Coins", "Exchange 10 to 1" ) ) {
                    case 1:
                    //set .@curr_gc_count, countitem(675);
                    set .@exchanged_coins, ( countitem(675) / 10 );
                    mes "^3363A6[ Ore Exchanger ]^000000";
                    mes "Here you are!";
                    delitem 675, .@exchanged_coins * 10;
                    getitem 671, .@exchanged_coins;
                    close;
                    
                    case 2:
                    mes "^3363A6[ Ore Exchanger ]^000000";
                    mes "Here you are!";
                    delitem 675, 10;
                    getitem 671, 1;
                    close;
                }
                
            GoC2PlC:
                mes "^3363A6[ Ore Exchanger ]^000000";
                mes "I want to note, that 1 Platinum Coin cost 10 Gold Coins, so do you want to continue?";
                next;
                if( select( "No, i want to leave", "Yes, exchange please" ) == 1 ) {
                    mes "^3363A6[ Ore Exchanger ]^000000";
                    mes "So, see you next time, and good luck!";
                    close;
                }
                if( countitem(671) < 1 ) {
                    mes "^3363A6[ Ore Exchanger ]^000000";
                    mes "Excuse me, but you have no even 1 Bronze Coin... Come back later.";
                    emotion e_sry;
                    close;
                }
                if( countitem(671) < 10 ) {
                    mes "^3363A6[ Ore Exchanger ]^000000";
                    mes "Excuse me, but you dont have enought Silver Coins to exchange for our today course. You must have at least 10 Silver Coins.";
                    close;
                }
                mes "^3363A6[ Ore Exchanger ]^000000";
                mes "Do you want to exchange all your Gold Coins or just step by step 10 to 1?";
                next;
                switch( select( "Exchange all my Gold Coins", "Exchange 10 to 1" ) ) {
                    case 1:
                    //set .@curr_pc_count, countitem(671);
                    set .@exchanged_coins, ( countitem(671) / 10 );
                    mes "^3363A6[ Ore Exchanger ]^000000";
                    mes "Here you are!";
                    delitem 671, .@exchanged_coins * 10;
                    getitem 677, .@exchanged_coins;
                    close;
                    
                    case 2:
                    mes "^3363A6[ Ore Exchanger ]^000000";
                    mes "Here you are!";
                    delitem 671, 10;
                    getitem 677, 1;
                    close;
                }
    }
    

    I can't load this script , anything else you could do to help me ?

    I want to make ore exchanger for my minning NPC , so the ore from minning can be exchange with bronze , silver , gold ,and  mithril coin

×
×
  • Create New...