Graalians

Graalians (https://www.graalians.com/forums/index.php)
-   Classic FAQs and Guides (https://www.graalians.com/forums/forumdisplay.php?f=35)
-   -   Furniture Codes (#n, #i, etc) (https://www.graalians.com/forums/showthread.php?t=11864)

BboyEatsbacon 11-11-2012 06:01 AM

Furniture Codes (#n, #i, etc)
 
Hello,

For those who do not know, you can use #vars on furniture in iClassic. Many of the original GS1 vars have been made available to furniture say2 actions, but there are some that have not. I have compiled a list of those that are deprecated and those of which still remain in use.

Key:
Strikethrough - Obsolete/Deprecated
Index - 0 for player, 1 for NPC/Furniture Item

Vars ("Codes" as referred to by the iOS community):
#a - the account name of the player
#b - line break (for say2)
#C0, #C0(index) - the skin color
#C1, #C1(index) - the coat color
#C2, #C2(index) - the sleeves color
#C3, #C3(index) - the shoes color
#C4, #C4(index) - the belt color
#c, #c(index) - the current chat text of the player
#e(startindex,length,string) - extracts a substring out of ‘string’ (length=-1 -> till the end)
#f - the image filename of the npc

#g, #g(index) - the guild name of the player
#I(list,index) - gets a string of a string list
#i(imgname), #i(imgname,x,y,w,h) - displays an image or a part of an image when used in a sign
#K(keyindex) - the name of the specified key
#k(keyindex) - the description of the specified key (in local language / key assignments)
#L - the current level filename
#m, #m(index) - the animation of the player
#n, #n(index) - the nick name of the player (index=-1 -> npc character, 0 -> current player)
#P1, #P1(index) - the gani attribute 1 (hat)
#P2, #P2(index) - the gani attribute 2
#P3, #P3(index) - the gani attribute 3
#P4, #P4(index) - the gani attribute 4
#P5, #P5(index) - the gani attribute 5
#p(index) - action parameter of the specified index
#s(var) - the value of the string variable ‘var’
#t(index) - token of the specified index, produced with tokenize
#T(string) - trims the string (removes spaces at the beginning and end)
#v(var) - the value of ‘var’ as string
#W, #W(index) - the filename of the weapon icon
#w,#w(index) - the name of the current npc weapon of the player

#1, #1(index) - the sword image filename of the player
#2, #2(index) - the shield image filename of the player
#3, #3(index) - the head image filename of the player
#5, #5(index) - the image filename of the player’s horse
#6, #6(index) - the image filename of the npc that is carried by the player

#8, #8(index) - the body image filename of the player

I hope there's something of use stored within here. Most of this is common knowledge, but I thought I would share for those who don't know about these nifty references to strings/variables.

Hope I've Been of Some Assistance,
BboyEatsbacon

Kiwi 11-11-2012 06:04 AM

Handy, but the title should probably be something people understand more.

ALSO YOU HAVE 1069 POSTS http://r15.imgfast.net/users/1511/46...1944190462.png

BboyEatsbacon 11-11-2012 06:09 AM

Quote:

Posted by Kiwi (Post 231135)
Handy, but the title should probably be something people understand more.

ALSO YOU HAVE 1069 POSTS http://r15.imgfast.net/users/1511/46...1944190462.png

Updated to a bit (?) more understandable title.

Kiwi 11-11-2012 06:15 AM

Quote:

Posted by BboyEatsbacon (Post 231136)
Updated to a bit (?) more understandable title.

Yeah, that's a lot better.
The ones that are crossed out... does that mean they're disabled?

BboyEatsbacon 11-11-2012 06:17 AM

Quote:

Posted by Kiwi (Post 231137)
Yeah, that's a lot better.
The ones that are crossed out... does that mean they're disabled?

That would be correct =)

Dylan 11-11-2012 06:28 AM

Nice. I knew all of these already, still helpful tho.

MrSimons 11-12-2012 04:59 PM

Great tutorial, except I don't understand a single thing x.x

Emera 11-12-2012 05:01 PM

Nice. Thanks BB.

fsh 11-12-2012 05:13 PM

Thank you so much Bboy! Iv'e asked multiple staff and the usuall response was, "lolwut"

ty :)

callimuc 11-12-2012 07:47 PM

missing some :) will get them later

Maxy 11-12-2012 09:10 PM

"you must spread some rep before giving to BBoyEatsBacon again

BboyEatsbacon 11-12-2012 09:25 PM

Quote:

Posted by MrSimons (Post 232085)
Great tutorial, except I don't understand a single thing x.x

What exactly are you stuck on? Maybe I could help you out.

MrSimons 11-12-2012 09:27 PM

Quote:

Posted by BboyEatsbacon (Post 232338)
What exactly are you stuck on? Maybe I could help you out.

All of this stuff, I'm just not sure what it does.

Quote:

#C0, #C0(index) - the skin color
#C1, #C1(index) - the coat color
#C2, #C2(index) - the sleeves color
#C3, #C3(index) - the shoes color
#C4, #C4(index) - the belt color
#c, #c(index) - the current chat text of the player

BboyEatsbacon 11-12-2012 09:42 PM

Quote:

Posted by MrSimons (Post 232341)
All of this stuff, I'm just not sure what it does.

Oh. You know how you can edit what an object says when you touch it? Basically, these will allow you to do certain things. For example, #c would show the player's chat, rather than showing #c to the player. #c(index) just means you can either put a 0 for the index, representing the player, or a 1 for the NPC.

fsh 11-13-2012 05:23 AM

is there a code that shows an image of the player's hat?

BboyEatsbacon 11-16-2012 02:34 AM

Quote:

Posted by fsh (Post 232616)
is there a code that shows an image of the player's hat?

Nope, it's normally #P1, but it's been disabled/never was enabled.

Craftz 11-16-2012 01:26 PM

I dont undertand what the (string) or (index) means.

BboyEatsbacon 11-16-2012 11:33 PM

Quote:

Posted by Craftz1 (Post 234576)
I dont undertand what the (string) or (index) means.

Index:
Put a 0 here if you'd like the var to reference the player, or a -1 to reference the NPC.

String:
This has been removed from vars, seeing as that not #var uses it.

captainbligh 12-07-2012 10:33 AM

when i ask someone whats their code they just say: oh i forgot. and they dont even know #2...

EPIC NINJA 01-28-2013 11:06 PM

this is really helpful thanks!

Strap 01-28-2013 11:09 PM

This is an old thread re-opened 0.o

BboyEatsbacon 01-28-2013 11:16 PM

Quote:

Posted by EPIC NINJA (Post 288574)
this is really helpful thanks!

Glad this is still helpful :)


All times are GMT. The time now is 11:31 AM.

Powered by vBulletin/Copyright ©2000 - 2026, vBulletin Solutions Inc.