[Request]Item Lock for LOTF

11/21/2009 18:53 Jay1029isBACK#1
Hey everyone, I was just wondering if anyone knew how to get Item Lock in a lotf source and if they could write up a guide. Would get a lot of thanks :D

Edit: Is it even possible to put item lock in a lotf source? Oo
P.S Don't bother telling me to convert it from CoEmu because i don't know how and I would never be able to find all the codes =P
11/22/2009 00:32 12tails#2
you can make a lock system but i don't think you can show it at the weapons... will need to many client side edits....

you can make one by npc for example...
11/22/2009 01:20 #*=DarkAngeL=*##3
Is not possible to add LOCK to LOTF, only if you are really really really good coder.
You would need to make alotf of client side things, edit packets and much more.
11/22/2009 02:08 pro4never#4
@ DA it's not impossible. Just wouldn't show client side... For FULL item lock it would require alot of work... you could always just make an npc (lol.. yay for adding 'features' to lotf through npcs) to lock an equiped item. Then just add a check when dropping/trading/selling items to see if it is locked (in item database) and if so print back to the client that it's locked and can't be sold.


very rough system but it would work.

If the original client does not contain the feature, as a rule of thumb you will not be able to add it. Doesn't mean you can't do cheap workaround's to get the same effect though.
11/22/2009 02:15 #*=DarkAngeL=*##5
Quote:
Originally Posted by pro4never View Post
@ DA it's not impossible. Just wouldn't show client side... For FULL item lock it would require alot of work... you could always just make an npc (lol.. yay for adding 'features' to lotf through npcs) to lock an equiped item. Then just add a check when dropping/trading/selling items to see if it is locked (in item database) and if so print back to the client that it's locked and can't be sold.


very rough system but it would work.

If the original client does not contain the feature, as a rule of thumb you will not be able to add it. Doesn't mean you can't do cheap workaround's to get the same effect though.
Tottally right :D
He need a higher patch with it added XD
11/22/2009 06:09 Arcо#6
This isn't an actual code just an idea.
I'm never gonna give a full code.
Well here it goes.
You add a new row to the items table.
Let it be Lock let's say.
Go to your client and make a definition for Lock and another thing called ItemChoice which is the item you choose to lock.
Then make an NPC say something like, "For 100 Cps I can lock your item."
Then make a check for the cps and the the item lock status.
Then once you give the NPC the cash make something like ItemChoice Lock == 1 which will be the status of it being locked.
Idk that's just a quick thought.
Gotta put more effort into it.
11/22/2009 06:20 #*=DarkAngeL=*##7
could be cool :D
11/23/2009 18:06 .Guru#8
itemlock was a major defect in TQ's mind. poor choice, ruined the REAL pk system.
11/26/2009 22:11 Arcо#9
Quote:
Originally Posted by Prot0type View Post
itemlock was a major defect in TQ's mind. poor choice, ruined the REAL pk system.
Lol truer words have never been spoken nabz.
02/16/2010 10:24 LegalConquer#10
i thought so too , it was to support db buyers coz they cried when they died thinking they where above Pking rules XD
03/01/2010 17:04 dsSharkk#11
Jay here, just noticed I forgot to thank arco for his help back then o.o sorry bud thanks!
I went by what you said and it was a success. I should have released the finished code when I had the chance, got a new comp lols
03/01/2010 18:49 LegalConquer#12
idk what lotf is but itemlock works fine with 5165 and 5095 XD if thats what ur tlking about lool
03/01/2010 21:32 PeTe Ninja#13
5165 is LOTF and also 5017
03/02/2010 02:16 Jăy1029#14
Oh shit I didn't know 5165 was LOTF!! wtf?!
03/02/2010 03:56 PeTe Ninja#15
if it has bugs... its LOTF .. .?