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

Giving a final twist to done my quest! :)

Vrotz

Member
Joined
Apr 7, 2011
Messages
1,071
Reaction score
7
Location
Brazil
Hi brahs, fine?
I think that isn't difficult for some scripters.

I want a script to make my quest! That when a player click in the "stone" or something and get a "storage" (something related to a bless/storage) whatever. .. So, get a storage and can pass in one tile to continue your quest. Without the storage of stone, the player cannot pass. (movement)

And, in the final of quest, the player will need click on ANTIC WELL, ID: 5739 to remove one stone on his way.

Thanks!
 
TFS version?
Position information?
Item IDs?

We're gonna need more information.

Sorry if i dont put all informations there, i forgot. Im using TFS 0.3.7! And dont need put the position informations bro, i will configure it later. Dont worry.. N' the item id i said on the top.
 
Code:
local storage = 38484

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

     if getPlayerStorageValue(cid, storage) == -1 then
         setPlayerStorageValue(cid, storage, 1)
         doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "You can now pass on some tile.")
     else
         doPlayerSendTextMessage(cid, MESSAGE_EVENT_ADVANCE, "You already clicked on this stone.")
     end
     return true
end
Code:
local storage = 38484

function onStepIn(cid, item, position, fromPosition)
     if not isPlayer(cid) then
         return true
     end
     if getPlayerStorageValue(cid, storage) == -1 then
         doTeleportThing(cid, fromPosition)
         doPlayerSendTextMessage(cid, MESSAGE_EVENT_ADVANCE, "You can't pass here.")
     end
     return true
end
Code:
function onUse(cid, item, fromPosition, itemEx, toPosition)

     local thing = getTileItemById({x = 100, y = 100, z = 7}, 3607).uid
     if thing > 0 then
         doRemoveItem(thing)
         doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Stone removed!")
     else
         doPlayerSendTextMessage(cid, MESSAGE_EVENT_ADVANCE, "Stone is already removed.")
     end
     return true
end
 
Code:
local storage = 38484

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

     if getPlayerStorageValue(cid, storage) == -1 then
         setPlayerStorageValue(cid, storage, 1)
         doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "You can now pass on some tile.")
     else
         doPlayerSendTextMessage(cid, MESSAGE_EVENT_ADVANCE, "You already clicked on this stone.")
     end
     return true
end
Code:
local storage = 38484

function onStepIn(cid, item, position, fromPosition)
     if not isPlayer(cid) then
         return true
     end
     if getPlayerStorageValue(cid, storage) == -1 then
         doTeleportThing(cid, fromPosition)
         doPlayerSendTextMessage(cid, MESSAGE_EVENT_ADVANCE, "You can't pass here.")
     end
     return true
end
Code:
function onUse(cid, item, fromPosition, itemEx, toPosition)

     local thing = getTileItemById({x = 100, y = 100, z = 7}, 3607).uid
     if thing > 0 then
         doRemoveItem(thing)
         doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Stone removed!")
     else
         doPlayerSendTextMessage(cid, MESSAGE_EVENT_ADVANCE, "Stone is already removed.")
     end
     return true
end

I have a feeling he will be back with more problems... but who knows, stranger things have happened!
 
Back
Top