Jump to content
  • 0

Request Streamer Daily Supply


GM Winter

Question


  • Group:  Members
  • Topic Count:  176
  • Topics Per Day:  0.14
  • Content Count:  666
  • Reputation:   9
  • Joined:  12/04/20
  • Last Seen:  

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

  • 0

  • Group:  Members
  • Topic Count:  1
  • Topics Per Day:  0.00
  • Content Count:  235
  • Reputation:   87
  • Joined:  06/30/18
  • Last Seen:  

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.

  • Upvote 1
Link to comment
Share on other sites

  • 0

  • Group:  Forum Moderator
  • Topic Count:  44
  • Topics Per Day:  0.01
  • Content Count:  898
  • Reputation:   119
  • Joined:  05/23/12
  • Last Seen:  

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~

  • Upvote 1
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  176
  • Topics Per Day:  0.14
  • Content Count:  666
  • Reputation:   9
  • Joined:  12/04/20
  • Last Seen:  

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

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  176
  • Topics Per Day:  0.14
  • Content Count:  666
  • Reputation:   9
  • Joined:  12/04/20
  • Last Seen:  

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 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...