Kei 2 Posted November 1, 2013 how can make this one to execute first and if the char is in the map it will execute the another thing pc->setpos(sd, mapindex_name2id( MAP_VIP_LOUNGE ), 160, 150, CLR_TELEPORT); sprintf(atcmd_output, msg_txt(5), sd->bl.x, sd->bl.y); clif->message(fd, atcmd_output); Quote Share this post Link to post Share on other sites
0 Mhalicot 392 Posted November 1, 2013 rAthena right? please explain more clearly. Quote Share this post Link to post Share on other sites
0 Kei 2 Posted November 1, 2013 rAthena right? please explain more clearly. i'm using hercules.. before i warp to that area chat_createpcchat(sd, "AFK", "", 2, 2); also execute so when i'm to that area the charoom disappear Quote Share this post Link to post Share on other sites
0 Mhalicot 392 Posted November 1, 2013 why you want to edit the source? I think It can made by script.. Quote Share this post Link to post Share on other sites
0 Kei 2 Posted November 1, 2013 why you want to edit the source? I think It can made by script.. cuz i'ts for my custom command Quote Share this post Link to post Share on other sites
0 Kei 2 Posted November 1, 2013 can someone help me put a timer on it?? after the character teleported it will wait for 5sec then make a chatroom Quote Share this post Link to post Share on other sites
0 Mhalicot 392 Posted November 1, 2013 are you sure its a chatroom? or a waitingroom? and who will make a chatroom? Quote Share this post Link to post Share on other sites
0 Kei 2 Posted November 1, 2013 are you sure its a chatroom? or a waitingroom? and who will make a chatroom? whats the difference between chat and waitingroom??? it will automatically make a chatroom 5sec after he teleported in the map Quote Share this post Link to post Share on other sites
0 Mhalicot 392 Posted November 1, 2013 chat room is for character / waitingroom is for NPC? i guess.. Quote Share this post Link to post Share on other sites
0 Kei 2 Posted November 1, 2013 chat room is for character / waitingroom is for NPC? i guess.. chatroom it is.. can you do it to make 5sec before it execute to make a chatroom? Quote Share this post Link to post Share on other sites
0 Mhalicot 392 Posted November 1, 2013 well I'm not good at source code, what you want to do is to edit the source codes and make a user automatically create a chatroo? Quote Share this post Link to post Share on other sites
0 Kei 2 Posted November 1, 2013 (edited) well I'm not good at source code, what you want to do is to edit the source codes and make a user automatically create a chatroo? i already edit the source that will teleport the character and make a chatroom but my problem is they execute at the same time.. so when i got to the map the char will no longer have a chatroom.. Edited November 1, 2013 by byakuran Quote Share this post Link to post Share on other sites
0 Mhalicot 392 Posted November 1, 2013 try to add timer timer_add(int64 tick, TimerFunc func, int id, intptr_t data) example: timer->add(timer->gettick()+200,autoattack_timer,sd->bl.id,0); Quote Share this post Link to post Share on other sites
0 Yommy 265 Posted November 1, 2013 why you want to edit the source? I think It can made by script.. cuz i'ts for my custom command scripts can make custom command too http://herc.ws/wiki/Bindatcmd Quote Share this post Link to post Share on other sites
0 Kei 2 Posted November 1, 2013 why you want to edit the source? I think It can made by script.. cuz i'ts for my custom command scripts can make custom command too http://herc.ws/wiki/Bindatcmd so i can make the char do the chatroom when he teleported to the vip_lounge(map) ??? Quote Share this post Link to post Share on other sites
0 Kei 2 Posted November 2, 2013 need help i try to add sd->request_delay_tick = gettick() + 5000; on my @request command and unsigned int request_delay_tick; on pc.h but when i recompile i got this error ..srcmapatcommand.c(8036): warning C4013: 'gettick' undefined; assuming extern returning int Quote Share this post Link to post Share on other sites
0 Kei 2 Posted November 2, 2013 already solved this one thanks Quote Share this post Link to post Share on other sites
how can make this one to execute first and if the char is in the map it will execute the another thing
Share this post
Link to post
Share on other sites