need some help about this

Kei

New member
Messages
101
Points
0
how can make this one to execute first and if the char is in the map it will execute the another thing

Code:
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);
 
rAthena right? please explain more clearly. 
i'm using hercules..  

before i warp to that area

Code:
chat_createpcchat(sd, "AFK", "", 2, 2);
also execute so when i'm to that area the charoom disappear
 
why you want to edit the source? I think It can made by script..

 
can someone help me put a timer on it?? after the character teleported it will wait for 5sec then make a chatroom

 
are you sure its a chatroom? or a waitingroom? and who will make a chatroom?

 
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

 
chat room is for character / waitingroom is for NPC? i guess..

 
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?

 
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.. 

 
Last edited by a moderator:
try to add timer

timer_add(int64 tick, TimerFunc func, int id, intptr_t data)
example:

Code:
timer->add(timer->gettick()+200,autoattack_timer,sd->bl.id,0);
 
need help i try to add

 sd->request_delay_tick = gettick() + 5000; on my @request command and
Code:
 unsigned int request_delay_tick;
on pc.h
but when i recompile i got this error

Code:
..srcmapatcommand.c(8036): warning C4013: 'gettick' undefined; assuming extern returning int
 
Back
Top