• 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 that adds a "storage id"

Blackcody

RiseOfTibia Owner
Joined
Aug 31, 2008
Messages
136
Reaction score
1
<_< i am have another problem
if some one could make this script it would be so great

i need a script that

if item.uid==(NUMBER#)then
dosetplayerstorageid (NUMBER#)then
doplayermessage("message")
else
end
;) thank you to who ever make this
 
can some one please put it in to a script

Code:
if item.uid==(NUMBER#)then
dosetplayerstorageid (NUMBER#)then
doplayermessage("message")
else
end
;)
 
uhmm lol
Lua:
local uniqueid = 1235
local storage = 1235
local message = "Great"

function onUse(cid, item, fromPosition, itemEx, toPosition)

if item.uid == uniqueid then
  if getPlayerStorageValue(cid,storage) < 0 then
      doPlayerSetStorageValue(cid,storage,1)
      doCreatureSay(cid,message,TALKTYPE_ORANGE_1)
  else 
     doPlayerSendCancel(cid,"You already use this")
  return true
end
end
return true
end
 
if you put action unique id number in action.xml then you dont need the if statement with the unique id thing
Lua:
local storage = 1235
local message = "Great"

function onUse(cid, item, fromPosition, itemEx, toPosition)


  if getPlayerStorageValue(cid,storage) < 0 then
      doPlayerSetStorageValue(cid,storage,1)
      doCreatureSay(cid,message,TALKTYPE_ORANGE_1)
  else 
     doPlayerSendCancel(cid,"You already use this")
  return true
end


end

Code:
<action uniqueid="1877" event="script" value="storage.lua"/>
 
Back
Top