keoma Posted September 27, 2021 Group: Members Topic Count: 8 Topics Per Day: 0.00 Content Count: 18 Reputation: 2 Joined: 08/24/17 Last Seen: December 14, 2024 Share Posted September 27, 2021 Can anyone help me with this NPC? it is giving this error in cloaknpc I tried to add a function that I saw in rAthena but it gives an error and even stopped the npc - What does this cloaknpc function mean? function script cloaknpc { if(getargcount() > 2){ if(getarg(1)) cloakonnpc getarg(0),getarg(2); else cloakoffnpc getarg(0),getarg(2); } else { if(getarg(1)) cloakonnpc getarg(0); else cloakoffnpc getarg(0); } Quote Link to comment Share on other sites More sharing options...
0 Emistry Posted October 17, 2021 Group: Forum Moderator Topic Count: 93 Topics Per Day: 0.02 Content Count: 10018 Reputation: 2369 Joined: 10/28/11 Last Seen: Sunday at 05:32 PM Share Posted October 17, 2021 replace with the new cloakonnpc/cloakoffnpc instead. https://github.com/rathena/rathena/commit/de80c5aab61eff6996a5e4c94d4a5a868eb18ca4 Quote Link to comment Share on other sites More sharing options...
0 Hyroshima Posted September 27, 2021 Group: Members Topic Count: 35 Topics Per Day: 0.01 Content Count: 189 Reputation: 122 Joined: 07/11/14 Last Seen: November 27, 2024 Share Posted September 27, 2021 check the functions TAB spaces in: function script cloaknpc { Quote Link to comment Share on other sites More sharing options...
Question
keoma
Can anyone help me with this NPC? it is giving this error in cloaknpc I tried to add a function that I saw in rAthena but it gives an error and even stopped the npc - What does this cloaknpc function mean?
function script cloaknpc { if(getargcount() > 2){ if(getarg(1)) cloakonnpc getarg(0),getarg(2); else cloakoffnpc getarg(0),getarg(2); } else { if(getarg(1)) cloakonnpc getarg(0); else cloakoffnpc getarg(0); }
Link to comment
Share on other sites
2 answers 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.