Scotch Posted March 5, 2014 Group: Members Topic Count: 49 Topics Per Day: 0.01 Content Count: 118 Reputation: 0 Joined: 09/19/12 Last Seen: April 2, 2016 Share Posted March 5, 2014 Can anyone have a script for Freebies NPC? it will give freebies box to a player... 1 Freebies Box per Account only Quote Link to comment Share on other sites More sharing options...
0 Zasura Posted March 7, 2014 Group: Members Topic Count: 11 Topics Per Day: 0.00 Content Count: 48 Reputation: 4 Joined: 11/27/11 Last Seen: October 22, 2020 Share Posted March 7, 2014 oh sry i forgot # prontera,100,200,3 script Freebies 78,{ if(#Freebie) { mes "You already got your freebies"; close; } mes "Here's your freebies"; getitem 1234,1; set #Freebie,1; close; } Quote Link to comment Share on other sites More sharing options...
sandbox Posted March 5, 2014 Group: Members Topic Count: 38 Topics Per Day: 0.01 Content Count: 949 Reputation: 174 Joined: 06/12/12 Last Seen: 7 hours ago Share Posted March 5, 2014 prontera,100,200,3 script Freebies 78,{ if(#Freebie) end; mes "Here's your freebies"; getitem 1234,1; #Freebie = 1; close; } Quote Link to comment Share on other sites More sharing options...
Scotch Posted March 5, 2014 Group: Members Topic Count: 49 Topics Per Day: 0.01 Content Count: 118 Reputation: 0 Joined: 09/19/12 Last Seen: April 2, 2016 Author Share Posted March 5, 2014 ok sir thanks...i try it later Quote Link to comment Share on other sites More sharing options...
Scotch Posted March 6, 2014 Group: Members Topic Count: 49 Topics Per Day: 0.01 Content Count: 118 Reputation: 0 Joined: 09/19/12 Last Seen: April 2, 2016 Author Share Posted March 6, 2014 sir i have errors.. script error on npc/custom/freebies.txt line 6 parse_line: expect command, missing function name or calling undeclared func tion 1 : { 2 : 3 : if(#Freebie) end; 4 : mes "Here's your freebies"; 5 : getitem 1234,1; * 6 : '#'Freebie = 1; 7 : close; 8 : 9 : 10 : } Quote Link to comment Share on other sites More sharing options...
sandbox Posted March 6, 2014 Group: Members Topic Count: 38 Topics Per Day: 0.01 Content Count: 949 Reputation: 174 Joined: 06/12/12 Last Seen: 7 hours ago Share Posted March 6, 2014 change #Freebie = 1; to set #Freebie,1; Quote Link to comment Share on other sites More sharing options...
Scotch Posted March 6, 2014 Group: Members Topic Count: 49 Topics Per Day: 0.01 Content Count: 118 Reputation: 0 Joined: 09/19/12 Last Seen: April 2, 2016 Author Share Posted March 6, 2014 (edited) sir how to add a message that you already receive your freebies box? that you cannot get another freebies from the npc bcoz u have already get one? Edited March 6, 2014 by Scotch Quote Link to comment Share on other sites More sharing options...
Zasura Posted March 7, 2014 Group: Members Topic Count: 11 Topics Per Day: 0.00 Content Count: 48 Reputation: 4 Joined: 11/27/11 Last Seen: October 22, 2020 Share Posted March 7, 2014 prontera,100,200,3 script Freebies 78,{ if(#Freebie) { mes "You already got your freebies"; close; } mes "Here's your freebies"; getitem 1234,1; set Freebie,1; close; } Quote Link to comment Share on other sites More sharing options...
sandbox Posted March 7, 2014 Group: Members Topic Count: 38 Topics Per Day: 0.01 Content Count: 949 Reputation: 174 Joined: 06/12/12 Last Seen: 7 hours ago Share Posted March 7, 2014 (edited) prontera,100,200,3 script Freebies 78,{ if(#Freebie) { mes "You already got your freebies"; close; } mes "Here's your freebies"; getitem 1234,1; set #Freebie = 1; close; } Edited March 7, 2014 by sandbox Didn't notice that Zasura posted the solution already Quote Link to comment Share on other sites More sharing options...
Scotch Posted March 7, 2014 Group: Members Topic Count: 49 Topics Per Day: 0.01 Content Count: 118 Reputation: 0 Joined: 09/19/12 Last Seen: April 2, 2016 Author Share Posted March 7, 2014 this is the error sir [Error]: Loading NPC file: npc/custom/freebies.txt script error on npc/custom/freebies.txt line 10 parse_callfunc: not enough arguments, expected ',' 5 : close; 6 : } 7 : 8 : mes "Here's your freebies"; 9 : getitem 1234,1; * 10 : set #Freebie '=' 1; 11 : close; 12 : 13 : 14 : 15 : } Thanks Zasura Quote Link to comment Share on other sites More sharing options...
Question
Scotch
Can anyone have a script for Freebies NPC?
it will give freebies box to a player...
1 Freebies Box per Account only
Link to comment
Share on other sites
9 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.