JHONDOMINIC Posted July 1, 2022 Share Posted July 1, 2022 I try to add char_id to item by getitem2 1201,1,1,0,0,254,0,getcharid(0)&0xffff,(getcharid(0)>>16)&0xffff; after try to getequipcradid get back like this Card 0 = 254 Card 1 = 0 Card 2 = 18935 Card 3 = 2 My char_id is 150007. Have any ways to convert id from card 2 to char_id by script? Thank you and sorry about my english. Quote Link to comment Share on other sites More sharing options...
0 Start_ Posted July 2, 2022 Share Posted July 2, 2022 (edited) If you want to compare owner you can try something like this. if(.@card2 == (getcharid(0)&0xffff)) dispbottom "You're creator of this item"; else dispbottom "You're not creator of this item"; But if you want to convert it back please wait for other people. // There are another option. 1.) Create array that contain database for char_id ex. Some people name their item. -> Call add to array func -> Loop array -> Not found -> Add converted char_id to array 1 add char_name to array 2 then you will have array1[0] = 18935 array2[0] = "Jhon" Or play around with getd command instead of array. Set set getd("c"+card2),"Jhon"; Get mes "Owner " + getd("c"+card2); Edited July 2, 2022 by Start_ Quote Link to comment Share on other sites More sharing options...
0 JHONDOMINIC Posted July 2, 2022 Author Share Posted July 2, 2022 Thank you so much. If I'm not mistaken, have I seen you at ideaclub? Quote Link to comment Share on other sites More sharing options...
0 Start_ Posted July 2, 2022 Share Posted July 2, 2022 Yes, I use to be there. Quote Link to comment Share on other sites More sharing options...
I try to add char_id to item by
after try to getequipcradid get back like this
Card 0 = 254 Card 1 = 0 Card 2 = 18935 Card 3 = 2
My char_id is 150007. Have any ways to convert id from card 2 to char_id by script?
Thank you and sorry about my english.
Link to comment
Share on other sites