oguzhankrcby 2 Posted November 30, 2014 Share Posted November 30, 2014 Hello to all! i made a simple quest for client - quest communication i want to check out of my client side with this method. quest adw begin -- QUEST NAME MUST BE communication_test.quest !!! state start begin when login begin cmdchat("quest_name_index "..q.getcurrentquestindex()) adw.wtfbaby() end function wtfbaby() cmdchat("get_input_start") local donen = input(cmdchat("get_input_value")) cmdchat("get_input_end") if donen != "blablalbla" then chat("not match!") command("quit") else chat("Correct!") end end end end But when i use a root which hasn't got a command like "get_input_start , get_input_value, get_input_end" quest is not working, i could login to game correctly there wasn't any message like "blablabla" and game didn't close. What must i do to catch if there isn't any command in root like "get_input_start" ? Link to comment Share on other sites More sharing options...
Denis 1477 Posted November 30, 2014 Share Posted November 30, 2014 You can try this: quest adw begin state start begin function wtfbaby() cmdchat("get_input_start") local donen = input(cmdchat("get_input_value")) cmdchat("get_input_end") if string.len(donen) > 0 then if donen ~= "blablalbla" then chat("not match!") command("quit") else chat("Correct!") end else syschat("error") end end when login begin cmdchat("quest_name_index "..q.getcurrentquestindex()) adw.wtfbaby() end end end Link to comment Share on other sites More sharing options...
oguzhankrcby 2 Posted November 30, 2014 Author Share Posted November 30, 2014 You can try this: quest adw begin state start begin function wtfbaby() cmdchat("get_input_start") local donen = input(cmdchat("get_input_value")) cmdchat("get_input_end") if string.len(donen) > 0 then if donen ~= "blablalbla" then chat("not match!") command("quit") else chat("Correct!") end else syschat("error") end end when login begin cmdchat("quest_name_index "..q.getcurrentquestindex()) adw.wtfbaby() end end end I have used your quest but when i login into game there was one empty inputbox and nothing in syserr.txt. Link to comment Share on other sites More sharing options...
oguzhankrcby 2 Posted December 6, 2014 Author Share Posted December 6, 2014 any help ? Link to comment Share on other sites More sharing options...
Benhero 23 Posted December 16, 2014 Share Posted December 16, 2014 How did u use the quest? Greatz Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now