Register for your free account! | Forgot your password?

Go Back   elitepvpers > Popular Games > Metin2 > Metin2 Private Server
You last visited: Today at 18:11

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



Frage zu create mob_level table *Belohnung*

Discussion on Frage zu create mob_level table *Belohnung* within the Metin2 Private Server forum part of the Metin2 category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: May 2008
Posts: 208
Received Thanks: 49
Frage zu create mob_level table *Belohnung*

Hay zusammen, ich hab mal eine Frage ich nutze diese funktion hier
Code:
-- create mob_level table
out = mysql_query("SELECT vnum, level FROM player.mob_proto;", "xxx", "xxx")
mob_level = {}
table.foreach(out.vnum,
function(i,p)
table.insert(mob_level, p, out.level[i])
end
)
out = nil
-- end
Und zum Testen der Quest
Code:
quest test begin
state start begin
when kill with not npc.is_pc() begin
chat('Du hast '..mob_name(npc.get_race())..' (Lv. '..mob_level[npc.get_race()]..') getötet!')
end
end
end
Eigentlich! klappt das auch wunderbar, irgendwie aber nicht bei allen Mobs.
€: Es werden auch Mobs nicht an gezeigt die in keiner Quest, bzw mir sichtbaren quest sind. Getestet an Skorpionbugenschütze die aus 45er Metins kommen.
€2: Habe nun auch mal alle Quests raus gemacht und wirklich nur noch die test.quest drin gelassen, fehler ist immer noch da.
€3:
Code:
SYSERR: Mar 30 19:06:43 :: RunState: LUA_ERROR: [string "pvm"]:5: attempt to perform arithmetic on field `?' (a nil value)
SYSERR: Mar 30 19:06:43 :: WriteRunningStateToSyserr: LUA_ERROR: quest pvm.pvmquest click
SYSERR: Mar 30 19:06:43 :: RunState: LUA_ERROR: [string "test"]:1: attempt to concatenate field `?' (a nil value)
SYSERR: Mar 30 19:06:43 :: WriteRunningStateToSyserr: LUA_ERROR: quest test.start click
SYSERR: Mar 30 19:06:48 :: RunState: LUA_ERROR: [string "pvm"]:5: attempt to perform arithmetic on field `?' (a nil value)
SYSERR: Mar 30 19:06:48 :: WriteRunningStateToSyserr: LUA_ERROR: quest pvm.pvmquest click
SYSERR: Mar 30 19:06:48 :: RunState: LUA_ERROR: [string "test"]:1: attempt to concatenate field `?' (a nil value)
SYSERR: Mar 30 19:06:48 :: WriteRunningStateToSyserr: LUA_ERROR: quest test.start click
Woran könnte das liegen ?

Ich brauche die für eine Quest in der ich sage du sollst x Monster in dein Level bereich killen, aber dort werden nur Wildhunde gezählt...

Wer mir dabei helfen kann das hin zubekommen, bekommt e*gold
Chip' is offline  
Reply


Similar Threads Similar Threads
[HELP]Navicat "Create Table"
05/27/2012 - Metin2 Private Server - 7 Replies
Hey allerseits, wie oben beschrieben kann ich in navicat egal unter welche Rubrik, ob account oder player keine neuen Tabellen erstellen. Ich benutze die Serverfiles von kay. Kann mir da jemand vielleicht helfen? MFG .Stickx
Request sqlcommend to create sql table
09/04/2011 - CO2 Private Server - 3 Replies
i need sqlcommend to create sql table using C# ^_^
Table Frage xD
12/23/2010 - Off Topic - 2 Replies
Guten Abend Elitepvpers, Ich wollte mal das mit der Tabelle hinkriegen nur weis ich nicht wie ich dieses ein l mache Also Welche Taste xD,warte auf Antworten Danke.



All times are GMT +1. The time now is 18:13.


Powered by vBulletin®
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2025 elitepvpers All Rights Reserved.