nunesb Posted January 5, 2013 Posted January 5, 2013 (edited) Which command is used to check a no-string variable of a character that is not my ? mes "Enter the name of the character you want to check the "ABCDEFG" variable:"; input @tmp$; next; mes "<SHOW VARIABLE "ABCDEFG" OF @tmp$ CHAR>"; someone may help ? Edited January 5, 2013 by nunesb Quote
QQfoolsorellina Posted January 6, 2013 Posted January 6, 2013 try this not tested mes "Enter the name of the character you want to check the "ABCDEFG" variable:"; input .@tmp$; set .@taid,getcharid(3,.@tmp$); if(!.@taid){ mes "Char is offline or not exist"; close; } set .@said,getcharid(3); attachrid(.@taid); set .@tvalue,ABCDEFG; attachrid(.@said); mes "VARIABLE "ABCDEFG" OF "+.@tmp$+"is"+.@tvalue; close; 1 Quote
Ryokem Posted January 6, 2013 Posted January 6, 2013 set .@taid,getcharid(3,.@tmp$); if(!.@taid){ mes "Char is offline or not exist"; close; } set .@said,getcharid(3); attachrid(.@taid); You can optimize this part just by using attachrid. A little bit more tricky, but helps saving heap and lowers the C-O (credits to you) input .@tmp$; set .@MyID, getcharid(3); if( !attachrid(getcharid(3,.@tmp$)) ) { mes "Char is offline or not exist"; close; } set .@value, ABCDEFG; attachrid(.@MyID); mes .@tmp$ + "'s ABCDEFG variable has value: " + .@value; Quote
Question
nunesb
Which command is used to check a no-string variable of a character that is not my ?
someone may help ?
Edited by nunesb3 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.