Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   array comparison (https://forums.graalonline.com/forums/showthread.php?t=30542)

darkriders_p2p 06-01-2002 07:46 AM

array comparison
 
ok for my hat NPC I am making an array to compare if the player owns the hat he wants to put on.I used #i as the "+,-" value to browse through the hats.And I made an array called client.hats thats 200 for size.Is there a way to make a comparison between these two variables?
I tried one way but it gave me an error.
plz help :(

zallus-k 06-01-2002 08:18 AM

.
 
He means he wants to create a sort of "Hat Selection Screen". Pretty much a weapon selection screen with a few modifications. But, all he wants to know is how to check if he has the hat he wants to select from it.

Bhala 06-01-2002 08:46 AM

you cycle throught the array & check to see if they have it.....

darkriders_p2p 06-01-2002 08:56 PM

exactly what I want, but when I used strequals it gave me an error.If anyone wants to look at the script & help Forum PM me

Bhala 06-04-2002 12:00 AM

see this is the part where you post a little part of your script & ask whats wrong. you can still do that you know


All times are GMT +2. The time now is 05:46 PM.

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