Jump to content
  • 0

Problem with instance_warpall


luisdgs19

Question


  • Group:  Members
  • Topic Count:  14
  • Topics Per Day:  0.00
  • Content Count:  30
  • Reputation:   2
  • Joined:  12/26/12
  • Last Seen:  

I have an instance that is working perfectly, my only problem is that when i do instance_warpall "map",x,y; it doesn't work and the players have to manually warp there. Is there any problem with my code heres a part of it..

if (getcharid(1) != 0 )
{
 set .@instance, instance_create("Lunette Storyline", getcharid(1));
 if (.@instance < 0)
 {
  mes "Failed to create instance, contact Admin Player";
  close;
 }
 if (instance_attachmap("wald_in", .@instance, 1) == "")
 {
  instance_destroy(.@instance);
  mes "Failed to create instance, contact Admin Player";
  close;
 }
 if (instance_check_party(getcharid(1), 1, 69, 150))
 {
 instance_attach(.@instance);
 instance_set_timeout(3600, 300, .@instance);
 instance_init(.@instance);
 instance_warpall "wald_in",47,49;
 end;
 }
 else {........................

if i change instance_warpall to warp it works perfectly but only the player who talked to the npc is warped.

Edited by luisdgs19
Link to comment
Share on other sites

1 answer to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  28
  • Topics Per Day:  0.01
  • Content Count:  218
  • Reputation:   16
  • Joined:  01/24/12
  • Last Seen:  

I have an instance that is working perfectly, my only problem is that when i do instance_warpall "map",x,y; it doesn't work and the players have to manually warp there. Is there any problem with my code heres a part of it..

if (getcharid(1) != 0 )
{
 set .@instance, instance_create("Lunette Storyline", getcharid(1));
 if (.@instance < 0)
 {
  mes "Failed to create instance, contact Admin Player";
  close;
 }
 if (instance_attachmap("wald_in", .@instance, 1) == "")
 {
  instance_destroy(.@instance);
  mes "Failed to create instance, contact Admin Player";
  close;
 }
 if (instance_check_party(getcharid(1), 1, 69, 150))
 {
 instance_attach(.@instance);
 instance_set_timeout(3600, 300, .@instance);
 instance_init(.@instance);
 instance_warpall "wald_in",47,49;
 end;
 }
 else {........................

if i change instance_warpall to warp it works perfectly but only the player who talked to the npc is warped.

Use...

warpparty "wald_in",47,49,getcharid(1);

Link to comment
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.   Paste as plain text instead

  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.

×
×
  • Create New...