Ayyıldız2 | 2008 TR Yapısı • 1-99 Orta Emek Destan • Oto Avsız • 10 Temmuz 21:00 HEMEN TIKLA!
Okay, well listen, this is how you feel about programming. Also, I tried for the quest but it does not translate
my quest test
i think no error, default language is FR = 0
and english language is EN = 1 in my source but with this quest i have only one language english, dont have other language, not translate
my quest test
Kod:
quest map_commerce begin
state start begin
when login or levelup with pc.level >= 30 begin
if get_lang == 0 then
set_state(information_fr)
else
set_state(information_en)
end
end
end
state information_fr begin
when letter begin
send_letter("La cité du commerce.")
end
when button or info begin
--- l
say("Afin de faciliter le commerce entre les royaumes,")
say("une cité de commerce a été créée pour cet usage.")
say("Tous les joueurs de chaque empire auront donc")
say("juste à se téléporter là-bas pour créer leur")
say("magasin ou bien faire leurs achats.")
say("Voulez-vous y aller ?")
local s=select("Oui", "Non")
if 2==s then
return
elseif 1==s then
--- l
say("D'accord, je vous y envoie.")
wait()
pc.warp(610800,778000)
end
end
end
state information_en begin
when letter begin
send_letter("The city of commerce.")
end
when button or info begin
--- l
say("Afin de faciliter le commerce entre les royaumes,")
say("une cité de commerce a été créée pour cet usage.")
say("Tous les joueurs de chaque empire auront donc")
say("juste à se téléporter là-bas pour créer leur")
say("magasin ou bien faire leurs achats.")
say("Voulez-vous y aller ?")
local s=select("Oui", "Non")
if 2==s then
return
elseif 1==s then
--- l
say("D'accord, je vous y envoie.")
wait()
pc.warp(610800,778000)
end
end
end
end
and english language is EN = 1 in my source but with this quest i have only one language english, dont have other language, not translate
Okay, well listen, this is how you feel about programming. Also, I tried for the quest but it does not translate
my quest test
i think no error, default language is FR = 0Kod:quest map_commerce begin state start begin when login or levelup with pc.level >= 30 begin if get_lang == 0 then set_state(information_fr) else set_state(information_en) end end end state information_fr begin when letter begin send_letter("La cité du commerce.") end when button or info begin --- l say("Afin de faciliter le commerce entre les royaumes,") say("une cité de commerce a été créée pour cet usage.") say("Tous les joueurs de chaque empire auront donc") say("juste à se téléporter là-bas pour créer leur") say("magasin ou bien faire leurs achats.") say("Voulez-vous y aller ?") local s=select("Oui", "Non") if 2==s then return elseif 1==s then --- l say("D'accord, je vous y envoie.") wait() pc.warp(610800,778000) end end end state information_en begin when letter begin send_letter("The city of commerce.") end when button or info begin --- l say("Afin de faciliter le commerce entre les royaumes,") say("une cité de commerce a été créée pour cet usage.") say("Tous les joueurs de chaque empire auront donc") say("juste à se téléporter là-bas pour créer leur") say("magasin ou bien faire leurs achats.") say("Voulez-vous y aller ?") local s=select("Oui", "Non") if 2==s then return elseif 1==s then --- l say("D'accord, je vous y envoie.") wait() pc.warp(610800,778000) end end end end
and english language is EN = 1 in my source but with this quest i have only one language english, dont have other language, not translate
First:
Search in questlua_global.cpp
int get_lang(lua_State* L)
and change lua_tonumber for lua_pushnumber
Second:
You need () in all function get_lang, for example this is a quest for test your lang:
Kod:
quest test_lang begin
state start begin
when login or levelup with pc.level >= 1 begin
if get_lang() == 0 then
chat("Your Lang is 0")
elseif get_lang() == 1 then
chat("Your Lang is 1")
elseif get_lang() == 2 then
chat("Your Lang is 2")
elseif get_lang() == 3 then
chat("Your Lang is 3")
elseif get_lang() == 4 then
chat("Your Lang is 4")
elseif get_lang() == 5 then
chat("Your Lang is 5")
elseif get_lang() == 6 then
chat("Your Lang is 6")
else
chat("lang: "..get_lang().." not found")
end
end
end
end
oh ok is good with your fonction get_langFirst:
Search in questlua_global.cpp
int get_lang(lua_State* L)
and change lua_tonumber for lua_pushnumber
Second:
You need () in all function get_lang, for example this is a quest for test your lang:
Kod:quest test_lang begin state start begin when login or levelup with pc.level >= 1 begin if get_lang() == 0 then chat("Your Lang is 0") elseif get_lang() == 1 then chat("Your Lang is 1") elseif get_lang() == 2 then chat("Your Lang is 2") elseif get_lang() == 3 then chat("Your Lang is 3") elseif get_lang() == 4 then chat("Your Lang is 4") elseif get_lang() == 5 then chat("Your Lang is 5") elseif get_lang() == 6 then chat("Your Lang is 6") else chat("lang: "..get_lang().." not found") end end end end
Look your packet.h client/serveur typedef struct packet_char_additional_info and typedef struct packet_update_char
Son düzenleme:
I checked, they are the same. Other ideas?oh ok is good with your fonction get_lang
Look your packet.h client/serveur typedef struct packet_char_additional_info and typedef struct packet_update_char
Will you see in my src where I made a mistake? Because I am checking this code already 100x and I see nothing.
@Loki70
Son düzenleme:
Şu an konuyu görüntüleyenler (Toplam : 0, Üye: 0, Misafir: 0)
Benzer konular
- Cevaplar
- 4
- Görüntüleme
- 104
- Cevaplar
- 9
- Görüntüleme
- 616
- Cevaplar
- 1
- Görüntüleme
- 267