View Single Post
  #2  
Old 09-26-2001, 10:23 AM
KJS KJS is offline
The one, The only -
KJS's Avatar
Join Date: Apr 2001
Location: USA, Minnesota
Posts: 1,012
KJS is on a distinguished road
Send a message via AIM to KJS
Re: Another Script That will Not work but this is harder..lol

ok my first question is this server going to be p2p? I say that cuz I am just wondering...
Quote:
Originally posted by dragoonvenganc
if (playersays(Buy Pick)&& playerrupees>=39){toweapons Pick;playerrupees-=40;
setstring client.pickstrength,#v(strtofloat(#s(client.pickst rength))+100); }
if (weaponfired) {
setstring client.pickstrength,#v(strtofloat(#s(client.pickst rength))-.4)
triggeraction playerx+.5+vecx(playerdir)*2,playery+1+vecy(player dir)*2,mining,;
setani jaxe,pickaxemetal.png;}
jw do you want the axe power to go down every time they swing or just when they hit the thing (I would say just when they hit the thing cuz it gives it a more realistic thing like things dont get dull unless you hit something with it)
setstring client.pickstrength,#v(strtofloat(#s(client.pickst rength))-.4)

that is the line you would ahve to change and put in the triggeraction insted of here
try
NPC Code:

if (playersays(Buy Pick)&&playerrupees>=39){
toweapons Pick;
playerrupees-=40;
setstring client.pickstrength,#v(strtofloat(#s(client.pickst rength))+100);
}
if (weaponfired) {
setstring client.pickstrength,#v(strtofloat(#s(client.pickst rength))-.4)
triggeraction playerx+1.5+vecx(playerdir)*2,playery+1.5+vecy(pla yerdir)*2,mining,;
setani jaxe,pickaxemetal.png;
}



Quote:

if (created){setimg jrock.gif;this.power=100;timeout=.1}
if (timeout){

if (actionmining) {
this.power -= 5;
if (this.power<=0) {
setstring client.playeriron,#v(strtofloat(#s(client.playerir on))+1);
destroy;}}timeout=.1}
try
NPC Code:

if (created){setimg jrock.gif;this.power=100;timeout=.1}
if (actionmining) {
this.power -= 5;
if (this.power<=0) {
setstring client.playeriron,#v(strtofloat(#s(client.playerir on))+1);
destroy;
}
}

__________________
Thanks,
-KJL
Reply With Quote