Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How Do I Do A Retest For Items Not Gold
Author Message
Admin Drew
Apprentice
*

Posts: 48
Likes Given: 0
Likes Received: 0 in 0 posts
Joined: Jun 2013
Reputation: 0



Post: #1
How Do I Do A Retest For Items Not Gold
Hi just getting back to scripting(= Trying to make a stone that checks to see if you have collected 8 of a certain same item I made..a scroll I made.
I know how to do a test for gold-
IF <SRC.RESTEST 8 GOLD>
SRC.CONSUME=8 GOLD

But I am trying to get it to check for 8 the items I made, Item #6035
like this
IF <SRC.RESTEST 8 6035>
SRC.CONSUME=8 6035
and it's not checking it right because I have 8 of the items 6035 on me and it says I dont.
Anyone know what I need to change that have it check for a certain item I make and how to set the amount it looks for so it will consume them?
Thanks a bunch!
(This post was last modified: 04-16-2015 04:59 PM by Admin Drew.)
04-16-2015 04:39 PM
Find all posts by this user Like Post Quote this message in a reply
Sharlenwar
Journeyman
*

Posts: 55
Likes Given: 0
Likes Received: 3 in 3 posts
Joined: May 2012
Reputation: 0



Post: #2
RE: How Do I Do A Retest For Items Not Gold
What does the itemdef code look like?

-= Meh =-
04-17-2015 12:10 AM
Visit this user's website Find all posts by this user Like Post Quote this message in a reply
Admin Drew
Apprentice
*

Posts: 48
Likes Given: 0
Likes Received: 0 in 0 posts
Joined: Jun 2013
Reputation: 0



Post: #3
RE: How Do I Do A Retest For Items Not Gold
Didn't have one.. I just tried to add my own to Spheredefs myself to try. I put Reward_Scroll for the name in defs, and gave it a number then tried-
IF <SRC.RESTEST 8 Reward_Scroll> -still didn't work.
How do I add my own Defs to get it to work? Isn't there a way just to get it to check for the item number I added and not have to use a def? If not what do I need to do to get my own custom defs recognized.
Thanks
04-17-2015 05:15 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: #4
RE: How Do I Do A Retest For Items Not Gold
<RESTEST AMOUNT ID> = <RESTEST 10 I_KRYSS>

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.
04-18-2015 07:13 AM
Find all posts by this user Like Post Quote this message in a reply
Admin Drew
Apprentice
*

Posts: 48
Likes Given: 0
Likes Received: 0 in 0 posts
Joined: Jun 2013
Reputation: 0



Post: #5
RE: How Do I Do A Retest For Items Not Gold
Got this one working awhile back thanks a bunch! Just used the Def for a scroll that wasn't being used in-game. Tests for items now and got a reward system working! Thanks a bunch(=
(This post was last modified: 04-23-2015 06:43 AM by Admin Drew.)
04-23-2015 06:42 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)