n0stalgia Posted October 17, 2013 Posted October 17, 2013 how to make this enchant into a clickable item and enchant accessory card4 card3 card2here's what i want to make into clickable.. Quote
icabit Posted October 17, 2013 Posted October 17, 2013 (edited) i think this might need source edit Edited October 17, 2013 by icabit Quote
n0stalgia Posted October 17, 2013 Author Posted October 17, 2013 where can i find that source sir?.. i'll try it to edit... Quote
GmOcean Posted October 17, 2013 Posted October 17, 2013 (edited) 4729,Dexterity10,DEX+10,6,20,,10,,,,,,,,16,,,,,{ if( !TF_H ){callfunc("Hiding",4729);} skill "TF_HIDING",1; },{},{} //callfunc("func_name",itemID); That is for the item itself. function script Hiding { getinventorylist; set @i,1; for(set .@i,0; .@i<@inventorylist_count; set .@i,.@i+1) {if( getitemslots(@inventorylist_id[.@i] && !@inventorylist_card2[.@i] && !@inventorylist_card3[.@i] && !@inventorylist_card4[.@i] && !@inventorylist_expire[.@i] && !@inventorylist_attribute[.@i]) //Because some gear has 4slots. Also not sure if Rental Items can have slots (poor scripting?) Also the item is not broken (Pretty sure this is how normal cards function). {set .@menu$,.@menu$ + getitemname(@inventorylist_id[.@i]) +":"; set .@menu[@i],.@i; set @i,@i+1;} }//Saving Menu for later use menu .@menu$,-; set .@j,getd(".@menu["+@menu+"]"); delitem2(@inventorylist_id[.@j],1,1,@inventorylist_refine[.@j],0,0,0,0,0); getitem2(@inventorylist_id[.@j],1,1,@inventorylist_refine[.@j],0,@inventorylist_card1[.@j],getarg(0),0,0); set TF_H,1; end; } And that is the script used to make it act like a card. It's not totally refined, but it should work. *Note - This will only work for items that don't have any cards in it.* *Note - This will also only work once per item, in this case, once for this particular item* Edited October 18, 2013 by GmOcean Quote
n0stalgia Posted October 18, 2013 Author Posted October 18, 2013 4729,Dexterity10,DEX+10,6,20,,10,,,,,,,,16,,,,,{ if( !TF_H ){callfunc("Hiding",4729);} skill "TF_HIDING",1; },{},{} //callfunc("func_name",itemID); That is for the item itself. function script Hiding { getinventorylist; set @i,1; for(set .@i,0; .@i<@inventorylist_count; set .@i,.@i+1) {if( getitemslots(@inventorylist_id[.@i] && !@inventorylist_card1[.@i] && !@inventorylist_card2[.@i] && !@inventorylist_card3[.@i] && !@inventorylist_card4[.@i] && !@inventorylist_expire[.@i] && !@inventorylist_attribute[.@i]) //Because some gear has 4slots. Also not sure if Rental Items can have slots (poor scripting?) Also the item is not broken (Pretty sure this is how normal cards function). {set .@menu$,.@menu$ + getitemname(@inventorylist_id[.@i]) +":"; set .@menu[@i],.@i; set @i,@i+1;} }//Saving Menu for later use menu .@menu$,-; set .@j,getd(".@menu["+@menu+"]"); delitem2(@inventorylist_id[.@j],1,1,@inventorylist_refine[.@j],0,0,0,0,0); getitem2(@inventorylist_id[.@j],1,1,@inventorylist_refine[.@j],0,getarg(0),0,0,0); set TF_H,1; end; } And that is the script used to make it act like a card. It's not totally refined, but it should work. *Note - This will only work for items that don't have any cards in it.* *Note - This will also only work once per item, in this case, once for this particular item* its still goes on the 1st slot where card item goes... Quote
GmOcean Posted October 18, 2013 Posted October 18, 2013 (edited) Oh my bad, I thought that was it's intention... an easy fix.... Edit: I edited my first post to add it to the second slot. It can be edited to work for all 4 slots, but keep in mind that as this uses a PERM-Char variable, there is no real way to make it work universally without extensive consideration on how this will be used. What I made is only a temporary work around until you can find a better means to get what you want. Edited October 18, 2013 by GmOcean Quote
Question
n0stalgia
how to make this enchant into a clickable item and enchant accessory card4 card3 card2
here's what i want to make into clickable..
5 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.