• 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
my script :
function onUse (cid, item, fromPosition, itemEx, toPosition)
if getPlayerStorageValue(cid,65049) == -1 then
if getPlayerStorageValue(cid,69999) == -1 then
doPlayerAddItem(cid,8300,1)
doPlayerSendTextMessage(cid, 25, "Kill 1000 dragons.")
setPlayerStorageValue(cid,65049,0)
setPlayerStorageValue(cid,69999,1)
elseif getPlayerStorageValue(cid,65049) >= 999 then
doPlayerSendTextMessage(cid,25,"Congratulations")
setPlayerStorageValue(cid,65049,-1)
setPlayerStorageValue(cid,69999,-1)
doTeleportThing(cid, {x=32235,y=31902,z=7})
end

return true
end
end
i need a script if
player use lever, if he have storage value (cid, 69999, 1) say sorry not posible.
and if he have (cid, 69999, -1) and(cid,65049, -1) and execute
doPlayerAddItem(cid,8300,1)
doPlayerSendTextMessage(cid, 25, "Kill 1000 dragons.")
setPlayerStorageValue(cid,65049,0)
setPlayerStorageValue(cid,69999,1)
 
i need a script if
player use lever, if he have storage value (cid, 69999, 1) say sorry not posible.
and if he have (cid, 69999, -1) and(cid,65049, -1) and execute
doPlayerAddItem(cid,8300,1)
doPlayerSendTextMessage(cid, 25, "Kill 1000 dragons.")
setPlayerStorageValue(cid,65049,0)
setPlayerStorageValue(cid,69999,1)


LUA:
function onUse(cid, item, fromPosition, itemEx, toPosition)
if getPlayerStorageValue(cid,69999) == 1 then
  doPlayersendCancel(cid,"Sorry not possible.")
  return true
 end
 if getPlayerStorageValue(cid,69999) == -1 and getPlayerStorageValue(cid,65049) == -1 then
  doPlayerAddItem(cid,8300,1)
  doPlayerSendTextMessage(cid, 25, "Kill 1000 dragons.")
   setPlayerStorageValue(cid,65049,0)
   setPlayerStorageValue(cid,69999,1)
   return true
   end
   end
 
Back
Top