Jump to content
  • 0

Custom Portal Script


DK77

Question


  • Group:  Members
  • Topic Count:  28
  • Topics Per Day:  0.01
  • Content Count:  61
  • Reputation:   0
  • Joined:  06/30/17
  • Last Seen:  

Hello Guys , im making custom portal script like this . Player can trigger it by click it

How to make it work like normal portal ? 

The reason why im doing this because normal portal cannot see if player turn off their /effect

 

//Vidblainn Castle
sch_gld,105,205,0    script    Right Portal    723,{
    warp "schg_cas03",362,307;


end;
}

schg_cas03,367,307,0    script    Exit Right    723,{
    warp "sch_gld",97,196;


end;
}

sch_gld,89,205,0    script    Left Portal    723,{
    warp "schg_cas03",292,338;


end;
}

schg_cas03,285,338,0    script    Exit Left    723,{
    warp "sch_gld",97,196;

end;
}

 

Edited by DK77
Link to comment
Share on other sites

1 answer to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  8
  • Topics Per Day:  0.00
  • Content Count:  63
  • Reputation:   35
  • Joined:  07/04/19
  • Last Seen:  

To make them work like a normal warp, use the OnTouch label.

 You want to place this right above your warp command like this:

OnTouch:
warp "sch_gld",97,196;
end;

You must also specify the range of your NPC's no touch event on its first line:

Warp NPCs usually have a 2x2 range.

sch_gld,89,205,0    script    Left Portal    723,2,2{	// 2x2 range
sch_gld,89,205,0    script    Left Portal    723,4,4{	// 4x4 range
sch_gld,89,205,0    script    Left Portal    723,6,6{	// 6x6 range
 
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...