Jump to content
  • 0

Question

9 answers to this question

Recommended Posts

  • 0
Posted

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;


}
Posted

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 : }
Posted (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 by Scotch
Posted


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;

}

Posted (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 by sandbox
Didn't notice that Zasura posted the solution already
Posted
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 :)

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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...