Jump to content
  • 0

R>ET after killing naght sieger prize


Sergardo

Question


  • Group:  Members
  • Topic Count:  64
  • Topics Per Day:  0.02
  • Content Count:  148
  • Reputation:   0
  • Joined:  03/06/15
  • Last Seen:  

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

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  0
  • Topics Per Day:  0
  • Content Count:  10
  • Reputation:   2
  • Joined:  10/21/22
  • Last Seen:  

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
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  64
  • Topics Per Day:  0.02
  • Content Count:  148
  • Reputation:   0
  • Joined:  03/06/15
  • Last Seen:  

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

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