Item property gump need help - Printable Version +- SphereCommunity (https://forum.spherecommunity.net) +-- Forum: Sphere 0.56d (/Forum-Sphere-0-56d) +--- Forum: Script Help (/Forum-Script-Help) +--- Thread: Item property gump need help (/Thread-Item-property-gump-need-help) Pages: 1 2 |
Item property gump need help - alucardxlx1986 - 01-21-2016 07:25 PM so,i want a dialog gump to show up the item's property after player clicked the item just like: [itemdef i_showprop] ... On=@click src.dialog itemproperty [dialog itemproperty] itemname itemproperty(like:ar,skills increases,damages,and so on... ) but i don't know how to finish this,need help.. thx... RE: Item property gump need help - Kanibal - 01-21-2016 09:04 PM Code: [itemdef i_showprop] RE: Item property gump need help - alucardxlx1986 - 01-21-2016 09:48 PM (01-21-2016 09:04 PM)Kanibal Wrote: No,I tried already...show player's name RE: Item property gump need help - Kanibal - 01-21-2016 09:51 PM (01-21-2016 09:48 PM)alucardxlx1986 Wrote: No,I tried already...show player's name Wash your eyes... Code: on=@click RE: Item property gump need help - alucardxlx1986 - 01-21-2016 09:59 PM (01-21-2016 09:51 PM)Kanibal Wrote:(01-21-2016 09:48 PM)alucardxlx1986 Wrote: No,I tried already...show player's name i mean <name> shows player's name,dud... RE: Item property gump need help - Kanibal - 01-21-2016 10:04 PM (01-21-2016 09:59 PM)alucardxlx1986 Wrote: i mean <name> shows player's name,dud... You use Code: on=@click Code: on=@click RE: Item property gump need help - alucardxlx1986 - 01-21-2016 10:05 PM (01-21-2016 09:51 PM)Kanibal Wrote:(01-21-2016 09:48 PM)alucardxlx1986 Wrote: No,I tried already...show player's name PHP Code: [ITEMDEF i_testchineseitem1] i want it shows up 3 sec. and close and i want my custom item all have this.. Chinese is hard to display in game. (01-21-2016 10:04 PM)Kanibal Wrote:(01-21-2016 09:59 PM)alucardxlx1986 Wrote: i mean <name> shows player's name,dud... i wanna the itemprop just like WOW RE: Item property gump need help - Kanibal - 01-21-2016 10:21 PM Code: [ITEMDEF i_testchineseitem1] RE: Item property gump need help - rastrero - 01-22-2016 01:02 AM this is ur script fixed. should work [ITEMDEF i_testchineseitem1] ID=0108a TYPE=T_CHNITEMNAME ON=@Create NAME=testchinese 中文 COLOR=481 [TYPEDEF T_CHNITEMNAME] ON=@CLICK message @160,,1 <NAME> timerf 1,chniteminfo <uid> //fix 1 send the item uid to the next function u call it later. return 1 [Function chniteminfo] tag0.itemprops=<args> //fix4 safe the uid into the character to call it later. src.dialog d_iteminfochn timerf 3,closechniteminfo return 0 [Function closechniteminfo] SRC.DIALOGCLOSE d_iteminfochn [dialog d_iteminfochn] 800, 600 PAGE 0 resizepic 0 0 83 300 400 text 97 14 1152 0 ref12=<uid.<tag0.itemprops>> // //fix5 Set ref12 as fast way to call the item. tag0.imtemprops= // //fix 6 erase tag dtext 21 42 1152 <ref12.name> //// //fix7 call the item name //////////////////////////////////// Another way u can test: [Function chniteminfo] uid.<args>.dialog d_iteminfochn //or using a trysrc if it dosnt work. timerf 3,closechniteminfo return 0 RE: Item property gump need help - karma - 01-22-2016 03:00 AM Have you considered AOS tooltips? |