MyNoobScriptz Posted March 5, 2024 Posted March 5, 2024 Hi, how to count player in map PvP (pvp_y_1-2) 1. if count = 20 get 10 Yggdrasil Berry 2. if count = 10 get 5 Yggdrasil Berry I use OnPCDieEvent sometime script can't run to next step. because some player has left by using Alt+F4 Quote
0 Mathew Posted March 5, 2024 Posted March 5, 2024 You can also check how the last man standing event does. Basically an event onTimer1000, which is called every second where checks the count of people in the map. 1 Quote
0 Angeluz Posted March 5, 2024 Posted March 5, 2024 (edited) u can try with - script rewards -1,{ end; OnPCKillEvent: getmapxy(@map$, @x, @y, BL_PC); if( @map$ != "pvp_y_1-2" ) end; if ( getmapusers("pvp_y_1-2" ) ) > 20 ) getitem 606,2; else if ( getmapusers("pvp_y_1-2") > 15 ) getitem 606,1; end; } Edited March 5, 2024 by Angeluz 1 Quote
Question
MyNoobScriptz
Hi, how to count player in map PvP (pvp_y_1-2)
1. if count = 20 get 10 Yggdrasil Berry
2. if count = 10 get 5 Yggdrasil Berry
I use OnPCDieEvent sometime script can't run to next step. because some player has left by using Alt+F4
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.