kubqq
Xyntera Global 8.60 - in progress
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
C:\Users\Kuba\Desktop\OTS2\data\modules\scripts\bestiary\assets.lua:
Ofc in modules.xml :
I also added two tables to my database:
and
And next:
C:\Users\Kuba\Desktop\OTS2\data\creaturescripts\scripts\others\bestiaryadd.lua:
and ofc creaturescripts.xml:
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
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