• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

TFS 1.X+ Bestiary and Charms | After kill X monster dont add to bestiary.

kubqq

Xyntera Global 8.60 - in progress
Joined
Aug 12, 2009
Messages
74
Solutions
1
Reaction score
4
Location
Sweden
Hello.
I have problem with bestiary system.
I copied all files form other engine. These are:

C:\Users\Kuba\Desktop\OTS2\data\modules\scripts\bestiary\bestiary.lua
Code:
https://justpaste.it/9ix67     <-- File is too big to post here


C:\Users\Kuba\Desktop\OTS2\data\modules\scripts\bestiary\assets.lua:
Code:
https://justpaste.it/8pg6t

Ofc in modules.xml :
Code:
    <!-- Bestiary -->
    <module type="recvbyte" byte="225" script="bestiary/bestiary.lua" />
    <module type="recvbyte" byte="226" script="bestiary/bestiary.lua" />
    <module type="recvbyte" byte="227" script="bestiary/bestiary.lua" />
    <module type="recvbyte" byte="228" script="bestiary/bestiary.lua" />

I also added two tables to my database:


and


And next:

C:\Users\Kuba\Desktop\OTS2\data\creaturescripts\scripts\others\bestiaryadd.lua:
Code:
function onKill(cid, target)
    if (not isMonster(target)) then
        return false
    end

    if getCreatureName(target) == "Chicken"  and getPlayerStorageValue(cid, 15001) < 2 then
        setPlayerStorageValue(cid, 15001, 2)
         doCreatureSay(cid, "You have added the creature 'Chicken' to your bestiary.", TALKTYPE_ORANGE_1)
        end
    return true

end

and ofc creaturescripts.xml:

Code:
     <!-- Bestiary -->
      <event type="kill" name="BestiaryOnKill" script="others/bestiaryadd.lua"/>




Before I added these of all, I did have empty popup windows Charms and Bestiary in Client, after add this I have these windows the same as Real Tibia but when I kill X monster I didnt have yellow frame on Bestiary Button and dont have unlocked monster also.

Can somebody help me with that?

Regards
 
bump

Edit: It's fixed by otserv portugal forum.
Thread to close
 
Last edited:
Back
Top