|
Alright, I need some help with these 2 weapons, they won't work right: *Plez don't use them somewhere else >.<
if (playersays(buy horse caller)&&playerrupees=>600&&!hasweapon(Horse Caller)) {toweapons Horse Caller;
setstring horse,0;
playerrupees-=600;
}
if(playeronhorse&&strequals(#c,save horse 1)){
setstring horse,#5;
setplayerprop #c,Horse 1 Saved;
}
if(!firedonhorse&&strequals(#c,call horse 1)){
tokenize #s(horse);
puthorse #t(0),playerx,playery;
setplayerprop #c,Horse Called;
}
if(playeronhorse&&strequals(#c,save horse 2)){
setstring horse2,#5;
setplayerprop #c,Horse 2 Saved;
}
if(!firedonhorse&&strequals(#c,call horse 2)){
tokenize #s(horse2);
puthorse #t(0),playerx,playery;
setplayerprop #c,Horse Called;
}
if(playeronhorse&&strequals(#c,save horse 3)){
setstring horse3,#5;
setplayerprop #c,Horse 3 Saved;
}
if(!firedonhorse&&strequals(#c,call horse 3)){
tokenize #s(horse3);
puthorse #t(0),playerx,playery;
setplayerprop #c,Horse Called;
}
if(weaponfired){
say2 When on a horse say "save horse #"
#byou can save up to 3 horses.
#bSay "call horse #" to call that
#bhorse.#bEx:save horse 1.;
}
if (strequals(#c,buy Fire Wall)&&playerrupees=>1000&&!hasweapon(Fire Wall)) {
toweapons Fire Wall;
playerrupees -= 1000;
}
if(weaponfired&&playermp=>10){
playermp-=10;
freezeplayer 3;
playersprite=24;
timeout=.5;
this.radius=4;
if(playerdir=3)this.angle=(3*3.14)/2;
if(playerdir=0)this.angle=(3*3.14)/4;
if(playerdir=1)this.angle=3.14/2;
if(playerdir=2)this.angle=3.14/4; }
if(timeout&&this.radius<15){timeout=.05;
this.x=playerx+.5+cos(this.angle)*this.radius;
this.y=playery+.5+sin(this.angle)*this.radius;
putexplosion 1,this.x,this.y; this.radius+=.2;
this.angle+=.314}
The first one was already posted, but it still doesn't work right... |