Jump to content
  • 0

Q>Item mass Seller help


utofaery

Question


  • Group:  Members
  • Topic Count:  23
  • Topics Per Day:  0.01
  • Content Count:  228
  • Reputation:   19
  • Joined:  10/27/12
  • Last Seen:  

I need help with this selling IT_ETC and IT_ARMOR and IT_WEAPON

Everytime I click it, it just go to no selling anything at all.

 

 

Spoiler

prontera,164,175,4    script    Mass Manipulator    1_M_MERCHANT,{
    mes ( " OPTIONe " ) ;
    switch ( select ("EQUIPS:ETC:IDENTIFY") ) {
case 1:
    callfunc ("F_SellEquips");
    close2;
    end;
case 2:
    callfunc ("F_SellETC");
    close2;
    end;
case 3:
    callfunc ("F_IdentifyUnidentified");
    close2;
    end;
    }
}

function    script    F_SellETC    {
    setarray(.@noSell0x[0], 1231, 969 );
    .@sellable = 0;
    getinventorylist();
    for ( set .@i,0; .@i < @inventorylist_count; set .@i,.@i + 1) {

        if ( getiteminfo( (@inventorylist_id[.@i] ) ,ITEMINFO_TYPE ) == IT_ETC ) {
            for( .@c = 0; .@c <  getarraysize(.@noSell0x); ++.@c ) {
                if (  @inventorylist_id[.@i] != .@noSell0x[.@c] ) { // Yes to sell
                    .@FinishCheck = 1;
                }
            }
        }

    if ( .@FinishCheck == 1 ) {
        setarray .@sellid[getarraysize(.@sellid)],@inventorylist_id[.@i];
        }
    }    //End of loop check


    if(getarraysize(.@sellid) > 0) {

        .@xTItemCount = 0;
        .@xTItemZeny = 0;
        for ( set .@s,0; .@s < getarraysize(.@sellid); set .@s,.@s + 1) {

            set .@total,.@total + (getiteminfo(.@sellid[.@s],1)*countitem(.@sellid[.@s]));
            delitem2 .@sellid[.@s],countitem(.@sellid[.@s]),1,0,0,0,0,0,0;
            .@xTItemCount = ( .@xTItemCount+ countitem(.@sellid[.@s]) );
            .@xTItemZeny = ( .@xTItemZeny + .@total );
        }


        mes ("Sold "+.@total+" Items");
        mes ("and you received "+.@xTItemZeny+" Zeny.");
        Zeny = (Zeny + .@xTItemZeny) ;
    } else {
        mes ("No Items were sold,");
        mes ("therefore you don't");
        mes ("receive any Zeny.");
    }
    close2;
    end;
}

