Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting
FAQ Members List Calendar Today's Posts

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 02-07-2002, 05:23 AM
zell12 zell12 is offline
Gone
zell12's Avatar
Join Date: Jun 2001
Location: Alberta, Canada
Posts: 8,541
zell12 will become famous soon enough
Send a message via ICQ to zell12 Send a message via AIM to zell12 Send a message via MSN to zell12
Shop Help

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...
__________________
Reply With Quote
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 09:52 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.