Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   New Scripting Engine (GS2) (https://forums.graalonline.com/forums/forumdisplay.php?f=153)
-   -   findweaponnpc() (https://forums.graalonline.com/forums/showthread.php?t=65552)

Yen 04-21-2006 08:53 PM

findweaponnpc()
 
Yeah, I saw findweaponnpc() in Skyld's sticky.
What's the difference between it and findweapon()?

Skyld 04-21-2006 09:33 PM

I cannot remember which way around it is, but one of them gets the weapon anyway, and one of them gets the weapon if you have it.

ApothiX 04-24-2006 02:47 PM

findWeapon() returns a weapon object only if you have the weapon in your inventory, and NULL if not.

findWeaponNPC() returns a weapon object regardless if you have it or not. Usefull for calling serverside public functions and whatnot.


All times are GMT +2. The time now is 09:02 PM.

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