Kinkykids Posted April 2, 2020 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
0 sader1992 Posted April 3, 2020 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
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; }
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.