n0stalgia Posted October 17, 2013 Group: Members Topic Count: 4 Topics Per Day: 0.00 Content Count: 47 Reputation: 0 Joined: 01/16/12 Last Seen: April 6 Share 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 Link to comment Share on other sites More sharing options...
icabit Posted October 17, 2013 Group: Members Topic Count: 28 Topics Per Day: 0.01 Content Count: 353 Reputation: 70 Joined: 07/14/12 Last Seen: February 12, 2023 Share Posted October 17, 2013 (edited) i think this might need source edit Edited October 17, 2013 by icabit Quote Link to comment Share on other sites More sharing options...
n0stalgia Posted October 17, 2013 Group: Members Topic Count: 4 Topics Per Day: 0.00 Content Count: 47 Reputation: 0 Joined: 01/16/12 Last Seen: April 6 Author Share Posted October 17, 2013 where can i find that source sir?.. i'll try it to edit... Quote Link to comment Share on other sites More sharing options...
GmOcean Posted October 17, 2013 Group: Members Topic Count: 31 Topics Per Day: 0.01 Content Count: 666 Reputation: 93 Joined: 04/27/12 Last Seen: August 17, 2015 Share 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 Link to comment Share on other sites More sharing options...
n0stalgia Posted October 18, 2013 Group: Members Topic Count: 4 Topics Per Day: 0.00 Content Count: 47 Reputation: 0 Joined: 01/16/12 Last Seen: April 6 Author Share 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 Link to comment Share on other sites More sharing options...
GmOcean Posted October 18, 2013 Group: Members Topic Count: 31 Topics Per Day: 0.01 Content Count: 666 Reputation: 93 Joined: 04/27/12 Last Seen: August 17, 2015 Share 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 Link to comment Share on other sites More sharing options...
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..
Link to comment
Share on other sites
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.