Joburg NoDelay : Stay Down Script - Extend Stay Down Duration in Game
This script, "Joburg NoDelay : Stay Down", extends the stay down duration for game characters by using timers and conditional checks. It adds a "Stay Down" feature, allowing players to remain on the ground for longer periods under specific circumstances.
The script begins with an "OnAdd" function that checks for the presence of multiple "xLoversJoburgStayDownToken" items on the character. If found, the script removes itself.
The core functionality lies within the "GameMode" function, which utilizes a timer and conditions to extend the stay down duration. The timer is continuously decreased by the time elapsed. When the timer reaches 0, the following operations take place:
- The timer is reset to 0.1.
- The script checks if the character possesses an "xLoversPkrIdentifier" item. If yes, the following actions occur: a. The "endtimer" is set to 0. b. The script retrieves the quantity of "xLoversPkrStep" items on the character and assigns it to the variable "step" c. If "step" is greater than or equal to 4 and the character does not have "xLoversJoburgStayDownToken2", the script adds one "xLoversJoburgStayDownToken2" item to the character. d. If "step" is less than 4 and the character has "xLoversJoburgStayDownToken2", the script removes all "xLoversJoburgStayDownToken2" items from the character.
- If the character does not have "xLoversPkrEquipFuncItem" and "endtimer" exceeds 30, the following actions are executed: a. The script prints a message, "Joburg NoDelay : PC Stay Down Ended" b. The script removes 10 "xLoversJoburgStayDownToken" items from the character. c. The script removes 10 "xLoversJoburgStayDownToken2" items from the character. d. The "GameMode" function ends.
In summary, this script provides a "Stay Down" feature for game characters, allowing them to remain in a down state for an extended duration under specific conditions.
原文地址: https://www.cveoy.top/t/topic/pNHZ 著作权归作者所有。请勿转载和采集!