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

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



Post: #1
Rainbow Item property gump need help
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...
(This post was last modified: 01-21-2016 07:29 PM by alucardxlx1986.)
01-21-2016 07:25 PM
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: #2
RE: Item property gump need help
Code:
[itemdef i_showprop]
...
on=@click
dialog itemproperty

[dialog itemproperty]
100, 100
resizepic 0 0 5100 600 440
dtext 20 20 25 Name: <name>
dtext 20 50 25 Skillmake: <skillmake>
...

Grandmaster Localhost Admin
(This post was last modified: 01-21-2016 09:05 PM by Kanibal.)
01-21-2016 09:04 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: #3
RE: Item property gump need help
(01-21-2016 09:04 PM)Kanibal Wrote:  
Code:
[itemdef i_showprop]
...
on=@click
dialog itemproperty

[dialog itemproperty]
100, 100
resizepic 0 0 5100 600 440
dtext 20 20 25 Name: <name>
dtext 20 50 25 Skillmake: <skillmake>
...

No,I tried already...show player's name
01-21-2016 09:48 PM
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: #4
RE: Item property gump need help
(01-21-2016 09:48 PM)alucardxlx1986 Wrote:  No,I tried already...show player's name

Wash your eyes...
Code:
on=@click
dialog itemproperty

Grandmaster Localhost Admin
01-21-2016 09:51 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: #5
RE: Item property gump need help
(01-21-2016 09:51 PM)Kanibal Wrote:  
(01-21-2016 09:48 PM)alucardxlx1986 Wrote:  No,I tried already...show player's name

Wash your eyes...
Code:
on=@click
dialog itemproperty

i mean <name> shows player's name,dud...


Attached File(s) Thumbnail(s)
   
01-21-2016 09:59 PM
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: #6
RE: Item property gump need help
(01-21-2016 09:59 PM)alucardxlx1986 Wrote:  i mean <name> shows player's name,dud...

You use
Code:
on=@click
dialog itemproperty
or
Code:
on=@click
src.dialog itemproperty
?

Grandmaster Localhost Admin
01-21-2016 10:04 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: #7
RE: Item property gump need help
(01-21-2016 09:51 PM)Kanibal Wrote:  
(01-21-2016 09:48 PM)alucardxlx1986 Wrote:  No,I tried already...show player's name

Wash your eyes...
Code:
on=@click
dialog itemproperty

PHP Code:
[ITEMDEF i_testchineseitem1]
ID=0108a
TYPE
=T_CHNITEMNAME
ON
=@Create 
NAME
=testchinese 中文
COLOR
=481

[TYPEDEF T_CHNITEMNAME]
ON=@CLICK  
message 
@160,,<NAME>
timerf 1,chniteminfo
return 1

[Function chniteminfo]
src.dialog d_iteminfochn
timerf 3
,closechniteminfo
return 0

[Function closechniteminfo]
SRC.DIALOGCLOSE d_iteminfochn

[dialog d_iteminfochn]
800600
PAGE 0
resizepic 0 0 83 300 400
text 97 14 1152 0
dtext 21 42 1152 
<name>

[
DIALOG d_iteminfochn TEXT]
<
name>

[
EOF

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...

You use
Code:
on=@click
dialog itemproperty
or
Code:
on=@click
src.dialog itemproperty
?

i wanna the itemprop just like WOWTongue
(This post was last modified: 01-21-2016 10:08 PM by alucardxlx1986.)
01-21-2016 10:05 PM
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: #8
RE: Item property gump need help
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]

Grandmaster Localhost Admin
01-21-2016 10:21 PM
Visit this user's website 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: #9
RE: Item property gump need help
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
01-22-2016 01:02 AM
Find all posts by this user Like Post Quote this message in a reply
[+] 1 user Likes rastrero's post
karma
Moderator
****

Posts: 178
Likes Given: 17
Likes Received: 32 in 29 posts
Joined: Jul 2012
Reputation: 3



Post: #10
RE: Item property gump need help
Have you considered AOS tooltips?
01-22-2016 03:00 AM
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)