Jump to content
  • 0

R>Freebies NPC


Scotch

Question


  • Group:  Members
  • Topic Count:  49
  • Topics Per Day:  0.01
  • Content Count:  118
  • Reputation:   0
  • Joined:  09/19/12
  • Last Seen:  

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

  • 0

  • Group:  Members
  • Topic Count:  11
  • Topics Per Day:  0.00
  • Content Count:  48
  • Reputation:   4
  • Joined:  11/27/11
  • Last Seen:  

oh sry i forgot # :D
 

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;


}
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  38
  • Topics Per Day:  0.01
  • Content Count:  949
  • Reputation:   174
  • Joined:  06/12/12
  • Last Seen:  


prontera,100,200,3 script Freebies 78,{

if(#Freebie) end;

mes "Here's your freebies";

getitem 1234,1;

#Freebie = 1;

close;

}

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  49
  • Topics Per Day:  0.01
  • Content Count:  118
  • Reputation:   0
  • Joined:  09/19/12
  • Last Seen:  

ok sir thanks...i try it later

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  49
  • Topics Per Day:  0.01
  • Content Count:  118
  • Reputation:   0
  • Joined:  09/19/12
  • Last Seen:  

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 : }
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  38
  • Topics Per Day:  0.01
  • Content Count:  949
  • Reputation:   174
  • Joined:  06/12/12
  • Last Seen:  

change

#Freebie = 1;

to

set #Freebie,1;
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  49
  • Topics Per Day:  0.01
  • Content Count:  118
  • Reputation:   0
  • Joined:  09/19/12
  • Last Seen:  

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 by Scotch
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  11
  • Topics Per Day:  0.00
  • Content Count:  48
  • Reputation:   4
  • Joined:  11/27/11
  • Last Seen:  


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;

}

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  38
  • Topics Per Day:  0.01
  • Content Count:  949
  • Reputation:   174
  • Joined:  06/12/12
  • Last Seen:  


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 by sandbox
Didn't notice that Zasura posted the solution already
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  49
  • Topics Per Day:  0.01
  • Content Count:  118
  • Reputation:   0
  • Joined:  09/19/12
  • Last Seen:  

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 :)

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...