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

[Solved] Support Here (Sample Script)

Binho®

KooL =D
Joined
May 27, 2008
Messages
344
Reaction score
0
Location
BrZ Style
Ello guys,

I was doing a test, (i'm a naabstation in scripts, learning now :D:D:D).

This is a exemple of a simple quest.
Code:
local msg1 = "You have found a boots of haste."
local msg2 = "It is empty."

function onUse(cid, item, fromPosition, itemEx, toPosition)
    if item.uid == 3003 then
    if getPlayerStorageValue(cid, 50300) == -1 then
    doPlayerSendTextMessage(cid, 22, msg1)
    doPlayerAddItem(cid, 2195, 1)
    setPlayerStorageValue(cid, 50300, 1)
else
    doPlayerSendTextMessage(cid, 22, msg2)
    end
end
end
I like it worked on the floor :(.
I put the uniqueid on floor and not work.
 
Last edited:
Working on a floor? When you enter tile with this uid? So it must be movement, not actions.
Use
Code:
function onStepIn(cid, item, fromPosition, itemEx, toPosition)
instead of
Code:
function onUse(cid, item, fromPosition, itemEx, toPosition)

Regards,
Keraxel.
 
Ahhhhhhhh... movements!!!
Thanks for help-me Keraxel.

Edit....
Appears errors:
Code:
Warning: [Event::loadScript] Event onUse not found. data/actions/scripts/quests/floorboh.lua
 
Last edited:
I was thinking this. And add a line on movement.xml, sure?

Edit....

Nah... not work.
:(
It is like the quest of the blue legs. Where you find the item on the floor.​
 
Last edited:
Back
Top