Thread: Script Help
View Single Post
  #18  
Old 06-18-2003, 03:27 PM
GoZelda GoZelda is offline
Mister 1,000,000
GoZelda's Avatar
Join Date: Jan 2003
Location: Brussels, capital of Europe.
Posts: 5,396
GoZelda will become famous soon enough
Send a message via AIM to GoZelda Send a message via MSN to GoZelda
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.
__________________

Quote:
Originally Posted by Lance
stefan is satan
I am the best.
[URL removed]Music or aural pollution?
Reply With Quote