Jump to content
  • 0

Bring me event


kitty14

Question


  • Group:  Members
  • Topic Count:  103
  • Topics Per Day:  0.03
  • Content Count:  323
  • Reputation:   4
  • Joined:  12/09/13
  • Last Seen:  

Hello  help me with this script, what i want is that , when player talk to npc , ncp will tell what are the items needed to bring after the npc announces it... 

or something 

"You dont have the (name of the item) that i requested.."

prontera,150,150,0	script	Sample	100,{
	if ( countitem( .item ) < .amount ) {
		mes "You don't have my requirements";
		close;
	}
	delitem .item, .amount;
	getitem .p, .a;
	announce "Yayks! " + strcharinfo( 0 ) + " won the event",0;
	hideonnpc strnpcinfo(1);
	end;
 
	OnMinute00:
		.@time++;
		if ( .@time % 2 ) end;
		.@i = rand( getarraysize( .BringMeItems ) );
		.item = .BringMeItems[ .@i ];
		.amount = rand( 10, 30 );
		announce "Bring me " + .amount + "x " + getitemname( .item ),0;
		hideoffnpc strnpcinfo(1);
		end;
 
	OnInit:
		setarray .BringMeItems[0],501,7227,4001,7005,909,512,714;
		.p = 7227;
		.a = 5; 
		hideonnpc strnpcinfo(1);
		end;
}
Link to comment
Share on other sites

2 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  86
  • Topics Per Day:  0.02
  • Content Count:  591
  • Reputation:   146
  • Joined:  06/19/12
  • Last Seen:  


prontera,153,183,5 script Sampel 100,{

if ( countitem( .item ) < .amount ) {

mes "You dont have the " + .amount + "x " + getitemname( .item )+"that i requested..";

close;

}

delitem .item, .amount;

getitem .p, .a;

announce "Yayks! " + strcharinfo( 0 ) + " won the event",0;

hideonnpc strnpcinfo(1);

end;

OnMinute00:

.@time++;

if ( .@time % 2 ) end;

.@i = rand( getarraysize( .BringMeItems ) );

.item = .BringMeItems[ .@i ];

.amount = rand( 10, 30 );

announce "Bring me " + .amount + "x " + getitemname( .item ),0;

hideoffnpc strnpcinfo(1);

end;

OnInit:

setarray .BringMeItems[0],501,7227,4001,7005,909,512,714;

.p = 7227;

.a = 5;

hideonnpc strnpcinfo(1);

end;

}

  • Upvote 1
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  103
  • Topics Per Day:  0.03
  • Content Count:  323
  • Reputation:   4
  • Joined:  12/09/13
  • Last Seen:  

thank you EL Dragon /no1

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