Scotch Posted March 5, 2014 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
0 Zasura Posted March 7, 2014 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
sandbox Posted March 5, 2014 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
Scotch Posted March 6, 2014 Author 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
Scotch Posted March 6, 2014 Author 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
Zasura Posted March 7, 2014 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
sandbox Posted March 7, 2014 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
Scotch Posted March 7, 2014 Author 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
Question
Scotch
Can anyone have a script for Freebies NPC?
it will give freebies box to a player...
1 Freebies Box per Account only
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.