Jump to content
  • 0

paid reset npc with counpon PLEASE!


Question

Posted
//===== rAthena Script =======================================
//= Reset NPC
//===== By: ==================================================
//= rAthena Dev Team
//===== Current Version: =====================================
//= 1.3
//===== Compatible With: =====================================
//= rAthena SVN
//===== Description: =========================================
//= Resets skills, stats, or both.
//===== Additional Comments: =================================
//= 1.0 First Version
//= 1.1 Optimized for the greater good. [Kisuka]
//= 1.2 Cleaning [Euphy]
//= 1.3 All statuses removed upon skill reset. [Euphy]
//============================================================

prontera,150,193,4    script    Reset Girl    124,{

    set .@ResetStat,5000;    // Zeny for stat reset
    set .@ResetSkill,5000;    // Zeny for skill reset
    set .@ResetBoth,9000;    // Zeny for resetting both together

    mes "[Reset Girl]";
    mes "I am the Reset Girl.";
    mes "Reset Stats: "+ .@ResetStat +"z";
    mes "Reset Skills: "+ .@ResetSkill +"z";
    mes "Reset Both: "+ .@ResetBoth +"z";
    mes "Please select the service you want:";
    next;
    switch(select("^FF3355Reset Skills:Reset Stats:Reset Both^000000:Cancel")) {
    case 1:
        mes "[Reset Girl]";
        if (Zeny < .@ResetSkill) {
            mes "Sorry, you don't have enough Zeny.";
            close;
        }
        set Zeny, Zeny-.@ResetSkill;
        sc_end SC_ALL;
        ResetSkill;
        mes "There you go!";
        close;
    case 2:
        mes "[Reset Girl]";
        if (Zeny < .@ResetStat) {
            mes "Sorry, you don't have enough Zeny.";
            close;
        }
        set Zeny, Zeny-.@ResetStat;
        ResetStatus;
        mes "There you go!";
        close;
    case 3:
        mes "[Reset Girl]";
        if (Zeny < .@ResetBoth) {
            mes "Sorry, you don't have enough Zeny.";
            close;
        }
        set Zeny, Zeny-.@ResetBoth;
        sc_end SC_ALL;
        ResetSkill;
        ResetStatus;
        mes "There you go!";
        close;
    case 4:
        close;
    }
}

 

Please help me to add item instead of zeny in it

3 answers to this question

Recommended Posts

Posted

Try this one

//===== rAthena Script =======================================
//= Reset NPC
//===== By: ==================================================
//= rAthena Dev Team
//===== Current Version: =====================================
//= 1.3
//===== Compatible With: =====================================
//= rAthena SVN
//===== Description: =========================================
//= Resets skills, stats, or both.
//===== Additional Comments: =================================
//= 1.0 First Version
//= 1.1 Optimized for the greater good. [Kisuka]
//= 1.2 Cleaning [Euphy]
//= 1.3 All statuses removed upon skill reset. [Euphy]
//============================================================

prontera,150,193,4    script    Reset Girl    124,{

    
    set .@coupon_id,<item_id>
    set .@ResetStat,1;    // no of coupons for stat reset
    set .@ResetSkill,1;    // no of coupons for skill reset
    set .@ResetBoth,2;    // no of coupons for resetting both together

    mes "[Reset Girl]";
    mes "I am the Reset Girl.";
    mes "Reset Stats: "+ .@ResetStat +" coupon(s)";
    mes "Reset Skills: "+ .@ResetSkill +"coupon(s)";
    mes "Reset Both: "+ .@ResetBoth +"coupon(s)";
    mes "Please select the service you want:";
    next;
    switch(select("^FF3355Reset Skills:Reset Stats:Reset Both^000000:Cancel")) {
    case 1:
        mes "[Reset Girl]";
        if (countitem(.@coupon_id) < .@ResetSkill) {
            mes "Sorry, you don't have enough coupons.";
            close;
        }
        delitem .@coupon_id, .@ResetSkill;
        sc_end SC_ALL;
        ResetSkill;
        mes "There you go!";
        close;
    case 2:
        mes "[Reset Girl]";
        if (countitem(.@coupon_id) < .@ResetStat) {
            mes "Sorry, you don't have enough coupons.";
            close;
        }
        delitem .@coupon_id, .@ResetStat;
        ResetStatus;
        mes "There you go!";
        close;
    case 3:
        mes "[Reset Girl]";
        if (countitem(.@coupon_id) < .@ResetBoth) {
            mes "Sorry, you don't have enough coupons.";
            close;
        }
        delitem .@coupon_id, .@ResetBoth;
        sc_end SC_ALL;
        ResetSkill;
        ResetStatus;
        mes "There you go!";
        close;
    case 4:
        close;
    }
}

I haven't tested this, but it should work.

Posted (edited) · Hidden by Capuche, April 5, 2013 - Duplicate post
Hidden by Capuche, April 5, 2013 - Duplicate post

Whops, wrongly posted again, please delete this message.

Edited by jaBote
Posted
prontera,150,193,4	script	Reset Girl	124,{

	mes "[Reset Girl]";
	mes "I am the Reset Girl.";
	mes "Reset Stats: "+ .count_Stat +" "+ getitemname( .ResetStat );
	mes "Reset Skills: "+ .count_Skill +" "+ getitemname( .ResetSkill );
	mes "Reset Both: "+ .count_Both +" "+ getitemname( .ResetBoth );
	mes "Please select the service you want:";
	next;
	switch(select("^FF3355Reset Skills:Reset Stats:Reset Both^000000:Cancel")) {
	case 1:
		mes "[Reset Girl]";
		if ( countitem( .ResetSkill ) < .count_Skill ) {
			mes "Sorry, you don't have enough Items.";
			close;
		}
		delitem .ResetSkill, .count_Skill;
		sc_end SC_ALL;
		ResetSkill;
		mes "There you go!";
		close;
	case 2:
		mes "[Reset Girl]";
		if ( countitem( .ResetStat ) < .count_Stat ) {
			mes "Sorry, you don't have enough Items.";
			close;
		}
		delitem .ResetStat, .count_Stat;
		ResetStatus;
		mes "There you go!";
		close;
	case 3:
		mes "[Reset Girl]";
		if ( countitem( .ResetBoth ) < .count_Both ) {
			mes "Sorry, you don't have enough Items.";
			close;
		}
		delitem .ResetBoth, .count_Both;
		sc_end SC_ALL;
		ResetSkill;
		ResetStatus;
		mes "There you go!";
		close;
	case 4:
		close;
	}
OnInit:
	set .ResetStat, 501;	// item stat reset
	set .count_Stat, 1;	// number of item need for stat reset

	set .ResetSkill, 501;	// item for skill reset
	set .count_Skill, 1;	// number of item need for skill reset

	set .ResetBoth, 501;	// item for resetting both together
	set .count_Both, 2;	// number of item need for Bothtogether
	end;
}

 

 

The setting :

OnInit:
	set .ResetStat, 501;	// item stat reset
	set .count_Stat, 1;	// number of item need for stat reset

	set .ResetSkill, 501;	// item for skill reset
	set .count_Skill, 1;	// number of item need for skill reset

	set .ResetBoth, 501;	// item for resetting both together
	set .count_Both, 2;	// number of item need for Bothtogether

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...