• 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!
  • 2026 staff recruitment is open! Check it out and consider applying!

mana shop npc slow

carre

Advanced OT User
Joined
Apr 23, 2013
Messages
885
Solutions
1
Reaction score
161
Location
Sweden
when i buy mana or rune something npc mana shop is really slow....
GOD Tryller: hi
Xodet: Oh, please come in, GOD Tryller! Whats do you need?
GOD Tryller: buy 100x mana fluid
GOD Tryller: buy 100x mana fluid
Xodet: Do you want to buy 100 mana fluid for 5500 gold coins?
GOD Tryller: yes
REPP+ +help me
 
Just a shot in the dark as limos covered npchandler.lua.
Is your computer dated? Is it powerful enough to run a server + client?

for a Evo Server you should have atleast 3 GB Ram.
For a real map you should have 8 Gb or more.

Another thing to ask.
Do other players on your server get this problem, or only you and your characters?
 
player and me i get this problem and i need help ):
btw i got 16gb ram

bump

bump

bump

bump

bump
 
Last edited by a moderator:
Found this line on npchandler.lua:

Code:
doCreatureSayWithDelay(getNpcCid(), msgs[aux], TALKTYPE_PRIVATE_NP, ((aux-1) * (interval or 4000)) + 700, self.eventDelayedSay[pcid][aux], pcid)

Code:
return self:doNPCTalkALot(message, delay or 6000, focus)

But by modifing the intervals, also restarting servers.... No changes.

----

The only way to make it works was modifying:

Code:
            npcHandler:say({
                "Fine, though it takes more then a mere lip service to join our ranks. To prove your dedication to the cause you will have to acquire an item for us ...",
                "The mission should be simple to fulfil. For our excavations we have ordered a sturdy pickaxe in Kazordoon. You would have to seek out this trader Uzgod and get the pickaxe for us ...",
                "Simple enough? Are you interested in this task?"
            }, cid, false, true, 0)

As you can see put flase on publicize, true on shallDelay and 0 to interval and it worked... But I would like to leave those values as false.

So went to the npchandler.lua and after function NpcHandler:say just defined shallDelay as true and delay es 0, but still not working.
 
Last edited:
Ok, solved it:

goto npc/lib/npcsystem/npchandler.lua

Search line "function NpcHandler:say(message, focus, publicize, shallDelay, delay)"

and after it add a definition true for shallDelay, and the miliseconds for delay as shown here:

Code:
function NpcHandler:say(message, focus, publicize, shallDelay, delay)
        shallDelay = true
        delay = 800 -- miliseconds

That's all.
 
Back
Top