Hi All,
May I request for a Hourly Point NPC with a Target Hours before you get the reward?
There is a menu with Start, Stop and Pause button for logging out/offline purpose.
I already tried my best to edit a hourlypoint script but I failed.
Thanks in advance!
---Solved. Already found it. Sorry for not patiently testing all the topics that I saw.
Hi All,
Can you help me edit this script? Need to change the settings. You must not get the reward once you talked. You must only get the reward if you only reached the target time.
In the photo attached, I talked to NPC in the first time and the NPC already gave the reward. I want if possible, you will only get the reward when you stayed online for 5 hours straight without logging out/disconnect/offline.
Also a menu with Start, Stop and Pause for a player if he will logout of the game.
Thank you.
prontera,155,160,5 script Reward NPC 4_F_FAIRYKID4,{.@npc_name$="[P NPC]";for(.@i=0;.@i< getarraysize($ip_reward$);.@i+=2){if($ip_reward$[.@i]!= getcharip())continue;.@delays= atoi($ip_reward$[.@i+1])+.delay;if(.@delays> gettimetick(2)){
mes .@npc_name$;
mes "Do you want a surprise item from me?";
mes "You have to wait for "+callfunc("Time2Str",.@delays);
mes "To claim the reward!";
close;}.@index=.@i+1;break;}
mes .@npc_name$;
mes "Hello "+strcharinfo(0)+",I";
mes "am here to give you a daily";
mes "Surprise Reward. Do you want to have it?";
next;switch(select("-Yes, sure!:-No, bye!:-Cancel")){case1:
mes .@npc_name$;for(.@j=0;.@j< getarraysize(.reward);.@j+=2)
getitem .reward[.@j],.reward[.@j+1];
mes "Okay have fun with it!";if(.@index) $ip_reward$[.@index]= gettimetick(2);else{.@index= getarraysize($ip_reward$);
$ip_reward$[.@index]= getcharip();
$ip_reward$[.@index+1]= gettimetick(2);}
close;default:
mes .@npc_name$;
mes "Okay goodbye!";
close;}OnInit:
setarray .reward,601,1;// <item id>, <item amount>{, <item id>, <item amount>,...}.delay =60;// Delay time before reward can be re-claimed. time set in second, default 24 Hours = 86400 seconds
end;}
Hi All,
May I request for a Hourly Point NPC with a Target Hours before you get the reward?
There is a menu with Start, Stop and Pause button for logging out/offline purpose.
I already tried my best to edit a hourlypoint script but I failed.
Thanks in advance!
---Solved. Already found it. Sorry for not patiently testing all the topics that I saw.
Hi All,
Can you help me edit this script? Need to change the settings. You must not get the reward once you talked. You must only get the reward if you only reached the target time.
In the photo attached, I talked to NPC in the first time and the NPC already gave the reward. I want if possible, you will only get the reward when you stayed online for 5 hours straight without logging out/disconnect/offline.
Also a menu with Start, Stop and Pause for a player if he will logout of the game.
Thank you.
Share this post
Link to post
Share on other sites