How Do I Do A Retest For Items Not Gold - Printable Version +- SphereCommunity (https://forum.spherecommunity.net) +-- Forum: Expired/Outdated Versions (/Forum-Expired-Outdated-Versions) +--- Forum: Sphere 51a Help (/Forum-Sphere-51a-Help) +--- Thread: How Do I Do A Retest For Items Not Gold (/Thread-How-Do-I-Do-A-Retest-For-Items-Not-Gold) |
How Do I Do A Retest For Items Not Gold - Admin Drew - 04-16-2015 04:39 PM 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! RE: How Do I Do A Retest For Items Not Gold - Sharlenwar - 04-17-2015 12:10 AM What does the itemdef code look like? RE: How Do I Do A Retest For Items Not Gold - Admin Drew - 04-17-2015 05:15 AM 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 RE: How Do I Do A Retest For Items Not Gold - Extreme - 04-18-2015 07:13 AM <RESTEST AMOUNT ID> = <RESTEST 10 I_KRYSS> RE: How Do I Do A Retest For Items Not Gold - Admin Drew - 04-23-2015 06:42 AM 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(= |