View Single Post
  #8  
Old 09-03-2001, 02:49 AM
Tyhm Tyhm is offline
Psionic Youth
Tyhm's Avatar
Join Date: Mar 2001
Location: Babord, West Graal Deaths:1009 Kills:1
Posts: 5,635
Tyhm has a spectacular aura about
That would make sense, I suppose, except that = denotes an integer value, and I'm fairly certain the code
for(this.i=-;this.i<weaponscount;this.i++){
if(strequals(#w(this.i),Nukeshot)) selectedweapon=this.i;
}
would fail horribly.

I might have to try setplayerprop #w,Nukeshot; though. ^_^


Amazing....while that didn't work, this did!
if(hasweapon(Fishing Rod)){
while(!strequals(#w,Fishing Rod)&&selectedweapon>0) selectedweapon--;
if(selectedweapon=0){
while(!strequals(#w,Fishing Rod)) selectedweapon++;
}
}
It's pretty much bulletproof too, or so it seems...Yup! Works if the weapon it seeks is above or below the current selected one.
__________________
"Whatever," said Bean, "I was just glad to get out of the toilet."

"Power does not corrupt. Fear corrupts, perhaps the fear of a loss of power."- John Steinbeck
"I'm only acting retarded, what's your excuse?" queried the Gord.
- My pet, the Levelup Gnome

http://forums.graalonline.com/forums...&postcount=233

Last edited by Tyhm; 09-03-2001 at 03:53 AM..
Reply With Quote