DK77 Posted May 6, 2021 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
0 Mastagoon Posted May 6, 2021 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
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;
}
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.