-
Posts
36 -
Joined
-
Last visited
-
Feedback
0%
Content Type
Forums
Store
Third Party - Providers Directory
Feature Plan
Release Notes
Docs
Events
Everything posted by DaCookie -Raven
-
Well I used my IDEs option to convert all server source files to UTF-8. That's why I ran into problems with locale_string.txt Because I`m lazy and don't want to copy the korean strings one by one I wrote this tool. Also it is a nice thing to work with a standard encoding
-
Thanks for the tool. I ran into some errors using the locale_string.txt, because mine can not properly be converted into UTF-8. This is because the korean texts are encoded in cp949 and my local translation has some special characters in ISO-8859-1. Therefore I wrote a small tool converting the korean texts encoded as CP949 into UTF-8 and some european character set ISO-8859-1 into UTF-8. Maybe it is useful for you and you can adjust the character sets for your needs. NOTE: You need iconv by GNU to link this application iconvpp.h main.cpp
- 4 replies
-
- 25
-
After successfully compiling the source I experienced some bugs... Here is what I changed, may it is useful for you too: db: ClientManagerBoot.cpp:747 "sqlMsg" was not directly allocated -> undefined behaviour game: config.cpp:675 "g_stAdminPageNoLChost" is always false config.cpp:676 also "strtok_r()" in "FN_add_adminpageIP()" can't handle this, probably because it is trying to modify the "127.0.0.1" string ani.cpp:138 comma missing
-
? sorry please write in english i dont want to use always google translator to translate everytime and google translator shows always only crap xD
-
- invisible bugfix in source is public here - stunbug is also fixxed here - editing the exp table is not that difficult to add some new lines or just modify them^^ - kickhack is fixxed in 40k i think because i saw some funtion called sync pos hack - /level command: doing strg + f "do_level" have fun^^
-
[ Dead Download Link ] [C++]No txt on 40k [ We Need You ]
DaCookie -Raven replied to Timasu's topic in Temporary
I made a short tut^^: At first i want to say: this is not compatible with a table_postfix or item_vnum ranges. [1] open "ClientManagerBoot.cpp" and make these both if-terms to comments or delete them (in my tree at line 22 - 26 and 34 - 38) [2] edit the function "CClientManager::InitializeMobTable()" like this: [3] edit the function "CClientManager::InitializeItemTable()" like this: [4] make both functions "bool CClientManager::MirrorMobTableIntoDB()" and "bool CClientManager::MirrorItemTableIntoDB()" to comments or delete them [5] open "ClientManager.h" and delete or make these functions to comments: Thanks to iMer because i use some lines of his code and he had to stand over my skype spam^^ NOTE: If you have different table structures or more columns you want to use, you have to change the functions -
64bit VirtualBox FreeBSD Updaten ?
DaCookie -Raven replied to .Invincible's topic in Community Support - Questions & Answers
Die SuFu hat was ausgespuckt^^ schau mal hier: [Hidden Content] //ENG found sth watch this: [Hidden Content] -
[ Dead Download Link ] [C++]No txt on 40k [ We Need You ]
DaCookie -Raven replied to Timasu's topic in Temporary
I made a function for mob_proto and i cant find a bug: The same i tried with the item_proto but 3 columns are always 0 .... take a look if you find an error please tell me^^ -
oh sorry... thanks i dont know how i have come to "**"... i meaned "^" i edited my post^^
-
Nice idea But your function: function math_sqrt_distance(x, y) if math.sqrt(math_sqr(pc.get_local_x() - x + math_sqr(pc.get_local_y() - y))) < 40 then return true end return false end I would write like this: function math_sqrt_distance(x, y) if math.sqrt((pc.get_local_x() - x)^2 + (pc.get_local_y() - y)^2) < 40 then return true end return false end Because this is the general way of getting a distance between two points and you need the "**2" because without it can come to a negative squirt and this wont work
-
[SYSLOG] 40k problem
DaCookie -Raven replied to F'Corono''s topic in Community Support - Questions & Answers
Do you have the right db core? i mean is this db core also for the new table structures in 40k? please post the syserr of your db_cache -
I really want the source doe for the patcher xD im interested in the offset the patcher uses for the sequence table^^
-
what is this and how to resolve
DaCookie -Raven replied to UNK3N0W7's topic in Community Support - Questions & Answers
just change your network adpater in the options... but if you want to use the loopback adapter, you have to install it.. -
[Quest] Cant find the error :(
DaCookie -Raven replied to DaCookie -Raven's topic in Community Support - Questions & Answers
Wow really i lost the overwiev... Thanks to all who helped me^^ -
[Quest] Cant find the error :(
DaCookie -Raven replied to DaCookie -Raven's topic in Community Support - Questions & Answers
Thank you that solved this error Bad news: i got another one... ostern.quest:640:syntax error : [string "startpc . count_item ( 50160 ) >= 1"]:510: <eof> expected near `else' Error occured on compile ostern.quest I cant understand the compiler errors... Why does the compiler expects "end of file"? I updated the quest in the first post -
[Quest] Cant find the error :(
DaCookie -Raven replied to DaCookie -Raven's topic in Community Support - Questions & Answers
Thanks but this didnt solved the error: ostern.quest:640:syntax error : [string "startpc . count_item ( 50160 ) >= 1"]:399: `then' expected near `local' Error occured on compile ostern.quest this is the new error... i deleted the new end on line 400 because it raises nearly the same error.. -
Hey i tried to compile this quest but i got some erros... The error i get is: quest ostern begin state start begin when 30129.chat."Die Ostereiersuche" begin ----"0123456789012345678901234567890123456789012345678901234567890" say_title("Die Ostereiersuche") say("") say("Einem mysteriösen Umstand zufolge bin ich hier aufgetaucht.") say("Als ich hier wieder zu mir kam, waren meine ganzen Eier") say("verschwunden. Aber ich habe dafür ganz große Eier gesehen,") say("aus denen Monster raus kommen. Außerdem kommen, wenn man die") say("großen Ostereier besiegt, Körbchen raus. Dort sind meine") say("Ostereier drinne.") wait() say_title("Die Ostereiersuche") say("Ich habe nur nicht die Zeit alle meine Ostereier zurück") say("zu holen. Du siehst aber dafür sehr stark aus und könntest") say("für mich doch bestimmt ein paar Ostereier sammeln.") say("Ich werde mir dann ein paar nette Belohnungen") say("einfallen lassen.") say_reward("Viel Glück beim Ostermetin suchen :)") end when 30129.chat."Ich habe Ostereier gefunden" with pc.count_item(50160) >=1 begin belohnungen = { -- Osterier Anzahl , Item_vnum , Anzahl, Item Name {20,80008,5,"Goldklumpen"}, {20,30219,5,"Schrumpfkopf"}, {20,27987,5,"Muschel"}, {40,27992,25,"Weiße Perle"}, {40,27993,25,"Blaue Perle"}, {40,27994,25,"Rote Perle"}, {40,12121,25,"Marlboro"}, {40,12122,25,"LM"}, {40,12123,25,"Phllip Morris"}, {40,12124,25,"Black Devil"}, {40,12125,25,"Marylong"}, {40,12126,25,"Camel Blue"}, {80,30182,20,"Legendäres Tagebuch"}, {150,52006,1,"Wilder Löwe"}, {150,50021,1,"Wilder Wolf"}, {150,52051,1,"Wilder Tiger"}, {300,53015,1,"Oster Pet"}, } eier = pc.count_item(50160) anz_name = "" vnum = 0 count = 0 full_menu = {} for i = 1, table.getn(belohnungen), 1 do if belohnungen[i][1] <= eier then anz_name = belohnungen[i][1].." "..belohnungen[i][4] -- z.b 2 Schwert+0 (wobei 2 die Anzahl der Ostereier sind) table.insert(full_menu, anz_name) if mod(table.getn(full_menu),5) == 0 then table.insert(full_menu, "Weiter") table.insert(full_menu, "Abbrechen") end end end if mod(table.getn(full_menu),7) == 0 then table.remove(full_menu,(table.getn(full_menu)-1)) else table.insert(full_menu, "Abbrechen") end teil_menu = {} if eier == 1 then s_word = "schon ein Ei gefunden." else s_word = "schon ein paar Eier gefunden." end say_title("Die Ostereier") say("") say("Oh... ich sehe du hast "..s_word) say("Mir ist auch schon eine angemessene Belohnung eingefallen.") say("") say("Du hast "..say_reward(eier.." Ostereier").." gesammelt") say("Du bekommst für eine bestimmte Anzahl an Eiern eine Belohnung.") wait() if table.getn(full_menu) <= 1 then say_title("Tut mir Leid..") say("Du hast noch zu wenig Ostereier für einen") say("Preis gesammelt.") say("Komm wieder. wenn du mehr gesammelt hast.") return end if table.getn(full_menu) > 7 then for i = 1 , 7 , 1 do table.insert(teil_menu,full_menu[i]) table.remove(full_menu,i) end local s=select_table(teil_menu) -- Menü 1 if s == 7 then return elseif s == 1 and teil_menu[s] != "Abbrechen" then local a,b = string.find(teil_menu[s]," ") local value = tonumber(string.sub(teil_menu[s], 1, (a-1))) local name = string.sub(teil_menu[s],a+1,string.len(teil_menu[s])) local rest = eier-value for i = 1 , table.getn(belohnungen), 1 do if belohnungen[i][4] == name then vnum = tonumber(belohnungen[i][2]) count = tonumber(belohnungen[i][3]) end end say("Möchtest du "..name.." wirklich eintauschen?") say("Dir bleiben danach noch "..rest.." Ostereier.") local r = select("Ja","Nein") if r == 2 then return else pc.remove_item(50160,value) pc.give_item(vnum,count) end elseif s == 2 and teil_menu[s] != "Abbrechen" then local a,b = string.find(teil_menu[s]," ") local value = tonumber(string.sub(teil_menu[s], 1, (a-1))) local name = string.sub(teil_menu[s],a+1,string.len(teil_menu[s])) local rest = eier-value for i = 1 , table.getn(belohnungen), 1 do if belohnungen[i][4] == name then vnum = tonumber(belohnungen[i][2]) count = tonumber(belohnungen[i][3]) end end say("Möchtest du "..name.." wirklich eintauschen?") say("Dir bleiben danach noch "..rest.." Ostereier.") local r = select("Ja","Nein") if r == 2 then return else pc.remove_item(50160,value) pc.give_item(vnum,count) end elseif s == 3 and teil_menu[s] != "Abbrechen" then local a,b = string.find(teil_menu[s]," ") local value = tonumber(string.sub(teil_menu[s], 1, (a-1))) local name = string.sub(teil_menu[s],a+1,string.len(teil_menu[s])) local rest = eier-value for i = 1 , table.getn(belohnungen), 1 do if belohnungen[i][4] == name then vnum = tonumber(belohnungen[i][2]) count = tonumber(belohnungen[i][3]) end end say("Möchtest du "..name.." wirklich eintauschen?") say("Dir bleiben danach noch "..rest.." Ostereier.") local r = select("Ja","Nein") if r == 2 then return else pc.remove_item(50160,value) pc.give_item(vnum,count) end elseif s == 4 and teil_menu[s] != "Abbrechen" then local a,b = string.find(teil_menu[s]," ") local value = tonumber(string.sub(teil_menu[s], 1, (a-1))) local name = string.sub(teil_menu[s],a+1,string.len(teil_menu[s])) local rest = eier-value for i = 1 , table.getn(belohnungen), 1 do if belohnungen[i][4] == name then vnum = tonumber(belohnungen[i][2]) count = tonumber(belohnungen[i][3]) end end say("Möchtest du "..name.." wirklich eintauschen?") say("Dir bleiben danach noch "..rest.." Ostereier.") local r = select("Ja","Nein") if r == 2 then return else pc.remove_item(50160,value) pc.give_item(vnum,count) end elseif s == 5 and teil_menu[s] != "Abbrechen" then local a,b = string.find(teil_menu[s]," ") local value = tonumber(string.sub(teil_menu[s], 1, (a-1))) local name = string.sub(teil_menu[s],a+1,string.len(teil_menu[s])) local rest = eier-value for i = 1 , table.getn(belohnungen), 1 do if belohnungen[i][4] == name then vnum = tonumber(belohnungen[i][2]) count = tonumber(belohnungen[i][3]) end end say("Möchtest du "..name.." wirklich eintauschen?") say("Dir bleiben danach noch "..rest.." Ostereier.") local r = select("Ja","Nein") if r == 2 then return else pc.remove_item(50160,value) pc.give_item(vnum,count) end elseif s == 6 then teil_menu = {} for i = 1 , 7 , 1 do table.insert(teil_menu,full_menu[i]) table.remove(full_menu,i) end local s=select_table(teil_menu) -- Menü 2 if s == 7 then return elseif s == 1 and teil_menu[s] != "Abbrechen" then local a,b = string.find(teil_menu[s]," ") local value = tonumber(string.sub(teil_menu[s], 1, (a-1))) local name = string.sub(teil_menu[s],a+1,string.len(teil_menu[s])) local rest = eier-value for i = 1 , table.getn(belohnungen), 1 do if belohnungen[i][4] == name then vnum = tonumber(belohnungen[i][2]) count = tonumber(belohnungen[i][3]) end end say("Möchtest du "..name.." wirklich eintauschen?") say("Dir bleiben danach noch "..rest.." Ostereier.") local r = select("Ja","Nein") if r == 2 then return else pc.remove_item(50160,value) pc.give_item(vnum,count) end elseif s == 2 and teil_menu[s] != "Abbrechen" then local a,b = string.find(teil_menu[s]," ") local value = tonumber(string.sub(teil_menu[s], 1, (a-1))) local name = string.sub(teil_menu[s],a+1,string.len(teil_menu[s])) local rest = eier-value for i = 1 , table.getn(belohnungen), 1 do if belohnungen[i][4] == name then vnum = tonumber(belohnungen[i][2]) count = tonumber(belohnungen[i][3]) end end say("Möchtest du "..name.." wirklich eintauschen?") say("Dir bleiben danach noch "..rest.." Ostereier.") local r = select("Ja","Nein") if r == 2 then return else pc.remove_item(50160,value) pc.give_item(vnum,count) end elseif s == 3 and teil_menu[s] != "Abbrechen" then local a,b = string.find(teil_menu[s]," ") local value = tonumber(string.sub(teil_menu[s], 1, (a-1))) local name = string.sub(teil_menu[s],a+1,string.len(teil_menu[s])) local rest = eier-value for i = 1 , table.getn(belohnungen), 1 do if belohnungen[i][4] == name then vnum = tonumber(belohnungen[i][2]) count = tonumber(belohnungen[i][3]) end end say("Möchtest du "..name.." wirklich eintauschen?") say("Dir bleiben danach noch "..rest.." Ostereier.") local r = select("Ja","Nein") if r == 2 then return else pc.remove_item(50160,value) pc.give_item(vnum,count) end elseif s == 4 and teil_menu[s] != "Abbrechen" then local a,b = string.find(teil_menu[s]," ") local value = tonumber(string.sub(teil_menu[s], 1, (a-1))) local name = string.sub(teil_menu[s],a+1,string.len(teil_menu[s])) local rest = eier-value for i = 1 , table.getn(belohnungen), 1 do if belohnungen[i][4] == name then vnum = tonumber(belohnungen[i][2]) count = tonumber(belohnungen[i][3]) end end say("Möchtest du "..name.." wirklich eintauschen?") say("Dir bleiben danach noch "..rest.." Ostereier.") local r = select("Ja","Nein") if r == 2 then return else pc.remove_item(50160,value) pc.give_item(vnum,count) end elseif s == 5 and teil_menu[s] != "Abbrechen" then local a,b = string.find(teil_menu[s]," ") local value = tonumber(string.sub(teil_menu[s], 1, (a-1))) local name = string.sub(teil_menu[s],a+1,string.len(teil_menu[s])) local rest = eier-value for i = 1 , table.getn(belohnungen), 1 do if belohnungen[i][4] == name then vnum = tonumber(belohnungen[i][2]) count = tonumber(belohnungen[i][3]) end end say("Möchtest du "..name.." wirklich eintauschen?") say("Dir bleiben danach noch "..rest.." Ostereier.") local r = select("Ja","Nein") if r == 2 then return else pc.remove_item(50160,value) pc.give_item(vnum,count) end elseif s == 6 then teil_menu = {} for i = 1 , 7 , 1 do table.insert(teil_menu,full_menu[i]) table.remove(full_menu,i) end local s=select_table(teil_menu) -- Menü 3 if s == 7 then return elseif s == 1 and teil_menu[s] != "Abbrechen" then local a,b = string.find(teil_menu[s]," ") local value = tonumber(string.sub(teil_menu[s], 1, (a-1))) local name = string.sub(teil_menu[s],a+1,string.len(teil_menu[s])) local rest = eier-value for i = 1 , table.getn(belohnungen), 1 do if belohnungen[i][4] == name then vnum = tonumber(belohnungen[i][2]) count = tonumber(belohnungen[i][3]) end end say("Möchtest du "..name.." wirklich eintauschen?") say("Dir bleiben danach noch "..rest.." Ostereier.") local r = select("Ja","Nein") if r == 2 then return else pc.remove_item(50160,value) pc.give_item(vnum,count) end elseif s == 2 and teil_menu[s] != "Abbrechen" then local a,b = string.find(teil_menu[s]," ") local value = tonumber(string.sub(teil_menu[s], 1, (a-1))) local name = string.sub(teil_menu[s],a+1,string.len(teil_menu[s])) local rest = eier-value for i = 1 , table.getn(belohnungen), 1 do if belohnungen[i][4] == name then vnum = tonumber(belohnungen[i][2]) count = tonumber(belohnungen[i][3]) end end say("Möchtest du "..name.." wirklich eintauschen?") say("Dir bleiben danach noch "..rest.." Ostereier.") local r = select("Ja","Nein") if r == 2 then return else pc.remove_item(50160,value) pc.give_item(vnum,count) end elseif s == 3 and teil_menu[s] != "Abbrechen" then local a,b = string.find(teil_menu[s]," ") local value = tonumber(string.sub(teil_menu[s], 1, (a-1))) local name = string.sub(teil_menu[s],a+1,string.len(teil_menu[s])) local rest = eier-value for i = 1 , table.getn(belohnungen), 1 do if belohnungen[i][4] == name then vnum = tonumber(belohnungen[i][2]) count = tonumber(belohnungen[i][3]) end end say("Möchtest du "..name.." wirklich eintauschen?") say("Dir bleiben danach noch "..rest.." Ostereier.") local r = select("Ja","Nein") if r == 2 then return else pc.remove_item(50160,value) pc.give_item(vnum,count) end elseif s == 4 and teil_menu[s] != "Abbrechen" then local a,b = string.find(teil_menu[s]," ") local value = tonumber(string.sub(teil_menu[s], 1, (a-1))) local name = string.sub(teil_menu[s],a+1,string.len(teil_menu[s])) local rest = eier-value for i = 1 , table.getn(belohnungen), 1 do if belohnungen[i][4] == name then vnum = tonumber(belohnungen[i][2]) count = tonumber(belohnungen[i][3]) end end say("Möchtest du "..name.." wirklich eintauschen?") say("Dir bleiben danach noch "..rest.." Ostereier.") local r = select("Ja","Nein") if r == 2 then return else pc.remove_item(50160,value) pc.give_item(vnum,count) end elseif s == 5 and teil_menu[s] != "Abbrechen" then local a,b = string.find(teil_menu[s]," ") local value = tonumber(string.sub(teil_menu[s], 1, (a-1))) local name = string.sub(teil_menu[s],a+1,string.len(teil_menu[s])) local rest = eier-value for i = 1 , table.getn(belohnungen), 1 do if (belohnungen[i][4]) == name then vnum = tonumber(belohnungen[i][2]) count = tonumber(belohnungen[i][3]) end end end say("Möchtest du "..name.." wirklich eintauschen?") say("Dir bleiben danach noch "..rest.." Ostereier.") local r = select("Ja","Nein") if r == 2 then return else pc.remove_item(50160,value) pc.give_item(vnum,count) end elseif s == 6 then teil_menu = {} for i = 1 , 7 , 1 do table.insert(teil_menu,full_menu[i]) table.remove(full_menu,i) end local s=select_table(teil_menu) -- Menü 4 if s == 7 then return elseif s == 1 and teil_menu[s] != "Abbrechen" then local a,b = string.find(teil_menu[s]," ") local value = tonumber(string.sub(teil_menu[s], 1, (a-1))) local name = string.sub(teil_menu[s],a+1,string.len(teil_menu[s])) local rest = eier-value for i = 1 , table.getn(belohnungen), 1 do if belohnungen[i][4] == name then vnum = tonumber(belohnungen[i][2]) count = tonumber(belohnungen[i][3]) end end say("Möchtest du "..name.." wirklich eintauschen?") say("Dir bleiben danach noch "..rest.." Ostereier.") local r = select("Ja","Nein") if r == 2 then return else pc.remove_item(50160,value) pc.give_item(vnum,count) end elseif s == 2 and teil_menu[s] != "Abbrechen" then local a,b = string.find(teil_menu[s]," ") local value = tonumber(string.sub(teil_menu[s], 1, (a-1))) local name = string.sub(teil_menu[s],a+1,string.len(teil_menu[s])) local rest = eier-value for i = 1 , table.getn(belohnungen), 1 do if belohnungen[i][4] == name then vnum = tonumber(belohnungen[i][2]) count = tonumber(belohnungen[i][3]) end end say("Möchtest du "..name.." wirklich eintauschen?") say("Dir bleiben danach noch "..rest.." Ostereier.") local r = select("Ja","Nein") if r == 2 then return else pc.remove_item(50160,value) pc.give_item(vnum,count) end elseif s == 3 and teil_menu[s] != "Abbrechen" then local a,b = string.find(teil_menu[s]," ") local value = tonumber(string.sub(teil_menu[s], 1, (a-1))) local name = string.sub(teil_menu[s],a+1,string.len(teil_menu[s])) local rest = eier-value for i = 1 , table.getn(belohnungen), 1 do if belohnungen[i][4] == name then vnum = tonumber(belohnungen[i][2]) count = tonumber(belohnungen[i][3]) end end say("Möchtest du "..name.." wirklich eintauschen?") say("Dir bleiben danach noch "..rest.." Ostereier.") local r = select("Ja","Nein") if r == 2 then return else pc.remove_item(50160,value) pc.give_item(vnum,count) end elseif s == 4 and teil_menu[s] != "Abbrechen" then local a,b = string.find(teil_menu[s]," ") local value = tonumber(string.sub(teil_menu[s], 1, (a-1))) local name = string.sub(teil_menu[s],a+1,string.len(teil_menu[s])) local rest = eier-value for i = 1 , table.getn(belohnungen), 1 do if belohnungen[i][4] == name then vnum = tonumber(belohnungen[i][2]) count = tonumber(belohnungen[i][3]) end end say("Möchtest du "..name.." wirklich eintauschen?") say("Dir bleiben danach noch "..rest.." Ostereier.") local r = select("Ja","Nein") if r == 2 then return else pc.remove_item(50160,value) pc.give_item(vnum,count) end elseif s == 5 and teil_menu[s] != "Abbrechen" then local a,b = string.find(teil_menu[s]," ") local value = tonumber(string.sub(teil_menu[s], 1, (a-1))) local name = string.sub(teil_menu[s],a+1,string.len(teil_menu[s])) local rest = eier-value for i = 1 , table.getn(belohnungen), 1 do if belohnungen[i][4] == name then vnum = tonumber(belohnungen[i][2]) count = tonumber(belohnungen[i][3]) end end say("Möchtest du "..name.." wirklich eintauschen?") say("Dir bleiben danach noch "..rest.." Ostereier.") local r = select("Ja","Nein") if r == 2 then return else pc.remove_item(50160,value) pc.give_item(vnum,count) end else return -- Menü 4 end else return -- Menü 3 end else return -- Menü 2 end else return -- Menü 1 end else local s=select_table(full_menu) -- Menü 1 if s == 7 then return elseif s == 1 and teil_menu[s] != "Abbrechen" then local a,b = string.find(teil_menu[s]," ") local value = tonumber(string.sub(teil_menu[s], 1, (a-1))) local name = string.sub(teil_menu[s],a+1,string.len(teil_menu[s])) local rest = eier-value for i = 1 , table.getn(belohnungen), 1 do if belohnungen[i][4] == name then vnum = tonumber(belohnungen[i][2]) count = tonumber(belohnungen[i][3]) end end say("Möchtest du "..name.." wirklich eintauschen?") say("Dir bleiben danach noch "..rest.." Ostereier.") local r = select("Ja","Nein") if r == 2 then return else pc.remove_item(50160,value) pc.give_item(vnum,count) end elseif s == 2 and teil_menu[s] != "Abbrechen" then local a,b = string.find(teil_menu[s]," ") local value = tonumber(string.sub(teil_menu[s], 1, (a-1))) local name = string.sub(teil_menu[s],a+1,string.len(teil_menu[s])) local rest = eier-value for i = 1 , table.getn(belohnungen), 1 do if belohnungen[i][4] == name then vnum = tonumber(belohnungen[i][2]) count = tonumber(belohnungen[i][3]) end end say("Möchtest du "..name.." wirklich eintauschen?") say("Dir bleiben danach noch "..rest.." Ostereier.") local r = select("Ja","Nein") if r == 2 then return else pc.remove_item(50160,value) pc.give_item(vnum,count) end elseif s == 3 and teil_menu[s] != "Abbrechen" then local a,b = string.find(teil_menu[s]," ") local value = tonumber(string.sub(teil_menu[s], 1, (a-1))) local name = string.sub(teil_menu[s],a+1,string.len(teil_menu[s])) local rest = eier-value for i = 1 , table.getn(belohnungen), 1 do if belohnungen[i][4] == name then vnum = tonumber(belohnungen[i][2]) count = tonumber(belohnungen[i][3]) end end say("Möchtest du "..name.." wirklich eintauschen?") say("Dir bleiben danach noch "..rest.." Ostereier.") local r = select("Ja","Nein") if r == 2 then return else pc.remove_item(50160,value) pc.give_item(vnum,count) end elseif s == 4 and teil_menu[s] != "Abbrechen" then local a,b = string.find(teil_menu[s]," ") local value = tonumber(string.sub(teil_menu[s], 1, (a-1))) local name = string.sub(teil_menu[s],a+1,string.len(teil_menu[s])) local rest = eier-value for i = 1 , table.getn(belohnungen), 1 do if belohnungen[i][4] == name then vnum = tonumber(belohnungen[i][2]) count = tonumber(belohnungen[i][3]) end end say("Möchtest du "..name.." wirklich eintauschen?") say("Dir bleiben danach noch "..rest.." Ostereier.") local r = select("Ja","Nein") if r == 2 then return else pc.remove_item(50160,value) pc.give_item(vnum,count) end elseif s == 5 and teil_menu[s] != "Abbrechen" then local a,b = string.find(teil_menu[s]," ") local value = tonumber(string.sub(teil_menu[s], 1, (a-1))) local name = string.sub(teil_menu[s],a+1,string.len(teil_menu[s])) local rest = eier-value for i = 1 , table.getn(belohnungen), 1 do if belohnungen[i][4] == name then vnum = tonumber(belohnungen[i][2]) count = tonumber(belohnungen[i][3]) end end say("Möchtest du "..name.." wirklich eintauschen?") say("Dir bleiben danach noch "..rest.." Ostereier.") local r = select("Ja","Nein") if r == 2 then return else pc.remove_item(50160,value) pc.give_item(vnum,count) end else return end end end end end New Error: ostern.quest:640:syntax error : [string "startpc . count_item ( 50160 ) >= 1"]:510: <eof> expected near `else' Error occured on compile ostern.quest
-
SEARCH CLIENT 40K
DaCookie -Raven replied to Mister221's topic in Community Support - Questions & Answers
I downloaded the official gameforge client with help of this gameforge game programm (dont know the exact name) but then i didnt patched and it works all fine with my 40k binary and 40k serverfiles But you have to manually add the belt system -
[Warning]Notepad++
DaCookie -Raven replied to Saddler's topic in Community Support - Questions & Answers
So its fine i think... but your encoding was set to ucs-2 big endian... as you can see bottom right... so try to use ANSI for better conversion..