Jump to content
  • 0

Problem with instance_warpall


Question

Posted (edited)

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

1 answer to this question

Recommended Posts

Posted

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

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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...