DK77 Posted May 6, 2021 Group: Members Topic Count: 28 Topics Per Day: 0.01 Content Count: 61 Reputation: 0 Joined: 06/30/17 Last Seen: July 19, 2024 Share Posted May 6, 2021 (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 May 6, 2021 by DK77 Quote Link to comment Share on other sites More sharing options...
0 Mastagoon Posted May 6, 2021 Group: Members Topic Count: 8 Topics Per Day: 0.00 Content Count: 63 Reputation: 38 Joined: 07/04/19 Last Seen: December 14, 2024 Share Posted May 6, 2021 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 Quote Link to comment Share on other sites More sharing options...
Question
DK77
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;
}
Link to comment
Share on other sites
1 answer to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.