Quote:
Originally posted by Deus_Sephiroth
well after countless tries i realised that its easier to make a text file with the script and call an npc, it saves many lines of code and reduces errors greatly.
Also if anyone would have an idea how to set a players sword power to 2 or more for 20 seconds and have it revert back to what it was lemme know.
|
Erm, people, i hope you know we aren't allowed to give full scripts... For the sword thing, well, first of all you need to save the original sword power of the player.
Quote:
if (playerenters){
this.swordsave=players[index].swordpower;
players[index].swordpower=2;
timeout = 20;
}
|
afterwards, you need to set back the original sword power.
Quote:
if (timeout){
players[index].swordpower=#v(this.swordsave);
}
|
So, you need to save the swordpower, have a timeout and then set the swordpower back to what it was.