hmm can you change it for me? I don't know how... :/
//===== eAthena Script =======================================
//= Coupon Lady NPC
//===== By: ==================================================
//= Legacy
//===== Current Version: =====================================
//= 1
//===== Compatible With: =====================================
//= eAthena, rAthena
//====== Beschreibung : ======================================
//= Bei ihr kann man Donation Coupons gegen Donation Credits
//= eintauschen!
//============================================================
dewata,180,206,3 script Coupon Lady 91,{
//|~~~~~~~~~~~~~ Settings des NPC: ~~~~~~~~~~~~~~~~~
set @npcname$,"^999999[Coupon Lady]^000000";
set @couponid,7037;
//|~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
mes @npcname$;
mes "Hallo "+strcharinfo(0)+"";
mes "Ich bin auf der Suche nach Coupons.... hast du welche? Ich gebe dir fuer jeden Coupon 1 Donation Credit...";
menu "Ja habe ich!",L_Start,"Nein, leider nicht",L_End;
L_Start:
next;
mes @npcname$;
mes "Wie viele Coupons moechtest du mir denn geben??";
next;
L_Inputing:
input @coupons;
if (@coupons<= 0) {
mes @npcname$;
mes "Du hast keine Zahl eingegeben.";
next;
goto L_Inputing;
} else if (countitem(getarg(0)) < @coupons) {
mes @npcname$;
mes "Leider hast du nicht genug Coupons. Bitte komm wieder, wenn du genug hast!";
close;
}
next;
mes @npcname$;
mes "Du moechtest mir also "+ @coupons+" geben?";
menu "Ja!",L_Start2,"Nein doch nicht",L_End;
L_Start2:
next;
mes @npcname$;
mes "Super, ich gebe dir dann "+ @coupons+" Donation Credit(s)!";
set @balance,query_sql("SELECT `balance` FROM `cp_credits` where `account_id` = "+ getcharid(3));
set @balance,@balance + @coupons;
query_sql("UPDATE `cp_credits` SET `balance` = "+@balance+" where `account_id` = "+ getcharid(3));
delitem @couponid,@coupons;
next;
mes @npcname$;
mes "Danke nochmal, weiterhin viel Spass auf Black-Knight-RO!";
close;
L_End:
next;
mes @npcname$;
mes "Bitte komm wieder, wenn du Coupons hast!";
close;
}