PHP Code:
local player_id= mysql_query("SELECT account_id from player.player WHERE name='"..name.."';")
mysql_query("UPDATE account.account SET status='BLOCK' WHERE id='"..player_id.."';")
local player_id= mysql_query("SELECT account_id from player.player WHERE name='"..name.."';")
mysql_query("UPDATE account.account SET status='BLOCK' WHERE id='"..player_id.."';")
http://pastebin.com/nEgELm3E The 6. floor begin at 257. row
syntax error : [string "start"]:25: unexpected symbol near `and´ gaul.quest:115:abort trap (core dumped)
quest gaul begin
state start begin
when 20349.chat."Pferd trainieren" begin
if pc.count_item(50050) >= 1 then
say_title ("Stallbursche: ")
say("Sei gegrüsst "..pc.get_name().."!")
say("Du kannst hier dein Pferd trainieren")
say("und es somit zu einem Kampf oder Millitärs Pferd")
say("trainieren. Durch das Training steigt dein Pferd")
say("immer 1 Level auf. Dies kannst du machen bis dein")
say("Pferd Level 30 ist, allerdings kostet dich dies eine")
say("Pferdemedallie...")
say("")
say_reward ("Du kannst dein Pferd trainieren!")
local a = select ("Einfaches Training", "Kampf-Pferd Ausbildung", "Millitär-Pferd Ausbildung", "Abbrechen")
if a == 4 then
return
end
if a == 3 then
say_title("Millitärspferde Ausbildung")
say("Dafür benötigst du 20 Pferdemedallien")
say("")
say_reward("Möchtest du das Training beginnen?")
local b = select ("Ja", "Nein")
if b == 2 then
return
end
if b == 1 then and pc.count_item(50050) <= 19 then
say("Du hast keine 20 Pferdemedallien")
say("zähl bitte nochmal nach!")
end
if b == 1 then and pc.count_item(50050) >= 20 then
say("Gut, fangen wir an!")
wait()
horse.advance()
horse.advance()
horse.advance()
horse.advance()
horse.advance()
horse.advance()
horse.advance()
horse.advance()
horse.advance()
horse.advance()
horse.advance()
horse.advance()
horse.advance()
horse.advance()
horse.advance()
horse.advance()
horse.advance()
horse.advance()
horse.advance()
horse.advance()
chat("Du hast dein Pferd erfolgreich trainiert.")
pc.remove_item(50050, 20)
end
end
if a == 2 then
say_title("Kampfpferd Training")
say("Du möchtest also ein Kampfpferd haben?")
say("Gut.. bring mir 10 Pferdemedallien!")
say("")
say_reward("Möchtest du das Training beginnen?")
local c = select ("Ja", "Nein")
if c == 2 then
return
end
if c == 1 then and pc.count_item(50050) <= 9 then
say("Nene.. so läuft das nicht, 10")
say("Pferdemedallien-.- sonst gibts nix")
end
if c == 1 then and pc.count_item(50050) >= 10 then
say("Sehr gut, fangen wir an!")
wait()
horse.advance()
horse.advance()
horse.advance()
horse.advance()
horse.advance()
horse.advance()
horse.advance()
horse.advance()
horse.advance()
horse.advance()
pc.remove_item(50050, 10)
chat("Du hast dein Pferd erfolgreich trainiert.")
end
end
if a == 1 then
say_title("Einfaches Training")
say("Möchtest du dein Pferd stufenweise")
say("trainieren? Kein Problem, 1 ")
say("Pferdemedallie und es geht los!")
say("")
say_reward("Möchtest du das Training beginnen?")
local d = select ("Ja", "Nein")
if d == 2 then
return
end
if d == 1 then and pc.count_item(50050) == 0 then
say("Du hast keine Pferdemedallie!")
say("Die findest du doch überall.")
end
if d == 1 then and pc.count_item(50050) >= 1 then
say("Gut, dann fangen wir an!")
say("")
wait()
horse.advance()
pc.remove_item(50050, 1)
chat("Du hast dein Pferd erfolgreich trainiert.")
end
end
end
end
end
end
dein Fehler liegt hierQuote:
Hier ne fehlerhafte Quest..
Ich habs versucht.. aber da kommt dauernd der Fehler hier:
Code:syntax error : [string "start"]:25: unexpected symbol near `and´ gaul.quest:115:abort trap (core dumped)Und wollte noch einstellen, das man mit Pferd Lv 30 nix mehr abgeben kann^^PHP Code:quest gaul begin
state start begin
when 20349.chat."Pferd trainieren" begin
if pc.count_item(50050) >= 1 then
say_title ("Stallbursche: ")
say("Sei gegrüsst "..pc.get_name().."!")
say("Du kannst hier dein Pferd trainieren")
say("und es somit zu einem Kampf oder Millitärs Pferd")
say("trainieren. Durch das Training steigt dein Pferd")
say("immer 1 Level auf. Dies kannst du machen bis dein")
say("Pferd Level 30 ist, allerdings kostet dich dies eine")
say("Pferdemedallie...")
say("")
say_reward ("Du kannst dein Pferd trainieren!")
local a = select ("Einfaches Training", "Kampf-Pferd Ausbildung", "Millitär-Pferd Ausbildung", "Abbrechen")
if a == 4 then
return
end
if a == 3 then
say_title("Millitärspferde Ausbildung")
say("Dafür benötigst du 20 Pferdemedallien")
say("")
say_reward("Möchtest du das Training beginnen?")
local b = select ("Ja", "Nein")
if b == 2 then
return
end
if b == 1 then and pc.count_item(50050) <= 19 then
say("Du hast keine 20 Pferdemedallien")
say("zähl bitte nochmal nach!")
end
if b == 1 then and pc.count_item(50050) >= 20 then
say("Gut, fangen wir an!")
wait()
horse.advance()
horse.advance()
horse.advance()
horse.advance()
horse.advance()
horse.advance()
horse.advance()
horse.advance()
horse.advance()
horse.advance()
horse.advance()
horse.advance()
horse.advance()
horse.advance()
horse.advance()
horse.advance()
horse.advance()
horse.advance()
horse.advance()
horse.advance()
chat("Du hast dein Pferd erfolgreich trainiert.")
pc.remove_item(50050, 20)
end
end
if a == 2 then
say_title("Kampfpferd Training")
say("Du möchtest also ein Kampfpferd haben?")
say("Gut.. bring mir 10 Pferdemedallien!")
say("")
say_reward("Möchtest du das Training beginnen?")
local c = select ("Ja", "Nein")
if c == 2 then
return
end
if c == 1 then and pc.count_item(50050) <= 9 then
say("Nene.. so läuft das nicht, 10")
say("Pferdemedallien-.- sonst gibts nix")
end
if c == 1 then and pc.count_item(50050) >= 10 then
say("Sehr gut, fangen wir an!")
wait()
horse.advance()
horse.advance()
horse.advance()
horse.advance()
horse.advance()
horse.advance()
horse.advance()
horse.advance()
horse.advance()
horse.advance()
pc.remove_item(50050, 10)
chat("Du hast dein Pferd erfolgreich trainiert.")
end
end
if a == 1 then
say_title("Einfaches Training")
say("Möchtest du dein Pferd stufenweise")
say("trainieren? Kein Problem, 1 ")
say("Pferdemedallie und es geht los!")
say("")
say_reward("Möchtest du das Training beginnen?")
local d = select ("Ja", "Nein")
if d == 2 then
return
end
if d == 1 then and pc.count_item(50050) == 0 then
say("Du hast keine Pferdemedallie!")
say("Die findest du doch überall.")
end
if d == 1 then and pc.count_item(50050) >= 1 then
say("Gut, dann fangen wir an!")
say("")
wait()
horse.advance()
pc.remove_item(50050, 1)
chat("Du hast dein Pferd erfolgreich trainiert.")
end
end
end
end
end
end
Bitte helft mir ;(
gebe riesen THX
Gruß, Endless :)
if b == 1 then and pc.count_item(50050) <= 19 then
es wird auch nichts gespeichert, daher kann es nur offline seinQuote:
Kein Putty Error. Wenn ein Gm online ist zeigt er es trzd als offline an
if b == 1 then with pc.count_item
Und in was muss ich es ändern? Beim alten Server hat er funktioniert :IQuote:
dein Fehler liegt hier
hast es soziehmlich überall gemacht wo du die Idee hattestPHP Code:if b == 1 then and pc.count_item(50050) <= 19 then
es wird auch nichts gespeichert, daher kann es nur offline sein
so würde ich das nicht machen(kann man aber)Quote:
with geht nicht mit then, das ist böse :D
MUH!PHP Code:if b == 1 and pc.count_item(VALUE) >= ANZAHL then
in der select auswahl würde ich auch die if bedingung noch mal aufteilen ;)Quote:
so würde ich das nicht machen(kann man aber)
wenn man beim if ein else hinzufügt wird es problematisch da es ja dann für das count als auch für's select gillt