• 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!
  • 2026 staff recruitment is open! Check it out and consider applying!

Solved Onlook error

Na Amigo

The crazy girl
Joined
Jun 5, 2017
Messages
254
Solutions
3
Reaction score
17
Location
Egypt
i've this error while i look at myself i am using the forgotten server 0.3.7_svn
here is the error with screenshots and the code error
Code:
[11/3/2017 7:23:43] [Error - CreatureScript Interface]
[11/3/2017 7:23:43]             domodlib("ranks")
[11/3/2017 7:23:43]             function onLook(cid, thing, position, lookDistance)
[11/3/2017 7:23:43]                 if(isPlayer(thing.uid)) then
[11/3/2017 7:23:43]                     local rank = {rank = "Private", frags = 0}
[11/3/2017 7:23:43]                     for k, v in pairs(titles) do
[11/3/2017 7:23:43]                         if(math.max(0, getPlayerStorageValue(thing.uid, fragsStorage)) > k - 1) then
[11/3/2017 7:23:43]                             if(k - 1 > rank.frags) then
[11/3/2017 7:23:43]                                 rank.rank, rank.frags = v, k - 1
[11/3/2017 7:23:44]                             end
[11/3/2017 7:23:44]                         end
[11/3/2017 7:23:44]                     end
[11/3/2017 7:23:44]                     doPlayerSetSpecialDescription(thing.uid, "\n Military rank: " .. rank.rank)
[11/3/2017 7:23:44]                 end
[11/3/2017 7:23:44]                 return true
[11/3/2017 7:23:44]             end
[11/3/2017 7:23:44]         :onLook
Prolx4.png
j6Im95.png
 
-----solved----
the problem was from military ranks
i've disabled it cause my tfs does not support it
 
Last edited:
Solution
Back
Top