Results 1 to 12 of 12
  1. #1
    Goodfeet's Avatar
    Join Date
    Oct 2012
    Gender
    male
    Location
    The Netherlands
    Posts
    771
    Reputation
    150
    Thanks
    903

    Question What is wrong with this code?

    I just made a Candy Ring for Trapped's source, i added it, and rebuilded it as i always do but when i try to connect one of the servers gives an error. If i remove the ring it works again. So there has to be something wrong with my code:

    Code:
    	<Object type="0x105" id="Candy Ring">
    		<Class>Equipment</Class>
    		<Item/>
    		<Texture><File>lofiObj6</File><Index>0xb9</Index></Texture> 
    		<SlotType>9</SlotType>
    		<Description>A high-fructose ring that’ll give you pep, but hurt your concentration.</Description>
    		<ActivateOnEquip stat="26" amount="10">IncrementStat</ActivateOnEquip>
    		<ActivateOnEquip stat="22" amount="10">IncrementStat</ActivateOnEquip>
    		<ActivateOnEquip stat="3" amount="100">DecrementStat</ActivateOnEquip>
    		<ActivateOnEquip stat="27" amount="10">DecrementStat</ActivateOnEquip>
    		<BagType>4</BagType>
    		<FameBonus>10</FameBonus>
    	</Object>
    It would be nice if someone could help me with this.
    Last edited by goodfeet; 03-07-2014 at 02:38 AM.
    [IMG]https://lh3.googleuserconten*****m/-00iIf0SVXqM/Wx7De4Gt3cI/AAAAAAAAHPw/cy33De9pX4AE7Arzy2gPMgRRcwno-sVEQCHMYCw/s0/ifNXCIl.gif[/IMG]

  2. #2
    CrazyJani's Avatar
    Join Date
    Jan 2013
    Gender
    male
    Posts
    2,475
    Reputation
    170
    Thanks
    15,666
    Quote Originally Posted by goodfeet View Post
    I just made a Candy Ring for Trapped's source, i added it, and rebuilded it as i always do but when i try to connect one of the servers gives an error. If i remove the ring it works again. So there has to be something wrong with my code:

    Code:
    	<Object type="0x105" id="Candy Ring">
    		<Class>Equipment</Class>
    		<Item/>
    		<Texture><File>lofiObj6</File><Index>0xb9</Index></Texture> 
    		<SlotType>9</SlotType>
    		<Description>A high-fructose ring that’ll give you pep, but hurt your concentration.</Description>
    		<ActivateOnEquip stat="26" amount="10">IncrementStat</ActivateOnEquip>
    		<ActivateOnEquip stat="22" amount="10">IncrementStat</ActivateOnEquip>
    		<ActivateOnEquip stat="3" amount="100">DecrementStat</ActivateOnEquip>
    		<ActivateOnEquip stat="27" amount="10">DecrementStat</ActivateOnEquip>
    		<BagType>4</BagType>
    		<FameBonus>10</FameBonus>
    	</Object>
    It would be nice if someone could help me with this.
    DecrementStat is not a valid parameter for ActivateOnEquip.
    You can fix this buy replacing those lines with this:
    Code:
    		<ActivateOnEquip stat="3" amount="-100">IncrementStat</ActivateOnEquip>
    		<ActivateOnEquip stat="27" amount="-10">IncrementStat</ActivateOnEquip>
    It won't look good in the description but it gets the job done

  3. #3
    dthnider's Avatar
    Join Date
    May 2013
    Gender
    male
    Posts
    215
    Reputation
    10
    Thanks
    164
    My Mood
    Cheerful
    It's because "DecrementStat" is not an existent parameter for ActivateOnEquip (or at all, I think) in the XML datas. Just use IncrementStat, but make the value a negative.

    Oh, and this isn't code. It's XML data.
    Last edited by Lovroman; 03-09-2014 at 03:03 AM. Reason: Stay on topic.

  4. #4
    Goodfeet's Avatar
    Join Date
    Oct 2012
    Gender
    male
    Location
    The Netherlands
    Posts
    771
    Reputation
    150
    Thanks
    903
    I tried that earlier but that didn't work either.
    [IMG]https://lh3.googleuserconten*****m/-00iIf0SVXqM/Wx7De4Gt3cI/AAAAAAAAHPw/cy33De9pX4AE7Arzy2gPMgRRcwno-sVEQCHMYCw/s0/ifNXCIl.gif[/IMG]

  5. #5
    Lunati's Avatar
    Join Date
    Apr 2013
    Gender
    male
    Posts
    265
    Reputation
    66
    Thanks
    1,545
    My Mood
    Amused
    Quote Originally Posted by goodfeet View Post
    I tried that earlier but that didn't work either.
    What's your error?

  6. #6
    Ahl's Avatar
    Join Date
    Dec 2012
    Gender
    male
    Location
    /modcp
    Posts
    16,599
    Reputation
    3219
    Thanks
    5,383
    My Mood
    Angelic
    Quote Originally Posted by goodfeet View Post
    I tried that earlier but that didn't work either.
    yes please post your error here so we may see it

    Quote Originally Posted by goodfeet View Post
    I just made a Candy Ring for Trapped's source, i added it, and rebuilded it as i always do but when i try to connect one of the servers gives an error. If i remove the ring it works again. So there has to be something wrong with my code:

    Code:
    	<Object type="0x105" id="Candy Ring">
    		<Class>Equipment</Class>
    		<Item/>
    		<Texture><File>lofiObj6</File><Index>0xb9</Index></Texture> 
    		<SlotType>9</SlotType>
    		<Description>A high-fructose ring that’ll give you pep, but hurt your concentration.</Description>
    		<ActivateOnEquip stat="26" amount="10">IncrementStat</ActivateOnEquip>
    		<ActivateOnEquip stat="22" amount="10">IncrementStat</ActivateOnEquip>
    		<ActivateOnEquip stat="3" amount="100">DecrementStat</ActivateOnEquip>
    		<ActivateOnEquip stat="27" amount="10">DecrementStat</ActivateOnEquip>
    		<BagType>4</BagType>
    		<FameBonus>10</FameBonus>
    	</Object>
    It would be nice if someone could help me with this.
    @CrazyJani in prod doesn't it say -100 MP for the candy ring when equipped? I am pretty sure they used Incrementstat and just made it a negative value
    Last edited by Lovroman; 03-10-2014 at 12:05 PM.
    News Force Head Editor from 09/14/2018 - 03/02/2020
    Publicist from 11/23/2017 - 06/07/2019
    Global Moderator since 09/24/2017
    Minion+ from 04/16/2017 - 09/24/2017
    Market Place Minion from 04/16/2017 - 09/24/2017
    Minecraft Minion from 02/23/2017 - 09/24/2017
    Realm of the Mad God Minion from 11/06/2016 - 09/24/2017

    Middleman from 09/14/2016 - 09/24/2017
    News Force Editor from 08/23/2016 - 09/14/2018
    News Force (Section of the Week) from 03/21/2016 - 07/17/2017
    News Force (User News) from 10/18/2015 - 09/14/2018

    Donator since 03/16/2015
    Realm of the Mad God Editor from 05/20/2014 - 07/08/2014
    Member since 12/23/2012


    Rep Power: 82

  7. #7
    CrazyJani's Avatar
    Join Date
    Jan 2013
    Gender
    male
    Posts
    2,475
    Reputation
    170
    Thanks
    15,666
    Quote Originally Posted by cool1119 View Post
    @CrazyJani in prod doesn't it say -100 MP for the candy ring when equipped? I am pretty sure they used Incrementstat and just made it a negative value
    Just checked, they use IncrementStat in prod too. But when you use it in private server the description says +-100 MP which is somewhat ugly...

  8. #8
    Ahl's Avatar
    Join Date
    Dec 2012
    Gender
    male
    Location
    /modcp
    Posts
    16,599
    Reputation
    3219
    Thanks
    5,383
    My Mood
    Angelic
    Quote Originally Posted by CrazyJani View Post

    Just checked, they use IncrementStat in prod too. But when you use it in private server the description says +-100 MP which is somewhat ugly...
    really? i thought it didn't. at least i think mine doesnt do that. I should check.
    News Force Head Editor from 09/14/2018 - 03/02/2020
    Publicist from 11/23/2017 - 06/07/2019
    Global Moderator since 09/24/2017
    Minion+ from 04/16/2017 - 09/24/2017
    Market Place Minion from 04/16/2017 - 09/24/2017
    Minecraft Minion from 02/23/2017 - 09/24/2017
    Realm of the Mad God Minion from 11/06/2016 - 09/24/2017

    Middleman from 09/14/2016 - 09/24/2017
    News Force Editor from 08/23/2016 - 09/14/2018
    News Force (Section of the Week) from 03/21/2016 - 07/17/2017
    News Force (User News) from 10/18/2015 - 09/14/2018

    Donator since 03/16/2015
    Realm of the Mad God Editor from 05/20/2014 - 07/08/2014
    Member since 12/23/2012


    Rep Power: 82

  9. #9
    dthnider's Avatar
    Join Date
    May 2013
    Gender
    male
    Posts
    215
    Reputation
    10
    Thanks
    164
    My Mood
    Cheerful
    Quote Originally Posted by cool1119 View Post
    @CrazyJani in prod doesn't it say -100 MP for the candy ring when equipped? I am pretty sure they used Incrementstat and just made it a negative value
    Just out of curiosity, what was your post before it was edited?

  10. #10
    Ahl's Avatar
    Join Date
    Dec 2012
    Gender
    male
    Location
    /modcp
    Posts
    16,599
    Reputation
    3219
    Thanks
    5,383
    My Mood
    Angelic
    Quote Originally Posted by dthnider View Post
    Just out of curiosity, what was your post before it was edited?
    well it was the same. not sure why Lovroman editted it.
    News Force Head Editor from 09/14/2018 - 03/02/2020
    Publicist from 11/23/2017 - 06/07/2019
    Global Moderator since 09/24/2017
    Minion+ from 04/16/2017 - 09/24/2017
    Market Place Minion from 04/16/2017 - 09/24/2017
    Minecraft Minion from 02/23/2017 - 09/24/2017
    Realm of the Mad God Minion from 11/06/2016 - 09/24/2017

    Middleman from 09/14/2016 - 09/24/2017
    News Force Editor from 08/23/2016 - 09/14/2018
    News Force (Section of the Week) from 03/21/2016 - 07/17/2017
    News Force (User News) from 10/18/2015 - 09/14/2018

    Donator since 03/16/2015
    Realm of the Mad God Editor from 05/20/2014 - 07/08/2014
    Member since 12/23/2012


    Rep Power: 82

  11. The Following User Says Thank You to Ahl For This Useful Post:

    dthnider (03-20-2014)

  12. #11
    Lovroman's Avatar
    Join Date
    Sep 2012
    Gender
    male
    Posts
    9,417
    Reputation
    611
    Thanks
    11,990
    My Mood
    Cheerful
    Quote Originally Posted by cool1119 View Post
    well it was the same. not sure why Lovroman editted it.
    I think I merged your two posts, can't really recall.
    I'd have specified a reason if it was something worth editing out..

  13. #12
    Ahl's Avatar
    Join Date
    Dec 2012
    Gender
    male
    Location
    /modcp
    Posts
    16,599
    Reputation
    3219
    Thanks
    5,383
    My Mood
    Angelic
    Quote Originally Posted by Lovroman View Post


    I think I merged your two posts, can't really recall.
    I'd have specified a reason if it was something worth editing out..
    yes I recall quoting 2 different people but I wasn't scrolling down until I found the other post. I am certain that you merged them. @dthnider there's your answer
    News Force Head Editor from 09/14/2018 - 03/02/2020
    Publicist from 11/23/2017 - 06/07/2019
    Global Moderator since 09/24/2017
    Minion+ from 04/16/2017 - 09/24/2017
    Market Place Minion from 04/16/2017 - 09/24/2017
    Minecraft Minion from 02/23/2017 - 09/24/2017
    Realm of the Mad God Minion from 11/06/2016 - 09/24/2017

    Middleman from 09/14/2016 - 09/24/2017
    News Force Editor from 08/23/2016 - 09/14/2018
    News Force (Section of the Week) from 03/21/2016 - 07/17/2017
    News Force (User News) from 10/18/2015 - 09/14/2018

    Donator since 03/16/2015
    Realm of the Mad God Editor from 05/20/2014 - 07/08/2014
    Member since 12/23/2012


    Rep Power: 82

Similar Threads

  1. [Help] what is wrong with this code?
    By _corn_ in forum CrossFire Hack Coding / Programming / Source Code
    Replies: 2
    Last Post: 12-22-2011, 12:01 PM
  2. [Help] What is wrong with this code!
    By killer660 in forum CrossFire Hack Coding / Programming / Source Code
    Replies: 14
    Last Post: 08-01-2011, 09:55 AM
  3. [Help] What is wrong with this code?
    By IGNITE09178 in forum CrossFire Hack Coding / Programming / Source Code
    Replies: 15
    Last Post: 07-01-2011, 03:59 AM
  4. Bad Syntax - What is wrong with this code?
    By HACKINGPIE in forum Call of Duty Modern Warfare 2 GSC Modding Help/Discussion
    Replies: 5
    Last Post: 01-19-2011, 12:12 AM
  5. What is wrong with this code?
    By t7ancients in forum C++/C Programming
    Replies: 10
    Last Post: 10-19-2009, 01:58 PM