Jump to content
  • 0
Sign in to follow this  
lynx12

[PI] Need help with PKP system

Question

I've always done a pkp system where you buy stuff from shops, but ive recently created a spawn server and i was wondering how to do it so that you need 100 pkp to wear an item or 50 pkp to use a potion, any help is appreciated, thanks!

Share this post


Link to post
Share on other sites

2 answers to this question

Recommended Posts

  • 0
Can anyone help? i just want people to not be able to wear an item or use an item if they dont qualify with pkp

Share this post


Link to post
Share on other sites
  • 0
i am not very sure about it but i think you need to at the item.java and search for the case like dragon claws = case 14484 and i think if you add like this,

if case 14484 ("dragon claws") get pk.points (amount).
{ else }
False.
C.sendmessage ("you dont have the pk points to wear this item")

not sure i think it is an part of it since i am working on this same kind of project but for me this works pretty wel (not sure if you need more coding in other files)

dont know if this works for you since i am coding 317. Not sure if it is compleet. or works for u

Share this post


Link to post
Share on other sites
Sign in to follow this  

×