Code Monkey home page Code Monkey logo

Comments (14)

mattyx14 avatar mattyx14 commented on June 2, 2024

in the final compilations of 7.7 this was fixed... it will be a matter of reviewing that date and giving you the link and you compile said change

from otxserver.

p0t1nh0 avatar p0t1nh0 commented on June 2, 2024

in the final compilations of 7.7 this was fixed... it will be a matter of reviewing that date and giving you the link and you compile said change

i cant find this fix Mattyx...tried to merge with new npc codes, new libs...do you have changelog to this fix?

from otxserver.

MohamedRefaat avatar MohamedRefaat commented on June 2, 2024

This problem on 8.6 too

from otxserver.

p0t1nh0 avatar p0t1nh0 commented on June 2, 2024

in the final compilations of 7.7 this was fixed... it will be a matter of reviewing that date and giving you the link and you compile said change

Got link with changes Mattyx? If u can send to us, i know a lot of servers with this bug.

from otxserver.

mattyx14 avatar mattyx14 commented on June 2, 2024

src use U?

from otxserver.

p0t1nh0 avatar p0t1nh0 commented on June 2, 2024

src use U?

Something like this, same libs from NPC files:

https://github.com/brewsterl/RealOTX-7.72

from otxserver.

mattyx14 avatar mattyx14 commented on June 2, 2024

try it
https://fastupload.io/en/75oE9k7RWK4zIJz/file

from otxserver.

p0t1nh0 avatar p0t1nh0 commented on June 2, 2024

try it https://fastupload.io/en/75oE9k7RWK4zIJz/file

Now i dont have queue problem anymore, but npc who use default.lua script dont sell anything.

Follow mine default.lua script for some NPCs:

``local keywordHandler = KeywordHandler:new()
local npcHandler = NpcHandler:new(keywordHandler)
NpcSystem.parseParameters(npcHandler)

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
function onThink() npcHandler:onThink() end

npcHandler:addModule(FocusModule:new())``

from otxserver.

p0t1nh0 avatar p0t1nh0 commented on June 2, 2024

try it https://fastupload.io/en/75oE9k7RWK4zIJz/file

And NPC who use default.lua looks like this:

`

<parameters>
	<parameter key="module_shop" value="1" />
	<parameter key="message_greet" value="Hello |PLAYERNAME|. I sell {exp scroll} (1h 50% more exp) for 15kk, {vip ticket} (1 day area vip) for 17kk." />
	<parameter key="shop_buyable" value="exp scroll,5161,15000000;vip ticket,2236,17000000" />
	</parameters>
`

from otxserver.

mattyx14 avatar mattyx14 commented on June 2, 2024

try
<parameter key="shop_buyable" value="exp scroll,5161,1,15000000;vip ticket,2236,1,17000000" />

from otxserver.

p0t1nh0 avatar p0t1nh0 commented on June 2, 2024

try <parameter key="shop_buyable" value="exp scroll,5161,1,15000000;vip ticket,2236,1,17000000" />

Dont work, When npc use default.lua it dont answer, no errors on console. Another NPCs seems to work fine, just npcs who use default.lua (simply sellers) dont work with new lib files.

from otxserver.

p0t1nh0 avatar p0t1nh0 commented on June 2, 2024

try <parameter key="shop_buyable" value="exp scroll,5161,1,15000000;vip ticket,2236,1,17000000" />

To make it clear, im using 7.72 protocol, i dont have "trade" option, just talking to NPC, i saw ur libs have "trade" option to talk. When i try to use trade:

2023-02-21 10:52:15 - [Error - NpcScript Interface] 2023-02-21 10:52:15 - data/npc/scripts/default.lua:onCreatureSay 2023-02-21 10:52:15 - Description: 2023-02-21 10:52:15 - data/npc/lib/npcsystem/modules.lua:1358: attempt to call global 'getShopOwner' (a nil value) 2023-02-21 10:52:15 - stack traceback: 2023-02-21 10:52:15 - data/npc/lib/npcsystem/modules.lua:1358: in function 'callback' 2023-02-21 10:52:15 - data/npc/lib/npcsystem/keywordhandler.lua:42: in function 'processMessage' 2023-02-21 10:52:15 - data/npc/lib/npcsystem/keywordhandler.lua:177: in function 'processNodeMessage' 2023-02-21 10:52:15 - data/npc/lib/npcsystem/keywordhandler.lua:136: in function 'processMessage' 2023-02-21 10:52:15 - data/npc/lib/npcsystem/npchandler.lua:377: in function 'onCreatureSay' 2023-02-21 10:52:15 - data/npc/scripts/default.lua:7: in function <data/npc/scripts/default.lua:7>

from otxserver.

p0t1nh0 avatar p0t1nh0 commented on June 2, 2024

try <parameter key="shop_buyable" value="exp scroll,5161,1,15000000;vip ticket,2236,1,17000000" />

Can u help us to fix Mattyx?

from otxserver.

p0t1nh0 avatar p0t1nh0 commented on June 2, 2024

try <parameter key="shop_buyable" value="exp scroll,5161,1,15000000;vip ticket,2236,1,17000000" />

can u help us Matt? Maybe just remove NPC queue?

from otxserver.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.