Post your pet system so I can criticize it, here's mine that I whipped up in the last 10 minutes to show insignificant you actually having the "core" scripts made is.
PHP Code:
function onCreated() {
if (this.owner) {
this.owner = findplayer(this.owner);
this.owner.pet = this;
} else {
destroy();
}
initPet();
warptoOwner();
onTimeout();
}
function initPet() {
// Set's pet graphics and gani
}
function onTimeout() {
if (this.owner == NULL) {
// Owner no longer exists (logged off), so destroy.
destroy();
return;
}
else if (this.owner.level != this.level) {
warptoOwner();
setTimer(0.25);
}
else {
petLogic();
}
}
function petLogic() {
if (getOwnerDist() > 4) {
moveToOwner();
} else {
setTimer(0.5);
}
}
function warptoOwner() {
// warpto this.owner
}
function moveToOwner() {
// determine delta angle/coordinates
// move based on delta
// set timeout based on movement length
}
public function performAction(action) {
switch (action) {
case "dance":
setcharani("pet_dance", "");
break;
}
}
Focus on the idea and not the fact you already have the "core" done if you actually want to see things get added in these forums.