Sallycantdance Posted August 26, 2021 Group: Members Topic Count: 225 Topics Per Day: 0.14 Content Count: 798 Reputation: 12 Joined: 12/04/20 Last Seen: Yesterday at 09:00 AM Share Posted August 26, 2021 (edited) hello i would like to ask regarding about itemshower script the normal players can also use the commands how can i set this for only gm 99 thanks Quote - script Sample -1,{ OnInit: set .amount, 50; // amount of item to shower setarray .ItemID,677,12986,12221,12216,12215; .Size = getarraysize(.ItemID); bindatcmd "shower",strnpcinfo(3)+"::OnShower"; end; OnShower: getmapxy .@map$, .@x, .@y, BL_PC; freeloop(1); while ( .count < .amount ) { do { .@x_diff = .@x + rand(-15,15); .@y_diff = .@y + rand(-15,15); } while (!checkcell(.@map$,.@x,.@y,cell_chkpass)); makeitem .ItemID[rand(.Size)],1,.@map$,.@x_diff,.@y_diff; // <<< im stuck on this set .count, .count + 1; } set .count, 0; end; } Edited September 18, 2021 by chadness solved Quote Link to comment Share on other sites More sharing options...
0 Emistry Posted August 26, 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 August 26, 2021 (edited) 2 hours ago, chadness said: can i set this for only gm 99 bindatcmd "shower",strnpcinfo(3)+"::OnShower", 99; Edited August 26, 2021 by Emistry 1 Quote Link to comment Share on other sites More sharing options...
0 Sallycantdance Posted September 18, 2021 Group: Members Topic Count: 225 Topics Per Day: 0.14 Content Count: 798 Reputation: 12 Joined: 12/04/20 Last Seen: Yesterday at 09:00 AM Author Share Posted September 18, 2021 On 8/26/2021 at 8:41 PM, Emistry said: bindatcmd "shower",strnpcinfo(3)+"::OnShower", 99; thanks sir @Emistry Quote Link to comment Share on other sites More sharing options...
Question
Sallycantdance
hello i would like to ask regarding about itemshower script the normal players can also use the commands how can i set this for only gm 99 thanks
solved
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.