coperation Posted March 19, 2020 Group: Members Topic Count: 8 Topics Per Day: 0.00 Content Count: 63 Reputation: 2 Joined: 01/16/12 Last Seen: March 31 Share Posted March 19, 2020 i need script to talk with npc for 1ID / 1IP / 1Time and reset every 05.00 am. to player can talk again [dairy gift] Quote Link to comment Share on other sites More sharing options...
0 Hyroshima Posted March 19, 2020 Group: Members Topic Count: 35 Topics Per Day: 0.01 Content Count: 189 Reputation: 122 Joined: 07/11/14 Last Seen: November 27, 2024 Share Posted March 19, 2020 I did this example prontera,161,185,5 script NPCTIMED 112,{ if(#TalkTimer > gettimetick(2)) { mes "You have to wait!"; close; } else { for(set .@i,0; .@i<getarraysize($Talkip$); set .@i,.@i+1) { if($Talkip$[.@i] == getcharip()){ deletearray $Talkip$[.@i],1; set .@i,getarraysize($Talkip$); } } } mes "Hi..."; mes "save teste?"; if(select("Yes:Not")==2){ close; } mes "Ok, ready"; set #TalkTimer,gettimetick(2)+(60*60*5); setarray $Talkip$[(getarraysize($Talkip$) ? getarraysize($Talkip$):0)],getcharip(); close; } Quote Link to comment Share on other sites More sharing options...
0 coperation Posted March 21, 2020 Group: Members Topic Count: 8 Topics Per Day: 0.00 Content Count: 63 Reputation: 2 Joined: 01/16/12 Last Seen: March 31 Author Share Posted March 21, 2020 On 3/19/2020 at 6:50 PM, Hyroshima said: I did this example prontera,161,185,5 script NPCTIMED 112,{ if(#TalkTimer > gettimetick(2)) { mes "You have to wait!"; close; } else { for(set .@i,0; .@i<getarraysize($Talkip$); set .@i,.@i+1) { if($Talkip$[.@i] == getcharip()){ deletearray $Talkip$[.@i],1; set .@i,getarraysize($Talkip$); } } } mes "Hi..."; mes "save teste?"; if(select("Yes:Not")==2){ close; } mes "Ok, ready"; set #TalkTimer,gettimetick(2)+(60*60*5); setarray $Talkip$[(getarraysize($Talkip$) ? getarraysize($Talkip$):0)],getcharip(); close; } how to edit to use with 1. OnClock0500: and 2. Every xx hr. [with offline time] Quote Link to comment Share on other sites More sharing options...
Question
coperation
i need script to talk with npc for 1ID / 1IP / 1Time and reset every 05.00 am. to player can talk again [dairy gift]
Link to comment
Share on other sites
2 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.