[Question]Timed actions

04/19/2012 20:34 karusko#1
Fisrt of all i wanna say im interested in 5095 binary codes, action scripts

can someone enlight me with some timed action scripts?
i am trying to do a script.
the request script serves to take players out from a certain map in 30 mins after entrance, entrance starts at 9.27 ends 9.30 and 21:27ends 21:30, ive written full code entrance script exept end one that beats me

how can i make a timed action thats is executed automatticaty by server side/ id.. or create a countdown timer that runs an id at the end, cant understand timestamps at all

someone gived me this
INSERT INTO `cq_action` VALUES (1236500, 2236500, 3236500, 1073, 0,'stc(44,31) == 0');
INSERT INTO `cq_action` VALUES (3236500, 2236500, 6236500, 1081, 0, 'interval(44,31,0) >= 3600');
INSERT INTO `cq_action` VALUES (2236500, 4236500, 0, 1074, 0, 'stc(44,31) = 1 1');
INSERT INTO `cq_action` VALUES (4236500, 5236500, 0, 1080, 0, 'timestamp(44,31) set 0');

ive tested the scipt but does'nt do anything automatically except starting a tymer, after executing /by action xxx command , you have to wait 1h, and after re execute does an action id, i wanna create countdown timer that does an action at the end automatically
04/19/2012 21:26 ~Zero~#2
You won't get any help here regarding the TQ binaries.
04/19/2012 21:42 karusko#3
i just hope some one can point me in the right direction
04/19/2012 22:02 DyjgK64J451Jhv0#4
oh been like 7 years i didnt play with binaries , anyway
Quote:
INSERT INTO `cq_action` VALUES (3236500, 2236500, 6236500, 1081, 0, 'interval(44,31,0) >= 3600');
this one is timer in seconds , which is actually an hr , it check for interval if greater than or equal 3600 so , there u start , search what is those actions supposed to mean then code ur own
04/19/2012 22:18 karusko#5
sure all timers that ive encountered works like this
(player, mob, npc,item) by id command > start a timer > after timer end> (player, mob, npc,item) by recheck > let you do etc

im searching for
(player, mob, npc,item) by id command > start a timer > after timer end> automatically action

or
(server actioned id)> time checker> execute command>
04/20/2012 02:12 ~Zero~#6
Quote:
Originally Posted by DyjgK64J451Jhv0 View Post
oh been like 7 years i didnt play with binaries , anyway

this one is timer in seconds , which is actually an hr , it check for interval if greater than or equal 3600 so , there u start , search what is those actions supposed to mean then code ur own
Bins were not released 7 years ago.

@karusko
That's a statistic interval stored into cq_statistic. It will only work if the action is manually executed by someone. This is an example of an automatic action that's executed on some certain time (see the query).

Attach your message action ID to this ID:

Quote:
INSERT INTO `cq_action` VALUES ('2030000', 'PLACE ID HERE', '0000', '0123', '4', '22:00 22:00');
You seem clueless. I gave you a hint now jump on the cq_action and start looking for similar actions.
04/20/2012 04:00 karusko#7
what i did till now is, ive maded npc that tp u random on a map, between 9.37 :9.30 and 21.37 : 21.37, and in 30 mins i wannt to get players out, i have maded all scripts except the one to get em out, so if i do as you say, i need to build another time checker and put it on all announcers next. id, to be sure i catch right hours, because i tried to do so, and to check its valability ive changed back server time,, and no action at all


2030010 1020000 8889997 123 5 00 01
1020000 my id 0 0 0 announce

an guess what checker is for minute 00 and minute 01
doesnt work according to his setup

2030010 id is the first id that runs no other id goes to it
04/20/2012 04:13 ~Zero~#8
You seem to not understand. Stop rushing to open a server and better start understanding what types/datas/params do and where and how you can use them hence > study cq_action.
04/20/2012 05:13 karusko#9
Quote:
Originally Posted by ~Zero~ View Post
You seem to not understand. Stop rushing to open a server and better start understanding what types/datas/params do and where and how you can use them hence > study cq_action.
i understand 80% cq_action and about what ive posted data 5 checks only minutes

data = 0 params type: 2006-3-27 00:00 2006-3-28 23:59
data = 1 params type:12-25 06:00 12-25 23:59
data = 2
data = 3 params type:6 21:28 6 21:29 (1 to 7 days of week)
data = 4 params type:19:00 20:30
data = 5 params type:33 35 (only mins)

:) and btw u didnt understand my post