Simbaclaws
ˁ(⦿ᴥ⦿)ˀ
So basically, I'm using the following code:
https://otland.net/threads/tfs-1-2-pet-system.236403/
And I've caught a bear. (I removed the vocation check because it was a deprecated function so it would work)
Now that I've caught a bear, as soon as I do !petinfo it will display the text: Your's pet is offline.
This basically means that the local variable pet is nil.
This line:
seems to return nil, even though I've caught a bear.
I've tried setting text to:
but that will give an error saying that pet is nil.
Is there any reason as to why pet would be nil? Should I checkout the pet library and check the Creature function? because I couldn't find any Creature function in the following thread:
https://otland.net/threads/lua-functions-list.14039/
EDIT: in the pet library I couldn't find any function named Creature. Does anyone know where this comes from?
I've also tried searching the git repo and couldn't seem to find any function named Creature, however I did find code where the same function is used...
https://otland.net/threads/tfs-1-2-pet-system.236403/
And I've caught a bear. (I removed the vocation check because it was a deprecated function so it would work)
Now that I've caught a bear, as soon as I do !petinfo it will display the text: Your's pet is offline.
This basically means that the local variable pet is nil.
This line:
Code:
local pet = Creature(petUid)
I've tried setting text to:
Code:
text = pet:isCreature()
Is there any reason as to why pet would be nil? Should I checkout the pet library and check the Creature function? because I couldn't find any Creature function in the following thread:
https://otland.net/threads/lua-functions-list.14039/
EDIT: in the pet library I couldn't find any function named Creature. Does anyone know where this comes from?
I've also tried searching the git repo and couldn't seem to find any function named Creature, however I did find code where the same function is used...