Jump to content
  • 0

Event Script Derived From Crossfire Game


Question

Posted

the mechanics of script is like this. The NPC will appear at certain time and all players will warp on the specific map. Then the instruction is like Zombie Event. let's say there are 5 players after the tick of a clock one will transform to a zombie then the zombie player will attack the player when hitted it turns to zombie until all will get zombie but there's a 2 minute timer for the player to avoid of being a zombie thanks !

23 answers to this question

Recommended Posts

Posted

oh yes I love to make event scripts <3

but this one seems like level1 type though ( single player stuff ... too easy for me )

let's confirm the mechanics again

1. on certain time, the everyone in the server transport into a map

2. after some countdown, 1 of the player becoming a zombie

3. this zombie player will try to attack others, the one getting attacked become zombie also

4. reward given to those stay as human

* so is there any reward for someone who has turn most players into zombie ?

but there's a 2 minute timer for the player to avoid of being a zombie
don't understand this one

@GmOcean

yes indeed, and the answer is OnPCUseSkillEvent :P

Posted

Well, if we were to have a zombie start off, we'd have to add another src edit for each time a mob attacks. And we aren't going to do that as the event will trigger for all mobs, unless we hardcode it to only trigger with zombie monster. But, even then it will still ping for all monsters and then just stop if it's not a zombie lol. It'd kill the server too fast.

This was also the result of someone making a src edit to trigger when ever someone auto attacked. Each attack on each character pinged the server for the event and it pretty much crashed at about 50players on a high rate. So I'd recommend against usig a zombie first.

Posted

oh yes I love to make event scripts <3

but this one seems like level1 type though ( single player stuff ... too easy for me )

let's confirm the mechanics again

1. on certain time, the everyone in the server transport into a map

2. after some countdown, 1 of the player becoming a zombie

3. this zombie player will try to attack others, the one getting attacked become zombie also

4. reward given to those stay as human

* so is there any reward for someone who has turn most players into zombie ?

but there's a 2 minute timer for the player to avoid of being a zombie
don't understand this one

@GmOcean

yes indeed, and the answer is OnPCUseSkillEvent :P

i mean for that is when the participants enter the map they will have 2 mins to scatter to prepare because one of them will become the zombie

Posted (edited)

Suggestion:

First Player disguise into zombie.

It would need faction system too so that zombie don't attack zombie and player don't attack player.

Edited by Dastgir Pojee
Posted (edited)

Like i've said before, the only way to make it as soon as the target gets attacked is via src. And again like i've said before, currently (without) src edits, we can make it so that if a player is killed by a zombie they will turn into a zombie. This way we can actually use the perfect-no-miss attack to ' kill ' a player and turn them into a zombie to help.

This can be done a number of ways, but i'd suggest that we temporarily change zombie's into 'Novice' class and disguise as zombie's while also giving them an extremely OP weapon that will allow them to kill opponents in 1 hit while never being able to miss. Coincidentally we have a skill that never miss', it's used in RO cards right now, so we would just need to make it cast 100% of the time.

Additionally, turning them into 'novices' is not needed if the custom' weapon is a close range weapon equipable by all class', this will make it so archer/ranged class' won't have the advantage.

Edit:

Until just now I forgot this was a REQUEST lol. It actually sound pretty fun to me, so I'm going to take this one as a challenge, and 'tweak' it ever so slightly to make it a bit more interesting. I will however make sure to add in the nessecairy checks so that, you can revert it back to the way you wanted it as a request.

I also wish to see other's give their version of this event if they want.

Edited by GmOcean
Posted

Like i've said before, the only way to make it as soon as the target gets attacked is via src. And again like i've said before, currently (without) src edits, we can make it so that if a player is killed by a zombie they will turn into a zombie. This way we can actually use the perfect-no-miss attack to ' kill ' a player and turn them into a zombie to help.

This can be done a number of ways, but i'd suggest that we temporarily change zombie's into 'Novice' class and disguise as zombie's while also giving them an extremely OP weapon that will allow them to kill opponents in 1 hit while never being able to miss. Coincidentally we have a skill that never miss', it's used in RO cards right now, so we would just need to make it cast 100% of the time.

Additionally, turning them into 'novices' is not needed if the custom' weapon is a close range weapon equipable by all class', this will make it so archer/ranged class' won't have the advantage.

