Graal Forums

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

protagonist 06-01-2003 02:23 PM

Ugh
 
Hi.

How do you return a value from a string array? I'm trying to create a hat trading system and I can't get the darned thing to scroll over hats that the people actually have, just hats 1,2,3 etc.

I tried using a bunch of different combinations using sarraylen and lindexof, but neither works for me in the way I was trying it.


For example, I want the client's 6th hat in the string array to appear over their head. I have everything working but the 6th hat turns out to be hat6.png. I want the value of the 6th number in the string array.

Neoreno 06-01-2003 02:39 PM

Hmm, tried using #I(string,index)

I'm not too sure that'll work, but try it anyway.

protagonist 06-01-2003 02:42 PM

Quote:

Originally posted by Neoreno
Hmm, tried using #I(string,index)

I'm not too sure that'll work, but try it anyway.


I think that will work, thanks.

Python523 06-01-2003 04:46 PM

guy, the newfeatures text files are there for a reason, read them

tlf288 06-01-2003 05:00 PM

Quote:

Originally posted by Python523
guy, the newfeatures text files are there for a reason, read them
But, isn't being spoonfed so much better? :|

protagonist 06-01-2003 08:18 PM

Quote:

Originally posted by tlf288


But, isn't being spoonfed so much better? :|

I don't know, tell me.

*Gives a spoonful of don't post in my threads*


Also I read newfeatures when I want to know what something means or I forget a syntax, or if I'm looking for something specific. I thought I had to use sarraylen and/or lindex to get it, someone told me that once before. I didn't know about #I. :(

tlf288 06-02-2003 09:57 PM

Quote:

Originally posted by protagonist


I don't know, tell me.

*Gives a spoonful of don't post in my threads*

What, your telling me where I can and can't post? You must be a mod of some sort...
*checks forum leaders*
Nope, your not. What gives you the right to tell me this?

protagonist 06-02-2003 10:54 PM

Quote:

Originally posted by tlf288


What, your telling me where I can and can't post? You must be a mod of some sort...
*checks forum leaders*
Nope, your not. What gives you the right to tell me this?

The same right that allows me to call you an infectious pickle in my thread.


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

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