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?


All times are GMT. The time now is 06:59 AM.

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