otland / forgottenserver

A free and open-source MMORPG server emulator written in C++
https://otland.net
GNU General Public License v2.0
1.6k stars 1.06k forks source link

[Bug]: NPC Say, callFunction #4774

Open Mau005 opened 2 months ago

Mau005 commented 2 months ago

By submitting this bug issue, you agree to the following.

Does this bug crash tfs?

no

Server Version

1.7 (Master), 1.6 (Release)

Operation System

Ubuntu 22.04

OS Description

Xubuntu 24.04 LTS Xfce 4.18 Kernel 6.8.0-40

Bug description

Bug when talking to an npc, breaks the entire LUA system

Possible Pull Requests which are to blame

Steps to reproduce

  1. I open client tibia 13.10
  2. Talk to an npc 3.When talking to an NPC, the error appears in the console, and then the entire LUA system fails. Code to reproduce the issue:

Lua Script Error: [Main Interface] in a timer event called from: (Unknown scriptfile) callFunction(). attempt to call a table value stack traceback:



### Actual Behavior

![image](https://github.com/user-attachments/assets/66bd17b7-0156-4b64-9f82-e805ca3e04c9)

![image](https://github.com/user-attachments/assets/2e72d949-53de-4c31-8401-4f5c0cc73bf2)

Not say-->
![image](https://github.com/user-attachments/assets/23603040-6e10-446a-9591-939546a648a0)

### Expected Behavior

I should open the NPC channel and chat with him

### Backtrace

_No response_
ArturKnopik commented 2 days ago

I can't reproduce this issue.