• 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 !autoloot /!autoloot Only VIP Account for use command

samuel157

/root
Joined
Mar 19, 2010
Messages
447
Solutions
3
Reaction score
49
Location
São Paulo, Brazil
GitHub
Samuel10M
I want a script that when the player types !autoloot or /autoloot a message appears on doPlayerPopupFYI saying that, just the player's VIP account. but the script need to have my vip storage
 
Solution
Again, show me that you can follow some Direction. Install the script that I provided earlier in the thread, and show me a screenshot of it working or not working.

If you refuse to do that, I'm going to assume that you have no intention of learning, and this will be my last comment in your thread.
You have all the information you need to accomplish this.

If players are typing to perform an action -> talkaction.
XML:
<talkaction words="!autoloot;/autoloot" event="script" value="autoloot.lua"/>
Lua:
function onSay(cid, words, param, channel)

    return true
end

Message appears on doPlayerPopupFYI saying stuff.
Lua:
doPlayerPopupFYI(cid, "Just the player's VIP account.")

Must have a vip account, and the vip account is a storage value.
Lua:
local storageKey = 11111111
if getCreatureStorage(cid, storageKey) < os.time() then
   
    return true
end
heck, if you didn't create your vip system, more then likely someone created a function for this scenario
Lua:
if not isVip(cid) then

    return true
end
 
@Xikini
no function
Lua:
function onSay(cid, words, param, channel)

    return true
end

doPlayerPopupFYI(cid, "Just the player's VIP account.")

local storageKey = 13545
if getCreatureStorage(cid, storageKey) < os.time() then
  
    return true
end

if not isVip(cid) then

    return true
end
 
Lua:
local storageKey = 13545

function onSay(cid, words, param, channel)
    if getCreatureStorage(cid, storageKey) < os.time() then
        doPlayerPopupFYI(cid, "Just the player's VIP account.")
        return true
    end
    return true
end
 
@Xikini

no function version: 8.60

I want the same image on the right, please

no show for your information

!autoloot my ot other image no is
Post automatically merged:

@up no function
 

Attachments

  • Screenshot_1.png
    Screenshot_1.png
    460.5 KB · Views: 11 · VirusTotal
  • Screenshot_1 (6).png
    Screenshot_1 (6).png
    59.6 KB · Views: 11 · VirusTotal
Last edited:
@Xikini

no function version: 8.60

I want the same image on the right, please

no show for your information

!autoloot my ot other image no is
Let's try something slightly different then.

Lua:
local storageKey = 13545

function onSay(cid, words, param, channel)
    local text = ""
    if getCreatureStorage(cid, storageKey) < os.time() then
        text = "You are not VIP." 
    else
        text = "VIP confirmed." 
    end
    text = text .. " Storage value is currently " .. getCreatureStorage(cid, storageKey) .. "." 
    doPlayerPopupFYI(cid, text)
    return true
end
 
@Xikini only VIP players can use this command my use System vip 2.0 and new_perfect_autoloot_tfs image for palyer no vip storagevalue no function please help
Neither of those images show the script I provided.

If you decide to install and test the script from above you'll immediately understand what you need to do.
 
@Xikini use TFS 8.60 Rev 0.4 I want a command where the player doesn't use the command! autoloot if it is not a VIP if not vip with storagevalue13545 in system vip and mod autoloot this appears
 

Attachments

Again, show me that you can follow some Direction. Install the script that I provided earlier in the thread, and show me a screenshot of it working or not working.

If you refuse to do that, I'm going to assume that you have no intention of learning, and this will be my last comment in your thread.
 
Solution
Back
Top