Hallo Umbrai,
ich empfehle dir den standart rA (/npc/custom/healer)
https://rathena.svn.sourceforge.net/svnroot/rathena/trunk/npc/custom/healer.txt
und du kannst mein 1click indi benutzen
casp_in01,171,268,6 script Identifier 100,{
getinventorylist;
for( set
[email protected],0;
[email protected] < @inventorylist_count; set
[email protected],
[email protected] + 1 ) {
if ( @inventorylist_identify[
[email protected]] == 1 ) continue;
// Merchant's Identify skill
if ( getskilllv(40) == 1 && sp >= 10 ) heal 0,-10;
// check if there is any Magnifier
else if ( countitem(611) ) delitem 611,1;
// base on Magnifier price, Rogue's Compulsion Discount skill
else if ( getskilllv(224) && zeny >= ( 100 - ( 5 + 4 * getskilllv(224) ) )* 2/5 )
set zeny, zeny - ( 100 - ( 5 + 4 * getskilllv(224) ) )* 2/5;
// base on Magnifier price, Merchants that not enough sp and learned Discount skill
else if ( getskilllv(37) && zeny >= ( 100 - ( 5 + 2 * getskilllv(37) ) )* 2/5 )
set zeny, zeny - ( 100 - ( 5 + 2 * getskilllv(37) ) )* 2/5;
// if none of the above, deduct the zeny
else if ( zeny >= 40 ) set zeny, zeny - 40;
// or stop the script if there the person not enough money
else break;
delitem2 @inventorylist_id[
[email protected]],1,0,0,0,0,0,0,0;
getitem @inventorylist_id[
[email protected]],1;
}
}