Sallycantdance Posted August 8, 2023 Group: Members Topic Count: 225 Topics Per Day: 0.14 Content Count: 798 Reputation: 12 Joined: 12/04/20 Last Seen: 1 hour ago Share Posted August 8, 2023 hello is there any script that need to register the streamer so that they can claim daily reward or daily supply or giveaways for their viewers Quote Link to comment Share on other sites More sharing options...
0 Winterfox Posted August 8, 2023 Group: Members Topic Count: 1 Topics Per Day: 0.00 Content Count: 245 Reputation: 93 Joined: 06/30/18 Last Seen: November 27, 2024 Share Posted August 8, 2023 You could create a registration function to register a streamer via @command which sets an account variable that you can check for in another npc. A small example: - script STREAMER_SUPPLY FAKE_NPC,{ OnInit: bindatcmd("registerStreamer", strnpcinfo(3) + "::OnRegisterStreamer", 99); bindatcmd("unregisterStreamer", strnpcinfo(3) + "::OnUnregisterStreamer", 99); end; OnRegisterStreamer: OnUnregisterStreamer: if(.@atcmd_numparameters < 1) dispbottom("Usage: " + .@atcmd_command$ + " <charname>"); .@switch = (.@atcmd_command$ == "@registerStreamer") ? 1 : 0; charcommand("#set " + .@atcmd_parameters$[0] + " #STREAMER " + .@switch); } prontera,124,201,1 script Streamer Supplies 726,{ mes "[ Streamer Supplies ]"; mes "You are " + ((#STREAMER == 0) ? "no" : "an") + " Streamer!"; close; } @registerStreamer <charname> to register an account as streamer and @unregisterStreamer <charname> to unregister an account as streamer. 1 Quote Link to comment Share on other sites More sharing options...
0 Rynbef Posted August 8, 2023 Group: Forum Moderator Topic Count: 48 Topics Per Day: 0.01 Content Count: 941 Reputation: 125 Joined: 05/23/12 Last Seen: 18 hours ago Share Posted August 8, 2023 U can create a group with normal players permissions inherit and just give a streamer this group. On npc side u can just check for group id. Rynbef~ 1 Quote Link to comment Share on other sites More sharing options...
0 Sallycantdance Posted August 9, 2023 Group: Members Topic Count: 225 Topics Per Day: 0.14 Content Count: 798 Reputation: 12 Joined: 12/04/20 Last Seen: 1 hour ago Author Share Posted August 9, 2023 On 8/8/2023 at 7:12 PM, Winterfox said: You could create a registration function to register a streamer via @command which sets an account variable that you can check for in another npc. A small example: - script STREAMER_SUPPLY FAKE_NPC,{ OnInit: bindatcmd("registerStreamer", strnpcinfo(3) + "::OnRegisterStreamer", 99); bindatcmd("unregisterStreamer", strnpcinfo(3) + "::OnUnregisterStreamer", 99); end; OnRegisterStreamer: OnUnregisterStreamer: if(.@atcmd_numparameters < 1) dispbottom("Usage: " + .@atcmd_command$ + " <charname>"); .@switch = (.@atcmd_command$ == "@registerStreamer") ? 1 : 0; charcommand("#set " + .@atcmd_parameters$[0] + " #STREAMER " + .@switch); } prontera,124,201,1 script Streamer Supplies 726,{ mes "[ Streamer Supplies ]"; mes "You are " + ((#STREAMER == 0) ? "no" : "an") + " Streamer!"; close; } @registerStreamer <charname> to register an account as streamer and @unregisterStreamer <charname> to unregister an account as streamer. thank you for this Quote Link to comment Share on other sites More sharing options...
0 Sallycantdance Posted August 9, 2023 Group: Members Topic Count: 225 Topics Per Day: 0.14 Content Count: 798 Reputation: 12 Joined: 12/04/20 Last Seen: 1 hour ago Author Share Posted August 9, 2023 15 hours ago, Rynbef said: U can create a group with normal players permissions inherit and just give a streamer this group. On npc side u can just check for group id. Rynbef~ thank you for the idea too Quote Link to comment Share on other sites More sharing options...
Question
Sallycantdance
hello is there any script that need to register the streamer so that they can claim daily reward or daily supply or giveaways for their viewers
Link to comment
Share on other sites
4 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.