Cube nem nyílik meg

Indította FloodX, 2017-08-04, 15:59:06

Van egy "kraft rendszerem" de nekem megjelenik az npc-nél a Kosztüm kraftolása menü, de másnak nem jelenik meg (?). Ez miért lehet? (A szint megvan minden, ami a követelésekhez tartozik.

Questem:

quest cube begin
state start begin
function cube_open(vnum)
local cube_results = {
[20018] = "50801,1/50802,1/50803,100/50804,100",
[20017] = "50801,1/50802,1/50803,100/50804,100/50813,1/50814,1/50815,100/50816,100",
[20022] = "50801,1/50802,1/50803,100/50804,100/50813,1/50814,1/50815,100/50816,100/50817,1/50818,1/50819,1/50820,1/50821,10/50822,10/50823,10/50824,10/50825,10/50826,10",
[20383] = "17500,1/16500,1/14500,1/17520,1/16520,1/14520,1/17540,1/16540,1/14540,1/17560,1/16560,1/14560,1",
[203832] = "460,1/470,1/1340,1/2370,1/3190,1/7370,1/5340,1/20000,1/20250,1/20500,1/20750,1",
[200384] = "7600,1/7601,1/7602,1/7615,1/7616,1"
}
local cube_needs = {
[20018] = "50721,1@50722,1@50723,1@50724,1",
[20017] = "50721,1@50722,1@50723,1@50724,1@50801,1&50725,1@50802,1&50725,1@50803,100&50726,1@50804,100&50726,1",
[20022] = "50721,1@50722,1@50723,1@50724,1@50801,1&50725,1@50802,1&50725,1@50803,100&50726,1@50804,100&50726,1@50813,1&50727,1@50814,1&50727,1@50815,100&50728,1@50816,100&50728,1@50901,10&50814,20@50901,10&50813,20@50901,10&50820,20@50901,10&50819,20@50901,10&50817,20@50901,10&50818,20",
[20383] = "50635,1&30501,10&30521,10@50635,1&30501,10&30519,10@50635,1&30518,10&30523,10@50636,1&30501,10&30523,10@50636,1&30519,10&30521,10@50636,1&30518,10&30522,10@50637,1&30518,10&30520,10@50637,1&30519,10&30522,10@50637,1&30518,10&30519,10@50638,1&30520,10&30522,10@50638,1&30519,10&30521,10@50638,1&30518,10&30521,10",
[203832] = "149,1&30505,10&30500,10@159,1&30503,10&30502,10@1109,1&30507,10&30506,10@2149,1&30520,10&30506,10@3149,1&30504,10&30508,10@7149,1&30504,10&30508,10@5109,1&30507,10&30503,10@11299,1&30509,10&30514,10@11499,1&30512,10&30517,10@11699,1&30515,10&30511,10@11899,1&30509,10&30517,10",
[200384] = "82000,500&82001,400&82002,400&80014,10&50042,50@82000,400&82001,500&82002,400&80014,10&50042,50@82000,400&82001,400&82002,500&80014,10&50042,50@82000,450&82001,400&82002,400&80014,10&50042,50@82000,400&82001,450&82002,400&80014,10&50042,50"

}
cmdchat("cube_npc_id "..vnum)
cmdchat("cs_result "..cube_results[vnum])
cmdchat("cs_need "..cube_needs[vnum])
command("cube open")
end

when login with pc.is_gm() begin
command("r")
end

when 20383.chat."Kosztüm kraftolása" with pc.level >= 90 and game.get_event_flag("cubelezaras") == 0 begin
say(" ")
say_title(mob_name(20383)..":")
say("Szeretnél egy bónuszokkal ellátott kosztümöt?")
say("Én elkészítem neked!")
say("")
say_reward("Csakis én készíthetem el neked!")
say_reward("Nem mondom, hogy olcsó lesz, de megéri!")
say_reward("Ki akarod próbálni?")
say(" ")
wait()
setskin(NOWINDOW)
cube.cube_open(200384)
end

when 20018.chat."Gyógynövény tan" with pc.level >= 15 begin
say_title(mob_name(20018)..":")
say(" ")
say("Hello, hogy vagy?")
say("Érdekel talán a különböző italok előállítása,")
say("amik megerősíteni, vagy gyógyítani tudnak téged?")
say("Én orvosként az italkeveréssel foglalkozok.")
say("Kitaláltam néhány receptet. Ki akarod őket")
say("próbálni?")
say(" ")
wait()
setskin(NOWINDOW)
cube.cube_open(npc.get_race())
end

when 20017.chat."Gyógynövény tan" with pc.level >= 30 begin
say_title(mob_name(20017)..":")
say(" ")
say("Mostanában eléggé híres lett a gyógynövény tan.")
say("Érdekel? Megmutatom néhány receptem, nagyon")
say("hasznosak a különböző jól ismert erősebb")
say("bájitalok előállításánál.")
say(" ")
wait()
setskin(NOWINDOW)
cube.cube_open(npc.get_race())
end

when 20022.chat."Titkos recept" with pc.level >=45 begin
say(" ")
say_title(mob_name(20022)..":")
say("Találtam egy titkos családi receptet.")
say("Ezzel szinte sebezhetetlen vagy!")
say("Hahaha!")
say("Állítólag én vagyok az egyetlen, aki ezt ismeri.")
say("Ezekkel az italokkal szinte semmi rossz nem")
say("történhet veled.")
say("Ki akarod próbálni?")
say(" ")
wait()
setskin(NOWINDOW)
cube.cube_open(npc.get_race())
end
end
end

Cube.txt:

#şąĽţľĆ˛ÉÁřľ×
section
npc 20017
item 50721 1
reward 50801 1
percent 100
end

#µµ¶óÁöÁřľ×
section
npc 20017
item 50722 1
reward 50802 1
percent 100
end

#°¨˛ÉÁřľ×
section
npc 20017
item 50723 1
reward 50803 100
percent 100
end

#°ˇ˝ĂżŔ°ˇÇÇÁřľ×
section
npc 20017
item 50724 1
reward 50804 100
percent 100
end

#Č°˝Éľ×Ářľ×
section
npc 20017
item 50801 1
item 50725 1
reward 50813 1
percent 100
end

#Çǵ¶Ľö
section
npc 20017
item 50802 1
item 50725 1
reward 50814 1
percent 100
end

#ş¸ČŻĽö
section
npc 20017
item 50803 100
item 50726 1
reward 50815 100
percent 100
end

#żµş¸Ľö
section
npc 20017
item 50804 100
item 50726 1
reward 50816 100
percent 100
end

#şąĽţľĆ˛ÉÁřľ×
section
npc 20018
item 50721 1
reward 50801 1
percent 100
end

#µµ¶óÁöÁřľ×
section
npc 20018
item 50722 1
reward 50802 1
percent 100
end

#°¨˛ÉÁřľ×
section
npc 20018
item 50723 1
reward 50803 100
percent 100
end

#°ˇ˝ĂżŔ°ˇÇÇÁřľ×
section
npc 20018
item 50724 1
reward 50804 100
percent 100
end

#şąĽţľĆ˛ÉÁřľ×
section
npc 20022
item 50721 1
reward 50801 1
percent 100
end

#µµ¶óÁöÁřľ×
section
npc 20022
item 50722 1
reward 50802 1
percent 100
end

#°¨˛ÉÁřľ×
section
npc 20022
item 50723 1
reward 50803 100
percent 100
end

#°ˇ˝ĂżŔ°ˇÇÇÁřľ×
section
npc 20022
item 50724 1
reward 50804 100
percent 100
end

#Č°˝Éľ×Ářľ×
section
npc 20022
item 50801 1
item 50725 1
reward 50813 1
percent 100
end

#Çǵ¶Ľö
section
npc 20022
item 50802 1
item 50725 1
reward 50814 1
percent 100
end

#ş¸ČŻĽö
section
npc 20022
item 50803 100
item 50726 1
reward 50815 100
percent 100
end

#żµş¸Ľö
section
npc 20022
item 50804 100
item 50726 1
reward 50816 100
percent 100
end

#ÁřČ°˝Éľ×Ářľ×
section
npc 20022
item 50813 1
item 50727 1
reward 50817 1
percent 100
end

#ÁřÇǵ¶Ľö
section
npc 20022
item 50814 1
item 50727 1
reward 50818 1
percent 100
end

#Ářş¸ČŻĽö
section
npc 20022
item 50815 100
item 50728 1
reward 50819 1
percent 100
end

#Ářżµş¸Ľö
section
npc 20022
item 50816 100
item 50728 1
reward 50820 1
percent 100
end

#Ŕű»óľ×
section
npc 20022
item 50901 10
item 50814 20
reward 50821 10
percent 100
end

#Č«»óľ×
section
npc 20022
item 50901 10
item 50813 20
reward 50822 10
percent 100
end

#Ȳ»óľ×
section
npc 20022
item 50901 10
item 50820 20
reward 50823 10
percent 100
end

#łě»óľ×
section
npc 20022
item 50901 10
item 50819 20
reward 50824 10
percent 100
end

#Ă»»óľ×
section
npc 20022
item 50901 10
item 50817 20
reward 50825 10
percent 100
end

#ąé»óľ×
section
npc 20022
item 50901 10
item 50818 20
reward 50826 10
percent 100
end

#°ćÇčŔÇą°ľŕĹ×˝şĆ®
#section
#npc 20018
#item 51001 100
#reward 71157 1
#gold 100000
#percent 10
#end

section
npc 20383
item 149 1
item 30500 10
item 30505 10
reward 460 1
gold 1000000
percent 100
end

section
npc 20383
item 159 1
item 30502 10
item 30503 10
reward 470 1
gold 1000000
percent 100
end

section
npc 20383
item 1109 1
item 30506 10
item 30507 10
reward 1340 1
gold 1000000
percent 100
end

section
npc 20383
item 2149 1
item 30501 10
item 30506 10
reward 2370 1
gold 1000000
percent 100
end

section
npc 20383
item 3149 1
item 30504 10
item 30508 10
reward 3190 1
gold 1000000
percent 100
end

section
npc 20383
item 5109 1
item 30503 10
item 30507 10
reward 5340 1
gold 1000000
percent 100
end

section
npc 20383
item 7149 1
item 30504 10
item 30508 10
reward 7370 1
gold 1000000
percent 100
end

section
npc 20383
item 11299 1
item 30509 10
item 30514 10
item 30516 10
reward 20000 1
gold 1000000
percent 100
end

section
npc 20383
item 11499 1
item 30512 10
item 30513 10
item 30517 10
reward 20250 1
gold 1000000
percent 100
end

section
npc 20383
item 11699 1
item 30510 10
item 30511 10
item 30515 10
reward 20500 1
gold 1000000
percent 100
end

section
npc 20383
item 11899 1
item 30509 10
item 30510 10
item 30517 10
reward 20750 1
gold 1000000
percent 100
end

section
npc 20383
item 50635 3
item 30518 10
item 30523 10
reward 14500 1
gold 1000000
percent 100
end

section
npc 20383
item 50635 3
item 30519 10
item 30520 10
reward 16500 1
gold 1000000
percent 100
end

section
npc 20383
item 50635 3
item 30520 10
item 30521 10
reward 17500 1
gold 1000000
percent 100
end

section
npc 20383
item 50636 3
item 30518 10
item 30522 10
reward 14520 1
gold 1000000
percent 100
end

section
npc 20383
item 50636 3
item 30519 10
item 30521 10
reward 16520 1
gold 1000000
percent 100
end

section
npc 20383
item 50636 3
item 30520 10
item 30523 10
reward 17520 1
gold 1000000
percent 100
end

section
npc 20383
item 50637 3
item 30518 10
item 30521 10
reward 14540 1
gold 1000000
percent 100
end

section
npc 20383
item 50637 3
item 30519 10
item 30523 10
reward 16540 1
gold 1000000
percent 100
end

section
npc 20383
item 50637 3
item 30520 10
item 30522 10
reward 17540 1
gold 1000000
percent 100
end

section
npc 20383
item 50638 3
item 30518 10
item 30519 10
reward 14560 1
gold 1000000
percent 100
end

section
npc 20383
item 50638 3
item 30519 10
item 30522 10
reward 16560 1
gold 1000000
percent 100
end

section
npc 20383
item 50638 3
item 30520 10
item 30518 10
reward 17560 1
gold 1000000
percent 100
end

section
npc 20017
item 50624 10
item 27992 2
item 51001 30
reward 18000 1
gold 10000
percent 50
end

section
npc 20017
item 50625 10
item 27992 2
item 51001 50
reward 18010 1
gold 10000
percent 50
end

section
npc 20017
item 50626 10
item 27993 2
item 51001 70
reward 18020 1
gold 30000
percent 50
end

section
npc 20017
item 50630 10
item 27993 2
item 51001 100
reward 18030 1
gold 30000
percent 50
end

section
npc 20383
item 50636 10
item 27994 2
item 30518 5
item 30524 10
reward 18040 1
gold 500000
percent 100
end

section
npc 20383
item 50635 10
item 27994 2
item 30519 5
item 30525 10
reward 18050 1
gold 500000
percent 100
end

section
npc 20383
item 50637 10
item 27994 2
item 30522 5
item 30524 10
reward 18060 1
gold 500000
percent 100
end

section
npc 20383
item 50638 10
item 27994 2
item 30523 5
item 30525 10
reward 18070 1
gold 500000
percent 100
end

section
npc 20383
item 50634 10
item 27994 2
item 30550 20
item 51001 100
reward 18080 1
gold 500000
percent 100
end

section
npc 20383
item 51001 50
item 27992 1
item 27993 1
item 27994 1
reward 18900 1
gold 50000
percent 100
end

section
npc 20383
item 85000 10
reward 85001 1
gold 1000000
percent 100
end

section
npc 20383
item 85000 10
item 30517 1
reward 85005 1
gold 1000000
percent 100
end

#żë˝ĹÁö°Ë
section
npc 60003
item 85000 10
reward 85001 1
gold 1000000
percent 100
end

section
npc 60003
item 85000 10
item 30517 1
reward 85005 1
gold 1000000
percent 100
end

#Ashgan
section
npc 20383
item 82000 500
item 82001 400
item 82002 400
item 80014 10
item 50042 50
reward 7600 1
gold 10
percent 100
end

#Ashgan
section
npc 20383
item 82000 400
item 82001 500
item 82002 400
item 80014 10
item 50042 50
reward 7601 1
gold 10
percent 100
end

#Ashgan
section
npc 20383
item 82000 400
item 82001 400
item 82002 500
item 80014 10
item 50042 50
reward 7602 1
gold 10
percent 100
end

#Ashgan
section
npc 20383
item 82000 450
item 82001 400
item 82002 400
item 80014 10
item 50042 50
reward 7615 1
gold 10
percent 100
end

#Ashgan
section
npc 20383
item 82000 400
item 82001 450
item 82002 400
item 80014 10
item 50042 50
reward 7616 1
gold 10
percent 100
end

CH1 Sysser:

SYSERR: Aug  4 14:38:34.994642 :: hupsig: SIGHUP, SIGINT, SIGTERM signal has been received. shutting down.
SYSERR: Aug  4 14:39:00.787284 :: pid_deinit:
End of pid

SYSERR: Aug  4 14:39:23.891459 :: pid_init:
Start of pid: 31170

SYSERR: Aug  4 14:39:24.305534 :: LoadPackageCryptInfo: [PackageCryptInfo] Failed to load package/cshybridcrypt_metin2_patch_sg1.dat
SYSERR: Aug  4 14:47:48.994726 :: hupsig: SIGHUP, SIGINT, SIGTERM signal has been received. shutting down.
SYSERR: Aug  4 14:48:16.884542 :: pid_deinit:
End of pid

SYSERR: Aug  4 14:49:05.223052 :: pid_init:
Start of pid: 31210

SYSERR: Aug  4 14:49:05.879546 :: LoadPackageCryptInfo: [PackageCryptInfo] Failed to load package/cshybridcrypt_metin2_patch_sg1.dat
SYSERR: Aug  4 14:50:37.689399 :: ItemLoad: cannot create item by vnum 961 (name [SA]Admin id 10000112)
SYSERR: Aug  4 14:53:52.866998 :: Process: SEQUENCE 541b1200 mismatch 0xaf != 0x64 header 254
SYSERR: Aug  4 14:53:52.867036 :: Process: SEQUENCE_LOG [UNKNOWN]-------------
[254 : 0xaf]



Kliens sysser:

0804 15:50:16221 :: Unknown Server Command cube_npc_id 200384 | cube_npc_id
0804 15:50:16221 :: Unknown Server Command cs_result 7600,1/7601,1/7602,1/7615,1/7616,1 | cs_result
0804 15:50:16221 :: Unknown Server Command cs_need 82000,500&82001,400&82002,400&80014,10&50042,50@82000,400&82001,500&82002,400&80014,10&50042,50@82000,400&82001,400&82002,500&80014,10&50042,50@82000,450&82001,400&82002,400&80014,10&50042,50@82000,400&82001,450&82002,400&80014,10&50042,50 | cs_need

40k-hoz más quest parancs van a megnyitásra.

command("cube open")


34k-val nem éri meg szórakozni.