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

script dont work

esker

New Member
Joined
Oct 11, 2009
Messages
17
Reaction score
0
hello

my script dont work (i am not scripter)

function onUse(cid, item, fromPosition, itemEx, toPosition)
if getPlayerStorageValue(cid,60957) == -1 then
doPlayerAddItem(cid,8300,1)
doPlayerSendTextMessage(cid,25,"kill thousand dragos.")
setPlayerStorageValue(cid,65049,0)

end
if getPlayerStorageValue(cid, 65049) >= 999 then
doPlayerSendTextMessage(cid,25,"congratulations.")
doTeleportThing(cid, {x=32235,y=31902,z=7})

end
end

he dont work
 
Code:
function onUse (cid, item, fromPosition, itemEx, toPosition)
    if getPlayerStorageValue(cid,60957) == -1 then
      doPlayerAddItem(cid,8300,1)
      doPlayerSendTextMessage(cid, 25, "Kill 1000 dragons.")
      setPlayerStorageValue(cid,65049,0)
    elseif getPlayerStorageValue(cid,65049) >= 999 then
      doPlayerSendTextMessage(cid,25,"Congratulations")
      doTeleportThing(cid, {x=32235,y=31902,z=7})
    end
    return true
  end

I don't know if this will work because I don't know how to set storages... im not good at that t_t
 
Back
Top