Jump to content
  • 0
AinsLord

Help Adding Pub on NPC

Question

Im figuring out my self how to add pub but it seems i cant do it

anyone can help me with this

here is the code

//================= Freebies NPC ================//
// by : pajodex
prontera,159,193,4	script	Freebies NPC	100,{


If(GetFree) { 
		npctalk "Sorry yo! No more freebies available for yo!";
		end;
		 }
	else {
	mes "[ ^FF0000System^000000 ]";
	mes "Welcome ^FF0000"+strcharinfo(0)+"^000000 !";
	next;
	mes "[ ^FF0000System^000000 ]";
	mes "Let me help you start your adventure!";
	next;
	mes "[ ^FF0000System^000000 ]";
	mes "Here you go!";
	if(.char_bound) {
	for(.@i = 0; .@i<getarraysize(.char_reward); .@i++)
		getitem .char_reward[.@i],.char_reward_amt[.@i];
		}
	GetFree = 1;
	if(#freebies == 0 && .account_bound == 1) {
	next;
	mes "[ ^FF0000System^000000 ]";
	mes "It seems to be your first, here!";
	mes "~ Special Freebies from the [ ^FF0000GM Team^000000 ]";
	for(.@i = 0; .@i<getarraysize(.acc_reward); .@i++)
		getitem .acc_reward[.@i],.acc_reward_amt[.@i];
	#freebies = 1;
	}
	next;
	mes "[ ^FF0000System^000000 ]";
	mes "Goodluck! Enjoy your Adventure ~";
	close;
	}
	
OnInit:
	// settings
	.char_bound = 1; // enable character bound rewards (1 = on || 0 = off)
	.account_bound = 1; // enable account bound rewards (1 = on || 0 = off)
	// set item (char bound)
	setarray .char_reward, 501, 502, 503; // item
	setarray .char_reward_amt, 1, 2, 4; // amount
	// set item (acc bound)
	setarray .acc_reward, 501, 502, 503; // item
	setarray .acc_reward_amt, 1, 2, 4; // amount
	end;
}

i duuno where to add the

OnInit:
waitingroom " Feebies NPC ",0;
end;

#TIA

EDIT: Figured it Out 🙂

Edited by AinsLord
Resolve issue

Share this post


Link to post
Share on other sites

1 answer to this question

Recommended Posts

  • 0
//================= Freebies NPC ================//
// by : pajodex
prontera,159,193,4	script	Freebies NPC	100,{


If(GetFree) { 
		npctalk "Sorry yo! No more freebies available for yo!";
		end;
		 }
	else {
	mes "[ ^FF0000System^000000 ]";
	mes "Welcome ^FF0000"+strcharinfo(0)+"^000000 !";
	next;
	mes "[ ^FF0000System^000000 ]";
	mes "Let me help you start your adventure!";
	next;
	mes "[ ^FF0000System^000000 ]";
	mes "Here you go!";
	if(.char_bound) {
	for(.@i = 0; .@i<getarraysize(.char_reward); .@i++)
		getitem .char_reward[.@i],.char_reward_amt[.@i];
		}
	GetFree = 1;
	if(#freebies == 0 && .account_bound == 1) {
	next;
	mes "[ ^FF0000System^000000 ]";
	mes "It seems to be your first, here!";
	mes "~ Special Freebies from the [ ^FF0000GM Team^000000 ]";
	for(.@i = 0; .@i<getarraysize(.acc_reward); .@i++)
		getitem .acc_reward[.@i],.acc_reward_amt[.@i];
	#freebies = 1;
	}
	next;
	mes "[ ^FF0000System^000000 ]";
	mes "Goodluck! Enjoy your Adventure ~";
	close;
	}
	
OnInit:
	// settings
	.char_bound = 1; // enable character bound rewards (1 = on || 0 = off)
	.account_bound = 1; // enable account bound rewards (1 = on || 0 = off)
	// set item (char bound)
	setarray .char_reward, 501, 502, 503; // item
	setarray .char_reward_amt, 1, 2, 4; // amount
	// set item (acc bound)
	setarray .acc_reward, 501, 502, 503; // item
	setarray .acc_reward_amt, 1, 2, 4; // amount
        OnInit:
        waitingroom "Freebies",0;
	end;
}

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

Important Information

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