Jump to content
  • 0

R>ET after killing naght sieger prize


Question

2 answers to this question

Recommended Posts

  • 0
Posted (edited)
7 hours ago, Sergardo said:

Request after kiling naght siger or  finish Endless tower give prize  "id)

Look for this:

OnTimer10500:
	set .@map$, instance_mapname("6@tower");
	mapannounce .@map$,"You'll soon know. Mine is the face of death!",bc_map,"0x00ffcc";
	stopnpctimer;
	monster .@map$,156,147,"Nacht Sieger",1956,1,instance_npcname("#4th Beeper")+"::OnMyMobDead";
	end;

OnMyMobDead:
	// You can add 'getitem 501, 100;'  or something here..
	donpcevent instance_npcname("Lost Soul#102")+"::OnEnable";
	end;

Assuming you only want to give item to the one who killed.

If you want to give to each party member, just run a loop to distribute the item instead..

	getpartymember getcharid(1), 2;
	for ( .@i = 0; .@i < $@partymembercount; .@i++ ) {
		attachrid $@partymemberaid[.@i];
		getitem 501, 100; 
		detachrid;
	}

 

Edited by RagEmp
  • 0
Posted
On 10/30/2022 at 11:29 AM, RagEmp said:

Look for this:

OnTimer10500:
	set .@map$, instance_mapname("6@tower");
	mapannounce .@map$,"You'll soon know. Mine is the face of death!",bc_map,"0x00ffcc";
	stopnpctimer;
	monster .@map$,156,147,"Nacht Sieger",1956,1,instance_npcname("#4th Beeper")+"::OnMyMobDead";
	end;

OnMyMobDead:
	// You can add 'getitem 501, 100;'  or something here..
	donpcevent instance_npcname("Lost Soul#102")+"::OnEnable";
	end;

Assuming you only want to give item to the one who killed.

If you want to give to each party member, just run a loop to distribute the item instead..

	getpartymember getcharid(1), 2;
	for ( .@i = 0; .@i < $@partymembercount; .@i++ ) {
		attachrid $@partymemberaid[.@i];
		getitem 501, 100; 
		detachrid;
	}

 

thank you so much sir master

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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...