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

NPC Script quest

sebbelaser

Hoster
Joined
Feb 18, 2008
Messages
89
Reaction score
0
Location
Sweden, Stockholm
I need a npc bot... that takes etc 30 wolf paw instead of 30 gp, example

hi
hello, do you have my 30 wolf paw?
yes

then teleport to position


8.22 please! thanks
 
Code:
if msgcontains(msg, 'wolf paw') then
    selfSay("Do you have my 30 wolf paws?", cid)
    talkState[cid] = 1
elseif msgcontains(msg, 'yes') and talkState[cid] == 1 then
    if doPlayerRemoveItem(cid, wolfpaw, 30) == TRUE then
        selfSay("Thank you! Now you may enter my secret arena!", cid)
        doTeleportThing(cid, {x=x,y=y,z=z}, 0)
        talkState[cid] = 0
    else
        selfSay("Wtf liar :(...", cid)
        talkState[cid] = 0
    end
end

Use bootmaker as an example where to paste this.
 
Back
Top