Kinkykids Posted April 2, 2020 Group: Members Topic Count: 5 Topics Per Day: 0.00 Content Count: 17 Reputation: 0 Joined: 05/16/18 Last Seen: June 15, 2020 Share Posted April 2, 2020 How to make it so that the npc does not loop? - script CardCollection -1,{ OnPCStatCalcEvent: recalculatestat; dispbottom "Loop Check."; disablenpc "CardCollection"; sleep2 100; enablenpc "CardCollection"; end; } Quote Link to comment Share on other sites More sharing options...
0 sader1992 Posted April 3, 2020 Group: Content Moderator Topic Count: 55 Topics Per Day: 0.01 Content Count: 1691 Reputation: 716 Joined: 12/21/14 Last Seen: 2 hours ago Share Posted April 3, 2020 (edited) --------------------------------------- *recalculatestat; This command will force a stat recalculation for the attached player. --------------------------------------- OnPCStatCalcEvent: This special label triggers when a player's stats are recalculated, such as when changing stats, equipment, or maps, as well as when logging in, leveling up, and mounting a job mount. This can be used to grant additional item bonuses to certain player groups, for instance. technically , you are asking for loop I would suggest to not use OnPCStatCalcEvent unless you are forced too also I don't understand why disable/enable a npc like that , let's say the script works , the npc would be always disabled depending on the number of players in the server , also I am not sure that you know what you are doing. Edited April 3, 2020 by sader1992 Quote Link to comment Share on other sites More sharing options...
0 Zell Posted April 3, 2020 Group: Members Topic Count: 53 Topics Per Day: 0.01 Content Count: 412 Reputation: 266 Joined: 04/25/12 Last Seen: April 28 Share Posted April 3, 2020 OnPCStatCalcEvent should never exist 2 Quote Link to comment Share on other sites More sharing options...
Question
Kinkykids
How to make it so that the npc does not loop?
- script CardCollection -1,{ OnPCStatCalcEvent: recalculatestat; dispbottom "Loop Check."; disablenpc "CardCollection"; sleep2 100; enablenpc "CardCollection"; end; }
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.