PapaZola Posted April 20, 2020 Group: Members Topic Count: 318 Topics Per Day: 0.07 Content Count: 925 Reputation: 33 Joined: 12/05/11 Last Seen: September 20, 2023 Share Posted April 20, 2020 (edited) hello rA its posibble to make if player have already play on game or online already 72 hours in game can claim a reward from npc example reward 5013 lord kaho horn 2629 megingjard if player still not enough game time the npc will show how many hours more he need to wait and online please help Edited April 20, 2020 by PapaZola Quote Link to comment Share on other sites More sharing options...
0 Start_ Posted April 20, 2020 Group: Members Topic Count: 26 Topics Per Day: 0.01 Content Count: 950 Reputation: 180 Joined: 04/05/13 Last Seen: 8 hours ago Share Posted April 20, 2020 (edited) Store gettimetick and calculated it each hours (Maybe OnClock event). (See in D:\rathena\doc\script_commands.txt) Edited April 20, 2020 by Start_ Quote Link to comment Share on other sites More sharing options...
0 Haruka Mayumi Posted April 20, 2020 Group: Members Topic Count: 9 Topics Per Day: 0.00 Content Count: 485 Reputation: 271 Joined: 06/13/17 Last Seen: April 14 Share Posted April 20, 2020 Script Request. i haven't tried it since i'm not on PC. but i think its working without bugs. prontera,155,181,3 script Yumi 94,{ mes .name$; if(#PlayTimeReward){ mes "You already received your play time reward."; end; } if(#PlayTime<.PlayTime){ mes "Your current Playtime is ^0055FF"+#PlayTime+"^000000 minutes.\n"; mes "You still need "+(.PlayTime-#PlayTime)+" minutes to receive your play time reward."; end; } if(!checkweight2(.RewardsID,.RewardsAmt)){ mes "Insufficient inventory space or weight."; end; } for(.@i=0;.@i<getarraysize(.Rewards);.@i++) getitem .RewardsID[.@i],.RewardsAmt[.@i]; #PlayTimeReward = 1; mes "You received your rewards!"; end; OnPCLoginEvent: if( #PlayTime < .PlayTime || !#PlayTimeReward ) addtimer 60000,strnpcinfo(0)+"::OnPlayTime"; end; OnPlayTime: if( #PlayTime >= .PlayTime ) end; #PlayTime += 1; addtimer 60000,strnpcinfo(0)+"::OnPlayTime"; end; OnInit: .name$ = "[ ^FF5500Playtime Reward^000000 ]"; .Playtime = 4320; //In Minutes setarray .RewardsID[0],5013,2629; setarray .RewardsAmt[0],1,2; end; } Quote Link to comment Share on other sites More sharing options...
0 PapaZola Posted April 22, 2020 Group: Members Topic Count: 318 Topics Per Day: 0.07 Content Count: 925 Reputation: 33 Joined: 12/05/11 Last Seen: September 20, 2023 Author Share Posted April 22, 2020 (edited) On 4/20/2020 at 3:39 PM, Haruka Mayumi said: Script Request. i haven't tried it since i'm not on PC. but i think its working without bugs. prontera,155,181,3 script Yumi 94,{ mes .name$; if(#PlayTimeReward){ mes "You already received your play time reward."; end; } if(#PlayTime<.PlayTime){ mes "Your current Playtime is ^0055FF"+#PlayTime+"^000000 minutes.\n"; mes "You still need "+(.PlayTime-#PlayTime)+" minutes to receive your play time reward."; end; } if(!checkweight2(.RewardsID,.RewardsAmt)){ mes "Insufficient inventory space or weight."; end; } for(.@i=0;.@i<getarraysize(.Rewards);.@i++) getitem .RewardsID[.@i],.RewardsAmt[.@i]; #PlayTimeReward = 1; mes "You received your rewards!"; end; OnPCLoginEvent: if( #PlayTime < .PlayTime || !#PlayTimeReward ) addtimer 60000,strnpcinfo(0)+"::OnPlayTime"; end; OnPlayTime: if( #PlayTime >= .PlayTime ) end; #PlayTime += 1; addtimer 60000,strnpcinfo(0)+"::OnPlayTime"; end; OnInit: .name$ = "[ ^FF5500Playtime Reward^000000 ]"; .Playtime = 4320; //In Minutes setarray .RewardsID[0],5013,2629; setarray .RewardsAmt[0],1,2; end; } thanks sir gonna try it not working sir in only got this when trying claim reward.help please bump anyone can help??please urgent Edited April 22, 2020 by PapaZola Quote Link to comment Share on other sites More sharing options...
0 Start_ Posted April 29, 2020 Group: Members Topic Count: 26 Topics Per Day: 0.01 Content Count: 950 Reputation: 180 Joined: 04/05/13 Last Seen: 8 hours ago Share Posted April 29, 2020 Change for(.@i=0;.@i<getarraysize(.Rewards);.@i++) to for(.@i=0;.@i<getarraysize(.RewardsID);.@i++) Quote Link to comment Share on other sites More sharing options...
0 PapaZola Posted April 29, 2020 Group: Members Topic Count: 318 Topics Per Day: 0.07 Content Count: 925 Reputation: 33 Joined: 12/05/11 Last Seen: September 20, 2023 Author Share Posted April 29, 2020 1 hour ago, Start_ said: Change for(.@i=0;.@i<getarraysize(.Rewards);.@i++) to for(.@i=0;.@i<getarraysize(.RewardsID);.@i++) and old account trying claim still said u already received the reward Quote Link to comment Share on other sites More sharing options...
Question
PapaZola
hello rA
its posibble to make if player have already play on game or online already 72 hours in game can claim a reward from npc example reward
5013 lord kaho horn
2629 megingjard
if player still not enough game time the npc will show how many hours more he need to wait and online
please help
Link to comment
Share on other sites
5 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.