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

StorageValue/Boolean Confusion

Giddran

Techical Artist
Joined
Sep 8, 2007
Messages
70
Reaction score
25
Location
Sweden
Hello guys, i'm having abit trouble understanding how to deal with the boolean values. The script works perfectly if arrowcount is a clean number or equation. But not if i extract the number from the players storage value. I appreciate the help i can get.

Code:
local spirit = 40106
local arrowcount = getPlayerStorageValue(cid, spirit)
¨
local function onCastSpell2(parameters)
   doCombat(parameters.cid, parameters.combat1, parameters.var)
  if n <= arrowcount then
  addEvent(onCastSpell2, 350, parameters)
    n = n + 1
end
end
 
Back
Top