Vanquisher
Initiate
where would i add a cap and how would i add it for pet slot deeds so people dont exceed the limit to how many pet slots they can have
if (!this.Movable || from == null)
return;
int maxSlots = 10;
if (from.FollowersMax >= maxSlots)
{
from.SendMessage("You already have the max amount of follower slots!");
return;
}
from.FollowersMax++;
from.SendMessage("You now possess "+from.FollowersMax+" follower slots."); [code]
Well you could use something along like this, but it is untested so not sure if I made a typo or something
Code:if (!this.Movable || from == null) return; int maxSlots = 10; if (from.FollowersMax >= maxSlots) { from.SendMessage("You already have the max amount of follower slots!"); return; } from.FollowersMax++; from.SendMessage("You now possess "+from.FollowersMax+" follower slots."); [code]
We use essential cookies to make this site work, and optional cookies to enhance your experience.