Jump to content

heroji

Members
  • Content Count

    50
  • Joined

  • Last visited

  • Days Won

    2

Posts posted by heroji


  1. Hello it's me again :)

    I cannot find a solution for this problem (I'm newbie), i want to make variable number of items to exchange for 1 points..

    es: exchange 2 poring coins for 1 cash point.

    script:

    			mes @npcname$;
    			mes "How many points would you like to exchange?";
    			next;
    			input @cantidad;
    			mes @npcname$;
    			mes " [^F79F81"+@cantidad+"^000000] ^F79F81PC^000000 Is that okay?";
    			next;
    			menu "Yes",-,"No",L_Cancel;
    			if ( countitem(7539) < @cantidad) goto L_NoPC;
    			delitem 7539,@cantidad;
    			set #CASHPOINTS, #CASHPOINTS + @cantidad;
    			mes @npcname$;
    			mes "Alright, here you go! Let me know if you need my services again!";
    			close2;
    			cutin "",255;
    			end;

     


  2. Hello i'm a newbie i want to ask if it possible to change the "kafra credit point" message that appear on the chat?

    "You don't have enough <name> "

    Untitled.png

    prontera,166,170,3	trader	Dealer	10297,{
    	OnInit:
    	tradertype(NST_CUSTOM);
    	sellitem Poring_Card,1;
    	end;
    
    // Here you configure the item you will need to purchase
    OnCountFunds:
    	setcurrency(#KAFRAPOINTS);
    	end;
    
    // Pays the value in bronze coins
    OnPayFunds:
    	if( #KAFRAPOINTS < @points )
    		end;
    	#KAFRAPOINTS -= @price;
    	purchaseok();
    	end;
    }

    This is the script i use maybe modifying NST_CUstom but dont know where to find...


  3. On 4/4/2020 at 9:29 AM, Kenpachi said:

    Hi.

     

    That's a training dummy. 😄

    Spawn is located in npc/re/mobs/towns.txt.

    //== Prontera, Training Dummy Area ========================= prontera,251,77,0,0 monster Lv 50 2409,1,5000,0,0 prontera,259,77,0,0 monster Lv 50 2409,1,5000,0,0 prontera,251,66,0,0 monster Lv 100 2410,1,5000,0,0 prontera,259,66,0,0 monster Lv 100 2410,1,5000,0,0 prontera,251,55,0,0 monster Lv 150 2411,1,5000,0,0 prontera,259,55,0,0 monster Lv 150 2411,1,5000,0,0

    
    //== Prontera, Training Dummy Area =========================
    prontera,251,77,0,0	monster	Lv 50	2409,1,5000,0,0
    prontera,259,77,0,0	monster	Lv 50	2409,1,5000,0,0
    prontera,251,66,0,0	monster	Lv 100	2410,1,5000,0,0
    prontera,259,66,0,0	monster	Lv 100	2410,1,5000,0,0
    prontera,251,55,0,0	monster	Lv 150	2411,1,5000,0,0
    prontera,259,55,0,0	monster	Lv 150	2411,1,5000,0,0

     

     

    ~Kenpachi

    Finally i found you intruder! haha

    Thank you @Kenpachi!


  4. i have found this topic https://herc.ws/board/topic/11042-add-skills-through-scripts/

    I have installed the pluglin OnPCStatCalcEvent and run this script by @AnnieRuru but seems not working when i add skill and changed equip, nothing happen..

    prontera,155,185,5	script	kjdshfkdjsf	1_F_MARIA,{
    	addjobskill = 0;
    	mes "select the type of skills you want to learn";
    	next;
    	addjobskill = select( "swordsman", "mage", "acolyte" );
    	mes "your skills will be added the next time you adjust your equipment !";
    	close;
    	OnPCStatCalcEvent:
    	switch ( addjobskill ) {
    	case 1:
    	skill "SM_BASH", 10;
    	skill "SM_PROVOKE", 10;
    	skill "SM_MAGNUM", 10;
    	break;
    	case 2:
    	skill "MG_FIREBOLT", 10;
    	skill "MG_LIGHTNINGBOLT", 10;
    	skill "MG_COLDBOLT", 10;
    	break;
    	case 3:
    	skill "AL_HEAL", 10;
    	skill "AL_INCAGI", 10;
    	skill "AL_BLESSING", 10;
    	break;
    	default:	
    	}
    	end;
    	}

    Untitled.png


  5. prontera,166,170,1    trader    Potion Seller    4_F_EDEN_OFFICER,{
        OnInit:
        tradertype(NST_CUSTOM);
        sellitem Poring_Card,1;
        end;
    
    // Here you configure the item you will need to purchase
    OnCountFunds:
        setcurrency(#KAFRAPOINTS);
        end;
    
    // Pays the value in bronze coins
    OnPayFunds:
        if( #KAFRAPOINTS < @points )
            end;
        #KAFRAPOINTS -= @points;
        purchaseok();
        end;
    }
    
    
    

    Hello i have a problem when i try to buy the card the kafra points remains the same.. dont know why 😕 can someone help me please..

×
×
  • Create New...

Important Information

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