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

Hello php/sql Shop when you bouyght item got on deposit/character 7.6

Devlinn

Member
Joined
Mar 25, 2015
Messages
295
Reaction score
6
hello i need little help on shop
all works fine but i dont know how to when player buy items from shop
got item on deposit or character
7.6 (sql) no tfs
more information on pw
 
impossible to help you. no one will send you pm. you need to make clear the information.
7.6 servers there are thousands, we need to know exactly which version of your distro and if you are using updated znote/gesior.
 
That is why he told you to create them.
what i must do?
c/c++?
look
Screen_Shot_10_29_15_at_12_43_PM.png
 
what i must do?
c/c++?
look
Screen_Shot_10_29_15_at_12_43_PM.png

Ohh, that is surprisingly limited.
Here I would probably make a NPC and use the NPC's onThink function to simulate a globalevent. A bit dirty but may do the trick.
LUA:
local keywordHandler = KeywordHandler:new()
local npcHandler = NpcHandler:new(keywordHandler)
NpcSystem.parseParameters(npcHandler)

-- OTServ event handling functions start
function onCreatureAppear(cid)                npcHandler:onCreatureAppear(cid) end
function onCreatureDisappear(cid)             npcHandler:onCreatureDisappear(cid) end
function onCreatureSay(cid, type, msg)     npcHandler:onCreatureSay(cid, type, msg) end
-- OTServ event handling functions end

--Global Events--
function onThink() npcHandler:onThink()

    -- Trigger once every minute at 10 and 40 seconds mark (30 seconds interval).
    if os.date('%S') == "10" or os.date('%S') == "40" then
        -- code here
    end

end -- End onThink

npcHandler:setCallback(CALLBACK_MESSAGE_DEFAULT, creatureSayCallback)
npcHandler:addModule(FocusModule:new())

I would create a NPC called globalevent and spawn him somewhere no players can be. Make sure to only spawn one NPC connected to this script to avoid these simulated "globalevents" to run more than once on every onThink cycle.
 
Last edited:
How did you solve it? And if you coded something, what is the results of your making?

I think we as a community deserve some contributions from you, considering our efforts in helping you.

Or do you not appreciate our contributions to your thread?
 
How did you solve it? And if you coded something, what is the results of your making?

I think we as a community deserve some contributions from you, considering our efforts in helping you.

Or do you not appreciate our contributions to your thread?
i change to gesior shopsytem.php
 
Back
Top