Edit:

Until just now I forgot this was a REQUEST lol. It actually sound pretty fun to me, so I'm going to take this one as a challenge, and 'tweak' it ever so slightly to make it a bit more interesting. I will however make sure to add in the nessecairy checks so that, you can revert it back to the way you wanted it as a request.

I also wish to see other's give their version of this event if they want.

Thank You for the appreciation of my request. I'm just starting to code it now but im a newbie i still studying different methods in scripting

Posted

Here's mine. Coded it 4 years ago. This was from my event pack w/c was released in ea before, I edited it to work without the other stuff.

- script left4dead -1,{
OnInit: bindatcmd("nvz","left4dead::OnEvent"); end;
OnEvent:
announce "Event Zombie Vs. Novice will begin in ~5~",0;
sleep 1000;
announce "Event Zombie Vs. Novice will begin in ~4~",0;
sleep 1000;
announce "Event Zombie Vs. Novice will begin in ~3~",0;
sleep 1000;
announce "Event Zombie Vs. Novice will begin in ~2~",0;
sleep 1000;
announce "Event Zombie Vs. Novice will begin in ~1~",0;
sleep 1000;
//if ( getmapusers("quiz_01") <= 1){
//announce "Not enough players.. Event cancelled.",0;
//sleep 1000;
//}
announce "Event 'Zombie Vs. Novice' has begun!!",0,0x00FF00;
announce "Novice RFYL Event: "+getmapusers("quiz_01")+" players in the Event.",0,0x00FF00;
sleep 5000;
mapannounce "quiz_01","WARNING: Four Zombies will spawn near the center in 10 seconds and everytime a players dies!",0;
sleep 5000;
monster "quiz_01",42,369,"LEFT4DEAD",1015,4;
end;

winner:
killmonsterall "quiz_01";
mapannounce "quiz_01","You have won",0;
enablenpc "Prize";
stopnpctimer;
close;
end;
OnPCDieEvent:
getmapxy .@maprfyl$,.@xrfyl,.@yrfyl,0;
if ( .@maprfyl$ == "quiz_01") {
 monster "quiz_01",.@xrfyl,.@yrfyl,""+strcharinfo(0)+"",1015,1;
 announce "Novice RFYL Event: "+getmapusers("quiz_01")+" remaining players in the Event.",0,0x00FF00;
 sleep2 1;
 warp "prontera",156,223;
 atcommand "@alive "+ strcharinfo(0);
 dispbottom "You have died...";
 if ( getmapusers("quiz_01") <= 1) goto winner;
}
end;
}
quiz_01,42,369,3 script Prize 72,{
announce "Novice RFYL Event: " + strcharinfo (0) + " won! " + (sex == 1?"He": "She") +" won an item!",0;
getitem 501,1;
warp "prontera",156,223;
disablenpc "Prize";
end;
OnInit:
disablenpc "Prize";
end;
}

http://pastebin.com/ub8Wse1D

How to use:

1. Players must be in this place (quiz_01 42 369)

2. A gm must activate it via @nvz

NOTE: Currently, they will turn into zombies when they die (a zombie will spawn with the player's[the one who died] name on it.)

With a SRC modification, you can make them turn just by a mere touch of the zombies.

NOTE: If you're gonna use this, you may want to add a warper that allows only novice 1/1.

I got this idea from another NVZ script but I'm too lazy to find it.

Posted (edited)

What!? That's no fair lol. Gotta make one from scratch, well not really if it works then it works. As long as it gets the job done no need to make a new one lol. But for the fun of it, ill still make a version of my own.

Edit:

Well, here is my version of the script. (I have not tested it yet, but it runs through the server startup without errors, atleast it does for me lol).

So, if you want give it a try go for it, i'd like to hear some feedback. Additionally, I've made it so that a zombie monster, spawns with the player as the player is turned into a zombie. *Note - These zombies will attack the zombie players as well, but who doesn't like a little zombieVSzombie action lol (jk).

Edit2: Removed file. A few scripting crashing errors were found.

Edited by GmOcean
Posted
Your issue may be the Zombie King mob. You might not have it installed either that or it was removed from the grf at some point. 

 

Zombie king... 

I try to use @disguise it and its ok.. its a flying zombie right with a chain and crown on his top iof its head right....

But all player dc...

All included vending.. lol...  ^ ^

 

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