Jump to content
  • 0

Freebies Request


rans

Question


  • Group:  Members
  • Topic Count:  104
  • Topics Per Day:  0.02
  • Content Count:  429
  • Reputation:   60
  • Joined:  08/19/12
  • Last Seen:  

Can I request A freebie npc that can generate a code...

that code when you enter to the Freebies NPC . it will give you the Freebies.. :D

thnx-- sorry for my bad english sir..

Link to comment
Share on other sites

4 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  38
  • Topics Per Day:  0.01
  • Content Count:  167
  • Reputation:   22
  • Joined:  11/23/11
  • Last Seen:  

- script Freebie -1,{
OnPCLoginEvent:
if (#Freebie == 0) {
mes "Welcome to ServerRO!"; //Server Name
mes "Since you're new to this server you get some freebies!";
set #Freebie, #Freebie 1;
getitem 517,100; //Change Items
getitem 501,500; //Change Items
close;
end;
}
end;
}

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  35
  • Topics Per Day:  0.01
  • Content Count:  114
  • Reputation:   0
  • Joined:  05/10/12
  • Last Seen:  

This one would help you

 

 

prontera,147,165,4 script Freebies 910,{

set .npc$,"[Newbie's Helper]";
if(#newbie==0){ goto Get; }
else { goto Got; }

Get:
mes .npc$;
mes "Hello there, Welcome to RO!";
next;
mes .npc$;
mes "Do you want some free items for newbie?";
next;
menu
"No, Thank's",M1,"Of course! Give me please...",M2;

M1:
next;
mes .npc$;
mes "OK, no problem. Come again if you change your mind.";
close;
end;

M2:
next;
mes .npc$;
mes "Here!";
mes "Have nice days!";

getitem 3293,1;

set #newbie,1;
close2;
end;
end;
end;

Got:
mes .npc$;
mes "Hello "+strcharinfo(0)+"!";
mes "Have great days!";
close;
end;

// auto announcement
OnInit:
while(1) {
npctalk "Take your Freebies Items here! ";
sleep 900000;
}
}
 
Link to comment
Share on other sites


  • Group:  Developer
  • Topic Count:  10
  • Topics Per Day:  0.00
  • Content Count:  2407
  • Reputation:   613
  • Joined:  07/05/12
  • Last Seen:  

set #Freebie, #Freebie 1;

Wrong.

set #Freebie, 1;

... Right.

close;
end;


End after close is useless.

-	script	Freebie	-1,{
OnPCLoginEvent:
if( !#Freebie ) {
	mes "Welcome to ServerRO!"; //Server Name
	mes "Since you're new to this server you get some freebies!";
	set #Freebie, 1;
	getitem 517,100; //Change Items
	getitem 501,500; //Change Items
	close;
}
end;
}

... is a little better.

close2;
end;
end;
end;

What's that ? Prevention ? XD ! Sorry... >>

Please use codebox !

Edited by Capuche
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  38
  • Topics Per Day:  0.01
  • Content Count:  167
  • Reputation:   22
  • Joined:  11/23/11
  • Last Seen:  

Sorry. Lol.

I haven't code in years.

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