IsabelaFernandez Posted November 12, 2019 Group: Members Topic Count: 146 Topics Per Day: 0.06 Content Count: 355 Reputation: 8 Joined: 04/16/18 Last Seen: October 21, 2024 Share Posted November 12, 2019 (edited) Hello guys, I would like this NPC to deliver the reward with the rentitem command, 7200 (time) for example and, if possible, prevent the reward with another char, only after 24h a single char and not several of the same account. https://pastebin.com/zd9QFzsx Thank you all Edited November 12, 2019 by IsabelaFernandez Quote Link to comment Share on other sites More sharing options...
0 LOOLP - OFF Posted November 12, 2019 Group: Members Topic Count: 12 Topics Per Day: 0.01 Content Count: 233 Reputation: 51 Joined: 12/20/18 Last Seen: March 10, 2021 Share Posted November 12, 2019 rentitem <ItemID>,<Time>; 1 Quote Link to comment Share on other sites More sharing options...
0 IsabelaFernandez Posted November 12, 2019 Group: Members Topic Count: 146 Topics Per Day: 0.06 Content Count: 355 Reputation: 8 Joined: 04/16/18 Last Seen: October 21, 2024 Author Share Posted November 12, 2019 3 minutes ago, Disabled LOOLP said: rentitem <ItemID>,<Time>; yes, I know this command but couldn't insert it into this script because of the reward https://pastebin.com/zd9QFzsx Quote Link to comment Share on other sites More sharing options...
0 LOOLP - OFF Posted November 12, 2019 Group: Members Topic Count: 12 Topics Per Day: 0.01 Content Count: 233 Reputation: 51 Joined: 12/20/18 Last Seen: March 10, 2021 Share Posted November 12, 2019 Altera o getitem do codigo por : for (int i = 0; i < @rewardamount; i++) { rentitem .rewardid,7200; } Quote Link to comment Share on other sites More sharing options...
0 Mabuhay Posted November 12, 2019 Group: Members Topic Count: 105 Topics Per Day: 0.02 Content Count: 446 Reputation: 232 Joined: 03/20/12 Last Seen: October 22, 2020 Share Posted November 12, 2019 (edited) 4 hours ago, IsabelaFernandez said: Hello guys, I would like this NPC to deliver the reward with the rentitem command, 7200 (time) for example and, if possible, prevent the reward with another char, only after 24h a single char and not several of the same account. https://pastebin.com/zd9QFzsx Thank you all // by Mabuhay // 24 hrs cd // account bound prontera,149,191,5 script Daily Reward 911,{ .@cd = 60*60*24; // 24 hrs .@time = gettimetick(2); if ( #DAILYRENTREWARD+.@cd > .@time ) { mes "Come back again after "+Time2Str(#DAILYRENTREWARD+.@cd)+" for your reward."; close; } mes "Here is your daily reward!"; close2; rentitem 1201, 7200; // <id>, <time in seconds> #DAILYRENTREWARD = .@time; end; } Untested but should work Edited November 12, 2019 by Mabuhay 1 Quote Link to comment Share on other sites More sharing options...
0 IsabelaFernandez Posted November 12, 2019 Group: Members Topic Count: 146 Topics Per Day: 0.06 Content Count: 355 Reputation: 8 Joined: 04/16/18 Last Seen: October 21, 2024 Author Share Posted November 12, 2019 8 minutes ago, Mabuhay said: // by Mabuhay // 24 hrs cd // account bound prontera,149,191,5 script Daily Reward 911,{ .@cd = 60*60*24; // 24 hrs .@time = gettimetick(2); if ( #DAILYRENTREWARD+.@cd > .@time ) { mes "Come back again after "+Time2Str(#DAILYRENTREWARD+.@cd)+" for your reward."; close; } mes "Here is your daily reward!"; close2; rentitem 1201, 7200; // <id>, <time in seconds> #DAILYRENTREWARD = .@time; end; } Untested but should work perfectly as i wanted to thank you so much Quote Link to comment Share on other sites More sharing options...
Question
IsabelaFernandez
Hello guys, I would like this NPC to deliver the reward with the rentitem command, 7200 (time) for example and, if possible, prevent the reward with another char, only after 24h a single char and not several of the same account.
https://pastebin.com/zd9QFzsx
Thank you all
Edited by IsabelaFernandezLink 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.