Jump to content
  • 0
Sign in to follow this  
mybitch

R> A script that checks first login of the account

Question

Requesting a script that will check first login of account and will give x items. I don't want to use global reg value cause isn't it limited before? Or uptil now? Thanks in advance!

Share this post


Link to post
Share on other sites

4 answers to this question

Recommended Posts

  • 0

new_1-1,53,111,0	script	WelcomeNPC#new_1-1	-1,1,1,{	if(#alreadyLogIn != 1){		OnTouch:				//a message for the user			mes "Welcome to Ragnarok Online";			mes "Take this ^CE0411 Phracon ^000000 as a Welcome gift.";			mes "We wish you much fun on our Server.";						//give the user the item			getitem 1010,1; //ItemID              set #alreadyLogIn, 1; //global value for account			close;	}} 

 i placed the npc on the spawnpoint for new players on the new_1-1 map. if you changed the standard spawnpoint, place it where your players are spawning.

 

Greetings

Tepoo

Edited by Tepoo

Share this post


Link to post
Share on other sites
  • 0

 

new_1-1,53,111,0	script	WelcomeNPC#new_1-1	-1,1,1,{	if(checkquest(100) == -1){ //-1 means the user doesnt have this quest finished		OnTouch:				//a message for the user			mes "Welcome to Ragnarok Online";			mes "Take this ^CE0411 Phracon ^000000 as a Welcome gift.";			mes "We wish you much fun on our Server.";						//give the user the item			getitem 1010,1; //ItemID						// part for finishing the quest that the			// user only gets this one time on the character			setquest 100; //questID for starting the quest			completequest 100; //questid for finishing the quest			close;	}} 

 

 

 and add this to your Quest_db.txt

 

100,0,0,0,0,0,0,0,"Welcome To XXXX Ragnarok Online"

 

with this way its a quest which is finished when the player touches the npc. i placed the npc on the spawnpoint for new players on the new_1-1 map. if you changed the standard spawnpoint, place it where your players are spawning.

 

Greetings

Tepoo

 

Isn't this going to use any values that will add in the quest log? Using sql will not but hard to configure

Share this post


Link to post
Share on other sites
  • 0

Could you define your question a little bit more?

As i dont know what you want to ask about this solution.

 

there are two clean ways to save an information like this for a character.

 

1. global_reg_values

2. quest db

Share this post


Link to post
Share on other sites
  • 0

ill updated the script, i missunderstood your first post (tought first time of player) as you want it for an account, the only way to do this is over global_reg_value and #ValueName.

Share this post


Link to post
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.   Restore formatting

  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.

Loading...
Sign in to follow this  

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.