daen Posted January 10, 2014 Group: Members Topic Count: 14 Topics Per Day: 0.00 Content Count: 25 Reputation: 0 Joined: 11/08/13 Last Seen: February 28, 2014 Share Posted January 10, 2014 (edited) OnTimer10500: instance_announce 0,"You'll soon know. Mine is the face of death!",bc_map,"0x00ffcc"; stopnpctimer; monster "6@tower",156,147,"Nacht Sieger",1956,1,instance_npcname("#4th Beeper", instance_id())+"::OnMyMobDead"; end; OnMyMobDead: getpartymember getcharid(1),1; getpartymember getcharid(1),2; for( set .@i,0; .@i<$@partymembercount; set .@i,.@i+1 ) { if( isloggedin( $@partymemberaid[.@i], $@partymembercid[.@i] ) ) { attachrid $@partymemberaid[.@i]; getitem 501,1, $@partymemberaid[.@i]; // -- Get Red Potions per party member, change your item id detachrid; } } donpcevent instance_npcname("Lost Soul#102", instance_id())+"::OnEnable"; end; Edited January 10, 2014 by Patskie Code Quote Link to comment Share on other sites More sharing options...
Patskie Posted January 10, 2014 Group: Members Topic Count: 50 Topics Per Day: 0.01 Content Count: 1702 Reputation: 241 Joined: 09/05/12 Last Seen: 3 hours ago Share Posted January 10, 2014 if ( getpartyleader( getcharid(1), 2 ) != getcharid(0) ) end;// not the party leader Quote Link to comment Share on other sites More sharing options...
AnnieRuru Posted January 10, 2014 Group: Members Topic Count: 18 Topics Per Day: 0.00 Content Count: 2044 Reputation: 682 Joined: 10/09/12 Last Seen: December 20, 2020 Share Posted January 10, 2014 (edited) OnTimer10500: instance_announce 0,"You'll soon know. Mine is the face of death!",bc_map,"0x00ffcc"; stopnpctimer; monster "6@tower",156,147,"Nacht Sieger",1956,1,instance_npcname("#4th Beeper", instance_id())+"::OnMyMobDead"; end; OnMyMobDead: .@partyleaderaid = getpartyleader( getcharid(1), 1 ); if ( isloggedin( .@partyleaderaid, getpartyleader( getcharid(1), 2 ) ) ) // if the party leader is log in getitem 501,1, .@partyleaderaid; // gives the item to the party leader else // or if the party leader is currently not login WHILE the monster has killed getitem 501,1; // gives the item to the player who land the last kill, or dealed most damage, depends on mob_npc_event_type: inside conf\battle\monster.conf donpcevent instance_npcname("Lost Soul#102", instance_id())+"::OnEnable"; end; Edited January 10, 2014 by AnnieRuru Quote Link to comment Share on other sites More sharing options...
Question
daen
OnTimer10500:
instance_announce 0,"You'll soon know. Mine is the face of death!",bc_map,"0x00ffcc";
stopnpctimer;
monster "6@tower",156,147,"Nacht Sieger",1956,1,instance_npcname("#4th Beeper", instance_id())+"::OnMyMobDead";
end;
OnMyMobDead:
getpartymember getcharid(1),1;
getpartymember getcharid(1),2;
for( set .@i,0; .@i<$@partymembercount; set .@i,.@i+1 )
{
if( isloggedin( $@partymemberaid[.@i], $@partymembercid[.@i] ) )
{
attachrid $@partymemberaid[.@i];
getitem 501,1, $@partymemberaid[.@i]; // -- Get Red Potions per party member, change your item id
detachrid;
}
}
donpcevent instance_npcname("Lost Soul#102", instance_id())+"::OnEnable";
end;
Edited by PatskieCode
Link to comment
Share on other sites
2 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.