function    script    F_SellEquips    {
    setarray(.@noSell0x[0], 1231, 969 );
    .@sellable = 0;

    getinventorylist();
    for ( set .@i,0; .@i < @inventorylist_count; set .@i,.@i + 1) {

        if ( getiteminfo(@inventorylist_id[.@i],ITEMINFO_TYPE) == IT_WEAPON ) || ( getiteminfo(@inventorylist_id[.@i],ITEMINFO_TYPE) == IT_ARMOR ) {
            if ( @inventorylist_equip[.@i] == 0 ) {
                    .@sellable = .@sellable + 1;
                            } else {
                    .@sellable = .@sellable - 1;
            }
            if ( @inventorylist_refine[.@i] == 0 ) {
                    .@sellable = .@sellable + 1;
                            } else {
                    .@sellable = .@sellable - 1;
            }
            if ( @inventorylist_card1[.@i] == 0 ) {
                    .@sellable = .@sellable + 1;
                            } else {
                    .@sellable = .@sellable - 1;
            }
            if ( @inventorylist_card2[.@i] == 0 ) {
                    .@sellable = .@sellable + 1;
                            } else {
                    .@sellable = .@sellable - 1;
            }
            if ( @inventorylist_card3[.@i] == 0 ) {
                    .@sellable = .@sellable + 1;
                            } else {
                    .@sellable = .@sellable - 1;
            }
            if ( @inventorylist_card4[.@i] == 0 ) {
                    .@sellable = .@sellable + 1;
                            } else {
                    .@sellable = .@sellable - 1;
            }
            if (.@sellingITEM) == 0 { //Not sell item 
            }
            if (.@sellingITEM) == 1 { //Yes sell item 
                    for( .@c = 0; .@c <  getarraysize(.@noSell0x); ++.@c ) {
                        if (  @inventorylist_id[.@i] != .@noSell0x[.@c] ) && ( .@sellable >= 6 ) { // Yes to sell
                                        .@FinishCheck = 1;
                        }
                    }
            }
        }
    if ( .@FinishCheck == 1 ) {
        setarray .@sellid[getarraysize(.@sellid)],@inventorylist_id[.@i];
        }
    }    //End of loop check


    if(getarraysize(.@sellid) > 0) {

        .@xTItemCount = 0;
        .@xTItemZeny = 0;
        for ( set .@s,0; .@s < getarraysize(.@sellid); set .@s,.@s + 1) {

            set .@total,.@total + (getiteminfo(.@sellid[.@s],1)*countitem(.@sellid[.@s]));
            delitem2 .@sellid[.@s],countitem(.@sellid[.@s]),1,0,0,0,0,0,0;
            .@xTItemCount = ( .@xTItemCount+ countitem(.@sellid[.@s]) );
            .@xTItemZeny = ( .@xTItemZeny + .@total );
        }


        mes ("Sold "+.@total+" Items");
        mes ("and you received "+.@xTItemZeny+" Zeny.");
        Zeny = (Zeny + .@xTItemZeny) ;
    } else {
        mes ("No Items were sold,");
        mes ("therefore you don't");
        mes ("receive any Zeny.");
    }
    close2;
    end;
}


function    script    F_IdentifyUnidentified    {
        //identify all player's equipments
        getinventorylist();
        for( .@i = 0; .@i < @inventorylist_count; .@i++ ) {
            if ( @inventorylist_identify[.@i] == 1 ) {
                continue;
            } else if ( getskilllv("MC_IDENTIFY") == 1 && Sp >= 10 ) {
                heal 0,0; // lol... this is supposed to reduce their SP by 10, whatever
                npctalk("MC_IDENTIFY");
            } else if ( countitem("Spectacles") ) {
                delitem(Spectacles, 1); 
                npctalk("Spectacles deleted 1!"); //debuglines
            } else if ( getskilllv("RG_COMPULSION") && Zeny >= ( 100 - ( 5 + 4 * getskilllv("RG_COMPULSION") ) )* 2/5 ) {
                Zeny -= ( 100 - ( 5 + 4 * getskilllv("RG_COMPULSION") ) )* 2/5;
                npctalk("RGCompulsion"); //debuglines
            } else if ( getskilllv("MC_DISCOUNT") && Zeny >= ( 100 - ( 5 + 2 * getskilllv("MC_DISCOUNT") ) )* 2/5 ) {
                Zeny -= ( 100 - ( 5 + 2 * getskilllv("MC_DISCOUNT") ) )* 2/5;
                npctalk("MC_DISCOUNT"); //debuglines
            } else if ( Zeny >= 40 ) {
                Zeny -= 40;
                npctalk("40z deducted."); //debuglines
            } else if ( Zeny <= 39 ) {
                npctalk("Zeny < 39."); //debuglines
                return;
            }
                delitem2(@inventorylist_id[.@i], 1, 0, 0, 0, 0, 0, 0, 0);
                getitem2(@inventorylist_id[.@i], 1, 1, 0, 0, 0, 0, 0, 0);
                .@icount++;
            }
            mes ( "Identified "+ .@icount +" Items." );
        close2;
    end;
}
 

 

 

Link to comment
Share on other sites

