Foob Posted February 8, 2017 Group: Members Topic Count: 46 Topics Per Day: 0.02 Content Count: 267 Reputation: 40 Joined: 01/19/17 Last Seen: Yesterday at 03:47 AM Share Posted February 8, 2017 Hi, Requesting a freebie NPC that will check its account ID and if account ID is on range example Account 1 to 50. It will automatically send freebie for 1 time only. Regards! Quote Link to comment Share on other sites More sharing options...
0 Akkarin Posted February 8, 2017 Group: Forum Manager Topic Count: 282 Topics Per Day: 0.06 Content Count: 3144 Reputation: 1630 Joined: 03/26/12 Last Seen: Tuesday at 10:17 AM Share Posted February 8, 2017 Untested example: prontera,100,100,5 script Freebie 123,{ if(accfreebie > 0){ goto L_Already; } .id = getcharid(3); if(.id < 2000051){ getitem .reward, .qty; accfreebie = 1; mes "Here, have a reward!"; close; } L_Already: mes "You have already been given this reward."; close; OnInit: .reward = 501; // Red Potion .qty = 1; end; } Alter to suit your needs. You can find basic functions for scripting in the script_commands.txt file Quote Link to comment Share on other sites More sharing options...
Question
Foob
Hi,
Requesting a freebie NPC that will check its account ID and if account ID is on range example Account 1 to 50. It will automatically send freebie for 1 time only.
Regards!
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.