Bisuke Posted August 21, 2013 Group: Members Topic Count: 51 Topics Per Day: 0.01 Content Count: 177 Reputation: 10 Joined: 04/02/12 Last Seen: November 2, 2024 Share 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 Link to comment Share on other sites More sharing options...
Emistry Posted August 21, 2013 Group: Forum Moderator Topic Count: 93 Topics Per Day: 0.02 Content Count: 10018 Reputation: 2369 Joined: 10/28/11 Last Seen: Sunday at 05:32 PM Share Posted August 21, 2013 OnPCDieEvent: monster "this",-1,-1,"Zombie",1015,1,""; end; Quote Link to comment Share on other sites More sharing options...
Bisuke Posted August 21, 2013 Group: Members Topic Count: 51 Topics Per Day: 0.01 Content Count: 177 Reputation: 10 Joined: 04/02/12 Last Seen: November 2, 2024 Author Share Posted August 21, 2013 Thanks Emistry! This would be a big help! Quote Link to comment Share on other sites More sharing options...
GmOcean Posted August 21, 2013 Group: Members Topic Count: 31 Topics Per Day: 0.01 Content Count: 666 Reputation: 93 Joined: 04/27/12 Last Seen: August 17, 2015 Share 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 Link to comment Share on other sites More sharing options...
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!
Link to comment
Share on other sites
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.