Jump to content
  • 0

Summon Zombie when player dies


Bisuke

Question


  • Group:  Members
  • Topic Count:  51
  • Topics Per Day:  0.01
  • Content Count:  177
  • Reputation:   10
  • Joined:  04/02/12
  • Last Seen:  

I'm new in scripting, I just wanna know how to summon a Zombie on the same spot of a player who dies? Thanks in advance! :)

Link to comment
Share on other sites

3 answers to this question

Recommended Posts


  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10015
  • Reputation:   2350
  • Joined:  10/28/11
  • Last Seen:  


OnPCDieEvent:

monster "this",-1,-1,"Zombie",1015,1,"";

end;

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  51
  • Topics Per Day:  0.01
  • Content Count:  177
  • Reputation:   10
  • Joined:  04/02/12
  • Last Seen:  

Thanks Emistry! This would be a big help! :)

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  31
  • Topics Per Day:  0.01
  • Content Count:  666
  • Reputation:   93
  • Joined:  04/27/12
  • Last Seen:  

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