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

Lua Ashaming question!

onion679

Working on o.s.s.m ONLINE
Joined
Jan 18, 2008
Messages
79
Reaction score
0
Ok, I forgot how to make Quest npc ! Damn, i know it seems dumb but i have a hole in my memory LOL.

So here is the exemple!:

Me: Hi!
Npc: BRING MY SOME CRACK SON OF A BI***!!!
<Get Crack>
Me: WHAT!?! YOU GOT CRACK!!! NICE DONE LITTLE!!!!
<Npc give a diploma to player>

This is an exemple; i wont rly use crack on my server XD tell me plz :)
 
Do something like this:
Code:
if msgContainer(msg,'hi') then
    if getPlayerItemCount(cid,CrackID) = 0 then
        selfSay('BRING MY SOME CRACK SON OF A BI***!!!')
    else
        selfSay('WHAT!?! YOU GOT CRACK!!! NICE DONE LITTLE!!!!')
        doPlayerRemoveItem(uid,CrackID)
        doPlayerAddItem(uid,DiplomaID)
    end
end
Jo3
 
Nop! I think it was working with storagevalue or something like that! He gives you the quest of getting crack!
 
So something like this?
Code:
if msgcontains(msg,'hi') then
    if getPlayerStorageValue(cid,1234) = 1 then
        selfSay('You have already done this quest.')
    else
        if getPlayerItemCount(cid,CrackID) = 0 then
            selfSay('BRING MY SOME CRACK SON OF A BI***!!!')
        else
            selfSay('WHAT!?! YOU GOT CRACK!!! NICE DONE LITTLE!!!!')
            doPlayerRemoveItem(cid,CrackID)
            doPlayerAddItem(cid,DiplomaID)
            setPlayerStorageValue(cid,1234,1)
        end
    end
end

Jo3
 
Last edited:
Back
Top