• 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
 
this is the information
here is the npc xodet xml

Code:
?xml version="1.0" encoding="UTF-8"?>
<npc name="Xodet" script="data/npc/scripts/runes.lua" walkinterval="2000" floorchange="0">
    <health now="100" max="100"/>
    <look type="130" head="19" body="86" legs="87" feet="95"/>
    <parameters>
         <parameter key="message_greet" value="Oh, please come in, |PLAYERNAME|! Whats do you need?"/>
    <parameter key="message_farewell" value="Good bye, |PLAYERNAME|."/>
        <parameter key="message_sendtrade" value="Of course, just browse through my wares. Or do you want to look only at fluids or runes?"/>
        <parameter key="module_keywords" value="1" />
        <parameter key="keywords" value="job;offer;runes;wands;rods;" />
        <parameter key="keyword_reply1" value="I am the illusterous Topsy, of course." />
        <parameter key="keyword_reply2" value="I'm selling life and mana fluids, runes and spellbooks." />
        <parameter key="keyword_reply3" value="Have a look. I sell animate dead rune, blank ,chameleon rune, convince creature rune, desintegrate, destroy field rune, death arrow rune, explosion rune, great fireball rune, heavy magic missile rune, intense healing rune, light magic missile rune, sudden death rune." />
        <parameter key="keyword_reply4" value="Have a look. I sell light wand, wand of vortex, wand of dragonbreath, wand of plague, wand of cosmic energy, wand of inferno." />
        <parameter key="keyword_reply5" value="Have a look. I sell light wand, snakebite rod, moonlight rod, volcanic rod, terra rod, tempest rod." />

        <parameter key="module_shop" value="1"/>
        <parameter key="shop_buyable" value="" />
        <parameter key="shop_sellable" value="" />
    </parameters>
</npc>
 
Code:
    NpcHandler = {
        keywordHandler = nil,
        queue = nil,        
        focus = 0,
        talkStart = 0,
        idleTime = 60,
        talkRadius = 4,
        talkDelayTime = 1, -- Seconds to delay outgoing messages.
        talkDelay = nil,
        callbackFunctions = nil,
        modules = nil,
        messages = {
 
Try this (line 330).
Code:
if(NPCHANDLER_TALKDELAY == TALKDELAY_ONTHINK and self.talkDelay.time ~= nil and self.talkDelay.message ~= nil) then
 
still not work look i did add like 330 that you send


21:06 Bril danne: hi
21:06 Xodet: Oh, please come in, Bril danne! Whats do you need?
21:06 Bril danne: buy 4x mana fluid
21:07 Bril danne: buy 4x mana fluid
21:07 Xodet: Do you want to buy 4 mana fluid for 220 gold coins?
21:07 Bril danne: yes
 
You can also remove it in total as it will be 0 anyway.
Code:
if(NPCHANDLER_TALKDELAY == TALKDELAY_ONTHINK and self.talkDelay.message ~= nil) then

Make sure to save the script and restart your server.
 
What I posted is the only thing related to time in your npchandler and the other underlying classes of the npcsystem don't handle this.
Did you edited the right script?
 
Back
Top