
05-27-2006, 07:52 PM
|
|
Graal Administration
|
Join Date: Jan 2000
Location: Admins
Posts: 11,693
|
|
|
player.weapons is an array. When you output an array then it's outputing its content as string, most objects print their name when you just print the object. I can check this though, to make sure its working correctly.
The function hasweapon(oldstring) is still working, in new scripting it would be findweapon(string)!=NULL. findweapon(string) is searching for a weapon with the specified name in the players inventory. There is also findweaponnpc(string) for finding any existing weapon, although you can also just access the weapons by name, you need to use the correct case though. |
|
|
|