Jump to content
  • 0

Question

Posted (edited)

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

1 answer to this question

Recommended Posts

  • 0
Posted

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
 

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