Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help script de Paint item
Author Message
victorstelzer
Journeyman
*

Posts: 80
Likes Given: 0
Likes Received: 0 in 0 posts
Joined: Jun 2012
Reputation: 0



Post: #1
Help script de Paint item
[ITEMDEF i_tinta_vulcan]
ID=I_reag_dragon_blood
DEFNAME=i_tinta_vulcan
NAME=Tinta True Vulcan
WEIGHT=2
CATEGORY=Tintas True
SUBSECTION=Tintas
DESCRIPTION=Tinta Vulcan

ON=@Create
COLOR=0f93


ON=@Dclick

need to click it 2 paint the selected item ?? how to make???
06-26-2012 10:49 AM
Find all posts by this user Like Post Quote this message in a reply
Gil Amarth
Journeyman
*

Posts: 189
Likes Given: 2
Likes Received: 1 in 1 posts
Joined: May 2012
Reputation: 0



Post: #2
RE: Help script de Paint item
ON=@DCLICK
TARGET What item do you want to color?
RETURN 1

ON=@TARGON_ITEM
SRC.TARG.COLOR = <COLOR>
RETURN 1
06-26-2012 06:51 PM
Find all posts by this user Like Post Quote this message in a reply
victorstelzer
Journeyman
*

Posts: 80
Likes Given: 0
Likes Received: 0 in 0 posts
Joined: Jun 2012
Reputation: 0



Post: #3
RE: Help script de Paint item
Good evening friend Gil Amarth, is helping me make

When you paint the item, the scrip consume the item?

As would be to consume the item


/////////////TINTA VULCAN ///////////////

[ITEMDEF i_tinta_vulcan]
ID=I_reag_dragon_blood
DEFNAME=i_tinta_vulcan
NAME=Tinta True Vulcan
WEIGHT=2
CATEGORY=Tintas True
SUBSECTION=Tintas
DESCRIPTION=Tinta Vulcan

ON=@Create
COLOR=0f93

ON=@DCLICK
TARGET What item do you want to color?
RETURN 1


ON=@TARGON_ITEM
SRC.TARG.COLOR = 0f93
RETURN 1
consume 1 i_tinta_vulcan
return 1

[EOF]
06-27-2012 08:57 AM
Find all posts by this user Like Post Quote this message in a reply
Skul
Master
**

Posts: 413
Likes Given: 0
Likes Received: 19 in 15 posts
Joined: Jun 2012
Reputation: 9



Post: #4
RE: Help script de Paint item
The item should REMOVE since it can be used from the floor, also look at the <amount> and remove the appropriate amount.

Example:
Code:
if (<amount> > 1)
amount -= 1
update //update the amount
else
remove //remove the item entirely since the amount is 1 or less
endif
return 1 //halt default processing.
(This post was last modified: 06-27-2012 09:01 AM by Skul.)
06-27-2012 09:00 AM
Visit this user's website Find all posts by this user Like Post Quote this message in a reply
victorstelzer
Journeyman
*

Posts: 80
Likes Given: 0
Likes Received: 0 in 0 posts
Joined: Jun 2012
Reputation: 0



Post: #5
RE: Help script de Paint item
Did not work well? As would be oo


[ITEMDEF i_tinta_vulcan]
ID = I_reag_dragon_blood
Defname = i_tinta_vulcan
NAME = True Vulcan Ink
WEIGHT = 2
Paints CATEGORY = True
Paints SubSection =
DESCRIPTION = Vulcan Ink

ON = @ Create
COLOR = 0f93

ON = @ DCLICK
TARGET What item do you want to color?
RETURN a



ON = @ TARGON_ITEM
SRC.TARG.COLOR = 0f93
RETURN a

if (<amount>> 1)
amount - = 1
update / / update the amount
else
remove / / remove the item Entirely since the amount is 1 or less
endif
return 1 / / default halt processing.
06-27-2012 09:05 AM
Find all posts by this user Like Post Quote this message in a reply
Extreme
Grandmaster Poster
***

Posts: 1,140
Likes Given: 217
Likes Received: 89 in 76 posts
Joined: May 2012
Reputation: 20

SphereCommunity

Post: #6
RE: Help script de Paint item
Just one question, are you brazillian Victor?
Code:
[ITEMDEF I_TINTA_VULCAN]
ID I_REAG_DRAGON_BLOOD
NAME True Vulcan Ink
WEIGHT 2

ON=@Create
COLOR 0F93

ON=@DCLICK
IF <TOPOBJ> != <SRC>
SRC.SYSMESSAGE @,,1 Put the <NAME> in your backpack.
RETURN 1
ENDIF
TARGET What item do you want to color?
RETURN 1

ON=@TARGON_ITEM
IF <SRC.TARG.TOPOBJ> != <SRC>
SRC.SYSMESSAGE @,,1 Put the <SRC.TARG.NAME> in your backpack.
RETURN 1
ENDIF
SRC.TARG.COLOR <COLOR>
AMOUNT -= 1
IF <AMOUNT> == 0
REMOVE
ENDIF
RETURN 1

ON=@TARGON_CHAR
RETURN 1
ON=@TARGON_GROUND
RETURN 1

STEPS BEFORE CREATE A THREAD
- Check the revisions log;
- Use the search button and use the keywords of your problem;
- Check the WIKI;
- Create a thread.
06-27-2012 09:28 AM
Find all posts by this user Like Post Quote this message in a reply
victorstelzer
Journeyman
*

Posts: 80
Likes Given: 0
Likes Received: 0 in 0 posts
Joined: Jun 2012
Reputation: 0



Post: #7
RE: Help script de Paint item
Thanks for the help, Extrem, Gil Amarth, Skul

Now the script worked correctly.
06-27-2012 09:48 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)