DevilSupremeRO Posted June 25, 2021 Group: Members Topic Count: 24 Topics Per Day: 0.01 Content Count: 55 Reputation: 0 Joined: 08/21/20 Last Seen: October 31, 2022 Share Posted June 25, 2021 //new_1-4,145,179,4 script Freebies Reward 691,{ .@unique_id$ = get_unique_id(); if(getd("$ID_" + .@unique_id$) > 0 || #N > 0){ mes "[ Reward NPC ]"; mes "You have already claimed your reward."; close; } mes "[ Reward NPC ]"; mes "Here's your reward. Have a nice day!"; setd "$ID_" + .@unique_id$,1; #N = 1; $reward_count -= 1; for(.@i = 0; .@i < getarraysize(.rewards); .@i += 2) getitem .rewards[.@i],.rewards[.@i+1]; if($reward_count == 0) $reward_status = 1; end; OnInit: setarray .rewards,50000,1,12535,20,12534,20,13550,20,3100,100,13758,1; while (1) { showscript "Freebies Rental NPC!"; sleep 1000; } end; } is there a way to reset unique ID's? because old players can't get freebies. Quote Link to comment Share on other sites More sharing options...
0 cook1e Posted June 25, 2021 Group: Members Topic Count: 5 Topics Per Day: 0.00 Content Count: 172 Reputation: 68 Joined: 10/25/20 Last Seen: 3 hours ago Share Posted June 25, 2021 (edited) //new_1-4,145,179,4 script Freebies Reward 691,{ .@freebies_unique_id$ = get_unique_id(); if(getd("$ID_" + .@freebies_unique_id$) > 0 || #N > 0){ mes "[ Reward NPC ]"; mes "You have already claimed your reward."; close; } mes "[ Reward NPC ]"; mes "Here's your reward. Have a nice day!"; setd "$ID_" + .@freebies_unique_id$,1; #N = 1; $reward_count -= 1; for(.@i = 0; .@i < getarraysize(.rewards); .@i += 2) getitem .rewards[.@i],.rewards[.@i+1]; if($reward_count == 0) $reward_status = 1; end; OnInit: setarray .rewards,50000,1,12535,20,12534,20,13550,20,3100,100,13758,1; while (1) { showscript "Freebies Rental NPC!"; sleep 1000; } end; } I think changing the unique_id variable can solve your problem, try it. Edited June 25, 2021 by cook1e Quote Link to comment Share on other sites More sharing options...
0 shatowolf Posted June 25, 2021 Group: Members Topic Count: 3 Topics Per Day: 0.00 Content Count: 259 Reputation: 35 Joined: 11/19/11 Last Seen: Yesterday at 12:17 AM Share Posted June 25, 2021 just delete the key : #N ---> on your acc_reg_num Quote Link to comment Share on other sites More sharing options...
0 DevilSupremeRO Posted June 26, 2021 Group: Members Topic Count: 24 Topics Per Day: 0.01 Content Count: 55 Reputation: 0 Joined: 08/21/20 Last Seen: October 31, 2022 Author Share Posted June 26, 2021 aight thanks i'll try it out On 6/25/2021 at 11:15 AM, cook1e said: //new_1-4,145,179,4 script Freebies Reward 691,{ .@freebies_unique_id$ = get_unique_id(); if(getd("$ID_" + .@freebies_unique_id$) > 0 || #N > 0){ mes "[ Reward NPC ]"; mes "You have already claimed your reward."; close; } mes "[ Reward NPC ]"; mes "Here's your reward. Have a nice day!"; setd "$ID_" + .@freebies_unique_id$,1; #N = 1; $reward_count -= 1; for(.@i = 0; .@i < getarraysize(.rewards); .@i += 2) getitem .rewards[.@i],.rewards[.@i+1]; if($reward_count == 0) $reward_status = 1; end; OnInit: setarray .rewards,50000,1,12535,20,12534,20,13550,20,3100,100,13758,1; while (1) { showscript "Freebies Rental NPC!"; sleep 1000; } end; } I think changing the unique_id variable can solve your problem, try it. @cook1e how to change the variable of unique ID? @shatowolf its still the same i cant reclaim them Quote Link to comment Share on other sites More sharing options...
0 cook1e Posted June 26, 2021 Group: Members Topic Count: 5 Topics Per Day: 0.00 Content Count: 172 Reputation: 68 Joined: 10/25/20 Last Seen: 3 hours ago Share Posted June 26, 2021 .unique_id$ = get_unique_id(); to .@freebies_unique_id$ = get_unique_id(); On 6/24/2021 at 11:15 PM, cook1e said: //new_1-4,145,179,4 script Freebies Reward 691,{ .@freebies_unique_id$ = get_unique_id(); if(getd("$ID_" + .@freebies_unique_id$) > 0 || #N > 0){ mes "[ Reward NPC ]"; mes "You have already claimed your reward."; close; } mes "[ Reward NPC ]"; mes "Here's your reward. Have a nice day!"; setd "$ID_" + .@freebies_unique_id$,1; #N = 1; $reward_count -= 1; for(.@i = 0; .@i < getarraysize(.rewards); .@i += 2) getitem .rewards[.@i],.rewards[.@i+1]; if($reward_count == 0) $reward_status = 1; end; OnInit: setarray .rewards,50000,1,12535,20,12534,20,13550,20,3100,100,13758,1; while (1) { showscript "Freebies Rental NPC!"; sleep 1000; } end; } I think changing the unique_id variable can solve your problem, try it. Quote Link to comment Share on other sites More sharing options...
Question
DevilSupremeRO
//new_1-4,145,179,4 script Freebies Reward 691,{ .@unique_id$ = get_unique_id(); if(getd("$ID_" + .@unique_id$) > 0 || #N > 0){ mes "[ Reward NPC ]"; mes "You have already claimed your reward."; close; } mes "[ Reward NPC ]"; mes "Here's your reward. Have a nice day!"; setd "$ID_" + .@unique_id$,1; #N = 1; $reward_count -= 1; for(.@i = 0; .@i < getarraysize(.rewards); .@i += 2) getitem .rewards[.@i],.rewards[.@i+1]; if($reward_count == 0) $reward_status = 1; end; OnInit: setarray .rewards,50000,1,12535,20,12534,20,13550,20,3100,100,13758,1; while (1) { showscript "Freebies Rental NPC!"; sleep 1000; } end; }
is there a way to reset unique ID's? because old players can't get freebies.
Link to comment
Share on other sites
4 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.