LOTF Coding

09/01/2009 03:16 -Shunsui-#1
Is there any Other Action or any other needed Code to make Exp Ball/Exp pots/+1 Stone Pack/Money Bags Work Cause I added all this in and For some reason when i right Click any of them They Dont Do anything!

Example Code this is The Code For Exp Ball if anyone can find something wrong or IDk

Code:
                else if (ItemParts[0] == "723700")//ExpBall
                {
                    if (Level < 100 && EPotRate == false)
                        AddExp((ulong)(1295000 + Level * 100000), false);
                    else if (Level < 110 && EPotRate == false)
                        AddExp((ulong)(1395000 + Level * 160000), false);
                    else if (Level < 115 && EPotRate == false)
                        AddExp((ulong)(1595000 + Level * 200000), false);
                    else if (Level < 120 && EPotRate == false)
                        AddExp((ulong)(1795000 + Level * 260000), false);
                    else if (Level < 125 && EPotRate == false)
                        AddExp((ulong)(2095000 + Level * 300000), false);
                    else if (Level < 130 && EPotRate == false)
                        AddExp((ulong)(2395000 + Level * 360000), false);
                    //below is rates with exppot usage.
                    else if (Level < 100 && EPotRate == true)
                        AddExp((ulong)(129500 + Level * 15000), false);
                    else if (Level < 110 && EPotRate == true)
                        AddExp((ulong)(139500 + Level * 24000), false);
                    else if (Level < 115 && EPotRate == true)
                        AddExp((ulong)(159500 + Level * 30000), false);
                    else if (Level < 120 && EPotRate == true)
                        AddExp((ulong)(179500 + Level * 39000), false);
                    else if (Level < 125 && EPotRate == true)
                        AddExp((ulong)(209500 + Level * 45000), false);
                    else if (Level < 130 && EPotRate == true)
                        AddExp((ulong)(239500 + Level * 54000), false);
                    RemoveItem(ItemUID);
                }
09/01/2009 04:19 killermickle#2
Is it removing the item when you use it?

& what is the EPotRate?
09/01/2009 04:33 -Shunsui-#3
No its not Removing The item When You Use It You Can right Click It and it wount do Nothing Just Sit there, Idk why it does this when i add something new same thing happens to NPCs Wen i code them I Debug then Build and in the Game They wount do nothing you can click on them and they will not talk add my msn ftw Maybe you can help me [Only registered and activated users can see links. Click Here To Register...]
09/01/2009 04:39 raidenx123#4
what source are you using, because that happens in comy sometimes...
09/01/2009 04:40 -Shunsui-#5
Yup CoMy D:
09/01/2009 04:42 raidenx123#6
Oh well then your screwed unless you have backups x(
09/01/2009 06:24 Arco:)#7
Quote:
Originally Posted by killermickle View Post
Is it removing the item when you use it?

& what is the EPotRate?
epotrate is exp pot and how much exp you would get with an exp pot
09/01/2009 06:50 killermickle#8
Quote:
Originally Posted by Arco:) View Post
epotrate is exp pot and how much exp you would get with an exp pot
That's what I thought but its less than with :/.