Jump to content
  • 0

Summon Zombie when player dies


Question

3 answers to this question

Recommended Posts

Posted (edited)

Sounds like, the eAmod they have. Though, their's is turned on and off by use of a command.

This should effectively mimic their system, by giving you commands, to turn it off and on.

-	script	undead_mode	-1,{
	OnInit:
	set .mode,1; //0 = Zombies Only, 1 = Random undead mob.
	set .mobs[0],1015,1016,1028,1071,1076,1152,1153,1169,1196,1290,1197,1298,1864,1865;
	bindatcmd( "@undeadmode",strnpcinfo(3)+"::OnAtCommand" );
	bindatcmd( "@zombiemode",strnpcinfo(3)+"::OnAtCommand" );
	end;
	OnAtCommand:
	if($zmode){set $zmode,0;} else {set $zmode,1;}
	dispbottom "Undead/Zombie Mode is now "+ ($zmode?"OFF":"ON") +"";
	end;
	OnPCDieEvent:
	if($zmode){
	if( .mode ){set .@id,.mobs[rand(getarraysize(.mobs))];} else {set .@id,.mobs[0];}
	monster "this",-1,-1,strcharinfo(0),.@id,1"";}
	end;
}

*Note, I may have gotten, the display message backwards about when it says off and on lol, not sure, been awhile since i've used that method.

Edited by Lionhardt

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