Jump to content
  • 0
Sign in to follow this  
Kei

need some help about this

Question

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);

Share this post


Link to post
Share on other sites

16 answers to this question

Recommended Posts

  • 0

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

Share this post


Link to post
Share on other sites
  • 0

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

Share this post


Link to post
Share on other sites
  • 0

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?

Share this post


Link to post
Share on other sites
  • 0

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?

Share this post


Link to post
Share on other sites
  • 0

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 by byakuran

Share this post


Link to post
Share on other sites
  • 0

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);

Share this post


Link to post
Share on other sites
  • 0

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

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.