-
Posts
408 -
Joined
-
Last visited
-
Days Won
1 -
Feedback
0%
Content Type
Forums
Store
Third Party - Providers Directory
Feature Plan
Release Notes
Docs
Events
Everything posted by Traceur3RUN
-
Your code is bugged. When you learn book. It givr you 90x level
-
Hello, someone can write for me one new function? i mean mob.get_name from client not from serverside name. thanks
-
sysser is clean syslog when i click on npc i got this Oct 25 11:28:52 :: OnClick Stable Man[vnum 20349 ServerUniqueID 14621, pid 0] by Tester maybe mainline_released have bug with this function in source? i can without problem use it if pc.getqf("test") == 0 then --todo elseif pc.getqf("test") == 1 then --todo end but i can't use it here: when 1231.chat."test" with pc.getqf("test") == 0 begin because always return null i think i can fix syslog return pid 0 by change this: sys_log(0, "OnClick %s[vnum %d ServerUniqueID %d, pid %d] by %s", GetName(), GetRaceNum(), vid, GetPlayerID(), pkChrCauser->GetName()); change to this: sys_log(0, "OnClick %s[vnum %d ServerUniqueID %d, pid %d] by %s", GetName(), GetRaceNum(), vid, ch->GetPlayerID(), pkChrCauser->GetName()); but this is nothing to quest function.
-
so you mean like this: int pc_set_test(lua_State* L){ char szQuery[QUERY_MAX_LEN]; if(!lua_isstring(L,1)){ return 0; } LPCHARACTER ch = CQuestManager::instance().GetCurrentCharacterPtr(); snprintf(szQuery,sizeof(szQuery),"update account%s set test = '%s' where id = '%d'",get_table_postfix(),lua_tostring(L,1), ch->GetAID()); //ch->GetAID() = get account id std::auto_ptr<SQLMsg> pmsg(DBManager::instance().DirectQuery(szQuery)); if(pmsg->Get()->uiInsertID == 0){ return 0; } return 1; } is correct? i think this is LPCHARACTER ch = CQuestManager::instance().GetCurrentCharacterPtr(); // = current character playing btw, how about use mysql_query in lua?
-
Hello, i ask now how i can use MySQL insert/update/select from c++ and lua. can you post example how i can use it? i ask there for example how i can send packet from game->python game->client binary game->client binary->python client binary->python client binary->game client binary->game and python get values like from MySQL like[player->gold] and send it to client and receive binary/and or python if (gold >= 0){ //todo } can someone make a tutorial or show under example code? i think it will be helpfull not only for me but for all people to understand how it work. thanks!
-
how work it and how to use it?
-
guy, don't use Bigint 255 just Bigint 20 long long = 9,223,372,036,854,775,807 = 19 lenght unsgned long long = 18,446,744,073,709,551,615 = 20 lenght
-
can someone fix this bug? when you have like something/something/something then this doesnt work, because dont create folder with lz only work with pack/ but dont work if you have lib/lib/
-
Hello, someone know how to change text color of Yang? i mean when i got from monster yang = 1 then color = white Yang monster yang = 100 or more then color blue and also will be awesome if someone will add show value of droped yang like: 8 Yang 22 Yang its possible do via python? or only c++ can someone do this?
-
Hello, i do all the same as from this topic : but when i try run metin2client i got this error: i rename locale.py to localeinfo.py and change import locale to import localeinfo but now i got this: when i change all locale to localeinfo and locale. to localeinfo. i got this. can someone help to fix this issue? or give part of compatible root with python 2.7
-
just change int to long long int, but you need first python 2.7 or higher
-
Dump_proto For Official Metin2
Traceur3RUN replied to Traceur3RUN's topic in Community Support - Questions & Answers
bump -
Dump_proto For Official Metin2
Traceur3RUN replied to Traceur3RUN's topic in Community Support - Questions & Answers
Bump -
serverinfo.py how i can achieve it?
Traceur3RUN replied to Traceur3RUN's topic in Community Support - Questions & Answers
bump -
Dump_proto For Official Metin2
Traceur3RUN replied to Traceur3RUN's topic in Community Support - Questions & Answers
bump