//===== Athena Script ========================================
//= Number Guess Event NPC
//===== By: ==================================================
//= Masao
//===== Current Version: =====================================
//= 1.0
//===== Compatible With: =====================================
//= eAthena SVN
//===== Description: =========================================
//= Guess the right Number and Win a Prize.
//===== Additional Comments: =================================
//= Version 1.0 if there are any Bugs please let me know.
//============================================================
prontera,146,168,4 script Guess The Number 77,{
set .@n$,"[Guess The Number]";
if(getgmlevel() >= 60) goto L_GMCP;
if($numberguess == 1) goto L_Guess;
mes .@n$;
mes "مرحبا "+strcharinfo(0)+",";
mes "المسابقة غير متاحة الأن";
mes "زرني في وقت لاحق ^^";
mes "فقط لتخمن أرقامي و تفذ ب جوايز";
close;
L_GMCP:
mes .@n$;
mes "مرحبا "+strcharinfo(0)+",";
mes "كيف يمكنني أن اساعدك؟ ";
next;
menu "ابدء المسابقة",-,"انهاء المسابقة",L_EndEv,"Set Number Range",L_Number,"Nothing.",L_End;
mes "Allright the Event starts now!";
set $@guessnr,rand(1,$numberrange);
set $numberguess,1;
close2;
announce "مسابقة تخمين الرقم قد بدئت الأن",0;
end;
L_EndEv:
mes .@n$;
mes "Allright i'll end the Event now!";
set $numberguess,0;
close2;
announce "انتهت المسابقة . لا فائذ",0;
end;
L_Number:
mes .@n$;
mes "ادخل الرقم الذي يمكنني التخمين منه";
mes "The Number shouldn't be lower then 10 or higher as 1000.";
input @numberrange;
if (@numberrange <= 9) goto L_Low;
if (@numberrange >= 1001) goto L_High;
set $numberrange,@numberrange;
mes "ما بين 1 و "+@numberrange+".";
close;
L_End:
mes .@n$;
mes "سلام";
close;
L_Low:
mes .@n$;
mes "الرقم الذي خمنته قليل جدا";
close;
L_High:
mes .@n$;
mes "الرقم الذي خمنته كبير جدا";
close;
L_Guess:
mes .@n$;
if( GuessNDelay >= gettimetick(2) )
{
mes "يجب عليك الانتظار 3 ثواني لتستطيع التخمين مجددا";
close;
}
mes "ادخل رقم ما بين [1 - 500] حظا موفقا^^";
input @guess;
if (@guess > $@guessnr) goto L_ToHigh;
if (@guess < $@guessnr) goto L_ToLow;
if (@guess == $@guessnr){
set $numberguess,0;
mes "مروك لقد خمنت الرقم الصحيح";
mes "ها هي جائزتك";
getitem 674,4;
close2;
announce strcharinfo(0)+" خمن الرقم الصحيح و فاذ بالمسابقة! شكرا لكل المشاركين !!",0;
end;
}
L_ToHigh:
mes .@n$;
mes "الرقم الذي خمنته كبير جدا!!";
mes "يجب عليك الانتظار 3 ثواني لتحاول مجددا";
set GuessNDelay, gettimetick(2) + 3;
close;
L_ToLow:
mes .@n$;
mes "الرقم الذي خمنته قليل جدا!!";
mes "يجب عليك الانتظار 3 ثواني لتحاول مجددا";
set GuessNDelay, gettimetick(2) + 3;
close;
}
Thanks For Who Is going to help me , and who helped me Before
Question
Rage Guy
I Got a guss the number event but
my problem . its manual ==
I Want to change it Automatic
Thanks For Who Is going to help me , and who helped me Before
Any Help ?
Edited by SpongeBOBLink to comment
Share on other sites
8 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.