Jump to content
  • 0
Dolphin86

Respawn NPC

Question

can someone edit this npc so that it will respawn back in the same map instantly and only respawn on walk path area only, and also add special effect refining while progress (mine) and sucsess special effect when get an item, thanks

Spoiler

 

-	script	sample_main	-1,{
	OnPCDieEvent:
		if (getmapflag(strnpcinfo(3), mf_pvp)) {
			getmapxy(@map$, @x, @y, BL_PC);
			callsub(L_DropItem, 969);
			callsub(L_DropItem, 724);
			callsub(L_DropItem, 7049);
		}
		end;
		
	L_DropItem:
		[email protected]_id = getarg(0, 0);
		if ([email protected]_id) {
			[email protected] = countitem([email protected]_id);
			delitem [email protected]_id, [email protected];
			makeitem [email protected]_id, [email protected], @map$, @x, @y;
		}
		return;
}
neko_isle,69,108,4	script	Normal Crystal	1288,{
	if (countitem(6010)) {
		[email protected] = rand(100);
		if ([email protected] < 1) {
			[email protected]_id = 969;
		}
		else if ([email protected] < 25) {
			[email protected]_id = 724;
		}
		else if ([email protected] < 90) {
			[email protected]_id = 7049;
		}
		else {
			// nothing
		}
		if ([email protected]_id) {
			while(1){
				if(.mine == .minemax){
					movenpc strnpcinfo(3), rand(300), rand(300), rand(8);
					end;
				}
				progressbar "GREEN",5;
				getitem [email protected]_id, 1;
				.mine++;
			}
		}
	}
	end;
	OnInit:
		.minemax = 100;
		
		
}
//prontera,1,1,4	duplicate(Normal Crystal)	Normal Crystal#2	1288
//prontera,1,1,4	duplicate(Normal Crystal)	Normal Crystal#3	1288

 

 

Edited by Dolphin86
Link to comment
Share on other sites

0 answers to this question

Recommended Posts

There have been no answers to this question yet

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.