dont work, you understand this?
I'm not your brother or your employee, stop to reactionate like this, you don't pay me to do your full job 100%.
You didn't gave full informations and you not paste the full quest and you didn't explain what exactly you want, no one is bound to help you, like this style.
"don't work, you understand this?"
Do you know what exactly that means? it looks like you're a shit kid what want to receive all d**** in him mouth, stop to be angry, you don't solve nothing.
How it's working this:
When you click on NPC he check your actual map index and return the table of this:
- Argument 1: Level - Key from loop, 1|2|3.
- Argument 2: Index where you need to join 107|108|109
- Argument 3: Name of map
If you are in mapIndex 5 you will get table of index 1 (Join on index level(1), joinIndex(107), name(leichte farmamp)
I didn't test this quest but i'm sure is working well, my domain isn't Lua, i just was trying to help you, but i see your comment and character is by far the worst of all I've ever seen.
- quest Gemi begin
- state start begin
- function GetData()
- local recv = {
- [1] = { 5, 107, "Leichte Farmmap" },
- [2] = { 25, 108, "Mittlere Farmmap" },
- [3] = { 45, 109, "Schwere Farmmap" }
- }
- for key, tbl in pairs(recv) do
- if (pc.get_map_index() == tbl[1]) then
- return key, tbl[2], tbl[3]
- end
- end
- return 0
- end
- when 9003.chat."Test Index" begin
- local level, index, name = Gemi.GetData()
- if (level > 0) then
- say(name)
- pc.setqf("level", level)
- d.regen_file(string.format("data/dungeon/monkey/monkey%d.txt", level))
- d.join(index)
- end
- end
- end
- end
Alles anzeigen