4 answers to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  18
  • Topics Per Day:  0.00
  • Content Count:  2044
  • Reputation:   682
  • Joined:  10/09/12
  • Last Seen:  

ITEMINFO_TYPE is Hercules only constants, rAthena return this value in 0

if ( getiteminfo( (@inventorylist_id[.@i] ) ,ITEMINFO_TYPE ) == IT_ETC ) {
perhaps this line should be
if ( getiteminfo( (@inventorylist_id[.@i] ) , 2) == IT_ETC ) {

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  23
  • Topics Per Day:  0.01
  • Content Count:  228
  • Reputation:   19
  • Joined:  10/27/12
  • Last Seen:  

Nevermind that fix all stuff..

Thanks for all.

Release the fixed up script .  

Spoiler

prontera,157,180,4    script    Mass Equip Cleanup    1_M_MERCHANT,{
    setarray(.@noSell0x[0], 1231, 969, 4001 );
    getinventorylist();
    for ( set .@i,0; .@i < @inventorylist_count; set .@i,.@i + 1) {
        if ( ( getiteminfo(@inventorylist_id[.@i],ITEMINFO_TYPE) == IT_WEAPON ) || ( getiteminfo(@inventorylist_id[.@i],ITEMINFO_TYPE) == IT_ARMOR ) ) && ( @inventorylist_equip[.@i] == 0 ) && ( @inventorylist_refine[.@i] == 0 ) && ( @inventorylist_card1[.@i] == 0 ) && ( @inventorylist_card2[.@i] == 0 ) && ( @inventorylist_card3[.@i] == 0 ) && ( @inventorylist_card4[.@i] == 0 ) {
            .@FinishCheck = 0;
            for( .@c = 0; .@c <  getarraysize(.@noSell0x); ++.@c ) {
                if (  @inventorylist_id[.@i] == .@noSell0x[.@c] ) { // Yes to sell
                    .@FinishCheck++;
                }
            }
            if ( .@FinishCheck == 0 ) {
                setarray .@sellid[getarraysize(.@sellid)],@inventorylist_id[.@i];
            }
        }
    }
    message strcharinfo(0),( " Sell array size " + getarraysize(.@sellid) );
    .@xTItemCount = 0;
    .@xTItemZeny = 0;
    if ( getarraysize(.@sellid) > 0) {
        for ( set .@s,0; .@s < getarraysize(.@sellid); set .@s,.@s + 1) {
            set .@total,.@total + (getiteminfo(.@sellid[.@s],1)*countitem(.@sellid[.@s]));
            delitem2 .@sellid[.@s],countitem(.@sellid[.@s]),1,0,0,0,0,0,0;
            .@xTItemCount = ( .@xTItemCount+ countitem(.@sellid[.@s]) );
            .@xTItemZeny = ( .@xTItemZeny + .@total );
        }
        mes ("Sold "+.@total+" Items");
        mes ("and you received "+.@xTItemZeny+" Zeny.");
        Zeny = (Zeny + .@xTItemZeny) ;
    } else {
        mes ("No Items were sold,");
        mes ("therefore you don't");
        mes ("receive any Zeny.");
    }
    close2;
    end;
}
 

Spoiler

prontera,153,180,4    script    Mass Junk Cleaner    1_M_MERCHANT,{
    setarray(.@noSell0x[0], 1231, 969, 4001 );
    getinventorylist();
    for ( set .@i,0; .@i < @inventorylist_count; set .@i,.@i + 1) {
        if ( getiteminfo( (@inventorylist_id[.@i] ) ,ITEMINFO_TYPE ) == IT_ETC ) {
            .@FinishCheck = 0;
            for( .@c = 0; .@c <  getarraysize(.@noSell0x); ++.@c ) {
                if (  @inventorylist_id[.@i] == .@noSell0x[.@c] ) { // Yes to sell
                    .@FinishCheck++;
                }
            }
            if ( .@FinishCheck == 0 ) {
                setarray .@sellid[getarraysize(.@sellid)],@inventorylist_id[.@i];
            }
        }
    }
    message strcharinfo(0),( " Sell array size " + getarraysize(.@sellid) );
    .@xTItemCount = 0;
    .@xTItemZeny = 0;
    if ( getarraysize(.@sellid) > 0) {
        for ( set .@s,0; .@s < getarraysize(.@sellid); set .@s,.@s + 1) {
            set .@total,.@total + (getiteminfo(.@sellid[.@s],1)*countitem(.@sellid[.@s]));
                delitem2 .@sellid[.@s],countitem(.@sellid[.@s]),1,0,0,0,0,0,0;
                .@xTItemCount = ( .@xTItemCount+ countitem(.@sellid[.@s]) );
                .@xTItemZeny = ( .@xTItemZeny + .@total );
        }
        mes ("Sold "+.@total+" Items");
        mes ("and you received "+.@xTItemZeny+" Zeny.");
        Zeny = (Zeny + .@xTItemZeny) ;
    } else {
        mes ("No Items were sold,");
        mes ("therefore you don't");
        mes ("receive any Zeny.");
    }
    close2;
    end;
}
 

Spoiler

prontera,155,180,4    script    Mass Identifying    1_M_MERCHANT,{
    .@a = 0;
    .@b = 0;
    .@i = 0;
    .@icount = 0;
    .@ZCount = 0;
    getinventorylist;
    for( set .@a,0; .@a < @inventorylist_count; set .@a, .@a + 1 ) {
        if ( @inventorylist_identify[.@a] == 1 ) continue;
        .@b++;
    }
    if ( .@b == 0 )
        message strcharinfo(0),( " No Item was Identified! " );
    if ( .@b > 0 ) {
        for( set .@i,0; .@i < @inventorylist_count; set .@i, .@i + 1 ) {
            if ( @inventorylist_identify[.@i] == 1 ) continue;
                if ( getskilllv("MC_IDENTIFY") == 1 && Sp >= 10 ) {
                }
                if ( countitem("Spectacles") ) {
                    delitem(Spectacles, 1); 
                }
                if ( getskilllv("RG_COMPULSION") && Zeny >= ( 100 - ( 5 + 4 * getskilllv("RG_COMPULSION") ) )* 2/5 ) {
                    Zeny -= ( 100 - ( 5 + 4 * getskilllv("RG_COMPULSION") ) )* 2/5;
                }
                if ( getskilllv("MC_DISCOUNT") && Zeny >= ( 100 - ( 5 + 2 * getskilllv("MC_DISCOUNT") ) )* 2/5 ) {
                    Zeny -= ( 100 - ( 5 + 2 * getskilllv("MC_DISCOUNT") ) )* 2/5;
                }
                if ( Zeny >= 40 ) {
                    Zeny -= 40;
                    .@ZCount = .@ZCount + 40;
                }
                if( countitem(@inventorylist_id[.@i]) >= 1 ) {
                    delitem2 @inventorylist_id[.@i],1,0,0,0,0,0,0,0;
                    getitem @inventorylist_id[.@i],1;
                    .@icount++;
                    .@b++;
                }
        }
        if ( .@icount > 0 )
            message strcharinfo(0),( "Identified "+ .@icount +" Items.  Deducted "+.@ZCount+"Zeny" );
        else
            message strcharinfo(0),( " No Item was Identified! " );
        end;
    }
}
 

 

 

New question:

How do I make it to show the real count of sold item and real sold item zeny??

Spoiler


    message strcharinfo(0),( " Sell array size " + getarraysize(.@sellid) );
    .@xTItemCount = 0;
    .@xTItemZeny = 0;
    if ( getarraysize(.@sellid) > 0) {
        for ( set .@s,0; .@s < getarraysize(.@sellid); set .@s,.@s + 1) {
            set .@total,.@total + (getiteminfo(.@sellid[.@s],1)*countitem(.@sellid[.@s]));
                delitem2 .@sellid[.@s],countitem(.@sellid[.@s]),1,0,0,0,0,0,0;
                .@xTItemCount = ( .@xTItemCount+ countitem(.@sellid[.@s]) );
                .@xTItemZeny = ( .@xTItemZeny + .@total );
        }
        mes ("Sold "+.@total+" Items");
        mes ("and you received "+.@xTItemZeny+" Zeny.");
        Zeny = (Zeny + .@xTItemZeny) ;
    } else {
        mes ("No Items were sold,");
        mes ("therefore you don't");
        mes ("receive any Zeny.");
    }
    close2;
    end;
}

 

Edited by utofaery
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  4
  • Topics Per Day:  0.00
  • Content Count:  303
  • Reputation:   117
  • Joined:  12/10/16
  • Last Seen:  

What do you mean with real? Adding overcharge?

I have a script of this.

			.@over = getskilllv("MC_OVERCHARGE");
			if(.@over > 0)	
				.@plus = 5 + 2*.@over - .@over/10;
			for(.@i = 0;.@i < .@sell_size;.@i++) {
				.@total+= getiteminfo(.@sell_id[.@i],1)*countitem(.@sell_id[.@i]) * (100 + .@plus) / 100;
				delitem2 .@sell_id[.@i],countitem(.@sell_id[.@i]),true,0,0,0,0,0,0;
			}

Maybe this can help?

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  23
  • Topics Per Day:  0.01
  • Content Count:  228
  • Reputation:   19
  • Joined:  10/27/12
  • Last Seen:  

Here updated script as per notty's help

//= should be compatible rAthena git
// credit to AnnieRuru and n0tttt for helping
//

prontera,164,175,4	script	Mass Junk Seller	1_M_MERCHANT,{
	mes ( " OPTIONe " ) ;
	switch ( select ("EQUIPS:ETC:IDENTIFY") ) {
case 1:
	callfunc ("F_SellEquips");
case 2:
	callfunc ("F_SellETC");
case 3:
	callfunc ("F_IdentifyUnidentifiedx");
	}
	close2;
	end;
}





function	script	F_SellETC	{
	setarray(.@noSell0x[0], 1231, 969, 4001 );
	getinventorylist();
	for ( set .@i,0; .@i < @inventorylist_count; set .@i,.@i + 1) {
		if ( getiteminfo( (@inventorylist_id[.@i] ) ,ITEMINFO_TYPE ) == IT_ETC ) {
			.@FinishCheck = 0;
			for( .@c = 0; .@c <  getarraysize(.@noSell0x); ++.@c ) {
				if (  @inventorylist_id[.@i] == .@noSell0x[.@c] ) { // Yes to sell
					.@FinishCheck++;
				}
			}
			if ( .@FinishCheck == 0 ) {
				setarray .@sellid[getarraysize(.@sellid)],@inventorylist_id[.@i];
			}
		}
	}
	.@sellarraysize = getarraysize(.@sellid);
	.@xTItemCount = 0;
	.@xTItemZeny = 0;
	.@over = getskilllv("MC_OVERCHARGE");
	if(.@over > 0)	
		.@plus = 5 + 2*.@over - .@over/10;
	message strcharinfo(0),( " Sell array size " + .@sellarraysize );
	if ( .@sellarraysize > 0) {
		.@i = 0;
		while (.@i <= .@sellarraysize) {
			.@SitemID = .@sellid[.@i];
			if ( ( .@sellid[.@i] != 0 ) && ( .@sellid[.@i] > 0 ) && ( countitem(.@sellid[.@i] ) > 0 ) ) {
				.@SitemName$ = getitemname(.@sellid[.@i]);
				.@SitemCount = countitem(.@sellid[.@i]);
				.@SitemPrice = ( getiteminfo(.@sellid[.@i],1) * (100 + .@plus) / 100 ) ;
				.@xTItemZeny = .@xTItemZeny + ( .@SitemPrice * .@SitemCount ) ;
				.@xTItemCount = .@xTItemCount + .@SitemCount;
				dispbottom ("ItemCount :: " + .@SitemCount + "  ItemPrice :: " + .@SitemPrice + " ItemID :: " + .@sellid[.@i] + "  ItemName :: " + .@SitemName$ );
				delitem2 (.@SitemID,.@SitemCount,true,0,0,0,0,0,0);
			}
			++.@i;
		}
		Zeny = Zeny + .@xTItemZeny ;
		dispbottom ( " Total Zeny Gained :: " + .@xTItemZeny + "  for total item sold :: " + .@xTItemCount ) ;
	}
	if ( .@sellarraysize == 0 ) {
		dispbottom ( " Nah ! no item can be sale, you liar! " );
	}
	close2;
	end;
}









function	script	F_SellEquips	{
	setarray(.@noSell0x[0], 1231, 969, 4001 );
	getinventorylist();
	for ( set .@i,0; .@i < @inventorylist_count; set .@i,.@i + 1) {
		if ( ( getiteminfo(@inventorylist_id[.@i],ITEMINFO_TYPE) == IT_WEAPON ) || ( getiteminfo(@inventorylist_id[.@i],ITEMINFO_TYPE) == IT_ARMOR ) ) && ( @inventorylist_equip[.@i] == 0 ) && ( @inventorylist_refine[.@i] == 0 ) && ( @inventorylist_card1[.@i] == 0 ) && ( @inventorylist_card2[.@i] == 0 ) && ( @inventorylist_card3[.@i] == 0 ) && ( @inventorylist_card4[.@i] == 0 ) {
			.@FinishCheck = 0;
			for( .@c = 0; .@c <  getarraysize(.@noSell0x); ++.@c ) {
				if (  @inventorylist_id[.@i] == .@noSell0x[.@c] ) { // Yes to sell
					.@FinishCheck++;
				}
			}
			if ( .@FinishCheck == 0 ) {
				setarray .@sellid[getarraysize(.@sellid)],@inventorylist_id[.@i];
			}
		}
	}
	.@sellarraysize = getarraysize(.@sellid);
	.@xTItemCount = 0;
	.@xTItemZeny = 0;
	.@over = getskilllv("MC_OVERCHARGE");
	if(.@over > 0)	
		.@plus = 5 + 2*.@over - .@over/10;
	message strcharinfo(0),( " Sell array size " + .@sellarraysize );
	if ( .@sellarraysize > 0) {
		.@i = 0;
		while (.@i <= .@sellarraysize) {
			.@SitemID = .@sellid[.@i];
			if ( ( .@sellid[.@i] != 0 ) && ( .@sellid[.@i] > 0 ) && ( countitem(.@sellid[.@i] ) > 0 ) ) {
				.@SitemName$ = getitemname(.@sellid[.@i]);
				.@SitemCount = countitem(.@sellid[.@i]);
				.@SitemPrice = ( getiteminfo(.@sellid[.@i],1) * (100 + .@plus) / 100 ) ;
				.@xTItemZeny = .@xTItemZeny + ( .@SitemPrice * .@SitemCount ) ;
				.@xTItemCount = .@xTItemCount + .@SitemCount;
				dispbottom ("ItemCount :: " + .@SitemCount + "  ItemPrice :: " + .@SitemPrice + " ItemID :: " + .@sellid[.@i] + "  ItemName :: " + .@SitemName$ );
				delitem2 (.@SitemID,.@SitemCount,true,0,0,0,0,0,0);
			}
			++.@i;
		}
		Zeny = Zeny + .@xTItemZeny ;
		dispbottom ( " Total Zeny Gained :: " + .@xTItemZeny + "  for total item sold :: " + .@xTItemCount ) ;
	}
	if ( .@sellarraysize == 0 ) {
		dispbottom ( " Nah ! no item can be sale, you liar! " );
	}
	close2;
	end;
}




































function	script	F_IdentifyUnidentifiedx	{
	.@a = 0;
	.@b = 0;
	.@i = 0;
	.@icount = 0;
	.@ZCount = 0;
	getinventorylist;
	for( set .@a,0; .@a < @inventorylist_count; set .@a, .@a + 1 ) {
		if ( @inventorylist_identify[.@a] == 1 ) continue;
		.@b++;
	}
	if ( .@b == 0 )
		message strcharinfo(0),( " No Item was Identified! " );
	if ( .@b > 0 ) {
		for( set .@i,0; .@i < @inventorylist_count; set .@i, .@i + 1 ) {
			if ( @inventorylist_identify[.@i] == 1 ) continue;
				if ( getskilllv("MC_IDENTIFY") == 1 && Sp >= 10 ) {
				}
				if ( countitem("Spectacles") ) {
					delitem(Spectacles, 1); 
				}
				if ( getskilllv("RG_COMPULSION") && Zeny >= ( 100 - ( 5 + 4 * getskilllv("RG_COMPULSION") ) )* 2/5 ) {
					Zeny -= ( 100 - ( 5 + 4 * getskilllv("RG_COMPULSION") ) )* 2/5;
				}
				if ( getskilllv("MC_DISCOUNT") && Zeny >= ( 100 - ( 5 + 2 * getskilllv("MC_DISCOUNT") ) )* 2/5 ) {
					Zeny -= ( 100 - ( 5 + 2 * getskilllv("MC_DISCOUNT") ) )* 2/5;
				}
				if ( Zeny >= 40 ) {
					Zeny -= 40;
					.@ZCount = .@ZCount + 40;
				}
				if( countitem(@inventorylist_id[.@i]) >= 1 ) {
					delitem2 @inventorylist_id[.@i],1,false,0,0,0,0,0,0;
					getitem @inventorylist_id[.@i],1;
					.@icount++;
					.@b++;
				}
		}
		if ( .@icount > 0 )
			message strcharinfo(0),( "Identified "+ .@icount +" Items.  Deducted "+.@ZCount+"Zeny" );
		if ( .@icount == 0 )
			message strcharinfo(0),( " No Item was Identified! " );
	}
	close2;
	end;
}



















/*Uncomment to test 

prontera,162,175,4	script	Mass Etc Granter	1_M_MERCHANT,{
	callfunc ("F_GiveETCItem");
	end;
}

prontera,160,175,4	script	Mass Equip Granter	1_M_MERCHANT,{
	callfunc ("F_GiveEquipItem");
	end;
}

prontera,158,175,4	script	Unidentified EQ Granter	1_M_MERCHANT,{
	callfunc ("F_MakeUnIndentifiedItem");
	end;
}




function	script	F_GiveETCItem	{

getitem( Jellopy , 1 );
getitem( Clover , 1 );
getitem( Feather , 1 );
getitem( Wooden_Block , 1 );
getitem( Flower , 1 );

}



function	script	F_MakeUnIndentifiedItem	{

	getitem2("Knife",1,0,0,0,0,0,0,0);
	getitem2("Javelin",1,0,0,0,0,0,0,0);
	getitem2("Mace",1,0,0,0,0,0,0,0);
	getitem2("Rod",1,0,0,0,0,0,0,0);
	getitem2("Club",1,0,0,0,0,0,0,0);

	getitem2("Main_Gauche",1,0,0,0,0,0,0,0);
	getitem2("Cotton_Shirt",1,0,0,0,0,0,0,0);
	getitem2("Adventureres_Suit_",1,0,0,0,0,0,0,0);
}


function	script	F_GiveEquipItem	{

getitem( Knife , 1 );
getitem( Javelin , 1 );
getitem( Mace , 1 );
getitem( Rod , 1 );
getitem( Club , 1 );

}

*/

Note:

1.  The main reason for this script is it's tiresome when you got to press a lot of time to sell those item with @autoloot 100 and it's not fun to do that

2.  This script is not tested on Rathena don't blame me for anything.

Edited by utofaery
Link to comment
Share on other sites

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.

×
×
  • Create New...