Bisuke Posted August 21, 2013 Posted August 21, 2013 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! Quote
Emistry Posted August 21, 2013 Posted August 21, 2013 OnPCDieEvent: monster "this",-1,-1,"Zombie",1015,1,""; end; Quote
Bisuke Posted August 21, 2013 Author Posted August 21, 2013 Thanks Emistry! This would be a big help! Quote
GmOcean Posted August 21, 2013 Posted August 21, 2013 (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 August 21, 2013 by Lionhardt Quote
Question
Bisuke
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!
3 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.