IsabelaFernandez Posted November 12, 2019 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
0 IsabelaFernandez Posted November 12, 2019 Author 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
0 LOOLP - OFF Posted November 12, 2019 Posted November 12, 2019 Altera o getitem do codigo por : for (int i = 0; i < @rewardamount; i++) { rentitem .rewardid,7200; } Quote
0 Mabuhay Posted November 12, 2019 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
0 IsabelaFernandez Posted November 12, 2019 Author 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
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 IsabelaFernandez5 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.