WorldDMT commented on a Page, RuneScape Stats Script [BETA]  -  Jul 07, 2009

hash table is like ini file

e.g

add data in:
ini file: /writeini file.ini NAME ITEM DATA
Hash tables: /hadd -m NAME ITEM DATA

read or get data

ini file: $readini(file.ini,NAME,ITEM) return DATA
Hash tables: $hget(NAME,ITEM) return DATA

take look at /help $hget

u have many parameter for $hget

$hget(NAME,0).item return the total number of item for NAME

$hget(NAME,1).item return the first item
$hget(NAME,1).data return the first data

e.g: NAME = Trev ; ITEM = testitem ; DATA = data test ok
1 2 3-
NAME ITEM DATA
/hadd -m Trev testitem data test ok

now u can try this

//echo -a $hget(trev,testitem) => return "data test ok"
//echo -a $hget(trev,1).data => return "data test ok"
//echo -a $hget(trev,1).item => return "testitem"
//echo -a $hget(trev,0).item => return "1"

now take look at /help $hget u'll find more about it :)

 Respond  
Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.