Like a certain level? or a certain accomplishment completed.
|
Anyone know how to add item reqs to say legends cape
Idk where to look like trying to learn new stuff
thx very much will rep!
I want legends cape to have a 90 strength requirement
Packet 41..aka case 41 is where "wear item" is modified.
Add something along these lines:
I dunno what base you're using so I can't say for sure if that will work or not..I don't know how your wearing is handled.Code:if((wearID == legendscapeidthingyhere) && (playerLevel[2] < 90)) { sendMessage("You require 90 strength to wear this cape."); return; }
Im just gonna guess you have a Wearing.java in there..So why not edit it there....Find the items that require a strength requirement and add the cape there to it.
public void wear(int
search that
in it add somthing like
if(wearID == #### && playerLevel[playerStrength] < 90){
return false;
}
thx all, btw how do i add more than one req? i tried and it gave me errors
« Previous Thread | Next Thread » |
Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |