• 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!

monster:setMaster(player) only for GOD? [tfs 1.2]

xoiox

New Member
Joined
Aug 20, 2009
Messages
46
Reaction score
2
hi, I've tried to summon unique creature by chosen vocation but I noticed that code:
Code:
monster:setMaster(player)
works only for GOD.

If ordinary player tries to summon this unique creature, then it appears as ordinary monster, not summon. But if god uses this spell, then function works as it should.

Use TFS 1.2
 
Code:
if player:getAccountType() < ACCOUNT_TYPE_GOD then
-- setting master
else
-- summon wild monster
end

You should do sth like this
 
Back
Top