Tdi123 Posted April 25, 2022 Posted April 25, 2022 Example: prontera,150,150,3 script pack 99,{ mes "[Pack]"; mes "Do you want to receive your pack right now?"; next; switch(select("Yes, please:No, Thanks!")) { case 1: close2; getitem 607,3; end; case 2: close; } } Quote
0 Start_ Posted April 25, 2022 Posted April 25, 2022 (edited) Which UID do you mean - UID of item - UID of Account ID - UID of Char ID Or something else? Edited April 25, 2022 by Start_ Quote
0 Tdi123 Posted April 26, 2022 Author Posted April 26, 2022 On 4/25/2022 at 11:47 AM, Start_ said: Which UID do you mean - UID of item - UID of Account ID - UID of Char ID Or something else? Unique_ID of Account ID, by: Gepard Shield Quote
0 cook1e Posted April 26, 2022 Posted April 26, 2022 prontera,150,150,3 script pack 99,{ .@unique_id$ = get_unique_id(); mes "[Pack]"; if(.@unique_id$) { mes "You already received this."; close; } mes "Do you want to receive your pack right now?"; next; switch(select("Yes, please:No, Thanks!")) { case 1: close2; getitem 607,3; .@unique_id$ = 1; end; case 2: close; } } I just added the unique_id check from gepard, you can add check for char or account to make it more secure. Quote
Question
Tdi123
Example:
prontera,150,150,3 script pack 99,{
mes "[Pack]";
mes "Do you want to receive your pack right now?";
next;
switch(select("Yes, please:No, Thanks!")) {
case 1:
close2;
getitem 607,3;
end;
case 2:
close;
}
}
3 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.