Hale Posted February 29, 2020 Group: Members Topic Count: 12 Topics Per Day: 0.01 Content Count: 38 Reputation: 1 Joined: 02/23/20 Last Seen: March 22, 2020 Share Posted February 29, 2020 Hello Good Day! Is there anyone with this kind of script? For example. Today is my fresh opening server then.. 1.) A NPC will give free costume to the first twenty(20) players. (IP-Based/HID Based/Etc.) //I don't know which is much better. 2.) Then after the first twenty players [20/20] claimed the costumes, 3. The NPC will automatically be disabled, hide, or tell that all costumes are claimed. Thank you guys! Quote Link to comment Share on other sites More sharing options...
0 sader1992 Posted February 29, 2020 Group: Content Moderator Topic Count: 55 Topics Per Day: 0.01 Content Count: 1691 Reputation: 716 Joined: 12/21/14 Last Seen: 1 hour ago Share Posted February 29, 2020 try this prontera,0,0,0 script tttest 444,{ if(getarraysize($FIRSTREWARDNPC_IPs$) < 20){ if(inarray($FIRSTREWARDNPC_IPs$,getcharip()) !=-1 && !#FIRSTREWARDNPC){ $FIRSTREWARDNPC_IPs$[getarraysize($FIRSTREWARDNPC_IPs$)] = getcharip(); #FIRSTREWARDNPC = true; getitem 502,1; mes "you got a reward!"; close2; callsub OnInit; end; }else{ mes "you already got the reward"; close; } } end; OnInit: if(getarraysize($FIRSTREWARDNPC_IPs$) => 20){ hideonnpc strnpcinfo(3); } end; } Quote Link to comment Share on other sites More sharing options...
Question
Hale
Hello Good Day! Is there anyone with this kind of script? For example.
Today is my fresh opening server then..
1.) A NPC will give free costume to the first twenty(20) players. (IP-Based/HID Based/Etc.) //I don't know which is much better.
2.) Then after the first twenty players [20/20] claimed the costumes,
3. The NPC will automatically be disabled, hide, or tell that all costumes are claimed.
Thank you guys!
Link to comment
Share on other sites
1 answer 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.