Lotf adding potency question

06/29/2009 00:44 ~RapidBlade~#1
Hey every1, I posted this once but got no results, so i'll try again, hopefully people will see this one...
In Nobility I'm trying to make it add potency for King, Duke, ETC... This is what i have.

Code:
MyChar.Potency += 40;
SendPacket(General.MyPackets.Vital(MyChar.UID, 11, MyChar.Potency));
If some1 could get it to go to the "Other" section, all the better, but really any section other then Level would be good.I'm pretty sure its the "SendPacket" thats not working, Please help.

~Rapid
06/29/2009 00:48 mejo33#2
Im dont sure, test it:
SpawnTo.MyClient.SendPacket(General.MyPackets.Stri ng(Me.UID, 10, "letter7"));
06/29/2009 01:13 ~RapidBlade~#3
Eh, got a lot of errors but when i edited it it still didnt work, thanks for trying tho
06/29/2009 05:41 Singah#4
First of all why bother start that way?

How about if this chars rank = 7( Thats king right?)

Just my 2c
06/29/2009 05:44 ~RapidBlade~#5
Quote:
Originally Posted by Singah View Post
First of all why bother start that way?

How about if this chars rank = 7( Thats king right?)

Just my 2c
Theres more to the code then that... I just need to know that small part that adds the potency...
06/29/2009 05:47 Singah#6
I'm not sure with Conquer, its sending the packet. But maybe not receiving it?
06/29/2009 06:05 _tao4229_#7
If you send the right nobility packets the client will add it automatically.
Obviously you're not doing it right.
06/29/2009 06:06 ~RapidBlade~#8
Well, actually I no for a fact the packet is the wrong one... i just copied the StatPoint one and prayed it would work cause i could find the Potency One lol, i also hanged MyChar.StatP to MyChar.Potency, the only thing that differs in each of the "SendPacket" thing are The Number after MyChar.UID, (number), so i think the number is what has to be changed but i have no idea how to find the number..
06/29/2009 06:12 Singah#9
Actually its an effect.

That number is like the ID. Changing it may cause a `mixup`, or an invalid packet
06/29/2009 06:16 ~RapidBlade~#10
Code:
MyChar.StatP += 40;
SendPacket(General.MyPackets.Vital(MyChar.UID, 11, MyChar.StatP));
 MyChar.Potency += 40;
SendPacket(General.MyPackets.Vital(MyChar.UID, 11, MyChar.Potency));
That code includes the StatP part of it i added, that one works, but the potency doesn't and the only difference is MyChar.Potency, so can any1 figure it out?


I just realized just putting potency doesnt tell it where to add it in potency, maybe thats the problem?
06/29/2009 06:24 Singah#11
Check the potency system. It might be screwed. Actually it was always shit in lotf. No extra def/atk. I think :/
06/29/2009 16:04 ~RapidBlade~#12
Bump (Sorry to interfere with newer and more important post... But ive been trying to get an answer to a small problem for 3 days...)
06/29/2009 18:11 damianpesta#13
Quote:
Originally Posted by ~RapidBlade~ View Post
Bump (Sorry to interfere with newer and more important post... But ive been trying to get an answer to a small problem for 3 days...)
I dont get you , why would you provide players with high potency if the potency does not do anything? Firstival I would make a calculations for potency to add up % of defence and % of attack(May be a little hard).Then you can start on doing things like providing players with advantages of potency.
06/29/2009 18:49 ~RapidBlade~#14
Quote:
Originally Posted by damianpesta View Post
I dont get you , why would you provide players with high potency if the potency does not do anything? Firstival I would make a calculations for potency to add up % of defence and % of attack(May be a little hard).Then you can start on doing things like providing players with advantages of potency.
Potency adds defence, idk bout attack, and dont act like you know what the hell your doing on my source, i think i know more about it then you do
06/29/2009 19:32 _tao4229_#15
Quote:
Originally Posted by Singah View Post
Actually its an effect.

That number is like the ID. Changing it may cause a `mixup`, or an invalid packet
No, it's not an effect.
If you send effects it won't add potency. If you send the nobility packet it will.