Post Reply 
 
Thread Rating:
  • 1 Votes - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Item property gump need help
Author Message
evening
Journeyman
*

Posts: 137
Likes Given: 0
Likes Received: 14 in 9 posts
Joined: Apr 2012
Reputation: 1

Finally Land

Post: #11
RE: Item property gump need help
yes use AOS tooltips
01-22-2016 03:34 PM
Visit this user's website Find all posts by this user Like Post Quote this message in a reply
alucardxlx1986
Apprentice
*

Posts: 14
Likes Given: 1
Likes Received: 0 in 0 posts
Joined: Dec 2012
Reputation: 0



Post: #12
RE: Item property gump need help
(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?
(This post was last modified: 01-22-2016 04:47 PM by alucardxlx1986.)
01-22-2016 04:36 PM
Find all posts by this user Like Post Quote this message in a reply
rastrero
Master
**

Posts: 250
Likes Given: 41
Likes Received: 28 in 24 posts
Joined: Jan 2016
Reputation: 3



Post: #13
RE: Item property gump need help
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
01-23-2016 01:50 AM
Find all posts by this user Like Post Quote this message in a reply
alucardxlx1986
Apprentice
*

Posts: 14
Likes Given: 1
Likes Received: 0 in 0 posts
Joined: Dec 2012
Reputation: 0



Post: #14
RE: Item property gump need help
(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..
01-23-2016 03:48 PM
Find all posts by this user Like Post Quote this message in a reply
rastrero
Master
**

Posts: 250
Likes Given: 41
Likes Received: 28 in 24 posts
Joined: Jan 2016
Reputation: 3



Post: #15
RE: Item property gump need help
which one?
01-25-2016 08:33 AM
Find all posts by this user Like Post Quote this message in a reply
evening
Journeyman
*

Posts: 137
Likes Given: 0
Likes Received: 14 in 9 posts
Joined: Apr 2012
Reputation: 1

Finally Land

Post: #16
RE: Item property gump need help
直接使用AOS 的 菜单提示就可以了!还写脚本!有点多余了!效果也不好!
01-25-2016 01:15 PM
Visit this user's website Find all posts by this user Like Post Quote this message in a reply
alucardxlx1986
Apprentice
*

Posts: 14
Likes Given: 1
Likes Received: 0 in 0 posts
Joined: Dec 2012
Reputation: 0



Post: #17
RE: Item property gump need help
(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吧
(This post was last modified: 01-25-2016 01:34 PM by alucardxlx1986.)
01-25-2016 01:29 PM
Find all posts by this user Like Post Quote this message in a reply
evening
Journeyman
*

Posts: 137
Likes Given: 0
Likes Received: 14 in 9 posts
Joined: Apr 2012
Reputation: 1

Finally Land

Post: #18
RE: Item property gump need help
112501838
01-25-2016 04:52 PM
Visit this user's website Find all posts by this user Like Post Quote this message in a reply
Kanibal
Master
**

Posts: 255
Likes Given: 6
Likes Received: 30 in 28 posts
Joined: Jun 2012
Reputation: 0



Post: #19
RE: Item property gump need help
(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

Grandmaster Localhost Admin
01-25-2016 06:40 PM
Visit this user's website Find all posts by this user Like Post Quote this message in a reply
alucardxlx1986
Apprentice
*

Posts: 14
Likes Given: 1
Likes Received: 0 in 0 posts
Joined: Dec 2012
Reputation: 0



Post: #20
RE: Item property gump need help
(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
01-26-2016 08:13 PM
Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)