[Help]Voting NPC 12 hours

04/26/2011 01:19 KiiDxLaggy#1
Hey is it possible to make the voting NPC only allow voting every 12 hours? if so.. How would i go about doing this?

Yes i searched..it was semi-answered but not were i could understand it... :\
04/26/2011 01:53 Eurion#2
Sure you can. You would use the action type 1082.

An example would be.

Code:
INSERT INTO cq_action VALUES
('1', '2', '3','1080', '2','isexit'),
('2', '3', '5','1082', '2','[color=blue]43200[/color]'),
('3', '4', '','101', '0','Please vote for us.'),
('4', '', '','102', '0','Yes 6'),
('5', '', '','126', '0','Sorry you have already voted in the last 12 hours');
This is only an example, but the blue will check for a quest ID of 2 and that 12 hours (In seconds) has passed since the quest was started.
04/26/2011 05:15 KiiDxLaggy#3
I love you :)
04/26/2011 05:30 Eurion#4
It's not completed at all, but it should give you enough to get on your way with. Just be warned as many servers have found out, voting npc's fail most times.