+12 Item Composition

04/09/2011 14:01 F i n c h i#1
Hi there!
My problem is that I can compose my items till +9 with stones like +1 +2 +3 +4 +5 and +6 , BUT , I can't use +7 / +8 stones.
So it doesn't work to +12 any item , it works only from +1 to +9.
What should I add/modify to get it work till +12 with all kind of stones?
Thanks.


P.S: I can only generate +12 items by command ( /item 14563 12 7 255 13 13 )

If you are a flamer don't comment.

I'm using Chris's source!
04/09/2011 15:11 pro4never#2
The real question is how are you getting the + stones? By command?


Make sure they have an ACTUAL plus value and are not just the item itself.

IE

+8Stone(+8)

not just +8Stone

If not it won't work in composition.
04/09/2011 18:29 F i n c h i#3
I don't understand,I searched for +8Stone(+8) in Items.txt and I didn't found it.
04/09/2011 18:39 pro4never#4
No, it all has to do with where you are getting these +8 stones from. You need to be manually giving them a +8 when you purchase/give them out.
04/09/2011 18:42 F i n c h i#5
So,it doesn't work by command?
Gotta make a NPC that sells it?
04/09/2011 19:14 -Shunsui-#6
it can work by command.. hes just saying you need to make sure you are making the Item with the Correct values else it wount work in the Composition Stove
04/09/2011 20:14 { Angelius }#7
just go to the Composition.cs and find the GetPlusReq void and edit the highlighted part of the code to whatever is the right req points thats whats wrong .
Quote:
private static uint GetPlusReq(int p)
{
switch (p)
{
case 0:
{
return 20;
}
case 1:
{
return 20;
}
case 2:
{
return 80;
}
case 3:
{
return 240;
}
case 4:
{
return 720;
}
case 5:
{
return 2160;
}
case 6:
{
return 6480;
}
case 7:
{
return 19440;
}
case 8:
{
return 58320;
}
case 9:
{
return 116640; to 2700;
}
case 10:
{
return 233280; to 5500;
}
case 11:
{
return 466560; to 9000;
}
default:
{
return 0;
}
}
}
Ps. the numbers i used up there are not the right ones you need to figure them or w/e

Edit. or they are the right ones wtf i think i better go to bed i cant think any more :P

one more thing .
find this in the Composition.cs
Quote:
while (MainItem.Composition >= GetPlusReq(MainItem.Plus))
{
MainItem.Composition -= GetPlusReq(MainItem.Plus);
MainItem.Plus++;
}
and change it to
Quote:
while (MainItem.Composition >= GetPlusReq(MainItem.Plus) && MainItem.Plus < 12)
{
MainItem.Composition -= GetPlusReq(MainItem.Plus);
MainItem.Plus++;
if (MainItem.Plus == 12) { MainItem.Composition = 0; }
}
cus the way it was its gonna keep racing the item plus as long as the item composition points is greater than 0 and the GetPlusReq void is returning 0 as default;
04/09/2011 21:19 F i n c h i#8
You guys didn't understand me right!
Look at this picture and you'll know what I mean!

[Only registered and activated users can see links. Click Here To Register...]
04/09/2011 22:06 F i n c h i#9
Quote:
Originally Posted by { Angelius } View Post
just go to the Composition.cs and find the GetPlusReq void and edit the highlighted part of the code to whatever is the right req points thats whats wrong .


Ps. the numbers i used up there are not the right ones you need to figure them or w/e

Edit. or they are the right ones wtf i think i better go to bed i cant think any more :P

one more thing .
find this in the Composition.cs


and change it to


cus the way it was its gonna keep racing the item plus as long as the item composition points is greater than 0 and the GetPlusReq void is returning 0 as default;
It works now to upgrade till +12.
But only with +1 , +2 , +3 , +4 , +5 and +6 stones.
It doesn't work with +7 and +8 stones
Look at my previous post!
04/09/2011 22:13 pro4never#10
Again... are the +8 stones actually +8? How are you getting them? From a cmd or how? Sounds like you haven't given them a plus.


Eg adding the item using a +8 stone does NOT make it +8. You still need to give it a + value like any other item.
04/09/2011 22:17 F i n c h i#11
Quote:
Originally Posted by pro4never View Post
Again... are the +8 stones actually +8? How are you getting them? From a cmd or how? Sounds like you haven't given them a plus.


Eg adding the item using a +8 stone does NOT make it +8. You still need to give it a + value like any other item.
I'm getting the +8 stones by command.
/item 730008 0 0 0 0 0
04/09/2011 23:06 kill_acvc#12
Quote:
Originally Posted by alexalx View Post
I'm getting the +8 stones by command.
/item 730008 0 0 0 0 0
I'm not using your source but try this /item 730008 8 0 0 0 0

(Will only work if the third command argument is "plus")

The problem is that you are creating +0 +8Stones. +8Stones are not +8 by themselves. (that's why you see in game "+8Stone(+8)" not "+8Stone". If you see only "+8Stone", tada, problem found.)

[Edit]
I don't know if the problem is already solved but whatever.
04/10/2011 00:09 F i n c h i#13
Quote:
Originally Posted by kill_acvc View Post
I'm not using your source but try this /item 730008 8 0 0 0 0

(Will only work if the third command argument is "plus")

The problem is that you are creating +0 +8Stones. +8Stones are not +8 by themselves. (that's why you see in game "+8Stone(+8)" not "+8Stone". If you see only "+8Stone", tada, problem found.)

[Edit]
I don't know if the problem is already solved but whatever.
Thank you,that was the problem.
So,the right command for stones is:
/item IDOFSTONE +OFSTONE 0 0 0 0
04/10/2011 00:19 F i n c h i#14
#Solved
#Request closed
04/10/2011 00:32 kill_acvc#15
Quote:
Originally Posted by alexalx View Post
Thank you,that was the problem.
So,the right command for stones is:
/item IDOFSTONE +OFSTONE 0 0 0 0
Precisely, in your server, at least.