Jump to content
  • 0
AmonaRoro1

i need little help of scripting a freebies npc

Question

may i get a little help here please , i got this reward npc , but it didnt check if the player is using the same account and another char to get the reward , so he only can get it by 1 char in the account , not checking the IP . Here's the npc

 

new_1-1,51,67,3    script    ShadowRO Gifter    10039,{
    mes "[shadowRO Gift]";
    mes "Hi, Welcome to Shadow Ragnarok Online !";
    mes "Do you want your gift ?";
    next;
    switch(select("Sure !", "Hmmm..")) {
    case 1:
        mes "[shadowRO Gift]";
        mes "Have Fun,";
        mes "Remember, the job master will meet you in the middle of prontera.";
        next;
        mes "[shadowRO Gift]";
        mes "See You !";
        next;
        savepoint "prontera",116,73;
        getitem 755, 1;
        warp "prontera",116,73;
        end;
    case 2:
        mes "[shadowRO Gift]";
        mes "... !?";
        close;
    }
}
 
 
i dont mind if there's better npc , and thank you .

Share this post


Link to post
Share on other sites

5 answers to this question

Recommended Posts

  • 0


new_1-1,51,67,3 script ShadowRO Gifter 10039,{

mes "[ShadowRO Gift]";

mes "Hi, Welcome to Shadow Ragnarok Online !";

if (#gotgift) {

mes "You have already claimed your gift.";

close;

}

mes "Do you want your gift ?";

next;

switch(select("Sure !", "Hmmm..")) {

case 1:

mes "[ShadowRO Gift]";

mes "Have Fun,";

mes "Remember, the job master will meet you in the middle of prontera.";

next;

mes "[ShadowRO Gift]";

mes "See You !";

next;

savepoint "prontera",116,73;

getitem 755, 1;

#gotgift = 1;

warp "prontera",116,73;

end;

case 2:

mes "[ShadowRO Gift]";

mes "... !?";

close;

}

}

Share this post


Link to post
Share on other sites
  • 0


new_1-1,51,67,3 script ShadowRO Gifter 10039,{

mes "[ShadowRO Gift]";

mes "Hi, Welcome to Shadow Ragnarok Online !";

if (#gotgift) {

mes "You have already claimed your gift.";

close2;

warp "prontera",116,73;

end;

}

mes "Do you want your gift ?";

next;

switch(select("Sure !", "Hmmm..")) {

case 1:

mes "[ShadowRO Gift]";

mes "Have Fun,";

mes "Remember, the job master will meet you in the middle of prontera.";

next;

mes "[ShadowRO Gift]";

mes "See You !";

next;

savepoint "prontera",116,73;

getitem 755, 1;

#gotgift = 1;

warp "prontera",116,73;

end;

case 2:

mes "[ShadowRO Gift]";

mes "... !?";

close;

}

}

Share this post


Link to post
Share on other sites
  • 0
Guest

 

new_1-1,51,67,3	script	ShadowRO Gifter	10039,{
	mes "[ShadowRO Gift]";
	mes "Hi, Welcome to Shadow Ragnarok Online !";
	if (#gotgift) {
		mes "You have already claimed your gift.";
		close2;
		warp "prontera",116,73;
		end;
	}
	mes "Do you want your gift ?";
	next;
	switch(select("Sure !", "Hmmm..")) {
	case 1:
		mes "[ShadowRO Gift]";
		mes "Have Fun,";
		mes "Remember, the job master will meet you in the middle of prontera.";
		next;
		mes "[ShadowRO Gift]";
		mes "See You !";
		next;
		savepoint "prontera",116,73;
		getitem 755, 1;
		#gotgift = 1;
		warp "prontera",116,73;
		end;
	case 2:
		mes "[ShadowRO Gift]";
		mes "... !?";
		close;
	}
}

Maybe he is going to ask for save in prontera after porting, so -->

new_1-1,51,67,3	script	ShadowRO Gifter	10039,{
	mes "[ShadowRO Gift]";
	mes "Hi, Welcome to Shadow Ragnarok Online !";
	if (#gotgift) {
		mes "You have already claimed your gift.";
		close2;
                savepoint "prontera",116,73;
		warp "prontera",116,73;
		end;
	}
	mes "Do you want your gift ?";
	next;
	switch(select("Sure !", "Hmmm..")) {
	case 1:
		mes "[ShadowRO Gift]";
		mes "Have Fun,";
		mes "Remember, the job master will meet you in the middle of prontera.";
		next;
		mes "[ShadowRO Gift]";
		mes "See You !";
		next;
		savepoint "prontera",116,73;
		getitem 755, 1;
		#gotgift = 1;
		warp "prontera",116,73;
		end;
	case 2:
		mes "[ShadowRO Gift]";
		mes "... !?";
		close;
	}
}
Edited by Guest

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

×
×
  • Create New...

Important Information

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