SphereCommunity
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


RE: Item property gump need help - evening - 01-22-2016 03:34 PM

yes use AOS tooltips


RE: Item property gump need help - alucardxlx1986 - 01-22-2016 04:36 PM

(01-22-2016 01:02 AM)rastrero Wrote:  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

thx a lot dud,i have no game in my office pc..,i'll try it!

(01-22-2016 03:34 PM)evening Wrote:  yes use AOS tooltips

咱中国人就不用说英语了吧

(01-21-2016 10:21 PM)Kanibal Wrote:  
Code:
[ITEMDEF i_testchineseitem1]
ID=0108a
TYPE=T_CHNITEMNAME
ON=@Create
NAME=testchinese 中文
COLOR=481

ON=@CLICK  
message @160,,1 <NAME>
sdialog d_iteminfochn
src.timerf 3,dialogclose d_iteminfochn
return 1

[dialog d_iteminfochn]
800, 600
resizepic 0 0 83 300 400
dtext 97 14 1152 <name>
dtext 21 42 1152 <name>

[EOF]

dude,thx all the same

(01-22-2016 03:00 AM)karma Wrote:  Have you considered AOS tooltips?

I used AOS item tooltips,the ITEM's Name cannot shows Chinese,I don't know why...so I want make it in other way like I said...
I know cliloc can show Chinese,but custom name and others...you know that...

hi,rastrero,one more question

the "other props" just like the "name" way?
with ref?


RE: Item property gump need help - rastrero - 01-23-2016 01:50 AM

If it works yes, Use the ref12 to point the item in the dialog.

ref12.name
<serv.itemdef.<ref12.uid>.skillmake>
ref12.color
etc etc


RE: Item property gump need help - alucardxlx1986 - 01-23-2016 03:48 PM

(01-22-2016 03:00 AM)karma Wrote:  Have you considered AOS tooltips?

PHP Code:
[Function chniteminfo]
uid.<args>.dialog d_iteminfochn //or using a trysrc if it dosnt work.
timerf 3,closechniteminfo
return 
this way is right...
thx Lol

but a little problem need to fix..


RE: Item property gump need help - rastrero - 01-25-2016 08:33 AM

which one?


RE: Item property gump need help - evening - 01-25-2016 01:15 PM

直接使用AOS 的 菜单提示就可以了!还写脚本!有点多余了!效果也不好!


RE: Item property gump need help - alucardxlx1986 - 01-25-2016 01:29 PM

(01-25-2016 08:33 AM)rastrero Wrote:  which one?



for example
Armor,Luck,
under create triggers

maybe use "tag." infront of props??

I didn't try this way

I have a question

AOS tooltip's name cannot display CHINESE Characters

I named an item like

[ITEMDEF i_example]
ID=XXXX

ON=@create
name=example[你好]

ON=@CLICK
message @10,,1 <name>

ON=@ADDCLILOC
BLABLABLA...

In tooltip name shows like "example[@` ]" or even with none in "[ ]"...

I think maybe the tooltips' name cannot use Chinese characters in sphere

(01-25-2016 01:15 PM)evening Wrote:  直接使用AOS 的 菜单提示就可以了!还写脚本!有点多余了!效果也不好!

菜单提示不能直接name中文啊,我试过了
就是中文显示乱码。
我要全汉化的,因为我准备仿ZULUHOTEL做一个随机多属性的装备系统

兄弟给个QQ吧


RE: Item property gump need help - evening - 01-25-2016 04:52 PM

112501838


RE: Item property gump need help - Kanibal - 01-25-2016 06:40 PM

(01-25-2016 01:29 PM)alucardxlx1986 Wrote:  In tooltip name shows like "example[@` ]" or even with none in "[ ]"...

Try to save your .scp file in UTF-8


RE: Item property gump need help - alucardxlx1986 - 01-26-2016 08:13 PM

(01-25-2016 06:40 PM)Kanibal Wrote:  
(01-25-2016 01:29 PM)alucardxlx1986 Wrote:  In tooltip name shows like "example[@` ]" or even with none in "[ ]"...

Try to save your .scp file in UTF-8

I know UTF-8 NO BOM,
the name problem must fix with source code of sphereserver